Compare commits
2 Commits
2cb4fb5e21
...
d96541d2d3
| Author | SHA1 | Date | |
|---|---|---|---|
| d96541d2d3 | |||
| 2e5e3fecd9 |
@@ -6,8 +6,6 @@ matchbox‑wm is a minimal, single‑window X11 window manager originally design
|
||||
|
||||
* Single‑window design: Only one application window is shown at a time, always fullscreen.
|
||||
|
||||
* Extremely lightweight: Uses roughly 1–2 MB of RAM, suitable for low‑memory environments.
|
||||
|
||||
* No desktop components: No panels, menus, compositors, notifications, or session daemons.
|
||||
|
||||
* Deterministic behavior: Eliminates window management complexity, ideal for locked‑down 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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user