Remote linux (rdp)
using vinagre - Best VNC Viewer Clients For Linux
Enable vino / desktop sharing on other side
Xfce VNC remote desktop
$ sudo apt install -y vnc4server
$ vncpasswd
vnc config + use this systemctl service
# /etc/systemd/system/vncserver@.service
# Authorize connection from outside / otherwise need ssh tunnel
[Unit]
Description=VNC server startup script
After=syslog.target network.target
[Service]
Type=forking
User=yves
# ExecStartPre=-/usr/bin/vncserver -kill :%i &> /dev/null
ExecStart=/usr/bin/vncserver -localhost no -geometry 1280x960 %i
# PIDFile=/home/yves/.vnc/%H:%i.pid
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
$ systemctl start vncserver@:1.service
Connect with VNC client using host:1 as target
Once vncserver start verify socket:
$ lsof -P -i
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Xtigervnc 6618 yves 7u IPv4 67906 0t0 TCP localhost:5901 (LISTEN)
Xtigervnc 6618 yves 8u IPv6 67907 0t0 TCP localhost:5901 (LISTEN)
Xtigervnc may be listening only on the loopback (“localhost”) interface - that’s a good thing from a security POV however it means you will need to set up an SSH tunnel in order to connect to it from another host - Connection Refused
Written on July 18, 2020, Last update on November 11, 2020
linux
remote
desktop
rdp