-
or x11vnc using Xvfb frame buffer and new xfce session (as your user)
apt install xvfbfor the following
idshould show you your numeric
<userid>and<groupid>to use, liketerence.bodola@administrator-desktop:~/$ id uid=9034(terence.bodola) gid=8000(codewilling) groups=8000(codewilling)and 1280x720x24 can be changed out for another resolution, like 1440x900, and bit depth, like x16 or x8
sudo vi /etc/systemd/system/Xvfb1.service [Unit] Description=Xvfb for :1 After=multi-user.target [Service] Type=simple ExecStart=/usr/bin/Xvfb :1 -screen 0 1280x720x24 ExecStop=/bin/kill -15 $MAINPID User=<userid> Group=<groupid> Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.target sudo vi /etc/systemd/system/xfce4.service [Unit] Description=xfce4 for Xvfb1 Requires=Xvfb1.service After=Xvfb1.service [Service] Type=simple Environment="DISPLAY=:1" ExecStart=/usr/bin/startxfce4 User=<userid> Group=<groupid> [Install] WantedBy=multi-user.target sudo vi /etc/systemd/system/x11vnc1.service [Unit] Description=VNC Server for DISPLAY 1 Requires=Xvfb1.service After=Xvfb1.service [Service] Type=forking ExecStart=/usr/bin/x11vnc -xkb -display :1 -auth ~/.Xauthority -users <userid> -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -forever -shared -bg -rfbport 5902 -o ~/x11vnc1.log Restart=on-failure RestartSec=10 User=<userid> Group=<groupid> [Install] WantedBy=multi-user.target sudo systemctl daemon-reload sudo systemctl enable Xvfb1.service sudo systemctl enable xfce4.service sudo systemctl enable x11vnc1.service sudo systemctl start Xvfb1 sudo systemctl start xfce4 sudo systemctl start x11vnc1then for remote access, from Ubuntu
sudo apt install xtightvncviewer xtightvncviewerthat should prompt for destination, like
<remote-ip>:5902, and then the password you put in /etc/x11vnc.pass, then tada!Edited by Terence Bodola
Please register or sign in to comment