0. Basic environment
Category: Notebook Model: Great Wall of China NF14C
Hardware platform: Feiteng processor (ArmV8 instruction set)
System: Galaxy Kirin OS V10 SP1 (2203)
Key words:
Xinchuang, Kylin system, linux, PKS, Galaxy Kylin, Feiteng, arm64, arm, remote desktop, nps, sunflower, teamviewer, xshell, ssh
1. Requirement Background
Under windows, we generally use QQ for remote control on the external network, and also use teamviewer, and the local area network uses windows remote desktop. Today we try to systematically show you the remote control method under the Galaxy Unicorn.
2. Networking method
Generally, only the local area network can be directly connected to the personal network, while for the Internet, there must be an intermediate server so that the two can communicate with each other. The optional methods are mainly QQ, Teamview, Sunflower, and a server or VPS with a public network. It is also possible to build an NPS intranet penetration method by yourself.
The control is generally in Linux, and there is also a command line SSH, which is convenient for executing commands and transferring files.
3. Via SSH
3.1 Kylin system as a controlled terminal
Find the Kylin system intranet through the ifconfig command
On another machine (for example, I use xshell under windows), enter the IP, user name and password to establish a connection.
File transfer is also possible via sftp
3.2 Kylin system as the main control terminal
When using the Kylin system as the main control terminal, under normal circumstances, we can connect directly through SSH through the command line. But for the convenience of daily use, use the remote desktop client Remmina (Xshell alternative) (no installation can be installed through the application market)
4. Use Remote Desktop
4.1 Kylin system as the controlled terminal
In settings, turn on the switch to allow remote access by others
In other systems such as windows, open the MSTSC program on the remote desktop console
Enter username and password
4.2 Kylin system as the main control terminal
Open the remote desktop client (no installation can be installed through the app market)
5. Use sunflowers.
Sunflower official application market, free enough. The specific operation method can be explored by yourself, and it supports windows and linux.
Note: After I installed it, it did not open successfully, you can try it yourself.
In addition, teamviewer is less used now and will not be described in this article.
6. Intranet penetration (advanced)
If you have a server yourself, it is best to build an NPS service by yourself, which is much faster than using a free sunflower.
https://github.com/ehang-io/nps
Basically all platforms are supported, NPS needs to be installed on the server
https://github.com/ehang-io/nps/releases
Download the server and client of the corresponding platform (Kylin Feiteng needs arm64)
Client uses NPC to connect
Note: NPS and NPC are a single command, the parameters can be written into the configuration file, or they can be executed when the command is executed directly. The official has detailed documentation and detailed configuration. Key information My configuration sample is as follows
nps server
nps.conf
appname = nps
#Boot mode(dev|pro)
runmode = dev
#HTTP(S) proxy port, no startup if empty
http_proxy_ip=0.0.0.0
http_proxy_port=380
https_proxy_port=3443
https_just_proxy=true
#default https certificate setting
https_default_cert_file=conf/server.pem
https_default_key_file=conf/server.key
##bridge
bridge_type=tcp
bridge_port=50099 #桥接端口,即客户商量连接服务端口
bridge_ip=0.0.0.0 #允许所有客户端IP访问
# Public password, which clients can use to connect to the server
# After the connection, the server will be able to open relevant ports and parse related domain names according to its own configuration file.
public_vkey=KEY
#Traffic data persistence interval(minute)
#Ignorance means no persistence
#flow_store_interval=1
# log level LevelEmergency->0 LevelAlert->1 LevelCritical->2 LevelError->3 LevelWarning->4 LevelNotice->5 LevelInformational->6 LevelDebug->7
log_level=7
#log_path=nps.log
#Whether to restrict IP access, true or false or ignore
#ip_limit=true
#p2p
p2p_ip=服务器IP
p2p_port=50090
#web
web_host=a.o.com
web_username=后台用户名
web_password=后台密码
web_port = 后台端口
web_ip=0.0.0.0 #允许所有IP访问
web_base_url=
web_open_ssl=false
web_cert_file=conf/server.pem
web_key_file=conf/server.key
# if web under proxy use sub path. like http://host/nps need this.
#web_base_url=/nps
#Web API unauthenticated IP address(the len of auth_crypt_key must be 16)
#Remove comments if needed
#auth_key=test
auth_crypt_key =1234567812345678
#allow_ports=9001-9009,10001,11000-12000
#Web management multi-user login
allow_user_login=false
allow_user_register=false
allow_user_change_username=false
#extension
allow_flow_limit=false
allow_rate_limit=false
allow_tunnel_num_limit=false
allow_local_proxy=false
allow_connection_num_limit=false
allow_multi_ip=false
system_info_display=false
#cache
http_cache=false
http_cache_length=100
#get origin ip
http_add_origin_header=false
#pprof debug options
#pprof_ip=0.0.0.0
#pprof_port=9999
#client disconnect timeout
disconnect_timeout=60
nps client (under Windows, execute ./npc under Linux)
D:\nps\npc -server=服务IP或域名:桥接端口 -vkey=vkey由在管理台添加客户端而来
Kylin system column:
https://segmentfault.com/blog/kylinos
Article published in SegmentFault
Contact email: 1179611323@qq.com
Group: 662512340
Release log:
20220725 starter
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。