Set Remote access on LPU-O
Overview
Xrdp is a remote desktop solution used in Linux operating systems, enabling users to connect to other computers remotely and control the GUI environment. Built on Microsoft's Remote Desktop Protocol (RDP), Xrdp provides secure remote connections between clients and servers.
Using Xrdp allows users to remotely access Linux servers or desktop systems, experiencing the same GUI environment as if they were local. This is particularly useful for system administrators who need to manage servers remotely or perform remote tasks.
Deploy remote access on LPU-O
The steps below describe how to deploy and use XRDP with the LPU-O
- Update apt and install xrdp
sudo apt update
sudo apt install xrdp -y
- Verify that XRDP is running correctly:
sudo systemctl status xrdp
The status should be Active (Running)
Screenshot from 2024-02-02 11-21-56.png
Add user in ssl-cert group
sudo adduser {host user name} ssl-cert
. By default, when using a LPU-O, the user will be discovery.Deploy VNC 1) Install vino
sudo apt install vino
Enable VNC service 1) Enable the VNC server to start each time the user logs in
mkdir -p ~/.config/autostart
cp /usr/share/applications/vino-server.desktop ~/.config/autostart
2) Configure the VNC server
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
3) Set a password to access the VNC server
In this example, we set the password as "password" as the password, the value can be changed
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password $(echo -n 'password'|base64)
- Reboot
sudo reboot
Connect through VNC
The instructions below are for Windows:
Open Remote Desktop Connection and enter host device IP address and port as follows
<ip_address>:3389
After Clicking Connect, a login screen will be displayed. Select as follows:
- Session: vnc-any
- ip: ip address of the host
- port: 5900
- password: the password defined at step 5-3)
- Click OK to access the device.