export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
1. 切换root
2. vim /etc/sudoers
vim /etc/lightdm/lightdm.conf
[SeatDefaults]
autologin-user=username #需要登录的用户名
autologin-user-timeout=delay
需要使用Xorg, 创建虚拟显示器
vim /usr/share/X11/xorg.conf.d/xorg.conf
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
如何在没有图像用户界面 (GUI)的 Linux 系统上安装 TeamViewer
【LINUX】(Ubuntu)无显示器接入,使用虚拟显示器且远程控制