Friday 16 July 2010

Installaing rpms from iso file

Need to know , how to install rpms from an iso file ... easy job , just tarnsfer iso image file to your linux partition ( let say by ftp )and then mount as follows mount -o loop /tmp/RHEL.iso /mnt/cd1 and then you will get whole Linux image inside /mnt/cd1 directory. 

Next step would be to create a repo configuration file  like below

vi /etc/yum.repos.d/rhe72.repo

-----------------------

[Red_Hat_72]
baseurl=file:///mnt/cd1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY ** Put exact path where RPM-GPG_KEY file exists
gpgcheck=1  ** you can also ignore gpgcheck by setting its value to Zero
enabled=1

----------

then execute

yum clean all

and finally you can run 

yum repolist


which will show repository contents inside /mnt/cd1 filesystem


Saturday 10 July 2010

Remote Graphical Desktop on RHEL-5 , XDMCP and Xwindows

Sometimes ,it happens that nothing works for you. You struggle and struggle again for a task which seems very very easy for you.
It happened to me few days ago when i was trying to do some graphical installation on my VMWare based RHEL-5 and was not able to do see graphical screen properly due to some resolution issues.

So after trying for hours and hours to fix this resolution issue, i finally decided to try some remote desktop software ( which are commonly as xwindows software ) on my windows machine .

It was a hard selection as nowadays so many xwindows software available on internet. Off course ideas was to use some freely available software so i selected cygwin/X for this purpose.
Cygwin/X installation/download was pretty simple however main trick was to select specific packages from x11 category. I took help from cygwin/x installation/user guide and installed this siftware very easily.

Then next step was to start cygwin bash shell and on this bash shell i tried

xwin -query 192.168.1.234 ( which was IP address of my RHEL-5), but no success.

i was sure that xwin command was right , as all cygwin manuals point to same command. After hours and hours effort , i concluded that Linux is not opening any remote graphical sessions from cygwin , as due to new RHEL-5 security standards XDCMP protocol is disabled by default.
So then i modified the file /etc/gdm/custom.conf and under the [xdmcp] section, added this line: Enable=true

Finally restarted GDM by using command gdm-restart

and then tried same xwin command from cygwin ,,,, Ahh it was successfull and finally i got graphical remote desktop on my windows machine connecting to Linux server.Thanks google again!!!

 How to Enable Graphical Mode on Red Hat 7 he recommended way to enable graphical mode on RHEL  V7 is to install first following packages # ...