VNC Configure in Linux

Posted by Murali | 5:33 AM

rpm -qa |grep vnc

[root@sys46 ~]# rpm -qa |grep vnc
vnc-server-4.0-11.el4
vnc-4.0-11.el4



chkconfig --level 345 vncserver on

[root@sys46 ~]# chkconfig --level 345 vncserver on

==================================================
edit /etc/sysconfig/vncservers

uncomment
------
VNCSERVERS="1:root 2:oracle"
VNCSERVERARGS[1]="-geometry 800x600"

------

[root@sys46 .vnc]# cat /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# .

VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"

======================================================

[root@sys46 .vnc]# vncserver :1

You will require a password to access your desktops.

Password:
Verify:

New 'sys46.doyen.in:1 (root)' desktop is sys46.doyen.in:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/sys46.doyen.in:1.log

=======================================================
edit $HOME/.vnc/xstartup

Uncomment
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc


Add following lines
xhost +
gnome-session &
------------------------------

[root@sys46 .vnc]# cat xstartup
#!/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" &
xhost +
gnome-session &
twm &

=========================================================
[root@sys46 .vnc]# vncserver -kill :1
Killing Xvnc process ID 21329


[root@sys46 .vnc]# vncserver :1

New 'sys46.doyen.in:1 (root)' desktop is sys46.doyen.in:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/sys46.doyen.in:1.log

==========================================================

download http://www.realvnc.com/download.html

0 comments