Set up VNC login without console login in Ubuntu Gnome environment
It is said that GNOME does not support VNC connection without logging in by default.
So you have to do the following annoying task.
1) gnome-remote-desktop settings
Open "Settings" in gnome-remote-desktop, select "Sharing",
Find "Remote Desktop" or "Screen Sharing" and disable it.
2) Install x11vnc
sudo apt update
sudo apt install x11vnc
3) Set x11vnc password
x11vnc -storepasswd
4) Set auto-start at boot (create x11vnc.service file)
sudo nano /etc/systemd/system/x11vnc.service
Contents
[Unit]
Description=Start x11vnc at startup
After=display-manager.service
[Service]
Type=oneshot
User=<username>
Group=<groupname>
ExecStart=/usr/bin/x11vnc -forever -usepw -display :0
RemainAfterExit=yes
Restart=on-failure
[Install]
WantedBy=multi-user.target
5) Apply
sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc.service
Comments
Post a Comment