In the ~/.vnc/xstartup we can configure vnc session to start in gnome or kde, as shown below:
Then start vnc server as:
This will tell you the hostname:sessionnum and set the password:
Optionally you can change the screen size for your session as:
For XFCE desktop change the xstartup file to:
#!/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" &
x-window-manager &
startxface4 &
exec /usr/bin/xfce4-session
#!/bin/sh |
$ vncserver |
$ vncpasswd |
vncserver :displaynumNow you are all set to connect with your favorite vnc client (i use ultravnc).-geometry 1920x1080
For XFCE desktop change the xstartup file to:
#!/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" &
x-window-manager &
startxface4 &
exec /usr/bin/xfce4-session
No comments:
Post a Comment