安装xfce桌面以及vncserver(远程连接)
安装xfce桌面
apt-get install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils
ubuntu的安装gdm3,
apt install gdm3
debian安装lightdm。
apt install lightdm
安装vnc server
apt-get install tightvncserver
中文字体
apt-get install fonts-wqy-zenhei
开机自启动vncviewer
修改启动脚本
vim /etc/rc.local
添加以下内容
su - root -c "/usr/bin/vncserver -depth 24 -geometry 1920x1080 :1 &"
cat << '_EOF_' > /etc/X11/xorg.conf.d/02-dietpi-aml-s905.conf
Section "OutputClass"
Identifier "Amlogic"
MatchDriver "meson"
Driver "modesetting"
Option "PrimaryGPU" "true"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Meson"
Monitor "foo"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080" "1440x900" "1280x720" "1280x1024" "1280x960" "1024x768" "800x600" "640x480" "720x400"
EndSubSection
EndSection
_EOF_
如果还不行的话:
apt install accountsservice
mkdir /var/lib/lightdm/data
chmod 775 /var/lib/lightdm/data