N1盒子安装Armbian 原生 Labwc Wayland 轻量桌面

 

1. 安装基础组件

 
sudo apt update
sudo apt install -y labwc seatd lightdm waybar foot swaybg polkitd xdg-user-dirs pcmanfm lxterminal
 
  • labwc:窗口合成器(和树莓派一致)
  • waybar:通用顶部任务栏,替代 wf-panel-pi
  • foot:Wayland 终端
  • swaybg:桌面壁纸

2. 配置 Labwc 自启动 Waybar 任务栏

 
mkdir -p ~/.config/labwc
cat > ~/.config/labwc/autostart <<EOF
#!/bin/sh
waybar &
swaybg -o '*' -c '#282828' &
EOF
chmod +x ~/.config/labwc/autostart
 

3. 启动桌面

  • 临时运行:labwc
  • 登录管理器选择:重启后 LightDM 登录界面选 Labwc

 

常见问题

Phicomm-n1刷入后lightdm无法正常启动

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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_

 

sudo apt install -y xserver-xorg xserver-xorg-core xinit xserver-xorg-input-evdev
 
 
sudo systemctl restart lightdm
systemctl status lightdm

额外可选工具(方便日常使用)

 
sudo apt install thunar file-roller firefox-esr network-manager-gnome blueman
posted @ 2026-06-22 16:56  木子欢儿  阅读(10)  评论(0)    收藏  举报