X11VNC: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
sudo mkdir -p /etc/x11vnc/x11pass
<source lang="bash">
sudo x11vnc -storepasswd /etc/x11vnc/x11pass/shahed
sudo apt update
sudo cat /etc/x11vnc/x11pass/shahed
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
 
sudo systemctl daemon-reload
sudo systemctl enable --now x11vnc.service
sudo systemctl status x11vnc.service
 
sudo journalctl -xeu x11vnc.service
ps wwwwaux|grep auth
</source>


==Playground==
==Playground==
{|
| valign="top" colspan="2" |
sudo sed -z "s|#WaylandEnable=false|WaylandEnable=false|" -i\
  /etc/gdm3/custom.conf
ls -la /etc/lightdm/
| valign="top" |
  cat /etc/X11/default-display-manager
  cat /etc/X11/default-display-manager
  sudo dpkg-reconfigure lightdm
  sudo dpkg-reconfigure lightdm
  sudo dpkg-reconfigure gdm3
  sudo dpkg-reconfigure gdm3
|-
| colspan="3" |
----
|-
| valign="top" |
ls -lah /lib/systemd/system|grep gdm
systemctl status gdm
ls -la /etc/gdm3/
| valign="top" |
sudo ps -efc | grep Xauthority
sudo ps -efc | grep gnome
sudo ps -efc | grep gdm
| valign="top" |
sudo ls -la /run/user
sudo ls -la /etc/gdm3/Init/
sudo ls -la /run/user/1000/gdm
|-
| colspan="3" |
----
|-
| valign="top" |
w -us
ls -la /tmp/.X11-unix/
ls /tmp/.X11-unix|tr 'X' ':'
| valign="top" |
loginctl --no-legend
loginctl --no-legend|awk '{print $1}'
ps -C gnome-shell -o lsession,pid,user,args
| valign="top" |
loginctl show-session c1
loginctl show-session c1|grep Type=x11
loginctl show-session c1|grep Active=yes
|-
| colspan="3" |
----
|-
| valign="top" |
ps -C x11vnc u
xdg-screensaver lock
sh -c 'xdg-screensaver lock'
| valign="top" |
sudo apt install xrdp
sudo systemctl status xrdp
sudo systemctl enable --now xrdp
| valign="top" |
|}


==References==
==References==
{|
{|
| valign="top" |
| valign="top" |
* [https://just.graphica.com.au/tips/ubuntu-and-remote-gnome-desktop/ X11vnc » Ubuntu and Remote Gnome Desktop]
* [https://support.starlabs.systems/kb/guides/change-display-manager X11vnc » LightDM » Change Display Manager]
* [https://support.starlabs.systems/kb/guides/change-display-manager X11vnc » LightDM » Change Display Manager]
* [https://askubuntu.com/questions/1029015/ X11vnc » GDM3 New x11 Display After Login]
* [https://techcraft.co/videos/2022/5/mobile-kali-ipad-setup-with-raspberry-pi-4/ X11vnc » RPi4 » KaliLinux » Desktop Setup]
* [https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-22-04 Install and Configure VNC on Ubuntu 22.04]
* [https://techcraft.co/videos/2022/4/ubuntu-desktop-on-ipad-raspberry-pi-4-setup/ X11vnc » RPi4 » Ubuntu » Desktop Setup]
* [https://askubuntu.com/questions/1448037/ X11vnc » Remote Desktop Before Login]
* [https://linuxopsys.com/topics/setup-x11vnc-on-ubuntu X11vnc » Setup on Ubuntu 22.04]
* [[Linux Virtual Display for iPad Pro]]
* [[Linux Virtual Display for iPad Pro]]
* [https://cloudzy.com/blog/gnome-remote-desktop/ RDP Gnome Remote Desktop]


| valign="top" |
| valign="top" |
* [https://askubuntu.com/questions/1407444/ xRDP » Ubuntu 22.04 Headless Remote Desktop]
* [https://askubuntu.com/questions/1442514/ xRDP » Ubuntu Gnome Default Remote Desktop]
* [https://www.indilib.org/forum/general/4000-tutorial-how-to-make-sure-your-headless-device-shows-a-desktop/74741.html X11vnc » Headless device shows a desktop]
* [https://www.raspberrypi.com/documentation/computers/configuration.html#setting-up-a-headless-raspberry-pi X11vnc » Set up a headless Raspberry Pi]


| valign="top" |
| valign="top" |
Line 28: Line 136:
* [[Apple iPad Pro]]
* [[Apple iPad Pro]]
* [[Thunderbolt]]
* [[Thunderbolt]]
* [[Remmina]]
* [[XRDP]]


| valign="top" |
| valign="top" |

Latest revision as of 01:18, 9 May 2024

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 -la /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 /etc/gdm3/Init/
sudo ls -la /run/user/1000/gdm

w -us
ls -la /tmp/.X11-unix/
ls /tmp/.X11-unix|tr 'X' ':'
loginctl --no-legend
loginctl --no-legend|awk '{print $1}'
ps -C gnome-shell -o lsession,pid,user,args
loginctl show-session c1
loginctl show-session c1|grep Type=x11
loginctl show-session c1|grep Active=yes

ps -C x11vnc u
xdg-screensaver lock
sh -c 'xdg-screensaver lock'
sudo apt install xrdp
sudo systemctl status xrdp
sudo systemctl enable --now xrdp

References