VNCServer

From WeWeWeb Wiki
Jump to: navigation, search

run VNCServer (User mode)

vncserver to start a vncserver session (say :1) on Fedora.

Then use RealVNC viewer to connect to Fedora's IP, i.e. <IP address>:1.

Use vncpasswd to set password

To view normal desktop

Edit ~/.vnc/xstartup and take out the comment "#" on those two lines

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

And change

twm &
 to
gnome-session &   ( if you use gnome)
 or
startkde &   ( if you use kde)

So your ~/.vnc/xstartup will look like

#!/bin/sh 

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &  (or  startkde &)

Then restart another vncserver.

vncserver -kill :1


Goto Linux