- 本例使用tigier vnc,如果已经安装其他的vnc软件,请先remove, 例如sudo apt remove vnc4server
- 安装tigervnc
sudo apt install xserver-xorg-core
sudo apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer -y
- setup a password for vnc login:
$ vncpasswd - How to configuring Gnome 3 Desktop environment to use with VNC
You need to create a file name ~/.vnc/xstartup using a text editor such as vim command or nano command:
$ vi ~/.vnc/xstartup
Append the following:
#!/bin/sh
# Start Gnome 3 Desktop