I hope many of us works on Linux servers some times for installation
of the products we deal with. But as you all know the installation of any
product from terminal is different from GUI. And we like to use GUI based
installation.
I would like to share the procedure to enable the GUI mode of
installation on RedHat linux servers.
·
Go to your home directory from any were by just typing “cd” and
enter
·
Then do ls –al to list out all the files in the directory
·
You will see .vnc folder will be there. Enter into the
folder by cd .vnc
·
You will see a file name called xstartup
·
Take a back up of the file
·
Run the following command “vncserver”
·
Then you will get message similar to below
o
New 'roswell:1 (root)' desktop is roswell:1
o
Starting applications specified in /root/.vnc/xstartup
o
Log file is /root/.vnc/roswell:1.log
·
Then go to the log file and note down the HTTP port value
·
Then type the command “vncpasswd” where it will ask
you for the password please give your login password and verify it .
·
The file will look like below where I uncommented two lines next
to “#uncomment”
o
#!/bin/sh
o
o
# Uncomment the following two lines for normal desktop:
o
unset SESSION_MANAGER
o
exec /etc/X11/xinit/xinitrc
o
o
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
o
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
o
xsetroot -solid grey
o
vncconfig -iconic &
o
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP
Desktop" &
o
startx &
·
Then go to your Internet explorer and type
:http://yourserverip:portnumber/
·
You will get the page requesting for password and enter
password.. Then you will see Redhatlinux window(GUI) for you.
No comments:
Post a Comment