Compare commits

..

6 Commits

5 changed files with 69 additions and 5 deletions

View File

@@ -16,6 +16,7 @@
- [Network Configuration](#network-configuration)
- [hostname / hostnamectl](#hostname--hostnamectl)
- [static ip](#static-ip)
- [System info](#system-info)
- [System Monitoring Utilities](#system-monitoring-utilities)
- [btop](#btop)
- [memory usage by user](#memory-usage-by-user)
@@ -216,6 +217,16 @@ Reiniciar configuração sem reboot de computador
sudo /etc/init.d/networking restart
```
### System info
```bash
# get distribution
cat /etc/os-release
# get kernel version
uname -a
```
### System Monitoring Utilities
#### btop

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,31 @@ chromium \
``` bash
chmod +x /home/xxx/.xinitrc
```
## misc
Stop auto tty session and kill sessions:
``` bash
sudo systemctl stop getty@tty1
```
if stuck in a kiosk loop, the system boots straight into:
* matchbox-window-manager
* Chromium kiosk
and cannot switch TTY, cannot access a terminal, and cannot fix the script.
Interrupt GRUB and boot into console mode.
**Steps:**
1. Reboot the machine
1. When it starts, force the GRUB menu to appear:
1. When GRUB appears, highlight your Linux entry
1. Press e to edit
1. Find the line starting with:
```linux /boot/vmlinuz...```
1. At the end of that line, add:
```systemd.unit=multi-user.target```

View File

@@ -18,3 +18,8 @@ SDDM (Simple Desktop Display Manager) is the default graphical login manager use
- Replaced KDM (KDE Display Manager) starting with KDE Plasma 5.
- Used by KDE-centric distributions like KDE neon, OpenSUSE KDE, and Fedora KDE Spin.
```bash
# control ui login at boot
systemctl start|stop|enabled|disable sddm
``

View File

@@ -14,3 +14,13 @@ Compositor = Display Server + Window Manager: In Wayland, the compositor handles
- [Hyprland](../window-managers/hyprland.md), Sway, river, etc.
Direct rendering: Applications render their own graphics and hand them off to the compositor, reducing complexity and improving performance.
## misc
**Restart Kwn compositor (does not kill your session).**
Used for wake up from gpu/monitor from sleep remotely, works over ssh
``` bash
kwin_wayland --replace &
```

7
docs/journald.md Normal file
View File

@@ -0,0 +1,7 @@
# journald
**get errors from last boot:**
```bash
journalctl -b -1 -p err
```