dt.iki.fiBlog feed2023-06-05T14:05:00+03:00https://dt.iki.fi/Sailfish OS - Command Line Interface & Customisation2023-03-24T00:00:00+02:002023-03-24T00:00:00+02:00https://dt.iki.fi/sailfish-os-tweak<![CDATA[
This article has a parent article. It contains some preliminaries to the topics here.
Doing Things on the Command Line
MTP (the same protocol Android devices use) will expose the /home/nemo folder to the connecting computer,
both to graphical and command line applications. But it hides some files ...]]>Sailfish OS - Auto-mount encrypted memory card at boot2023-03-22T00:00:00+02:002023-03-22T00:00:00+02:00https://dt.iki.fi/sailfish-os-automount-encrypted-memory-card-boot<![CDATA[Intro
Disclaimer I: This worked for me. Chances are it will work for you, too, but this is not a copy-paste tutorial. Stay vigilant, messing up will be on you. Make a backup before you begin. Maybe you should also know how to perform recovery. Nota bene: "Turn the phone OFF" = press the power butto...]]>Chromium - Permanent Command Line Options2023-03-20T00:00:00+02:002023-03-20T00:00:00+02:00https://dt.iki.fi/chromium-launcher-options<![CDATA[Archlinux versions of Chromium come with a launcher that reads command line options
from a file before launching Chromium proper.
If for example I want to keep Chromium from wanting to open the GNOME keyring, this is a much more elegant solution
than editing .desktop files.
Example help output:
$>...]]>Check for unread email in all subscribed folders2023-03-08T00:00:00+02:002023-03-08T00:00:00+02:00https://dt.iki.fi/check-unread-email-openssl<![CDATA[Intro
I want to do this on the command line, maybe set up a timer once it works, and display the results via notification and in conky.
It's possible to connect to your mail server with curl but:
there isn't a single command that can achieve that, I need to get a response from the server and send s...]]>Base16 Syntax Highlighting Experiments2023-03-01T00:00:00+02:002023-03-01T00:00:00+02:00https://dt.iki.fi/base16/index<![CDATA[Various documents/snippets around trying to figure out base16 styling (and Pygments).
...]]>Pygments style gallery2023-02-22T00:00:00+02:002023-02-22T00:00:00+02:00https://dt.iki.fi/pygments-gallery<![CDATA[Contains the default/builtin styles of Debian stable's version of Pygments, and then these pip-installed:
- pygments-style-cheer...]]>AdBlocking on Sailfish OS via /etc/hosts2023-02-20T00:00:00+02:002023-02-20T00:00:00+02:00https://dt.iki.fi/sailfish-os-adblock-hosts<![CDATA[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...]]>Sailfish OS - Persistently set "modes" from the command line2023-02-14T00:00:00+02:002023-02-14T00:00:00+02:00https://dt.iki.fi/sailfish-os-mcetool<![CDATA[
I'm sure this article will grow as I discover all of mce-tools options
Tools for interacting with mce (Mode Control Entity).
#> zypper install mce-tools
Provides the command line tool mcetool which allows to set and read various - well, modes on your phone.
E.g.: disable lock screen a...]]>Updating SailfishOS2023-02-13T00:00:00+02:002023-02-13T00:00:00+02:00https://dt.iki.fi/sailfish-os-update<![CDATA[Process, pitfalls
The phone will alert you that there's an update. Go to Settings => Sailfish OS Updates.
As always, backup first.
Download the update and choose to install it.
Once again it complains that I don't have enough space on the root filesystem. This time I decide to bite the bullet and...]]>Recreate bootable hard drive from backup image2023-02-12T00:00:00+02:002023-02-12T00:00:00+02:00https://dt.iki.fi/fix-server-image<![CDATA[Situation
I made a mistake and need to fix it by converting the backup image to a fully partitioned hard drive. At the same time I will apply encryption.
Mount qcow2 image
Install qemu-base (ArchLinux): pacman -S qemu-base
Make sure the nbd module is loaded: modprobe nbd max_part=8