更新
sudo apt-get update
安装
sudo apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal ubuntu-desktop
vnc
sudo apt-get install vnc4server
sudo vncserver
sudo vi ~/.vnc/xstartup
1 2 3 4 5
#!/bin/sh export XKL_XMODMAP_DISABLE=1 export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME" export XDG_MENU_PREFIX="gnome-flashback-" gnome-session --session=gnome-flashback-metacity --disable-acceleration-check &
重启
sudo vncserver -kill :1 #杀掉原桌面进程,输入命令(其中的:1是桌面号)
解决refuse问题
vncserver -geometry 1920x1080 :2 -localhost no
bug 记录 vnc远程笔记本,不调分辨率是正常的,调分辨率后
vncserver -geometry 1920x1080 :2 -localhost no
要么花屏要么computer refuse.解决方法::
sudo vncserver -geometry 1920x1080
vnc 远程linux桌面 ubuntu 18.04
This post is licensed under CC BY 4.0 by the author.