ubuntu core install xfce desktop environment + xrdp and log in with vnc

I have a nano pi k2 and installed the ubuntu core system, because occasionally I may need to use the desktop environment to do some tasks, but I want a lightweight system.

Therefore, I decided to install the xfce desktop environment, which occupies relatively little memory and processor resources.

1. Update the source (for students who have updated after changing the source, there is no need to do this step): sudo apt update

Error below Err: 5

Solution: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F42ED6FBAB17C654

The last line of characters is the character indicated in the error message.

Then it succeeded again:

 

2: Install xrdp software: sudo apt-get install xrdp

3.安装vncserver:sudo apt-get install tightvncserver vnc4server

4: Install xfce desktop environment: sudo apt-get install xubuntu-desktop

After a long wait, finally completed:

5. Set the xrdp service: echo xfce4-session >~/.xsession

6. Set the configuration file: sudo nano /etc/xrdp/startwm.sh

Add a line before the last line: xfce4-session

7. Restart xrdp and vnc services:

sudo service xrdp restart 

tightvncserver

To start the vnc service for the first time, you need to set the vnc access password.

8. Complete, you can visit normally:

That's it!

 

Guess you like

Origin blog.csdn.net/qqliuzhitong/article/details/113095885