vnc tigervncserver & x11vnc

Debian-Desktop-Environment-vncserver

systemctl set-default multi-user.target
systemctl set-default graphical.targe

meta vs xfce

apt update

apt install xfce4 xfce4-goodies
or
tasksel

startxfce4
iptables:5901

tigervncserver:

https://packages.debian.org/stretch/tigervnc-standalone-server

https://computingforgeeks.com/install-and-configure-tigervnc-vnc-server-on-debian/

apt-get install tigervnc-standalone-server tigervnc-common

error(hostname must be in /etc/hosts):
> ehco "127.0.0.1 localhost" >> /etc/hosts
> hostnamectl set-hostname localhost

echo MYVNCPASSWORD | vncpasswd -f > /root/.vnc/passwd
vncserver -kill :1
vncserver --localhost no
vncserver --list

service

nano /etc/systemd/system/vncserver.service

[Unit]
Description=TightVNC server
After=syslog.target network.target

[Service]
Type=forking
User=root
PAMName=login
ExecStart=/usr/bin/vncserver -localhost no

[Install]
WantedBy=multi-user.target

systemctl daemon-reload
systemctl enable --now vncserver
systemctl restart vncserver

tightvncserver

apt install tightvncserver
vncserver
vncpasswd

more:
> vncserver -kill :1
> vncserver -localhost no :1
> echo MYVNCPASSWORD | vncpasswd -f > /root/.vnc/passwd

log:
~/.vnc/*.log
/usr/bin/Xtigervnc :2 -desktop virmatch:2 (root) -auth /root/.Xauthority -geometry 1900x1200 -depth 24 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -pn -localhost -SecurityTypes VncAuth

apt install lightdm

dpkg-reconfigure lightdm

service:

nano /etc/systemd/system/vncserver.service

[Unit]
Description=TightVNC server
After=syslog.target network.target

[Service]
Type=forking
User=root
PAMName=login
PIDFile=/root/.vnc/%H:1.pid
ExecStartPre=-/usr/bin/vncserver -kill :1 > /dev/null 2>&1
ExecStart=/usr/bin/vncserver
ExecStop=/usr/bin/vncserver -kill :1

[Install]
WantedBy=multi-user.target

systemctl daemon-reload
systemctl enable --now vncserver
systemctl restart vncserver

Ubuntu-RealDesktopEnv-X11vnc

https://help.ubuntu.com/community/VNC/Servers

https://askubuntu.com/questions/453109/add-fake-display-when-no-monitor-is-plugged-in

apt-get install xserver-xorg-video-dummy
/usr/share/X11/xorg.conf.d/xorg.conf
or
/etc/X11/xorg.conf

>>>
Section "Device"
    Identifier  "Configured Video Device"
    Driver      "dummy"
EndSection

Section "Monitor"
    Identifier  "Configured Monitor"
    HorizSync 31.5-48.5
    VertRefresh 50-70
EndSection

Section "Screen"
    Identifier  "Default Screen"
    Monitor     "Configured Monitor"
    Device      "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1024x800"
    EndSubSection
EndSection

su pi & x11vnc

https://techviewleo.com/install-cinnamon-desktop-environment-on-debian/