首先安装gnome终端

sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

sudo apt update

sudo apt -y install vnc4server

sudo apt install xfce4 xfce4-goodies -y

sudo apt install firefox

vncpasswd

到/root/.vnc/目录下,打开文件xstartup在最下面添加以下代码

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

最后启动vnc

sudo vncserver -geometry 1920x1080

别忘记在防火墙中开启5901端口
关闭vnc:vncserver -kill :1

标签: none

添加新评论