Tag - Automation

Remote LUKS unlocking with TinySSH Wed, Oct 20, 2021 01:00 CEST

Goodbye keyboards and monitors!

Encrypt user home with eCryptfs Sun, Apr 11, 2021 02:00 CEST

We encrypt a user home directory with eCryptfs. The consequence is that the contents of this directory are only accessible if at least one of the following is true:

  • You know the user’s password.
  • The user is logged in* AND you have read permission to the user’s directory (if you are root for instance).

* or has processes surviving logout (for instance lingering services).

This may increase privacy, depending on how the system is used.

If the user home is not encrypted, it would suffice to be root (without the user necessarily being logged in). Note that being root on another system and mounting the partition hosting the user’s home suffices.

Bluetooth on Arch Linux Mon, Dec 21, 2020 15:52 CET

Install software pacman -S bluez bluez-utils If you want bluetooth to power on the chip as soon as bluetooth.service is running /etc/bluetooth/main.conf [Policy] AutoEnable=true Enable and start the bluetooth service systemctl enable --now bluetooth Connect bluetooth headset/speaker. pacman -S pulseaudio-bluetooth systemctl --user restart pulseaudio bluetoothctl agent on bluetoothctl power on bluetoothctl scan on bluetoothctl pair ... bluetoothctl connect ... Tip: Instead of typing bluetoothctl for each command you can start a REPL by calling bluetoothctl without arguments.

Automatically Mount LUKS Encrypted Device with Crypttab and Fstab Thu, Nov 12, 2020 20:00 CET

Put that second drive to use!

NGiИX hostname resolution boot crash Tue, Aug 18, 2020 02:00 CEST

NGiИX crashes on boot when proxying via hostname resolution.

Suspend Resume Hooks Wed, Jun 24, 2020 10:15 CEST

For instance, to lock the screen on suspend. Can also be used to toggle WiFi, Bluetooth, etc.

Poll for Hangouts Notifications Mon, Dec 9, 2019 18:57 CET

Can extract unread messages count or content, currently typing information, etc.

Detect X1 Yoga Tablet Mode on Arch Linux Mon, Dec 9, 2019 11:51 CET

Inspired from this ruby script.

Automatically Change Screen Layout when Docked Tue, Dec 3, 2019 00:50 CET

Layout settings can be automated depending on connected monitors.

Automatically Create SSH Tunnels Sat, Nov 30, 2019 00:29 CET

Use autossh and a systemd service…