Monday, May 02, 2011

How to start the vncserver

[root@eit etc]# service vncserver start
Starting VNC server: [ OK ]
[root@eit etc]#
[root@eit etc]# vncpasswd
Password:
Verify:

[root@eit etc]#
[root@eit etc]# vncserver
New 'eit:1 (root)' desktop is eit:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/eit:1.log
[root@eit etc]#

[root@eit .vnc]# vi xstartup
Using vi (vim) to edit the xstartup file, make sure your file matches this one:
#!/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" &
twm &
OR
startx &


Regards,
Sukhwinder Singh

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.