Compare commits
6 Commits
2cb4fb5e21
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1e8eeca968 | |||
| 8c0dbf9ea0 | |||
| c828a8e5db | |||
| 01b91fa703 | |||
| d96541d2d3 | |||
| 2e5e3fecd9 |
11
README.md
11
README.md
@@ -16,6 +16,7 @@
|
|||||||
- [Network Configuration](#network-configuration)
|
- [Network Configuration](#network-configuration)
|
||||||
- [hostname / hostnamectl](#hostname--hostnamectl)
|
- [hostname / hostnamectl](#hostname--hostnamectl)
|
||||||
- [static ip](#static-ip)
|
- [static ip](#static-ip)
|
||||||
|
- [System info](#system-info)
|
||||||
- [System Monitoring Utilities](#system-monitoring-utilities)
|
- [System Monitoring Utilities](#system-monitoring-utilities)
|
||||||
- [btop](#btop)
|
- [btop](#btop)
|
||||||
- [memory usage by user](#memory-usage-by-user)
|
- [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
|
sudo /etc/init.d/networking restart
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### System info
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# get distribution
|
||||||
|
cat /etc/os-release
|
||||||
|
|
||||||
|
# get kernel version
|
||||||
|
uname -a
|
||||||
|
```
|
||||||
|
|
||||||
### System Monitoring Utilities
|
### System Monitoring Utilities
|
||||||
|
|
||||||
#### btop
|
#### btop
|
||||||
|
|||||||
@@ -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.
|
* 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.
|
* No desktop components: No panels, menus, compositors, notifications, or session daemons.
|
||||||
|
|
||||||
* Deterministic behavior: Eliminates window management complexity, ideal for locked‑down kiosk workflows.
|
* Deterministic behavior: Eliminates window management complexity, ideal for locked‑down kiosk workflows.
|
||||||
@@ -23,9 +21,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 kiosk mode.
|
||||||
|
|
||||||
|
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 +42,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 +51,8 @@ if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
|||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
|
3. Setup scripts
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
# /home/xxx/.xinitrc
|
# /home/xxx/.xinitrc
|
||||||
|
|
||||||
@@ -57,7 +61,6 @@ export SSL_CERT_DIR=/etc/ssl/certs
|
|||||||
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
|
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
matchbox-window-manager &
|
matchbox-window-manager &
|
||||||
|
|
||||||
chromium \
|
chromium \
|
||||||
--kiosk \
|
--kiosk \
|
||||||
--noerrdialogs \
|
--noerrdialogs \
|
||||||
@@ -68,3 +71,31 @@ chromium \
|
|||||||
``` bash
|
``` bash
|
||||||
chmod +x /home/xxx/.xinitrc
|
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```
|
||||||
|
|||||||
@@ -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.
|
- Replaced KDM (KDE Display Manager) starting with KDE Plasma 5.
|
||||||
- Used by KDE-centric distributions like KDE neon, OpenSUSE KDE, and Fedora KDE Spin.
|
- 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
|
||||||
|
``
|
||||||
|
|||||||
@@ -14,3 +14,13 @@ Compositor = Display Server + Window Manager: In Wayland, the compositor handles
|
|||||||
- [Hyprland](../window-managers/hyprland.md), Sway, river, etc.
|
- [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.
|
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
7
docs/journald.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# journald
|
||||||
|
|
||||||
|
**get errors from last boot:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
journalctl -b -1 -p err
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user