Friday, May 4, 2012

Installing VitualBox Guest Additions on Linux


To establish version control environment, I created a guest Linux within Oracle VM VirtualBox. Installing Oracle VM VirtualBox and in turn installing Oracle Enterprise Linux is quite straightforward.

After above done, I’ve spent some times to install VitualBox Guest Additions. Comparing to installation on Solaris with VirtualBox, the installation on Linux requires more steps.

1. Installing Oracle Public Yum Server

The Oracle public yum server offers a free and convenient way to install packages from the Oracle Linux and Oracle VM installation media via a yum client. The installation guide and manual are available at http://public-yum.oracle.com .

With Oracle Enterprise Linux 5, run the following commands as root.
1.cd /etc/yum.repos.d
2.wget http://public-yum.oracle.com/public-yum-el5.repo

2, Then, enable the appropriate repository by editing the yum configuration file.

1. Open the yum configuration file in a text editor

    In my case, the file is /etc/yum.repos.d/public-yum-el5.repo

2. Locate the section in the file for the repository you plan to update from, e.g.      [el4_u6_base] Change enabled=0 to enabled=1

In my case, the change I made is:
[el5_ga_base]
name=Enterprise Linux $releasever GA - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1

3. Begin using yum, for example:
1 yum list

4. Installing necessary packages by using Yum
1 yum install kernel-devel
2 yum install kernel-headers
3 yum install gcc

5. Installing VirtualBox Guest Additions
1 export KERN_DIR=/usr/src/kernels/2.6.18-8.el5-i686
2  //Mount Vbox Guest Additions ISO as CDROM
3 cd /media/VBOXADDITIONS_2.2.0_45846
4 sh ./VBoxLinuxAdditions-x86.run

After installation, restart guest host and you’ll find VitualBox Guest Additions is working.
Share

Wednesday, March 14, 2012

CREATE YUM REPOSITORY IN RHEL5.0

YUM  USES RHN BY DEFAULT. THIS ARTICLE SHOW YOU; HOW TO SETUP LOCAL REPOSITORY TO USE YUM .
STEPS FOR CREATING YUM REPO..................................
  1. Insert RHEL5.0 dvd in dvd-drive.
  2. Mount it and copy its contents as shown in figure.

Copy DVD

3. Now create a new directory "RHCE" in /opt.

4. Paste dvd contents in "/opt/RHCE".

DVD Contents

5. Now open "/opt/RHCE/Server" and right click to open terminal from here.

Opening Terminal


6. Proceed with the following commands...........
  • #rpm -ivh createrepo-0.4.4-2.fc6.noarch.rpm 
  • #createrepo -v /opt/RHCE/Server
  • #nano /etc/yum.repos.d/Server.repo

 >[Server]
>name=Red
>baseurl=file:///opt/RHCE/Server
>enabled=1
>gpgcheck=0

now save and exit from nano.

Nano Editor

  • #yum clean all
  • #yum update
7. Now open Package manager to check   
Add/Remove Software