Difference between revisions of "Configure vncserver on Mint"
m |
m |
||
(2 intermediate revisions by one user not shown) | |||
Line 31: | Line 31: | ||
sudo systemctl start x11vnc.service | sudo systemctl start x11vnc.service | ||
− | * ''verified: Mint 18.3 Sylvia 2/15/2018, Mint 19.2 Tina 8/30/2019'' | + | * ''verified: Mint 18.3 Sylvia 2/15/2018, Mint 19.2 Tina 8/30/2019, Mint 21.3, Mint 22.0 10/2024'' |
+ | |||
+ | Troubleshooting: | ||
+ | |||
+ | Check to see if x11vnc.service is running | ||
+ | sudo systemctl status x11vnc.service | ||
+ | View log when no default path is specified in ExecStart | ||
+ | cat /var/log/syslog|grep x11vnc | ||
+ | |||
[[Category:Computer_Technology]] | [[Category:Computer_Technology]] | ||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Ubuntu]] | [[Category:Ubuntu]] |
Latest revision as of 19:40, 31 October 2024
A VNC server is a program that shares a desktop with other computers over a network. Vino is the default VNC server in Mint Linux. x11vnc is another VNC server that uses tcl/tk based GUI and is not dependent on any one particular graphical environment.
The default VNC Server only lets you connect remotely once the user has logged into Cinnamon. This is not useful for a remote headless system. To configure the VNC Server to start with the system and listen before a user is logged in locally the vncserver must be configured to start with the system services. For this it is the most simple to install x11vnc. In this guide we will configure vncserver as a boot service.
If you reboot the system you can still get in as this will allow vnc server to share the login screen. Screen resolution adjustment after login may cause the connection to reset, however, you can reconnect and you're in like Flynn.
Vino is crap, we'll remove it, install x11vnc and set a default password, which is the password client will use to connect.
sudo apt-get -y remove vino sudo apt install x11vnc sudo mkdir /etc/x11vnc sudo x11vnc --storepasswd /etc/x11vnc/vncpwd
Now to make x11vnc server start as a system service
sudo vi /lib/systemd/system/x11vnc.service
Now you're in the text editor and you need to add the following lines:
[Unit] Description=Start x11vnc at startup. After=multi-user.target [Service] Type=simple ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -shared [Install] WantedBy=multi-user.target
Save and exit vi, go back to command prompt and type:
sudo systemctl daemon-reload sudo systemctl enable x11vnc.service sudo systemctl start x11vnc.service
- verified: Mint 18.3 Sylvia 2/15/2018, Mint 19.2 Tina 8/30/2019, Mint 21.3, Mint 22.0 10/2024
Troubleshooting:
Check to see if x11vnc.service is running
sudo systemctl status x11vnc.service
View log when no default path is specified in ExecStart
cat /var/log/syslog|grep x11vnc