modified: "docs/display-managers/matchbox\342\200\221wm.md"

This commit is contained in:
2025-12-22 22:54:05 +00:00
parent 2cb4fb5e21
commit 2e5e3fecd9

View File

@@ -23,9 +23,11 @@ apt update
apt install matchbox-window-manager xorg apt install matchbox-window-manager xorg
``` ```
## Setup user ## Setup
Example to start matchbox-window-manager with chromium on user xxx login. Example to start matchbox-window-manager, auto login user xxx and start chromium.
1. Auto login
``` bash ``` bash
mkdir -p /etc/systemd/system/getty@tty1.service.d mkdir -p /etc/systemd/system/getty@tty1.service.d
@@ -42,6 +44,8 @@ ExecStart=-/sbin/agetty --autologin xxx --noclear %I $TERM
sudo systemctl daemon-reload sudo systemctl daemon-reload
``` ```
2. Setup user to startx
``` bash ``` bash
# /home/xxx/.bash_profile # /home/xxx/.bash_profile
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
@@ -49,6 +53,8 @@ if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
fi fi
``` ```
3. Setup setup scripts
``` bash ``` bash
# /home/xxx/.xinitrc # /home/xxx/.xinitrc
@@ -68,3 +74,11 @@ chromium \
``` bash ``` bash
chmod +x /home/xxx/.xinitrc chmod +x /home/xxx/.xinitrc
``` ```
## misc
Stop auto tty session and kill session:
``` bash
sudo systemctl stop getty@tty1
```