What is VNCserver?
VNC stands for Virtual Network Computing.
Why use VNCserver?
In Linux, everything can be done from a shell. However, there may be a time when you need to access the machine as if you were at the console.
Getting Started
You will need several things to get started:
root privledges
VNC client software (tightVNC)
A good password!
As I mentioned above, this example is done with RHEL, which comes standard with VNCserver installed. To start the vncserver simply invoke the following commands:
[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 &
1 comment:
Thanks for the post I found it very helpful.
Regards, will
Post a Comment