X11VNC: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
sudo mkdir -p /etc/x11vnc/x11pass
<source lang="bash">
sudo x11vnc -storepasswd /etc/x11vnc/x11pass/${USER}
sudo apt update
sudo cat /etc/x11vnc/x11pass/${USER}
sudo apt install lightdm
sudo init 6
</source>
 
<source lang="bash">
sudo apt install x11vnc
sudo mkdir -p /etc/x11vnc/x11pass
sudo x11vnc -storepasswd /etc/x11vnc/x11pass/${USER}
sudo cat /etc/x11vnc/x11pass/${USER}
</source>
 
<source lang="bash">
sudo tee /lib/systemd/system/x11vnc.service >/dev/null <<'EOF'
[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 my-password
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
 
[Install]
WantedBy=multi-user.target
EOF
</source>


==Playground==
==Playground==

Revision as of 09:03, 1 December 2023

sudo apt update
sudo apt install lightdm
sudo init 6
sudo apt install x11vnc
sudo mkdir -p /etc/x11vnc/x11pass
sudo x11vnc -storepasswd /etc/x11vnc/x11pass/${USER}
sudo cat /etc/x11vnc/x11pass/${USER}
sudo tee /lib/systemd/system/x11vnc.service >/dev/null <<'EOF'
[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 my-password
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure

[Install]
WantedBy=multi-user.target
EOF

Playground

cat /etc/X11/default-display-manager
sudo dpkg-reconfigure lightdm
sudo dpkg-reconfigure gdm3

References