Introduction
There are several different remote desktop methods under the Ubuntu system. I have used them all. Here are some usage summaries: vnc4server
: Among them, vnc4server does not support gnome desktop well.
Vino: The system comes with it, but the user needs to log in once before it can be remote. And you need to install the monitor
tigervnc: two words "easy to use", gnome remote support is perfect.
Here is an introduction to tigervnc, although it is not very famous, but it is easy to use in personal testing, especially gnome remote support is perfect.
Installation configuration
The host system is ubuntu20.04. Installing tigervnc is very simple:
sudo apt install tigervnc-common
sudo apt install tigervnc-standalone-server
After installation, modify the configuration: vi ~/.vnc/xstartup
and then set the password: vncpasswd
view-only select no, so that it is not only displayed, but also you can use the pasteboard to copy things
start up
vncserver -localhost no -geometry 2560x1440 :1
-localhost no needs to be added to support remote access
-geometry set remote resolution
: 1 remote picture number
vncserver -list can list the current session list
vncserver -kill id can close the corresponding remote session.
Then if it is a laptop or the like, and you don’t want to close the cover and keep the laptop screen open, you can configure the following:
sudo vi /etc/systemd/logind.conf
HandleLidSwitch=ignore
use
You can download VNC viewer under winsow to connect:
enjoy the convenience brought by remote
Author: Feima Programmer.
Welcome to technical exchange: QQ: 255895056.
Please indicate the source for reprinting. If there is any inappropriateness, please correct me.