Compare commits

...

2 Commits

View File

@@ -6,8 +6,6 @@ matchboxwm is a minimal, singlewindow X11 window manager originally design
* Singlewindow design: Only one application window is shown at a time, always fullscreen.
* Extremely lightweight: Uses roughly 12MB of RAM, suitable for lowmemory environments.
* No desktop components: No panels, menus, compositors, notifications, or session daemons.
* Deterministic behavior: Eliminates window management complexity, ideal for lockeddown kiosk workflows.
@@ -23,9 +21,11 @@ apt update
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 kiosk mode.
1. Auto login
``` bash
mkdir -p /etc/systemd/system/getty@tty1.service.d
@@ -42,6 +42,8 @@ ExecStart=-/sbin/agetty --autologin xxx --noclear %I $TERM
sudo systemctl daemon-reload
```
2. Setup user to startx
``` bash
# /home/xxx/.bash_profile
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
@@ -49,6 +51,8 @@ if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
fi
```
3. Setup scripts
``` bash
# /home/xxx/.xinitrc
@@ -57,7 +61,6 @@ export SSL_CERT_DIR=/etc/ssl/certs
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
matchbox-window-manager &
chromium \
--kiosk \
--noerrdialogs \
@@ -68,3 +71,11 @@ chromium \
``` bash
chmod +x /home/xxx/.xinitrc
```
## misc
Stop auto tty session and kill sessions:
``` bash
sudo systemctl stop getty@tty1
```