Remote desktop installation of Galaxy Kylin (desktop version and server version)

I. Introduction

  In Xinchuang’s solutions, it is often introduced to support the Kylin system. In fact, Kylin is divided into Galaxy Kylin and Winning Kylin. Galaxy Kylin is divided into server version and desktop version. The server version is generally used for application system deployment, and the desktop version is generally used for daily office work. . As a domestic operating system, the Galaxy Kylin operating system is one of the mainstream operating systems for localization, Xinchuang and other project scenarios, but it is essentially a secondary development based on the existing open source operating system. The Galaxy Kylin server version is based on For centos, the Galaxy Kylin desktop version is based on debain. This blog post will introduce the installation of remote desktop tools in the Galaxy Kylin server version and the desktop version respectively, so as to realize the remote desktop login to the Galaxy Kylin operating system graphical interface. The blog post introduces the installation of xrdp on the server version, the installation of VNC on the server version, and the installation of xrdp on the desktop version. In fact, the installation of VNC on the server version can refer to the installation and use of VNC remote desktop in the blog post Linux; the installation of xrdp in the desktop version can refer to the blog post Ubuntu’s xrdp remote desktop installation and Use ; only the installation of xrdp on the server version is a new content for bloggers, and knowledge is by analogy. After we understand one method, we can find other methods based on similarities.

  • Galaxy Kirin Server Edition V10
  • Galaxy Kirin desktop version V10.1

2. Install XRDP on the server version

  The official yum source of Galaxy Kylin Server Edition does not introduce xrdp software, so it cannot be installed directly through yum. We can download the rpm package and then install it in rpm mode. Visit the XRDP official website and find the corresponding version software package. Galaxy Kylin server version v10 is based on centos8, just download xrdp-0.9.21-1.el8.x86_64.rpm.

1. Check the system version

[root@qlv10 opt]# cat /etc/os-release
NAME=“Kylin Linux Advanced Server”
VERSION=“V10 (Sword)”
ID=“kylin”
VERSION_ID=“V10”
PRETTY_NAME=“Kylin Linux Advanced Server V10 (Sword)”

2. Download the rpm package of the xrdp software

[root@qlv10 opt]# wget https://rhel.pkgs.org/8/epel-x86_64/xrdp-0.9.21-1.el8.x86_64.rpm

3. rpm installation package

[root@qlv10 opt]# rpm -Uvh xrdp-0.9.21-1.el8.x86_64.rpm

4. Start the service

[root@qlv10 opt]# systemctl start xrdp

5. Remote Desktop Connection Server Edition

  Use the remote desktop connection tool that comes with windows to log in to the server version. After entering the IP address, click Yes in the pop-up window, then enter the linux system account password in the pop-up window, and click the OK button to complete the login.
insert image description here
insert image description here
insert image description here

6. Successful login

insert image description here

3. Install VNC on the server version

1. Check the system version

[root@qlv10 ~]# cat /etc/os-release
NAME=“Kylin Linux Advanced Server”
VERSION=“V10 (Sword)”
ID=“kylin”
VERSION_ID=“V10”
PRETTY_NAME=“Kylin Linux Advanced Server V10 (Sword)”
ANSI_COLOR=“0;31”

2. yum install vnc-server

[root@qlv10 ~]# yum install tigervnc-server -y

3. Copy the configuration file template

[root@qlv10 ~]# cp /lib/systemd/system/[email protected] /etc/systemd/system/vncserver@:1.service
[root@qlv10 ~]# cd /etc/systemd/system/
[root@qlv10 system]#

4. Edit configuration file

  Edit the configuration file with reference to the following configuration.

[root@qlv10 system]# cat vncserver@:1.service |grep -Ev “$|#”
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
WorkingDirectory=/root
User=root
Group=root
PIDFile=/root/.vnc/%H%1.pid
ExecStartPre=/bin/sh -c ‘/usr/bin/vncserver -kill :1 > /dev/null 2>&1 || :’
ExecStart=/usr/bin/vncserver -autokill :1
ExecStop=/usr/bin/vncserver -kill :1
Restart=on-success
RestartSec=15
[Install]
WantedBy=multi-user.target

5. Create a VNC login password

[root@qlv10 system]# vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n

6. Overload systemctl configuration

[root@qlv10 system]# systemctl daemon-reload

7. Start vnc service

[root@qlv10 system]# systemctl start vncserver@:1.service

8. Check the VNC service port

[root@qlv10 system]# netstat -tnpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 409025/Xvnc
insert image description here

9. VNC client connection

  Download the vnc client, create a new connection, and the connection method is IP:PORT. After entering the password in the pop-up window, the connection can be completed. For the download and installation of the vnc client, please refer to the blog post: Installation and use of VNC remote desktop for Linux
insert image description here

10. Successful login

  After successfully logging in to the desktop, we can perform operations as if the display is connected locally!
insert image description here

4. Install XRDP on the desktop

1. Check the system version

root@wuhs-pc:~# cat /etc/os-release
NAME=“Kylin”
VERSION=“V10.1 (juniper)”
ID=kylin
ID_LIKE=debian
PRETTY_NAME=“Kylin V10.1”
VERSION_ID=“v10.1”
HOME_URL=“http://www.kylinos.cn/”
SUPPORT_URL=“http://www.kylinos.cn/service.aspx”
BUG_REPORT_URL=“http://www.kylinos.cn/”
PRIVACY_POLICY_URL=“http://www.kylinos.cn”
VERSION_CODENAME=juniper
UBUNTU_CODENAME=juniper

2. apt-get install xrdp

wuhs@wuhs-pc:~$ sudo apt-get install -y xrdp

3. Start xrdp

wuhs@wuhs-pc:~$ sudo systemctl start xrdp

4. Check port 3389

insert image description here

5. mstsc remote desktop login

insert image description here

6. Successful logininsert image description here

Guess you like

Origin blog.csdn.net/carefree2005/article/details/129436644