Install tigervnc on Kirin KYLINOS desktop operating system 2303

Original link: Install tigervnc on Kirin KYLINOS desktop operating system 2303
Hello, everyone, today I will bring you an article about installing tigervnc on Kirin desktop operating system 2303. This article will tell you how to install and use it through remote connection. I will update you later on how to make tigervnc into a desktop icon by clicking on it. It can be turned on and off. Everyone is welcome to browse, share and forward.
1. Check the information of Kirin desktop operating system

pdsyw@pdsyw-pc:~/Desktop$ cat /etc/.kyinfo
[dist]
name=Kylin
milestone=Desktop-V10-SP1-HWE-Release-2303
arch=x86_64
beta=False
time=2023-03-27 13:08:46
dist_id=Kylin-Desktop-V10-SP1-HWE-Release-2303-x86_64-2023-03-27 13:08:46

[servicekey]
key=0267025

[os]
to=
term=2024-07-01

pdsyw@pdsyw-pc:~/Desktop$

image.png

2. Update software source

pdsyw@pdsyw-pc:~/Desktop$ sudo -i
root@pdsyw-pc:~#
root@pdsyw-pc:~# apt update
Hits: 1 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1 InRelease
Hits: 2 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default InRelease
Hits: 3 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-2303-updates InRelease
Hits: 4 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-2303-hwe-updates InRelease
Reading package list... Done
Analyzing a package's dependency tree
Reading status information... Complete
There are 7 packages available for upgrade. Please execute apt list --upgradable’ to see them.
root@pdsyw-pc:~#

image.png

3. Download tigervnc-standalone-server offline package

root@pdsyw-pc:~# apt install tigervnc-standalone-server -y -d
Reading package list... Done
Analyzing a package's dependency tree
Reading status information... Complete
The following packages were installed automatically and are no longer needed:
  archdetect-deb dmeventd libaio1 libdebian-installer4
  libdevmapper-event1.02.1 liblvm2cmd2.03 localechooser-data lvm2 user-setup
Use 'apt autoremove' to uninstall it(them).
The following software will also be installed:
  libfile-readbackwards-perl
Recommended installation:
  xfonts-100dpi | xfonts-75dpi xfonts-scalable
The following [new] packages will be installed:
  libfile-readbackwards-perl tigervnc-standalone-server
0 packages upgraded, 2 newly installed, 0 packages to uninstall, 7 packages not upgraded.
Requires download of 1,040 kB archive.
Decompression consumes an additional 2,860 kB of space.
Get: 1 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1/universe amd64 libfile-readbackwards-perl all 1.05-2 [12.7 kB]
Get: 2 http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1/universe amd64 tigervnc-standalone-server amd64 1.10.1 + dfsg-3k2 [1,027 kB]
Downloaded 1,040 kB, took 5 seconds (211 kB/s)
Download completed in "Download Only" mode
root@pdsyw-pc:~#

image.png

4. View downloaded offline packages

root@pdsyw-pc:~#
root@pdsyw-pc:~# cd /var/cache/apt/archives/
root@pdsyw-pc:/var/cache/apt/archives#
root@pdsyw-pc:/var/cache/apt/archives# ls -tlr
Total usage 1024
-rw-r--r-- 1 root root 1027498 May 25 2021 tigervnc-standalone-server_1.10.1 + dfsg-3k2_amd64.deb
-rw-r--r-- 1 root root 12700 May 25 2021 libfile-readbackwards-perl_1.05-2_all.deb
-rw-r----- 1 root root 0 October 19 10:16 lock
drwx------ 2 _apt root 4096 October 24 20:01 partial
root@pdsyw-pc:/var/cache/apt/archives#

image.png

5. Pack the offline package and move the copy to the machine where the software needs to be installed.

root@pdsyw-pc:/var/cache/apt/archives# tar zcvf tigervnc.tar.gz *.deb
libfile-readbackwards-perl_1.05-2_all.deb
tigervnc-standalone-server_1.10.1 + dfsg-3k2_amd64.deb
root@pdsyw-pc:/var/cache/apt/archives#
root@pdsyw-pc:/var/cache/apt/archives# cp tigervnc.tar.gz /home/pdsyw/Desktop/
root@pdsyw-pc:/var/cache/apt/archives#
root@pdsyw-pc:/var/cache/apt/archives# chmod 777 /home/pdsyw/Desktop/tigervnc.tar.gz
root@pdsyw-pc:/var/cache/apt/archives#

image.png

6. Unzip the offline package and install it on the machine where tigervnc needs to be installed.

pdsyw@pdsyw-pc:~/Desktop$ ls -ltr
Total usage 1016
-rwxrwxrwx 1 root root 1039520 October 24 20:02 tigervnc.tar.gz
pdsyw@pdsyw-pc:~/Desktop$ tar zxvf tigervnc.tar.gz
libfile-readbackwards-perl_1.05-2_all.deb
tigervnc-standalone-server_1.10.1 + dfsg-3k2_amd64.deb
pdsyw@pdsyw-pc:~/Desktop$
pdsyw@pdsyw-pc:~/Desktop$ sudo dpkg -i *.deb
Selecting unselected package libfile-readbackwards-perl.
(Reading database... The system currently has a total of 199406 files and directories installed.)
Prepare to decompress libfile-readbackwards-perl_1.05-2_all.deb...
Unpacking libfile-readbackwards-perl (1.05-2) ...
Selecting unselected package tigervnc-standalone-server.
Prepare to unzip tigervnc-standalone-server_1.10.1 + dfsg-3k2_amd64.deb...
Unpacking tigervnc-standalone-server (1.10.1 + dfsg-3k2) ...
Setting up libfile-readbackwards-perl (1.05-2) ...
Setting up tigervnc-standalone-server (1.10.1 + dfsg-3k2) ...
update-alternatives: Use /usr/bin/tigervncserver to serve /usr/bin/vncserver (vncserver) in automatic mode
update-alternatives: Use /usr/bin/Xtigervnc to provide /usr/bin/Xvnc (Xvnc) in automatic mode
Processing triggers for man-db (2.9.1-1kylin0k1) ...
pdsyw@pdsyw-pc:~/Desktop$

image.png

7. Set vnc password and start vnc

pdsyw@pdsyw-pc:~/Desktop$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:
pdsyw@pdsyw-pc:~/Desktop$ vncserver:5

New 'pdsyw-pc:5 (pdsyw)' desktop at :5 on machine pdsyw-pc

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/pdsyw/.vnc/pdsyw-pc:5.log

Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/pdsyw/.vnc/passwd pdsyw-pc:5 to connect to the VNC server.

pdsyw@pdsyw-pc:~/Desktop$ vncserver -list

TigerVNC server sessions:

X DISPLAY #RFB PORT #PROCESS ID
:5 5905 8840
pdsyw@pdsyw-pc:~/Desktop$

image.png

8. Check the IP address of vnc

pdsyw@pdsyw-pc:~/Desktop$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:b4:8f:27 brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet 192.168.118.137/24 brd 192.168.118.255 scope global dynamic noprefixroute ens33
       valid_lft 1334sec preferred_lft 1334sec
    inet6 fe80::8272:40c:11aa:516a/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
pdsyw@pdsyw-pc:~/Desktop$

image.png

9. Remote connection
image.png

10. If you are always in the connection shown below
image.png

11. Click Advanced Configuration in the Security Center
image.png

12. Open the firewall port number
image.png

13. The connection is normal, click continue
image.png

14. Enter password
image.png

15. Connection successful
image.png