安装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 
相关推荐
江华森15 分钟前
Spring Cloud 微服务全栈实战:从 Eureka 到 Docker Compose 一文贯通
运维
江华森15 分钟前
Matplotlib 数据绘图基础入门
运维
XIAOHEZIcode17 分钟前
Ubuntu 终端美化全栈指南:Bash 到 Kitty 踩坑实录
linux·ubuntu·命令行
江华森17 分钟前
NumPy 数值计算基础入门
运维
唐青枫2 小时前
别再只会用 cron:Linux systemd Timer 定时任务实战详解
linux
AlfredZhao2 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
戴为沐3 天前
Linux内存扩容指南
linux
zylyehuo3 天前
Linux 彻底且安全地删除文件
linux
用户805533698034 天前
主线 U-Boot 上 RK3506:和闭源 rkbin 拔河的三个隐性契约
linux·嵌入式
用户034095297914 天前
linux fcitx 5 雾凇拼音 设置在中文输入法下仍然输入英文标点
linux