dt.iki.fi

4 posts are tagged "systemd"

Making sshd more secure on Sailfish OS

Assuming Remote connection is enabled in Settings -> Developer tools, and works. Recent versions of Sailfish OS (currently 4.4.0.58) use a socket that listens on port 22, and start sshd (to be precise, a per-connection sshd@.service) whenever someone knocks. Pretty neat, probably saves some res.....

AdBlocking on Sailfish OS via /etc/hosts

There are some apps in Openrepos which do not seem to work anymore for SFOS 4.x. But you don't really need an app, all you need is a systemd timer & service and a simplistic shell script. Gain command line access to your phone and become root. > cd /etc/systemd/system > nano hosts.timer ho.....

Disable the Linux kernel watchdog

journalctl -b | grep watchdog; sudo dmesg | grep watchdog Both commands return something like NMI watchdog: Enabled. Permanently consumes one hw-PMU counter. I have no use for this watchdog on a desktop computer. This link already contains all the information required to disable it, but here's the m.....

Disable a USB port and the connected hard drive

And enable it when required. Also see this related article. Premise & problem I have a USB hard drive used only for weekly automated backups. It is always connected to the same port and never gets removed. At all other times I want this drive to be unmounted, off, invisible, powered down. I wa.....