====== Tightvnc (linux) ====== == bitacora * desktop environments installed: ''ls -l /usr/share/xsessions'' * current desktop: ''echo $XDG_CURRENT_DESKTOP'' * screenfetch * install/remove: * [[https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04-es]] * [[https://www.answertopia.com/ubuntu/ubuntu-remote-desktop-access-with-vnc/]] * ''sudo apt-get purge tightvncserver'' * vnc * ''vncserver -kill :1'' ''vncserver -kill :*'' * ''vncpasswd'' * ''vncserver -list'' * ''vncserver [:port]'' * + 20.04: [[https://askubuntu.com/questions/1259891/xfce-vnc-environment-no-longer-has-control-bar-menus-for-screens-no-close-or-m]] * systemd: * [Unit] Description=Start TightVNC server at startup After=syslog.target network.target [Service] Type=forking User=rsalvadorc Group=users WorkingDirectory=/home/rsalvadorc PIDFile=/home/rsalvadorc/.vnc/%H:%i.pid ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1 ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x720 :%i ExecStop=/usr/bin/vncserver -kill :%i [Install] WantedBy=multi-user.target * [[https://www.freedesktop.org/software/systemd/man/systemd.unit.html]] * %H = host * %i = instance * ''sudo systemctl enable vncserver@1.service''