VNC Server

#  VNC
 
 
# ubuntu server
apt update
apt upgrade -y
 
# install ubuntu-desktop
apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal -y
 
# install vnc server
apt install vnc4server -y
# config vnc server
echo 'gnome-panel &' >>  ~/.vnc/xstartup
echo 'gnome-settings-daemon &' >>  ~/.vnc/xstartup
echo 'metacity &' >>  ~/.vnc/xstartup
echo 'nautilus &' >>  ~/.vnc/xstartup
# start vnc server
vncserver :1
# stop vnc start
vncserver -kill :1
posted @ 2018-08-05 21:01  数字安全极客  阅读(215)  评论(0编辑  收藏  举报