Thursday, August 25, 2016

How to install 10 Band Equalizer for Rhythmbox

I like Rhythmbox on Ubuntu Desktop but it does not come with an equalizer out of the box. Fortunately, there is a 10 band equalizer that you can install as a plugin and it works really well.

Here are the steps to install the 10 band equalizer with Rhythmbox version 3 and later:
  • Create a directory under your home directory for storing the 10 band equalizer plugin
    • mkdir -p ~/.local/share/rhythmbox/plugins/
  • Go to the newly created directory and get the source for the plugin from GitHub
    • cd ~/.local/share/rhythmbox/plugins/
    • git clone git://github.com/luqmana/rhythmbox-plugins
  • Now go to the equalizer plugin directory and install the plugin
    • cd rhythmbox-plugins/equalizer
    • sudo apt-get install gir1.2-gconf-2.0 python-lxml
    • ./install.sh --rb3
  • Open Rhythmbox and go to the Tools → Plugins... menu and enable the equalizer

  • Finally, you can go to Tools → Equalizer and change the settings to suit your music taste

That's it! Happy equalizing!

Sunday, August 21, 2016

How to fix a broken fstab in Ubuntu

I was messing around with my /etc/fstab settings which connect my Ubuntu desktop to my NAS server via Samba and I screwed it up. When I restarted my desktop, Ubuntu would just hang asking for a password and yet I could not provide the password and get to the login screen. Boot failure!

So I found this little nugget of wisdom on "How to fix a broken fstab in Ubuntu" which got my desktop going again:

Fix Broken /etc/fstab

    • Boot into the Ubuntu Live CD
    • Open terminal
    • Run the following commands to mount the partition with the root / directory and edit /etc/fstab:

sudo mkdir /media/mount
sudo mount /dev/sd[a..z][1..n] /media/mount
sudo vi /media/mount/etc/fstab

    • Make your changes, save, and then reboot without the Live CD

In my case, I just placed a comment hash # on the fstab line that defined the Samba share so I could get into my desktop again and fix the problem.

Sunday, April 10, 2016

overGrive!

In my earlier post about Google Drive for Linux I enumerated several options available for getting Google Drive to work under Linux.

The first option I tried was actually not on the original list. After I installed a Windows 10 Home virtual machine on my Ubuntu 15.10 Desktop, I downloaded and installed the Google Drive client for Windows. I set up a Shared Folder between my Ubuntu host OS and the Windows 10 guest OS so that Google Drive would actually sync everything to my /home/<user>/Google Drive directory under Ubuntu. I thought this was going to be an easy solution to the problem of not having an official Google Drive client for Linux.

Turns out I was wrong. The Google Drive Windows client completed the initial sync process which was good, but then it would immediately bomb out and quit with an error which was bad. Not much of a point having the Google Drive client on Windows if it's not going to stay opened and monitor the Google Drive shared folder. Therefore I uninstalled the Google Drive Windows client from my VM and went with my second option.


So I decided to give overGrive a try. Sure I had to pay $4.99 for a license to run it but I thought that was a reasonable price for a dedicated Google Drive for Linux client. Purchasing the license with PayPal was simple and downloading the latest DEB package for Ubuntu was trivial.

I started going through the installation instructions for Ubuntu and was doing fine until I hit the section about pressing the "Connect account..." button and linking overGrive with my Google Drive account. For whatever reason, Chrome kept opening up a new window with no tabs instead of bringing me to the Account Management screen in Google.

After contacting overGrive support, I did some searching and came across this thread Ubuntu 15.10 Chrome: external links are opened as blank tabs in new browser window. I just had to edit ~/.local/share/applications/google-chrome.desktop and add the %U parameter to the end of the Exec= line. Now external links like the one from "Connect account..." work properly and I was able to link up overGrive with my Google Drive account.

Currently overGrive is still doing its initial sync with Google Drive. It has taken quite a bit more time for overGrive to complete this task on Ubuntu than for the Google Drive Windows client. It seems the difference between the two is that the Google Drive Windows client appears to be multi-threaded and asks to sync several files at once while overGrive appears to be single-threaded and asks to sync one file at a time.

Friday, April 8, 2016

Why does Google Chrome use so much RAM?

I know this issue is not Linux-specific since Chrome did the same thing on Windows, but I want to bring it up anyway. Currently I have thirteen tabs open in Chrome and this is what System Monitor looks like:


Thirteen tabs, and nineteen out of the top twenty memory hogging processes are chrome. Seriously, how can Google Chrome take up a half-gig of memory for just one process? I have done a lot of Web application programming with JavaScript frameworks such as jQuery and Dojo so I understand web pages are more complicated now than they used to be. However, it seems to me these memory numbers are an order of magnitude off as I would expect even the most dazzling Ajax-ified web application to take no more than 50 MiB of memory. Even then, at 50 MiB that is some serious HTML/CSS/JavaScript/images/videos/etc.

And I thought Microsoft was terrible at memory management, especially with their Office apps.

Edit: I received a tweet from @perlmeister1l pointing me to a Chrome Help page called Reduce Chrome memory. Basically, Chrome has its own built-in Task Manager that allows you to see exactly which tabs are consuming your CPU and RAM resources.

While this is definitely more helpful than the System Monitor, the only suggestion provided in the help was to kill tabs you no longer need to free up memory. This is not entirely helpful since I would have done this anyway. Rather, I would prefer to know in greater detail about exactly why my Yahoo! Mail tab is taking up 536MB of RAM. How much of that is the DOM? JavaScript? Images? Ads? You get the picture.

Monday, April 4, 2016

Google Drive for Linux

I am an admitted Google fanboy, especially of their Google Drive product. Unfortunately, after nearly four years since Google announced a Linux client was coming it is still MIA. Going to the Google Drive download page gives you this message:



A bit ironic that the page says, "Get Drive Everywhere", and then in the fine print states, "Running Linux? Stay tuned - Drive for Linux isn't ready just yet." At this rate who knows if Google will ever release a Linux client for Google Drive.

Since Google doesn't support Linux with their Google Drive app, what options are available?

  • drive: This little command-line utility was originally developed by Burcu Dogan while she was on the Google Drive team. It has since been taken over by Emmanuel Odeke and appears to be well-maintained.
  • google-drive-ocamlfuse: This is an interesting project in that it allows a user to mount Google Drive on Linux as just another filesystem. The author Alessandro Strada maintains a PPA so that it can be installed and maintained with Apt.
  • GoSync: This is an open source Google Drive client for Linux written in Python. It looks like from the v0.4 release that a lot of improvements were made including:
    • Ability to select folders to sync
    • File rename, move, and deletion now supported
  • rclone: Rclone is the Swiss Army knife of cloud storage command-line utilities. It can sync files and directories to and from a number of cloud storage services including:
    • Google Drive
    • Amazon S3
    • Rackspace cloud files
    • Dropbox
    • Google Cloud Storage
    • Amazon Cloud Drive
    • Microsoft OneDrive
    • The local filesystem
    • etc...
  • insync: Touted to be "The most powerful Google Drive client ever built", insync integrates Google Drive with Windows, Mac, and Linux. It has an impressive list of features on its website. Yes, it is closed-source and requires you to purchase a license in order to use it. An entry-level consumer license for one Google account runs $25.
  • overGrive: A GUI-based tool that supports a wide array of Linux distributions and desktops including Ubuntu Unity. Like insync, it too is closed-source and requires purchasing a license for $4.99 which is a latte at Starbucks. It does have some minor limitations (no symlink support) but appears to do most everything else you would need. Comes with detailed instructions on how to install on Ubuntu.
There are quite a few intriguing options for getting Google Drive to work on Ubuntu. What are your thoughts on which of these solutions should be the one to go with?

Nautilus Still Shows Hidden Files By Default

I needed to make a change to a hidden file so I pressed Ctrl+H while Nautilus was open in order to see it. For some reason Nautilus took this as "You want to change your preferences to show hidden files also" since Nautilus would show those hidden files by default every time I opened it afterwards.

And it's not enough to press Ctrl+H to re-hide them again, or even to open the View menu and unselect the "Show Hidden Files" option. Nautilus will just open the next time showing all those hidden files again.

The only way to get this resolved for now is to go to Edit -> Preferences and uncheck the "Show hidden and backup files" option.

Of course I am expecting this to be a temporary fix until the next time I need to see hidden files in Nautilus and I press Ctrl+H again. According to this post on the Ubuntu Forums Nautilus has been acting like this for at least three years now.

Any idea when this bug can get fixed?

Congruity no longer useful for configuring Logitech Harmony remotes on Linux?

I installed Congruity, which is a GUI that handles writing configurations to Logitech Harmony remotes from Linux, and then visited the Logitech Harmony website expecting to be able to configure my Logitech Harmony One with their website configuration tool.

Going to the Set Up page, I was able to find a section for my remote. However, Logitech now wants you to download desktop software called MyHarmony that is only available for Windows or Mac machines. Clicking on a box that says "Looking for the old sign in page?" brings up the following message:
Harmony has moved away from a website application and now leverages either the MyHarmony desktop software and/or Harmony smartphone app, depending on your remote. The website login has been phased out.

This was done to eliminate issues related to browser plug-in issues and increasing browser security policies. All existing account information still exists and is accessible by downloading and signing in to the new software.
So it looks like Congruity may no longer be of use since it is not possible to generate the Harmony remote configuration files from the website.

Therefore I am putting this configuration step off until I install my Windows 10 VM.  Didn't I say "goodbye to Windows 10" earlier? I meant I'm putting Windows 10 where it belongs. In a virtual machine.