Wednesday, December 17, 2008

Configuring VNC on fedora 9

1. #Yum vnc-server //installation
2. #vncserver :1 //run desktop 1
3. #vncserver -kill :1 // kill desktop 1
4. #service vncserver status //check for vncserver status
5. #chkconfig vncserver on //start vncserver upon bootup
6. #vi /root/.vnc/xstartup file //configure startup vnc desktop
//xstartup file
#!/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 &

If you want to force to load Gnome or KDE Desktop on remote access,
edit the last line from ‘twm &’ to ’startx &’ for Gnome and
’startkde &’ for KDE Desktop.

7.#vncserver :1 -extension XFIXES //Restart vnc
8. connect using realvnc ipaddress:1
9. #vi /etc/sysconfig/vncservers //configure bootup vnc image desktop

VNCSERVERS="1:tiger 2:albatros 3:leopard"
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16" //port 5901
VNCSERVERARGS[2]="-geometry 800x600 -depth 8" //port 5902
VNCSERVERARGS[3]="-geometry 1024x768 -depth 16" //pot 5903

10. # service vncserver [restart|start|stop|status]
11. startup script to start up program upon vnc

// /home//.vnc/xstartup
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" -e ./menu &
EXT_PROGRAM &

12. /root/.vnc/:.log

No comments:

Post a Comment