Getting Broadcom STA to work on Ubuntu Studio 13.04 or Xubuntu

As I upgraded Ubuntu Studio 12.10 to Ubuntu Studio 13.04 on my Mac Book 5.1 my wireless stopped working… After surfing the internet for a couple of days I’ve found the following solution to enable the Broadcom STA on my Mac Book 5.1.

Check whether Ubuntu sees your Broadcom STA device by running the lspci command from a terminal:

lspci | grep Network


After using the the lspci command you should get something like this:

03:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)


Next up is, installing the drivers. To install the drivers run the following command using the terminal:

sudo apt-get install firmware-b43-installer


The broadcom-sta-common package, blacklists the b43 driver.

To fix this you need to edit the file: /etc/modprobe.d/broadcom-sta-dkms.conf


You can do that by using the following command in the terminal:

sudo nano /etc/modprobe.d/broadcom-sta-dkms.conf


Delete or comment out with a “#” the line “blacklist b43”, my file looks like this:

# wl module from Broadcom conflicts with the following modules:
# blacklist b43
blacklist b43legacy
blacklist b44
blacklist bcma
blacklist brcm80211
blacklist brcmsmac
blacklist ssb


Then to force the module to load during boot by using the following command in the terminal:

sudo nano /etc/modules


Then add a line with “b43”, my /etc/modules file looks like this:

# /etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with “#” are ignored.


You don’t need to reboot your computer as you can load the module manually by entering the following command in the terminal:

sudo modprobe b43


Suggestions for improving this article are welcome, please let me know and drop me a line.

Backing up and restoring software installations in Ubuntu

Sometimes you just want to restore (or clone) your favorite (studio ;-)) installation, to a clean installed, freshly formatted machine, without having to  install manually all your favorite applications again.

This can be done, by exporting the list of all your installed applications to a text file and reinstall all your applications listed in the text file to your freshly formatted machine (as Hannibal would have said “I love it when a plan comes together“).

First create a text file in your ‘Home’ folder containing a list of all your applications of your favorite (studio ;-)) installation. Open a terminal window:

sudo dpkg –get-selections > app-backup-list.txt


Next copy the file “app-backup-list.txt” from your ‘Home’ folder to your freshly formatted machine (your ‘Home’ folder will do ;-). Now to restore your applications, open a terminal window:

sudo dpkg –get-selections < app-backup-list.txt
sudo apt-get -y update
sudo apt-get dselect-upgrade


Suggestions for improving this article are welcome, please let me know and drop me a line .

Running Google Sketchup on Wine

You can run “Sketchup the 3D modelling software for everyone from Google” in Wine on Ubuntu. In this article I’ll try to explain how to get by the error “Sketchup was unable to initialize OpenGl”.

This error is relatively easy to get by.

  • Go to your “Home folder and make sure you see all your hidden files (in Gnome File Browser go to View and select “Show Hidden Files”.
  • Go to .wine folder
  • Open the file user.reg with notepad or Gedit
  • Search for GLConfig
  • Change de “HW_OK”=dword:00000000 to “HW_OK”=dword:00000001
  • Save the changes you made in the file user.reg

Now you’re ready to start Google Sketchup on Wine


Suggestions for improving this article are welcome!

Please let me know and drop me a line.

How to do a ping sweep in Linux

Sometimes it can be handy to ‘see’, what is around you on a network. For instance when you’re using DHCP on a network and you want to find which addresses are already taken. Or you want to check whether specific machines are up and running… Of course there are various tools you can install or use, but there are times that you just can’t reach for the right tool(s)…

You don’t want to do a ping sweep for nothing ;-)…

Of course there is a way of ping sweeping from the command line 🙂 By simply using the ‘FOR’, ‘PIPE’ and ‘GREP’ commands in a clever way.

for i in {1..254}; do ping -c 1 -W 1 192.168.1.$i | grep ‘from’; done

Naturally you can stop the ping sweep by entering Ctrl+z


Suggestions for improving this article are welcome, please let me know and drop me a line.

Use the WiiMote as a mouse in Linux

In my search for using the WiiMote as a musical instrument I found out it’s rather easy to setup your system to use the WiiMote as a mouse. Some of the steps needed to configure your system are actually the same, for being complete I’ll document all steps in this article.


Prerequisites (what you need to get it working):

  • Hardware
    • Computer able to run Ubuntu (I prefer Ubuntu Studio).
    • Bluetooth adapter (an adapter for using an open wireless protocol for exchanging data over short distances).
    • Wii Remote (also known as a wiimote, the primary controller for Nintendo’s Wii console)
  • Software
    • Ubuntu Studio (a multimedia editing/creation flavor of Ubuntu. It’s built for the GNU/Linux audio, video, and graphic enthusiast or professional)
    • CWiid(a collection of Linux tools written in C for interfacing to the Nintendo Wiimote)


Allright let’s get started :

Where possible I’ll provide the links to the necessary download locations.

You either have an pre installed bluetooth adapter in your computer or you can buy one in the shop (make sure it’s linux compatible).

As we’re using Ubuntu Studio, you can download the DVD Image and burn it to DVD.

You should think over what you going to do with your configuration, repartition your hard disk (or don’t), and install Ubuntu Studio

Make sure you’ve got a Wii Remote with enough power.


Open a terminal session in Ubuntu then copy and paste the following instructions:

sudo apt-get install libcwiid1 lswm wmgui wminput


Sometimes it comes in handy to know your gear so at this point, you can turn on the Wii remote to scan by pressing 1 and 2 simultaneously (all the lights will flash) then running:

hcitool scan


After you installed the necessary packages, you we’ll be able to give it the first shot by entering wmgui in a terminal window



Select “connect” from the file menu, press 1+2 on the Wiimote when prompted then click OK. Lights and rumble can be turned on and off from the controls menu, and which inputs are displayed from the settings menu. Using this, you can test the IR camera (I didn’t have infrared lights so I used a candle (BE VERY CAREFULL WITH OPEN FIRE IN AND AROUND YOUR LIVING AREA not to set the place on fire)), the accelerometers and check the inputs from the Nunchuck or Classic Controller.


Now you know basic set-up is working (your computer running Ubuntu Studio, your bluetooth adapter, your Wii Remote and the “connection” between it all).


From here on things are different, from the article about using the WiiMote as a musical instrument (check here).


For using the WiiMote as a mouse we need a mouse emulator (a small program that converts WiiMote output to mouse output) the one we are going to use is called uinput.

Before being able to use uinput we need to load it into the kernel, this can be done in two ways: manually after every reboot or we can load it every time the system starts up.



Copy and paste the following instructions:

sudo modprobe uinput


Loading it up every time the system starts up by adding uinput into /etc/modules:

gksudo gedit /etc/modules


Edit and save /etc/modules (mine looks like this)


Now reboot your system if you choose the latter option (editing /etc/modules).


We need the MAC-address of our WiiMote, there are multiple ways of getting this address:

hcitool scan

Now we can start doing our mouse thing by telling wminput to listen to the right WiiMote (telling the WiiMote to listen to which MAC address) (make sure you use your own MAC-address !!!):

sudo wminput 00:24:F3:E3:E6:CD


(if you get the following error “unable to open uinput” try using the wminput command in SU mode as you didn’t have enough rights to use uinput).


Now you’re ready to rock and roll!!


Two more things:

  • You can close the terminal window if you want to
  • If you’re ready using your WiiMote press the off button on your Wiimote.


Suggestions for improving this article are welcome, please let me know and drop me a line!