Siosm's blog

Some thoughts about security, Arch Linux, KDE, music...

Get rid of syslog (or a journald log filter in ~100 lines of Python)

We’ve recently switched the host behind the siosm.fr domain and thus decided it was time we dropped syslog logging entirely and use journald only. We used to get weekly log reports sent by mail by logrotate, but we never read them as they were way too big, thus this was useless.

Note: the ‘we’ here refers to PO and I.

Leselys, a web based, self-hosted RSS reader not written in PHP

Update: Fix systemd units.

I must confess: I’ve almost never used Google Reader as I’ve only been using Akregator as far as I remember. I didn’t want to rely on anyone to host my feeds and I guess I needed Google to stop providing Google Reader for free to realize I could just host my own web based reader, like many will probably do from now on.

Setup a Firefox Sync Server with nginx and systemd

I needed a way to synchronize my bookmarks in Firefox across three computers, and doing it manually wasn’t an option anymore, so I turned to sync-like extensions. I needed something which would give me full control on the data storage part (I don’t want to use their servers). The first one I tried was Xmarks, which just can’t handle the 4MB bookmarks I have, so that was a dead end. Then I realized you can host your own Firefox Sync Server and that’s how I did it.

siosm.fr now with comments thanks to Wt Comments!

This blog now has interactive comments thanks to the Wt Comments project started by my friend Martin Peres. On his blog, you’ll find all the reasons that make Wt Comments a must have for us users of static blogs. However, they’re still a few features missing:

  • Allowing users to delete their comments;
  • Allowing users to subscribe/unsubscribe to an article in order to receive mails for new comments.

Feel free to comment(!), request features or, even better, send patches to improve it!

Give Wayland/Weston a try on Arch Linux

Last updated: 30/03/2013

Wayland and Weston have been moved to community/extra! Thus this How to is no longer necessary. I’m just keeping it here for reference. I may update *-git packages but I can’t promise I will do it frequently.

How to use Powertop to reduce power consumption

Powertop 2.0 is out (Release Announcement, The H Open article).

So how do I use it ? Well, I found the html report to be the most useful as it gives you the exact commands (Tunables) you need to run to adjust power settings:

1
sudo powertop --html

You will then find those commands in the Tunables tab in the powertop-*.html generated file. You should try carefully each one of them one by one as they can have some nasty effect (disabling USB mouse, increasing power consumption…).

If you’re using systemd like I do, and want to use the classic /etc/rc.local file to set those settings at boot time, you should use the initscripts-systemd package and make sure it is enabled with :

1
sudo systemctl enable rc-local.service