Menu:


 

The perfect Linux desktop for broadcast or general use.

VNC and RDP Remote access

Installing VNC and RDP support for remote desktop access:

X11VNC install:
As the broadcast user:
sudo apt-get install x11vnc
x11vnc -storepasswd
Enter your chosen password and select "Y" to write the file.

Make start on boot:
sudo vi /lib/systemd/system/x11vnc.service
Paste in to the empty file the text below:
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/broadcast/.vnc/passwd -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target
sudo systemctl enable x11vnc.service
sudo systemctl daemon-reload
Reboot.

Test VNC via a remote connection using the password you set above.

Install XRDP (requires VNC to already be configured and working above)
To allow RDP access, we setup XRDP to connect to the VNC server. This allows full desktop sharing via RDP.
Note: Multiple users are able to RDP to the same desktop simultaniously with this configuration which can be useful for support purposes.

sudo apt-get install xrdp

Configure xrdp to access VNC:
sudo vi /etc/xrdp/xrdp.ini
Add the following under "session types" adn # out the other session entries:
[xrdp0]
name=RDP
lib=libvnc.so
# Note that the username is ignored so we might as well not ask for it or set it to default.
username=broadcast
password=ask
ip=127.0.0.1
port=5900
Remove XRDP logos from RDP login screen:
su root
cd /usr/share/xrdp
mv xrdp_logo.bmp xrdp_logo.bmp.old
mv xrdp256.bmp xrdp256.bmp.old
mv xrdp24b.bmp xrdp24b.bmp.old
mv ad24b.bmp ad24b.bmp.old
mv ad256.bmp ad256.bmp.old
Note: xrdp24b.bmp is 24-bit bmp file and xrdp256.bmp is 8-bit bmp.

sudo service xrdp restart

Important fix for "headless" machines with no display.
If experiencing very slow VNC response on machine with monitor disconnected:

Install a dummy video driver:
sudo apt-get install xserver-xorg-video-dummy
sudo reboot

Create a virtual monitor device:
sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf
Section "Device"
    Identifier "intelgpu0"
    Driver "intel"
    Option "VirtualHeads" "2"
EndSection

You should now be able to access the machine using VNC and RDP using the password you entered above.