安装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 
相关推荐
LN花开富贵5 小时前
Ubuntu aarch64 架构安装 NoMachine 远程控制 避坑与实战
linux·运维·笔记·学习·ubuntu·嵌入式
取经蜗牛5 小时前
Windows 11 WSL + Ubuntu 24.04 安装指南
linux·windows·ubuntu
杨云龙UP5 小时前
Oracle RAC/ODA环境下如何准确查询PDB表空间已分配大小?一次说清Oracle表空间逻辑大小和ASM三副本实际占用_2026-05-19
linux·运维·数据库·sql·oracle·ffmpeg
东湖山上5 小时前
GTAC: A Generative Transformer for Approximate Circuits
服务器·人工智能·深度学习·transformer·gpu算力
2023自学中5 小时前
imx6ull开发板,Linux-c编程,识别 键盘、鼠标、触摸屏坐标
linux·嵌入式·开发板·应用编程
码点滴6 小时前
K8s配置与存储运维自动化:从隐形杀手到 AI Agent 安全闭环
运维·人工智能·自动化
步十人6 小时前
【Linux】环境配置
linux·运维·服务器
念恒123066 小时前
MySQl安装
linux·运维·服务器
kaoa0006 小时前
Linux入门攻坚——77、虚拟化技术基础原理-2
linux·服务器·网络
卧室小白6 小时前
docker容器
运维·docker·容器