Tuesday 18 January 2011

RHEL6 - Instalation, rpm, repo

After install by default you dont have x windows:
- install xorg-x11-......
- install gnome-.........

The problem is too many packages, you must use:
yum groupinstall "X window system"
yum groupinstall "Desktop"

It used to be "GNOME Desktop Environment", but now the Desktop is refered to GNOME.

If you dont know the file related to which group, just open the comps.xml or repomd.xml file as explain further below.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

if you find problem group not available, check by :
yum grouplist ==> to see all available group pacakes

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

if that command shows data group not available, so you must:
cp xxxxxxcompsxxxxx.xml to local repo directory.
cd to repo directory
createrepo -g xxxxxxxxcompsxxxx.xml .
yum clean all

this will build repodata folder in your local repo folder.

You copy xxxxxxcompsxxxxx.xml from the same DVD in where you copy all the rpms to your local repo folder. Or you can use the DVD of rhel5 or other version, but maybe there are discrepancies of the packages in the group install, it works though.

If the repomd is overlapped with anotehr comps.xml files, just delete the repodata folder and run the createrepo -g again.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


createrepo you must install using rpm (or yum) but since this means you have no repo yet, so either way you must install the 2 deps packages manually.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

rpm --nogpgcheck

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

how to create local repo:
1. copy all the rpms from DVD to a local folder
2. in that local folder type : createrepo .
3. edit the yum.conf in /etc/yum
put the name of your repo (whatever)
baseurl=file:///folder
enabled=1
gpgcheck=0

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

rpm -qa (checking what packages installed in your PC)
rpm -q (chcking if it is insalled or not) same as above but the output diffrent though same meaning.

rpm -qi (see info of the packages)

REMEMBER : dont use * in the packages name, use : rpm -q | grep XXXX instead.
Note : if your CWD has pacakges files also, it cant be confusing, be careful!!

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Thursday 13 January 2011

VMware : ESX vs ESXi vs ESXiEmbedded

ESX has service console, service console is restricted shell of redhat OS

ESXi is not using service console, u have to use RemoteCLI to manage it, but still ESXi needs a Harddisk to store. The donwside is could be hard to troubleshoot for newbie since not using service console.


ESXiEmbedded is ESXi but stored in flashdisk instead, the downside is flash disk has no mirroring function, when it is broken, u need to install new one.