Wednesday, March 18, 2015

How To Enable VncServer in Red Hat Linux

 

As  many of us works on Linux servers some times for installation of the products we like to have GUI enabled.

I would like to share the procedure to enable the GUI mode of installation on Red Hat 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
    • New 'roswell:1 (root)' desktop is roswell:1
    • Starting applications specified in /root/.vnc/xstartup
    • 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”
    •  #!/bin/sh
    • # Uncomment the following two lines for normal desktop:
    • unset SESSION_MANAGER
    • exec /etc/X11/xinit/xinitrc
    • [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    • [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    • xsetroot -solid grey
    • vncconfig -iconic &
    • xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    • 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