NoMachine,是比较好的一款 remote-desktop软件,远程Ubuntu server安装后如果没有外接显示器如何使用?
利用自带显示服务,配置Xorg
如下:
1.下载安装 nomachine, 设置firewall配置
install nomachine_xx.deb
bash
$ sudo dpkg -i nomachine_8.10.1_1_amd64.deb
allow firewall port
bash
$ sudo ufw allow OpenSSh
...
Rule added
Rule added (v6)
$ sudo ufw allow 4000
Rule added
Rule added (v6)
$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
reboot ubuntu machine
2. 无外接显示器?配置自带显示服务
headless mode: 无外接显示器时,Linux不会启动桌面GUI,显卡就根本没有启动
solution : 停用X-Server,然后用nomachine自带的显示服务取而代之。
bash
sudo systemctl stop gdm3 && sudo /etc/NX/nxserver --restart
fix white/back screen on ubnutu- force the login screen to use Xorg
bash
vi /etc/gdm3/custom.conf
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false
# restart nomachine software
sudo systemctl restart gdm