Monday, September 3, 2012

What can I do with CentOS ?


Index

  1. I want to install EPEL repository
  2. How to mount 'ntfs' partition in CentOS?
  3. How do I create CentOS local repository?
  4. Create local yum repository
  5. Setting up passwordless SSH
  6. Install firefox 15 on CentOS
  7. Download rpm packages locally to a directory to setup local repo
  8. Install VirtualBox on CentOS

1. I want to install EPEL repository

For the impatient
I am using CentOS 6
For the rest
Go to  http://wiki.centos.org/AdditionalResources/Repositories it contains the additional repositories.
Find your favourite repository/EPEL and follow the links, they should have updated information over time.

2. How to mount 'ntfs' partition in CentOS?

Read the guide here - http://wiki.centos.org/TipsAndTricks/NTFS

3. How do I create CentOS local repository?

For the impatient
I am using CentOS 6

  • yum install createrepo
  • createrepo /path/to/rpms

 

4. Create local yum repository

For the impatient
I am using CentOS 6
  • Should have createrepo package. If not then yum install createrepo
  • Create a repository directory that will contain rpms (mkdir /media/repo)
  • #createrepo /path/to/rpms (here /media/repo)
  • #nano /etc/yum.repos.d/local.repo
  • Contents of local.repo
[local]
Name=CentOS 6.3 $releasever $basearch local repository
baseurl=file:///media/repo
enabled=1

Follow the guide here - http://adhocshare.blogspot.in/2012/08/create-your-own-local-yum-repositories.html

5. Setting up passwordless SSH

For the impatient
I am using CentOS
  • #ssh-keygen -t rsa
  • #ssh-copy-id -i ~/.ssh/id_rsa.pub root@hostname

 

6. Install firefox 15 on CentOS

For the impatient
I am using CentOS
For the rest
Follow here - http://adhocshare.blogspot.in/2012/09/install-firefox-15-on-fedora-1716.html  

 

 

7. Download rpm packages locally to a directory to setup local repo

For the impatient
I am using CentOS
  • Install yum-downloadonly plugin (#yum install yum-downloadonly)
  • Only download -> #yum install firefox --downloadonly --downloaddir=/media/repo
  • Download and install -> #yum install firefox --downloaddir=/media/repo
For setting up local repository go to section 4.

8. Install VirtualBox on CentOS

For the impatient
I am using CentOS

  • from directory /etc/yum.repos.d run #wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
  • #yum groupinstall "Development Tools"
  • #yum install kernel-devel
  • #yum install VirtualBox-4.2
  • for a user who wants to run virtualbox run #usermod -a -G vboxusers username

For the rest - goto http://wiki.centos.org/HowTos/Virtualization/VirtualBox

 

 

No comments:

Post a Comment

I would be glad to know if this post helped you.