Posted On September 10, 2024

How To Install X11VNC on Ubuntu

kimconnect 0 comments
blog.KimConnect.com >> Linux >> How To Install X11VNC on Ubuntu
# Note: this setup is the quick and dirty method for lab environments
# Secured environments must follow different methods

sudo apt-get update # update existing system packages prior to an install
sudo apt-get install lightdm xfce4 autocutsel xfce4-clipman # include prerequisites
sudo apt-get install x11vnc -y # add this thing

sudo nano /lib/systemd/system/x11vnc.service

[Unit]
Description=x11vnc service
After=display-manager.service network.target syslog.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd password
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure

[Install]
WantedBy=multi-user.target

sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc.service
sudo systemctl status x11vnc.service

# Screen 0 is the default display, and it must be login by a user for instantiate
# Hence, auto login should be enabled for this to work

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How to Install NFS Server on Ubuntu 21.04

Installing NFS Server # Include prerequisites sudo apt update -y # Run updates prior to…

LAMPP: Change Apache Listening Port

Change Apache listening port:vim /opt/lampp/etc/httpd.confEdit line:Listen 80 (change to 8888)OPEN port 8888:vim /etc/sysconfig/iptables-A RH-Firewall-1-INPUT -m…

Linux: Use Lubuntu 20.04, TightVNC Server, NoVNC, WebSockify to Create a Terminal Server Accessible via Any Browser!

Use Case:Imagine a virtual classroom with students using Chromebooks, iPads, and other types of computers,…