Category Archives: Ubuntu

Album Art Wallpaper Changer

If you’ve been following along you know all of my music is ripped or downloaded as FLAC and is living on an Ubuntu server here on my network. I do a fair job of scanning in the album art (there are stacks yet to be scanned because it takes too much time, but that is neither here nor there). I thought I’d like to make use of all these scanned covers as rotating background art on my hi-fi machine.

Really there are three problems. First, get a complete list of the cover images. Second, mount that location and list in a useful manner. And third, rotate (randomly) through those images as backgrounds.

First I tackled the mounting part. I already was mounting the music share (referred to as MusicShare in the script) so I simply added an administrative folder (referred to as zetc) in that share which included a folder to house the images. I could then place a shortcut in my Pictures folder on the client machine and make a call to that folder with whatever I used to rotate the images.

Next I wrote the necessary script, but I want to save that for the end so let’s talk about the application for changing the wallpapers now. I selected Wallch and it seems to have all the options I need and seems to work well enough. (I have it running on two machines currently and I have not seen any issues worth reporting.)

Wallch is in the standard repositories so you can locate it in the Ubuntu Software Center or install it using the Terminal (with sudo apt-get install wallch). The only unusual thing I did was add a custom time interval in the Preferences dialog as I wanted a 15 second interval (the included intervals went from 10 seconds to thirty). Set it to randomly select images and called that good.

Let’s look at this script briefly as that’s really the meat of this matter. There are issues with using symbolic links in smb shares (if I serve symbolic links I lose the use of non-Windows standard characters) so I created a folder (as mentioned above) to house the hard links to the found image files.

I didn’t care to sort out proper names for them as I won’t likely ever look in the folder or care about what any particular file is called, so the image links are all named incrementally without regard for album, artist, or location.

Finally, I didn’t want to concern myself with what may or may not be located in my links folder when I run the script again (to create a more current set of links), so I remove all files located in the links folder before filling it up again with the new image links.

Here is my script. I hope this helps you with your music art needs.

# by JamesIsIn from
# Do something nice today.


find "$directory" -type f -name [Cc]over.[Jj][Pp]*[Gg] -o -name [Cc]over.[Pp][Nn][Gg] -o -name [Cc]over.[Bb][Mm][Pp] -o -name [Cc]over.[Tt][Ii][Ff] > "$zedfile"

declare -a zedfind
let i=0
while read zedline; do
done < "$zedfile"

echo "I have found" ${#zedfind[@]} "cover images."
read -p "Press <ENTER> to coninue. "

rm "$zedfolder"/*

for (( ii=0 ; ii < ${#zedfind[@]} ; ii++ )) ; do
originalfile=$( basename "${zedfind[ii]}" )
echo "Creating link:" $ii-"$originalfile"
ln "${zedfind[ii]}" "$zedfolder"$ii-"$originalfile"




Two-Finger Scrolling Unavailable—Not

So I’m using a different laptop.  It has a touchpad for mousing around, and on the touchpad are arrows indicating you are able to use edge scrolling.  This laptop is new enough it presumably has two-finger touch sensitivity, yet for whatever reason Unity’s System Preferences showed “Two finger scrolling” as greyed.

I prefer two-finger scrolling and thus I poked around the Webz to see what I could see.

I found this question asked and answered which had a solution to enable two-finger scrolling.  Essentially the solution (work-around really) is a collection of three commands which enable two-finger scrolling (why it is greyed is another matter for another time).

I tested it and it worked on my machine (a Lenovo w500) as well.  Great.

As advised in the article one could add those three lines as part of one’s start-up scripts (.bashrc in most cases), but I was feeling differently.  First I consolidated those three lines into one line using double-ampersands.  Then I created an alias called touchpad which contained those three-now-one lines of code.

Confusedly, this work-around only remained effective until the machine went to sleep.  I would understand any logout, but you’ll see from the code that this effects X and X must relaunch after sleep (or at least changes state enough to reset this).

Checking the man page for alias (which I had to find on-line as my bash in Ubuntu 14.04 doesn’t have it) I found that I could make an alias persist (or at least make it get recreated) by adding it to my .bash_aliases file in my home directory.

Now it works great.  I have added that alias to each user account I use on this laptop so it is easy to call.  Perhaps one day I’ll add the work-around elsewhere so I won’t have to instantiate it, but for now I have this.

Below you will see the code I used.  I hope this helps you today.

# by JamesIsIn from
# Do something nice today.

# Here is my alias. The code between the single quotes is what you would need if your aim was merely to test-fix your touchpad.

alias touchpad='xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 4 && xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 8 && xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 0'

# Here is my .bash_aliases file.

cat .bash_aliases
# command to enable two-finger scrolling

alias touchpad='xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 4 && xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 8 && xinput --set-prop --type=int --format=8 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 0'


Advanced Background Slideshows in Ubuntu

I have been enjoying the background images in the more recent versions of Ubuntu, especially in conjunction with the included slideshow which automatically moves through the images included with each particular version.  I have one machine where I have upgraded it from 13.04 to 13.10 and finally to 14.04.  The trouble is that each version has its own images and slideshow, and I wanted a way to combine them all into a single slideshow.

I figured these were being stored somewhere as a list and I just needed to find and modify that list.  What I have found will be useful if you would like to either do what I have done, add some of your own images to the built-in slideshows, or even create your own slideshows in the list.

After a little digging I found two files which will assist in this endeavor.



So take note of these files and the folders which contain them.  First, in each of the containing folders (in bold) there will be entries for each version your machine has upgraded through.  If you have simply done a fresh install of 14.04 (for example) you will only have an entry for Trusty, but if (like me) you have upgraded starting with 13.04 you will see entries for Raring, Saucy, and Trusty.  All machines should have the ubuntu-wallpapers.xml entry.

The XML files located in gnome-background-properties contain information System Settings —> Appearance —> Backgrounds uses to populate its roster.  If your image or slideshow file doesn’t have an entry here, it will not appear there.

The XML files located in backgrounds/contest are the slideshow files.  Manipulating them or creating a new one (which I did) will alter (or create) your existing slideshows.

To create a slideshow of all the images from each of the three versions on my system, I first created a file called all.xml inside the backgrounds/contest folder.  I then populated that file with information culled from all three of the other slideshow XML files also in backgrounds/contest.

Let’s go over that briefly.

First, to create the file you can simply use touch as the super-user (the folders in which we are working at root-level access only; normally users should stay out).  Just enter this command in your terminal:

sudo touch /usr/share/backgrounds/contest/all.xml

Name it whatever you’d like.  I chose all because I’m making a slideshow from all of the existing (on that system) stock images.

Now you can modify that file again using elevated privledges:

gksudo gedit /usr/share/backgrounds/contest/all.xml

Note that you should be very careful using your text editor while elevated as you can break your system by opening, changing, and saving the wrong file.

I just opened the other XML slideshow files and copied out the relevant sections to create my super slideshow file.  Here are the basics.


<!-- This animation will start at midnight. -->

<!-- Raring -->





The background tag surrounds the entire document.  Each slideshow entry is supported by static and transition tags.  You will need that bit at the top in your slideshow (I guess; I included it), and you will need an entry (static and transition) for each image file you want included.

Note, the default transition time was set to 1795 seconds and I reduced mine to 595 seconds (just under 30 minutes and just under ten minutes respectively).  You should be able to set the duration time for each file the same or different as you see fit.

Also, the transitions in each of the existing files includes one which transitions from the last image to the first image.  You will want to adjust any transitions so ensure that each file transitions to the next in line and then the final transition should point back to the first image.

If all you have done is modify the existing slideshow file(s) you are done (unless you want to include those new images files in the System Settings dialog as individual options).  If you have created a new file, you will now want to add a reference to that file in the ubuntu-wallpapers.xml file.

Mine now looks like this:




  <wallpaper deleted="false">
    <name>All 13.04 - 14.04 Community Wallpapers</name>



That’s pretty much it.  You can see how this works. The whole of your wallpaper options are wrapped in the wallpapers tag and each individual entry is wrapped in its own wallpaper tag. (I have not explored any options except the default zoom.)

There is one last item to note (though I did not have need of this myself).  If you want to see an image you have added appear in the roster, it will need to appear in one of the XML files in the /usr/share/gnome-background-properties/ folder.  The slideshow won’t appear in Systems Settings until you include its entry (as we have done above) and neither will any file you would like to select individually.  You may be able to create your own XML files in this folder as well (as we did similarly in creating the all.xml file) but I have not tested this.

Have fun with that.


Some Good and Bad News in Ubuntu 14.04

I have been upgrading certain machines here at work and testing various items along the way.  First one item of concern.

There is a great package out there for Windows domain integration called likewise-open.  We had a 13.10 machine running and connected to our Windows domain using this package.  It’s a great package and it really streamlines the domain membership problem.

Unfortunately there is currently no 14.04 package available in the repositories.  The machine we upgraded is currently not able to log in using domain credentials.  Since it’s Friday at 16:09, I created the user a local administrative level account and we’ll look to doing more as is necessary (but surely next week).

I imagine this package will appear in the repositories before long.  We shall see.  Just be forewarned if you are planning to upgrade any Windows domain connected Ubuntu machines any time soon.

But there is a nice delight to offset this.  The old vmware-view-client package which was broken due to a misplaced dependency and which has finally been removed from earlier-version repositories has been replaced in the 14.04 repositories with a working version.  Now you can use vmware-view-client to attach to your View sessions and you can do so using the VMWare native PCoIP protocol.

Have fun with that.


Installing VMware (Fusion) Tools for Ubuntu 13.04

Recently (not so recently now because I’m a slow blogger) I was installing, or rather attempting to install, the VMware Tools into a virtual machine running Ubuntu 13.04, and I ran into a bit of trouble.  This may happen to you too.

First you’ll see this problem:

Searching for a valid kernel header path…
The path “” is not a valid path to the 3.5.0-26-generic kernel headers.
Would you like to change it? [yes]

Enter the path to the kernel header files for the 3.5.0-26-generic kernel?

Clearly no path (“” <— note the lack of… anything) cannot be correct.  But how do you find the correct path?

The kernel header path in question should be under /usr/src/[your current kernel version]/include.  Of course you’ll need to know your current kernel version.  You can find this by running uname -r (it will return something like linux-headers-3.5.0-26-generic).  So this is the answer to the above question:


This may yet fail if the headers were not installed alongside the kernel.  Sweat not, little piggies!  Enter this command to install the proper headers:

sudo apt-get install linux-headers-$(uname -r)

Once that install finishes you can hop back over to the Tools installation and insert the above path once again.

The path “/usr/src/linux-headers-3.5.0-26-generic/include” is not a valid path
to the 3.5.0-26-generic kernel headers.
Would you like to change it? [yes]

Enter the path to the kernel header files for the 3.5.0-26-generic kernel? /usr/src/linux-headers-3.5.0-26-generic/include

The path “/usr/src/linux-headers-3.5.0-26-generic/include” appears to be a
valid path to the 3.5.0-26-generic kernel headers.
Would you like to change it? [no]

I hope that helps you get where you want to be.


Switch Audio In/Out More Easily

If you have ever struggled to change from one audio device to another, you’d surely appreciate having a simple click-click method for making that change.  The folks over at OMG! Ubuntu have hipped me to the existence of just such a switcher.

It can easily be done by adding the following repository (or PPA) through your Terminal:

sudo apt-add-repository ppa:yktooo/ppa

You will then be able to install it using your preferred method, either through the Ubuntu Software Center or through a Terminal:

sudo apt-get update && sudo apt-get install indicator-sound-switcher

That’s the long and short of it.  Hope that makes your lives that much better.


Be an Expert Screen Shooter in Ubuntu

I mean, why not, right?

The built-in screen capture software in Ubuntu is pretty good.  Hit a button (Print Screen) and it snaps your screen into the copy buffer.  Then you save it as an image file though a simple dialog.

But, and this happened to me recently, you may find need to capture something like a menu which doesn’t like to stay put while you press the appropriate button.  Fortunately there is a way to work with this.

Take a look at the manual page for the Gnome screen shot application:

man gnome-screenshot

Apparently you can add border effects.  Who knew?

Anyway, for my interests the one to know is the -d or –delay= argument.  This allows you to hit Enter, mouse to the menu, and hover over the item of interest before you screen shot fires.

Try five seconds:

gnome-screenshot -d 5

Exciting, eh?

Pew pew pew!


Evernote, Everpad, and Ubuntu

With Canonical abandoning Tomboy and Tomboy synchronization through Ubuntu One, I have been forced to seek out a different notes solution.  Evernote is very popular, is available for a wide variety of environments (Windows, Mac, Android, &c), and has been mostly free for quite some time.

I’m willing to give it a shot to see how it goes.  I have it running on my work Windows machine and my work Mac.  I have also installed it on my Android tablet.  Finally I installed it on my old Ubuntu 10.04 machine (under WINE) in order to transfer all of my Tomboy notes into Evernote.

In newer versions of Ubuntu you will have access to Everpad.  This is an open source application which takes advantage of the Evernote API (since Evernote has thus far failed to create a native Linux version of their application).

Personally I find Everpad to be a little clunky and it seems to inappropriately fiddle with formatting when synchronizing between instances.  Nonetheless, let’s go over installation and initial set up so you can try it for yourself.

sudo add-apt-repository ppa:nvbn-rm/ppa
sudo apt-get update && sudo apt-get install everpad

You will be required to invisibly enter your password.

Once you have it installed, it’s not very obvious how to get started.

Right-Click Menu
Right-Click Menu

Yep, right-click on the Everpad icon and choose Settings and Management.  This will open the Settings and Management dialog.

Settings and Management
Settings and Management

Now you will need to log into your Evernote account (if you don’t have one, go to their Web site and create one).  Click the Authorise button.


Log in using your Evernote credentials.

That’s pretty much it.  If you already have notes it will (on schedule) synchronize your notes.  If you’d like to manually synchronize your notes (and again this is not obvious), that’s also pretty easy.

Manual Synchronization
Manual Synchronization

If you click where is tells you about your last synchronization, it will spawn a manual synchronization.  Easy but not obvious.

Again, it tended to goof up my formatting as I moved from Everpad to other instances of Evernote.  As such I am giving Evernote a run under WINE to see how that performs.

So far it seems fine.  If you’d like to try Evernote under WINE, install WINE through the Ubuntu Software Center (or however you’d like) and download the Windows version of Evernote.

Have fun with that.  I’ll report back if I have any issues worth mentioning.


After having run Evernote under WINE for some time now I can say I see no issue worth mentioning.  You may have some slight trouble with getting the correct icon in the dock (it tends to use the WINE icon instead).  Not a show stopper, obviously.


Return Customizations to Unity in Ubuntu 13.10

Possibly the greatest disappointment associated with the move from Gnome2 to Gnome3/Unity in Ubuntu has been the massive evisceration of user customization.  I am pleased to report there is now a tool which will return many of those old customizations (nearly everything I was lamenting) and which will add some new (and in my case predicted) feature enhancements.

You can get the Unity Tweak Tool by entering this line in your terminal (and then entering your password).

sudo apt-get install unity-tweak-tool

Alternatively, you can search for Unity Tweak Tool in either the Ubuntu Software Center or Synaptic.  However you install it, let’s take a look at some of the stuff I like.

Open your Unity Tweak Tool and let’s take a look under the hood.

It’s divided into four sections: Unity, Window Manager, Appearance, and System.  Under each of those sections is a group of sub-sections which become tabs once you select one of them.  I’m not going through all of them, but feel free to explore them all at your leisure.

Under Unity –> Launcher –> Appearance you can adjust the opaqueness level and the opaque color of the launcher sidebar on the left of your desktop.

Likewise, under Unity –> Panel –> General you can adjust the opaqueness of the top panel.

You will well notice that some of the items you can adjust here also live in various locations in your System Settings.  You can adjust those particular settings in either location.  I’m only going to mention those unique settings found in the Unity Tweak Tool and which (as previously mentioned) I like.

Now, under Window Manager –> Workspace Settings –> General you can set your workspace color.  For the sake of uniformity, I set this to the same color as my launcher.  I also expanded my workspaces to 3 x 2 (from the default 2 x 2).

Under Window Manager –> Window Snapping –> General I make the same color change for the fill color (and change the outline color to an appropriate compliment).  Then under Behaviour I set them as follows starting with the upper-left corner (clockwise): Top Left Corner, Top Half, Top Right Corner, Right Half, Bottom Right Corner, Bottom Half, Bottom Left Corner, and Left Half.

This is something I’ve been anticipating.  This gives you left-right half and top-bottom half snapping for most windows (test it by dragging a terminal or browser window to the appropriate area of the screen), but it also gives you quadrant snapping (which you can test by dragging those same windows to any of the four corners).  I’m very pleased with this one.

Under Windows Manager –> Hotcorners I only set one thing.  At the top-right I set “Spread all Windows“.  If you throw your mouse to the appropriate location on the screen you see all of your open windows splayed out for you to select one.  If you do that by mistake you can merely throw your mouse to the same area and you are back to where you were.

Finally, one of my old favorites is back and accessible in an easy manner.  Under Windows Manager –> Additional –> Focus Behaviour I change “Focus mode:” to “Mouse“.  Try this out and see what you think.  It changes things so that wherever is your mouse hovering, the there-below window has focus.

(The one drawback of this feature is that it can be tricky to get to the application menus, since you may have to find a path to the top bar which does not cross another application—or those available menus will change to those of that passed-over application.)

Next you can bring back window shading.  That’s when you double-click the title bar of a window, the window rolls itself up leaving only the title bar visible.  Another double-click unrolls it.  You’ll find that under Windows Manager –> Additional –> Titlebar Actions –> Double click: and you’ll choose Toggle Shade.

Finally for Windows Manager –> Additional –> Resizing I again make the outline and fill colors uniform to what I’ve chosen for my color scheme.

If you want to move the buttons (close, minimize) on your windows, you can choose either left or right from Appearance –> Window Controls –> Layout –> Alignment.

That’s what I change.  Feel free to comment on your preferences.

I have noticed that once a change is made (like moving the buttons on the windows from left to right) the Tweak Tool may report the incorrect location after a reboot.  This seems innocuous since the buttons remain persistently in your chosen location; it’s merely that the tool reports the default location incorrectly.

Hope that helps you make your environment look good and be more efficient for your workflow.


Trillian Comes to Ubuntu

Technically “is coming” is more correct.  Currently the Linux version of Trillian is in beta.  If you are a Trillian Pro user (I am) you have free access to the beta, which is currently available as a .deb package.  They have assured me that a repository is coming.  I haven’t tried to use this .deb on my 64 bit machines yet, so I can’t say if it will work.

Nonetheless, this is very exciting news for fans of Trillian and users of Linux.  It has long been the best and most useful multi-protocol communications client out there.  They released a Mac client a few years back, but I don’t think anyone was expecting this announcement on their blog:

Trillian for Linux: Early access for Pro customers!

I’m looking forward to participating in the testing, of course, but I’m also looking forward to seeing this emerge from beta.

Thanks, Cerulean.