diff --git a/docs/display-managers/matchbox‑wm.md b/docs/display-managers/matchbox‑wm.md index 5541f8d..80abb6d 100644 --- a/docs/display-managers/matchbox‑wm.md +++ b/docs/display-managers/matchbox‑wm.md @@ -23,9 +23,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. + +1. Auto login ``` bash 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 ``` +2. Setup user to startx + ``` bash # /home/xxx/.bash_profile if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then @@ -49,6 +53,8 @@ if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then fi ``` +3. Setup setup scripts + ``` bash # /home/xxx/.xinitrc @@ -68,3 +74,11 @@ chromium \ ``` bash chmod +x /home/xxx/.xinitrc ``` + +## misc + +Stop auto tty session and kill session: + +``` bash +sudo systemctl stop getty@tty1 +```