Archive for June 14th, 2010

Installing Vnc Server on Linux Machine without monitor

Vnc Installation Without Monitor

Packages Required :



3.Desktop Environment KDE or GNOME

Configuring VNC :

1. Add users like normal users.

2. login to each users

3. create password by running vncpasswd

4. It creates .vnc folder

5. Edit /etc/sysconfig/vncservers, and add the following to end of the file

VNCSERVERS="1:amitn 2:someuser"

VNCSRVERARGS[1]="-geometry 640×480"  ( for amitn )

VNCSRVERARGS[2]="-geometry 640×480"  ( for someuser)

VNCSRVERARGS[1]="-geometry 800×600"

6.Create Xstartup scripts by starting and stopping vncserver as root

/sbin/service vncserver start

/sbin/service vncserver stop

7. Login to each user and edit xstartup script

8. vi .vnc/xstartup


# Add the following line to ensure you always have an xterm available.

( while true ; do xterm ; done ) &

# Uncomment the following two lines for normal desktop:


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 80×24+10+10 -ls -title "$VNCDESKTOP Desktop" & startkde &