Switching from LightDM to GDM

Yesterday, when I updated my Antergos box, it pulled down lots of shiny new Gnome stuff. Today, when I booted up my laptop, I discovered that the greeter wasn’t working any more and I couldn’t sign in or get at any of that shiny new Gnome stuff.

I have encountered this issue before and it was caused by the Antergos LightDM greeter theme. The easiest solution, therefore, is to switch to GDM so that I am using all Gnome all of the time.

It’s a painless enough process, but I am recording the steps here so I can easily look up the steps when I need them again.


CTRL-ALT-F2 to get into TTY2

Log in and switch to root. Then…

systemctl stop lightdm
systemctl disable lightdm
pacman -S gdm
systemctl enable gdm
systemctl start gdm

And you’re done.


And I notice today (Friday 14th) that I now have an updated lightdm-webkit2-greeter which probably solves yesterday’s issue. That said, I will stick with GDM for now just to see how things go.

Flattr this!

Great UI design from LinkedIn

Although I have a LinkedIn account, I don’t often look at it. But today was one of those rare moments that I not only looked at the site but I even tried to leave a comment. And here’s what LinkedIn said:

There was a problem sharing your update. Please try again.

After a bit of experimenting, it appears that LinkedIn has an undocumented character limit. My original 774 characters was problematic, but once I’d cut it doen to 670 characters the problem went away. So I’m guessing there’s a 700 character limit on LinkedIn comments.

But seriously, if this is the problem, why can’t the site damn well say so. “There was a problem sharing your update,” means nothing and telling people to just try again is a guaranteed method of causing frustration and losing attention. Is it really so difficult to say “Please shorten your comment to 700 characters”.

Or, better still, provide a little decrementing counter of the sort you see on the Quitter UI for GNU social.

Flattr this!

Remounting a read-only filesystem on Android

Following on from my last post, I figured that copying the hosts file from my laptop to my phone would be a very good idea. In principle, this is just a case of getting the file onto my phone and then copying it to /etc/hosts.

Obviously, I need root access to do this but, with a Fairphone 1 this is not a problem.

What did catch me out, though, is that /system is mounted as a read only file system. It’s not difficult to get around, but I am noting it here so I can easily look up the steps when I next do this.

# mount -o rw,remount /system
# cp /storage/sdcard0/Download/hosts /etc
# mount -o ro,remount /system

For other phones, some pathnames may vary.

Flattr this!

Unified hosts file with base extensions

Using the /etc/hosts file to block malicious sites at the operating system level is an effective way of ensuring that none of your applications will access any of these sites, ever, and has the advantage of removing the need for a separate browser plugin for every browser you might possibly use. But maintaining the /etc/hosts file involves doing work and this is where Steven Black‘s hosts comes in handy.

This repository consolidates several reputable hosts files, and merges them into a unified hosts file with duplicates removed. This repo provides several hosts files tailored to you need to block.

Using it is simple. Clone the repository, update the myhosts file with any custom host records you may have, and add any domains you don’t want to block to the whitelist. Then build your hosts file:

python updateHostsFile.py

There are a number of switches you can use (all of which are documented in the readme file) which allow you to control which types of sites to block and whether you want to automatically replace your existing /etc/hosts file.

This all works very nicely indeed, but I’m lazy. So I knocked together a short script to grab any updates from the repository and rebuild my hosts file:

#! /bin/bash
# Automatically update hosts file

# Change to the correct folder and do a git pull
cd /home/paul/Stuff/hosts
git pull origin master

# And update the hosts file
python updateHostsFile.py -a -r

And put it in /usr/local/bin.

This means I can use a systemd service and timer to execute this every Saturday afternoon.

Description=Auto-update hosts file


Description=Auto Update Hosts File

OnCalendar=Sat 14:00:00


And, so far, it all appears to be working very nicely indeed.

Flattr this!

Free subdomains with FreeDNS

Because remembering an IP address is hard.

I’ve mentioned before that I have a private Voxelands server running so that the boys can build and explore in the same world. This works pretty well but it does mean that, as can happen, one of them connects to the wrong server I have to go and look up the IP address so that I can reconnect them.

And then I discovered FreeDNS which, as the name suggests, allows you to set up a subdomain for free. You sign up, select a public domain from the extensive list available, add a subdomain, and point it at your IP address.

It really is as simple and as quick as that.

I’m impressed at how simple and painless they have managed to make the whole process. So much so that, if I do find myself needing a premium service, I will be very happy to go back to them.

Flattr this!

Happy Blogiversary, Inscius

The Weblog of Inscius turned five years old yesterday. This means that it is now old enough to help with the weeding, but not old enough to know the difference between weeds and vegetables.

My blogging has gone down markedly, especially this year, but I am not giving up. I never had a goal, I did not have a glorious five-year plan. I write for my own enjoyment, and others’ enjoyment. Or pity :p

I find my own blogging can be all over the place. There are times when I am posting updates daily and other times when I don’t even look at the blog for a month or more. Ideally, I would like to manage a post per week, but time and motivation often get in the way. That said, though, it is nice to have a small space on the web that is unambiguously mine.

Happy blogiversary, Mikael, and here’s to another five years of text-based dufferdom.

Flattr this!

Prettify XML with Vim

File under quick and dirty, but works for me.

The issue is that I have an utterly unreadable XML file in front of me. Not only is there no indentation, I don’t even have any line breaks.

To format it for readability, first insert line breaks


Then load and apply the XML indent file

:set filetype=xml
:filetype indent on

And apply it


There are probably better ways of achieving the same end, but as a quick fix, this works for me.

Flattr this!

Facebook: Spying with impunity again

Back in November, a Belgian court ruled that Facebook should stop tracking Belgians who are not signed up to the site or pay a daily penalty of €250,000. This ruling, unfortunately, was overruled on appeal at the start of this month. Not, it should be noted, because Facebook is justified in tracking people who are not logged in or have never sighed up to their site, but because:

Belgian courts don’t have international jurisdiction over Facebook Ireland, where the data concerning Europe is processed.

The issue here is one of jurisdiction, not principle. The data protection and privacy laws invoked in this case exist at the EU level, they have not been challenged and the only question is who gets to enforce them. Since Facebook’s European operations are based in Dublin, that would be the Irish.

A little poking around online led me to europe-v-facebook.org:

Are EU Data Protection Laws enforceable in Practice? This may be the main question that europe-v-facebook.org is now about. The right to data protection is a fundamental right in the European Union, but at the same time very little companies respect it. Facebook is just one of many that have a bad reputation when it comes to the handling of users’ data.

So the question arises if users are just too lazy to do something about it, or if the laws are in practice unenforceable?

We unintentionally landed in the middle of a big experiment after filing 22 complaints against Facebook in Ireland, because of breaches of the most basic privacy rules. We happened to look at Facebook for a number of reasons, but the results are very likely exemplary for a whole industry.

You can follow our journey and the under “Legal Procedure“.

While it is clear by now, that no normal citizen is able to follow through with such a proceeding, we are still working to get our final decision today. We want to know if our fundamental rights are respected and enforced against tech giants like Facebook, or if our rights are only existing on the paper.

You can support them at crowd4privacy.org.

Flattr this!

Putting newsletters in the newsfeed

This is handy:

Introducing email newsletters in your RSS reader.

You can now forward your email newsletters over to NewsBlur and then read your email newsletters right in your browser/phone/TV/tablet.

For me, newsletters fall into two categories. The first is marketing bumpf none of which has any value. These are the mails that I try to avoid signing up to in the first place (always uncheck that “Please send me offers” checkbox). Sometimes I forget, though, which has me either looking for the unsubscribe button or – if all else fails – automatically filtering them out of my inbox and into the trash.

The second set is where Newsblur will (hopefully) come in handy. These are the newsletters associated with accounts I have or campaigns in which I am interested. These are the mails that are not urgent enough for me to want them cluttering up my inbox, but which I do want to read at some point.

I have a Newsblur account and have set up an initial filter. It will be interesting to see the effect of moving a little more clutter out of my inbox and into my RSS reader.

Flattr this!