Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

X11VNC:

Children Display

No Format
cat << 'EOF' >~/x11vnc_apt_setup.sh
#!/bin/bash
#Run Script As Root

UNAME=

apt update
apt-get install -y x11vnc xserver-xorg-video-dummy net-tools
sudo -H -u $UNAME bash -c 'x11vnc -storepasswd'

cat << EOL >/lib/systemd/system/x11vnc.service
[Unit]
Description=VNC Server for X11
Requires=display-manager.service network-online.target

[Service]
User=$UNAME
ExecStart=/usr/bin/x11vnc -display :1 -auth guess -geometry 1366x768 -forever -loop -noxdamage -repeat -rfbauth /home/$UNAME/.vnc/passwd -rfbport 5900 -shared -forever -o /home/$UNAME/.vnc/x11vnc.log
ExecStop=/usr/bin/x11vnc -R stop
Restart=on-failure
RestartSec=2

[Install]
WantedBy=multi-user.target
EOL
systemctl daemon-reload
systemctl enable x11vnc
systemctl restart x11vnc
watch systemctl status x11vnc

EOF
chmod +x ~/x11vnc_apt_setup.sh
cat ~/x11vnc_apt_setup.sh
#~/x11vnc_apt_setup.sh

XFCE

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04

...

alltrue