Ubuntu


USB sound in Ubuntu – automatically selecting a USB audio device when it is plugged in

Ubuntu has started to support USB audio.    When I plug in a USB speaker or headset, it gets recognized and installed automatically.  However there are some bugs:

  • The USB sound device does not get selected automatically.   This is especially annoying for headphones.  When you plug in analog headphones, the sound automatically switches to them and the main speakers turn off.
  • The volume settings are turned way up for the device.  Ideally it would remember the volume settings from the last time the device was plugged in.
  • When the computer goes to sleep, the volume of usb devices gets turned way up on wake.

I discovered that I could address these shortcomings by creating a script.

(more…)


Installing a CUPS printer via the command line under Ubuntu

I try to script everything I can on Linux.  When I install something on my desktop, I like to be able to run a script to install the same thing on my laptop.  When a computer breaks, I like to be able to run all the scripts to have it set up again just the way that it was. Here is how I scripted the installation of my printer.

(more…)


Resetting Wireless Networking on Ubuntu without Rebooting

The wireless network on my laptop has always been unreliable.  When I open the lid of the laptop and the computer wakes up from sleep, there is a 10% chance that the wireless network won’t be able to connect.   In the past, the only thing that works in this situation is a full reboot of the laptop.

(more…)


Ubuntu Global Keybindings for Gnome (Quantal)

I recently re-installed Ubuntu on my desktop computer.  It was about 8 years since the previous full install.  I’d kept it up to date with latest Ubuntu upgrades.   I wanted to change the hard drive configuration and put most of the os on a solid state drive.  There was also a lot of cruft that I had installed over the years and a clean slate would get rid of tons of software I no longer use.

The re-install worked very well.   The most noticeable improvement was boot time.  Partly from the solid state drive and partly from the removal of all the extra software.  I didn’t lose much in the process.  I have a script that installs software that I use that isn’t included by default.  The script also tweaks a bunch of settings.  But, the one thing that I lost was my global key bindings.

(more…)


Nedit – A Text Editor for Linux with some Killer Features

I’ve been using Nedit for at least 10 years as my primary text editor.     It has standard features for a programmer’s text editor:

  • Syntax highlighting
  • Line numbering
  • Brace matching

There are a few areas in which the authors put in a lot of attention to detail.  It outshines every other text editor that I’ve ever used in a few areas.

(more…)