Diogo Ferreira

Settings bug in Spotify on Fedora 25 with Wayland

Installing Spotify on Fedora 25 is an easy process:

sudo dnf config-manager --add-repo=https://negativo17.org/repos/fedora-spotify.repo
sudo dnf install spotify-client

But if your system is using Wayland you’ll notice that when you click “Settings” nothing will happen! As a workaround you can click the arrow in the top right corner and use the arrow keys on your keyboard to select “Settings” and press Enter.

Login screen with dual monitors in Ubuntu 17.10

If you use Ubuntu 17.10 with dual monitors you’ll notice that the login screen won’t keep the same settings as your desktop. The workaround goes like this:

Login and set up the displays as you please, using the settings control panel. Then, run the following commands on a terminal:

sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config/
sudo chown gdm.gdm /var/lib/gdm3/.config/monitors.xml

And reboot. You’ll have your login screen with the same settings as your desktop.

How to upgrade Fedora 25 to Fedora 26

Fedora 26 is out! As someone who can’t stop tinkering and breaking things I’ve decided to upgrade my workstation (and see if dnf can handle the process without any major flaw).

So without further delay here are the steps I took (your mileage may vary):


If you’re in doubt that your machine is compatible with Fedora 26 download the live image (here) and test it first. And again, don’t forget to backup before starting the upgrade process! I like to use Clonezilla for that.

First upgrade your current system to the latest available packages on Fedora 25:

$ sudo dnf upgrade --refresh

Restart your machine now, especially if your kernel was updated with this command.

Install the system upgrade plugin for dnf:

$ sudo dnf install dnf-plugin-system-upgrade

Download the newest packages (Fedora 26):

$ sudo dnf system-upgrade download --refresh --releasever=26 --exclude "synergy vagrant"

I added the --exclude "synergy vagrant" because I’m using versions that are different from the ones available in the official repositories. You may ignore that. It’s here for documentation purposes only.

This is the final step. After this, if everything went well, you’ll reboot into Fedora 26:

$ sudo dnf system-upgrade reboot

And it’s done! Everything went right as it should and quite frankly, better than I expected. My system is working as good as before, and I haven’t noticed any problem. Anyway, the official documentation for this process is here. You should read it.

This upgrade method *probably* works for upgrading other Fedora versions (untested).

How to install the Pritunl client on Fedora 25

Having recently installed a VPN server (Pritunl), I needed it’s client on my workstation. If you look around this page, you’ll see that there is a repository for CentOS 7, which works a treat on Fedora 25. This is how you install the Pritunl client on Fedora 25.

I’ll replicate the steps here just because.

$ sudo tee -a /etc/yum.repos.d/pritunl.repo << EOF
name=Pritunl Stable Repository baseurl=https://repo.pritunl.com/stable/yum/centos/7/ gpgcheck=1 enabled=1 EOF
$ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A
$ gpg --armor --export 7568D9BB55FF9E5287D586017AE645C0CF8E292A > key.tmp; sudo rpm --import key.tmp; rm -f key.tmp
$ sudo yum install pritunl-client-gtk

And it’s done! The client is installed, nothing too hard or too fancy. You should get an icon to launch it.
Click it and import your profile to the client. Hit Connect .


But that’s not the reason why I’m writing this post. I’m writing it because soon you’ll realize that you can’t connect to your servers. I mean, you can, but you’ll have to use their IP address, since you can’t resolve their names. The reason for this is that the Pritunl client relies on openresolv to update your DNS servers when you connect to the VPN, and it’s looking for the binary resolvconf, that is not included in Fedora 25.

So you’ll have to install it:

$ cd ~
$ wget https://roy.marples.name/downloads/openresolv/openresolv-3.9.0.tar.xz
$ tar xf openresolv-3.9.0.tar.xz
$ cd openresolv-3.9.0
$ ./configure
$ sudo make
$ sudo make install
$ cd..
$ rm -rf openresolv-3.9.0*

Please note that the openresolv link points to the latest version available at the time of writing.

Disconnect and reconnect your VPN again. It should work.

Missing icons on Fedora 25 Xfce spin

If you use the Fedora 25 Xfce spin you may already noticed that some icons are missing on the default theme.

This is the easy to fix it:

$ sudo dnf install gnome-icon-theme-symbolic gnome-icon-theme-extras gnome-icon-theme-legacy gnome-icon-theme