Sunday, September 28, 2008

Various Stuffs on VNC Server Setting

Basic steps to get vnc server up and running on Linux

  1. Update the /etc/sysconfig/vncservers for all the port you want to open for user.

    Sample:
    VNCSERVERS="1:user1 99:root"
    VNCSERVERARGS[1]="-geometry 1024x768"
    VNCSERVERARGS[99]="-geometry 1024x768"

  2. Run vncpasswd for each user.
  3. Edit $(USER_HOME)/.vnc/xstartup for enable GUI desktop.
    Nothing but 2 lines to uncomment:

    # Uncomment the following two lines for normal desktop:

    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc

  4. Restart service
    service vncserver restart



No comments: