Fedora Linux : Change user icon in GDM login

In general, I’m pretty happy with my desktop setup. I use MATE with i3 on my Fedora Linux laptop for quite some time now, and it works well.

However, there was one annoying tidbit that I decided to fix today – my user icon on the login screen. I remember that I used to have it at some point, but it disappeared during some upgrade a few month ago.

The login screen is managed by Gnome Display Manager (GDM). In previous versions, you could easily customize the user icon via either some GUI tools for users and groups, or by simply dropping your icon into ~/.face file, in, preferably, PNG format, and GDM would pick it up just fine. Turns out, not anymore.

It took me a few Google searches to find the solution, so I’m sharing it here (just replace ‘leonid’ everywhere with your own username):

# Copy the user icon file
sudo cp /home/leonid/.face /usr/share/pixaps/faces/leonid.png
# Edit user settings file and add the following line:
# Icon=/usr/share/pixaps/faces/leonid.png
sudo vim /var/lib/AccountsService/users/leonid
# Logging out is not enough, so just ...
reboot

Once your system restarts, you should see the proper user icon on the login screen.

Managing dotfiles with rcm

These days it is a common practices to manage, version, and share configuration files for command line tools (bash, vim, etc) via a GitHub repository. There are plenty of open repositories to study and borrow things from, as well as the tools and scripts to help one with setting things up. Have a look at the awesome-dotfiles – a curated list of dotfiles resources.

Fedora Magazine runs an article about rcm – one of the many tools that are handy for managing dotfiles.

Personally, I haven’t heard of rcm until now. My own setup went through several iterations, varying from custom scripts, to Puppet, and now to Ansible. Have a look here. By the way, my dotfiles aren’t only about the command line tools. I also keep my desktop environment configuration in there (MATE + i3).

11 Best Programming Fonts


It’s that time of the year once again, when you should take a five minute break from whatever it is you are doing.  Here are “11 Best Programming Fonts” that might help you out in being a little bit more productive.  If not that, than at least bring you a slight change and some eye candy, when staring at your code.

For me personally, Source Code Pro by Adobe (featured in the screenshot above) is still the best option.  I have it setup in the Terminator as Source Code Pro Semibold at size 11, which makes it large enough to work with the code comfortably and small enough to eat too much screen space.

If you want to find and compare more fonts, have a look at these two resources:

 

Winamp2-js – implementation of Winamp 2.9 in HTML5 and JavaScript


Atwood’s Law states that any application that can be written in JavaScript, will eventually be written in JavaScript.  Winamp2-js is yet another example supporting this law.  It is a re-implementation of Winamp 2.9, a classic Windows MP3 player from decades ago, done in HTML5 and JavaScript.

The source code is on GitHub and a live demo is available here.