安装NoMachine并解决无外接显示器桌面黑屏

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 
相关推荐
就不掉头发5 小时前
计算机的虚拟内存
linux·服务器·windows
暴力求解5 小时前
Linux ---线程控制(二)
linux·运维·服务器·操作系统
smartvxworks5 小时前
Linux 实时内核(Linux Real-Time Kernel)详解:原理、实践与优化
java·linux·服务器
梦痕长情6 小时前
等保三级三权账户
linux·运维·服务器
wuqingshun3141597 小时前
说说TCP的3次握手?为什么需要三次握手?
服务器·网络协议·tcp/ip
CHANG_THE_WORLD7 小时前
1.简单的服务端和客户端(仅作为内容补充)
linux·服务器·网络
jiecy7 小时前
为Linux系统双网卡配置静态路由
linux·运维
CodexDave7 小时前
数据库连接池耗尽:排查顺序与三层兜底
服务器·前端·数据库·git·云原生·容器·kubernetes
weixin_307779137 小时前
Linux下Jenkins数据故障的系统化排查Shell脚本
linux·运维·服务器·jenkins