Simply install a "lightweight" remote desktop environment for Ubuntu

888u

Last update at :2024-06-14,Edit by888u

Generally speaking, the VPS you buy for Linux systems does not provide GUI (graphical user interface) permissions and can only perform command operations through SSH. In fact, with just a few simple steps, we can create a graphical interface for Linux, making it more convenient for us to remotely operate our own VPS or server.

Step one: Update the system, this is necessary

apt update && apt upgrade

Step 2: Install the xrdp package

apt-get install xrdp -y

Step 3: Install Remote Desktop Display Manager

apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils

After installing xfce you will be prompted to select a display manager - go ahead and select "lightdm":

Error troubleshooting:

Sometimes you may see that the package manager will be locked, such as the following screenshot:

To resolve this issue, first determine the process ID of the dpkg package.

ps aux | grep -i dpkg

Then terminate the process ID accordingly:

sudo kill -9 process _id

Second is to delete the locked file:

sudo rm /var/lib/dpkg/lock

sudo rm /var/lib/apt/lists/lock

sudo rm /var/cache/apt/archives/lock

Configuration of xfce desktop environment

After installing the display manager, you need to configure it for access via RDP

sudo sed -i.bak ‘/fi/a #xrdp multiple users configuration \n xfce-session \n’ /etc/xrdp/startwm.sh

Start the xrdp application and xrdp-ssl certificate

sudo systemctl status xrdp

sudo systemctl enable xrdp

sudo systemctl start xrdp

sudo adduser xrdp ssl-cert

Configure firewall

susudo ufw allow 3389

So far we have successfully configured Remote Desktop on Ubuntu Server - you can now access it by entering your server IP address into the Remote Desktop client. It should then prompt a login screen like this:

The next step is to use SSH login information to log in and manage!

Recommended site search: Hong Kong server recommendation, Mainland China registration-free server, shopex virtual host, renting high-defense IP, website registration query, Hong Kong high-defense server, multi-IP station group server, website space rental, shopex virtual host, reverse Check IP,

Simply install a

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码