X11VNC: Difference between revisions
Jump to navigation
Jump to search
Line 37: | Line 37: | ||
==Playground== | ==Playground== | ||
sudo sed -z "s|#WaylandEnable=false|WaylandEnable=false|" -i /etc/gdm3/custom.conf | {| | ||
| valign="top" colspan="2" | | |||
sudo sed -z "s|#WaylandEnable=false|WaylandEnable=false|"\ | |||
-i /etc/gdm3/custom.conf | |||
ls -lah /etc/lightdm/ | |||
| valign="top" | | |||
cat /etc/X11/default-display-manager | cat /etc/X11/default-display-manager | ||
sudo dpkg-reconfigure lightdm | |||
sudo dpkg-reconfigure gdm3 | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
ls -lah /lib/systemd/system|grep gdm | ls -lah /lib/systemd/system|grep gdm | ||
systemctl status gdm | systemctl status gdm | ||
ls -la /etc/gdm3/ | |||
| valign="top" | | |||
sudo ps -efc | grep Xauthority | sudo ps -efc | grep Xauthority | ||
sudo ps -efc | grep gnome | sudo ps -efc | grep gnome | ||
sudo ps -efc | grep gdm | sudo ps -efc | grep gdm | ||
| valign="top" | | |||
sudo ls -la /run/user | sudo ls -la /run/user | ||
sudo ls -la /run/user/1000/gdm | sudo ls -la /run/user/1000/gdm | ||
sudo ls -la /etc/gdm3/Init/ | |||
|} | |||
==References== | ==References== |
Revision as of 17:15, 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
sudo systemctl daemon-reload
sudo systemctl enable --now x11vnc.service
sudo systemctl status x11vnc.service
sudo journalctl -xeu x11vnc.service
ps wwwwaux|grep auth
Playground
sudo sed -z "s|#WaylandEnable=false|WaylandEnable=false|"\ -i /etc/gdm3/custom.conf ls -lah /etc/lightdm/ |
cat /etc/X11/default-display-manager sudo dpkg-reconfigure lightdm sudo dpkg-reconfigure gdm3 | |
| ||
ls -lah /lib/systemd/system|grep gdm systemctl status gdm ls -la /etc/gdm3/ |
sudo ps -efc | grep Xauthority sudo ps -efc | grep gnome sudo ps -efc | grep gdm |
sudo ls -la /run/user sudo ls -la /run/user/1000/gdm sudo ls -la /etc/gdm3/Init/ |
References
| ||