Resetting Rhythmbox

Close Rhythmbox and delete the Rhythmbox database in ~/.local/share/rhythmbox/rhythmdb.xml. If you also want Rhythmbox to forget your library paths (the directories where it automatically looks for music), then you need to delete them from dconf: gsettings set org.gnome.rhythmbox.rhythmdb locations “[‘file:///dev/null’]” You can then set new paths in the Rhythmbox GUI, under Edit -> Preferences -> … Read more

Setting up a new Ubuntu machine

I’ve had to set up a few Ubuntu desktop machines recently, and I thought it was worth documenting what I install on each one, and how I automate those installations as much as possible. I wrote about this a few years ago but so much has changed with my setup that I thought it was … Read more

Bulk image manipulation

Resizing Navigate to the directory containing the images (via the terminal) and then enter the following command: mogrify -resize 20×20 *.png Which will resize all PNG files to 20×20 pixels. This can obviously be altered to cater for different sizes and file types. Conversion The command to convert a whole folder of images from .bmp … Read more

Command line WordPress updates

To update WordPress instances via command line, check out https://wp-cli.org/. Useful when you can’t find an admin user but need to patch a WordPress instance immediately. Other useful resources: https://www.rosehosting.com/blog/how-to-install-and-use-wp-cli-on-a-linux-vps/

Save a list of all my music to a file

SSH to slave27.local and then issue one of the following commands: cd Music tree -l > /home/andy/Dropbox/music-2017-01-28.txt Which gives output that looks something like this: ├── !!! │   └── Thr!!!er │   ├── 01 Even When The Water’s Cold.m4a │   ├── 02 Get That Rhythm Right.m4a │   ├── 03 One Girl _ One Boy.m4a │   ├── … Read more