1.sudo apt-get install ssh vnc4server
2.vncserver -geometry 800x600 -depth 16
keyin password twice
3.vncserver -kill :1
4.vim ~/.vnc/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" &
#twm &
5.sudo chmod 755 /etc/X11/xinit/xinitrc
6.vncserver
Client部份
vnc4viewer server:1
or vnc4viewer ip:5901
沒有留言:
張貼留言