Posts Tagged ‘ubuntu’

hp 2133 update

Wednesday, June 4th, 2008

I was going to use SLED10 for a while on my hp2133 mini-note, but getting updates is problamatic. If you call HP support within 30 days they will send you a SLED10 restore CD at no cost. This CD is one of those boot-and-wipes-the-disk variety, so be aware. This CD is different from the ISO you can download from HP (here).

First up — installing Ubuntu/Hardy. On the boot prompt, you’ll have to add xforcevesa or the video will flake out. Using an external USB CD/DVD drve, the standard Ubuntu CD boots and starts the install, but after resizing the SLED10 partition down to 10G, the install fails with the following message:

Ubuntu 8.04 install error

Next up — Fedora 9. Again using an external CD, the install starts up well, but then soon fails when trying to locate the CD containing the install RPMs. I has been a while since I’ve used Red Hat on the desktop, so I’ll give Fedora another try later. (And it will make the Red Hat folks at GNHLUG happy ;-)

Next up — Ubuntu/Hardy Alternative Install CD. This version uses the tried-and-true debian install process and this time it works great!

With the stock Ubuntu/Hardy it finds and configures the wired network, graphics, audio (except the earphone jack), MMC disk. The Broadcom Wifi does not however and needs to use the ndiswrapper with firmware downloaded from the hp.com support site.

The post-install steps for Ubuntu/Hardy to get the WiFi working can be found on “WifiDocs/Driver/bcm43xx/Feisty No-Fluff”.

For the hp 2133, the steps are:

  1. I found on my Ubuntu/Hardy that the bcm43xx module was already on the blacklist so the first line wasn’t necessary. See line 32 of /etc/modprobe.d/blacklist. You’ll still need to install ndiswrapper-utils-1.9 and create a tmp directory to unpack the wireless firmware.


    # NOT NEEDED echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist

    sudo apt-get install ndiswrapper-utils-1.9
    mkdir ~/bcm43xx; cd ~/bcm43xx

  2. Since my hp 2133 has a Broadcom Corporation BCM4312 802.11a/b/g (rev 02), use Step 2a which downloads from Hewlett-Packard the Windows firmware for the Broadcom Corporation BCM4312 802.11a/b/g (rev 02)


    sudo apt-get install cabextract
    wget ftp://ftp.compaq.com/pub/softpaq/sp34001-34500/sp34152.exe
    cabextract sp34152.exe

  3. Step 3 is to install the firmware using ndiswrapper. My /etc/network/interfaces file already had an entry to the ‘lo’ device, so didn’t need to do that. Also ran into problems trying to load the modules on boot, so I don’t load ndiswrapper from /etc/modules. Also I didn’t bother to edit /etc/default/wpasupplicant because on my home wireless network. I don’t use authentication — wireless access is locked down by MAC address at the wireless router.


    sudo ndiswrapper -i bcmwl5.inf
    ndiswrapper -l
    sudo depmod -a
    sudo modprobe ndiswrapper

    #NOT NEEDED sudo cp /etc/network/interfaces /etc/network/interfaces.orig
    #NOT NEEDED echo -e 'auto lo\niface lo inet loopback\n' | sudo tee /etc/network/interfaces

    sudo ndiswrapper -m

    #NOT NEEDED by me echo 'ndiswrapper' | sudo tee -a /etc/modules
    #NOT NEEDED by me echo 'ENABLED=0' | sudo tee -a /etc/default/wpasupplicant

  4. As the wiki page mentions, there is a bug in Ubuntu/Hardy related to the ndiswrapper and ssb loadable modules, so after every boot, I do the following steps which I put in a little script, enable-wifi


    #!/bin/bash
    # This is ~/bin/enable-wifi
    ndiswrapper -l
    sudo depmod -a
    sudo modprobe ndiswrapper
    sudo rmmod ssb
    sudo rmmod ndiswrapper
    sudo modprobe ndiswrapper
    sudo modprobe ssb

    After a few seconds the NetworkManager applet will start looking for wifi networks and automatically connect.

    I’ve tried following the wiki’s instructions on making it permanent, but found that there were nasty kernel messages about the ssb loadable module dying and preventing ndiswrapper from loading.

The next post install step is to fix the audio driver. The sound card works okay, but doesn’t turn off the speakers when a headphone is plugged in. The other great wiki page, https://wiki.ubuntu.com/LaptopTestingTeam/HP2133 has the solution. Essentially download and install alsa-driver-1.0.16_linux-headers-2.6.24-17-generic-1_i386.deb.

Why hasn’t a fix been pushed into the repositories is unclear.


sudo mv /lib/modules/2.6.24-17-generic/ubuntu/sound/alsa-driver \
/lib/modules/2.6.24-17-generic.ubuntu.sound.alsa-driver.bak
sudo ln -s /lib/modules/2.6.24-17-generic/kernel/sound/ \
/lib/modules/2.6.24-17-generic/ubuntu/sound/alsa-driver

Although it may look like a lot of work, it wasn’t that difficult. If you have problems, check back to the source wiki pages.

How to connect a Samsung Flipshot U900 to Ubuntu/Linux

Thursday, April 3rd, 2008

First purchase a USB cable that works with the Samsung Flipshot U900 — I ordered one from 3GCables.com for $8.95 (and $6.95 s/h)

The default setting for the phone was to ask how it should present itself when connected via USB. The options are “Ask on Plug”, “Copy To/From Card”, “Sync Music” or “Modem”
Since I’m always going to use it like a usb-storage device, I changed it to always use “Copy To/From Card”.

  • 5. Settings & Tools
  • 8. USB Auto Detection
  • Change to “Copy From/To Card’.

Now you can copy files to /media/disk. My top level directory looks like this:


$ ls /media/disk/
my_files my_flix my_music my_pix my_sounds

USB to Serial Adapter for Ubuntu

Monday, June 18th, 2007

I recently received an updated laptop at work — a nice hp nc6400 notebook. Unlike the previous nc6000, this new on does not include a serial port which is problematic for the Garmin to serial cable I have. I ordered from CompUSA a USB to Serial Adapter by CablesToGo (model 26886) and it works great out of the box on Ubuntu/Feisty.

All I needed to change is the serial port to use, so:

gpsbabel -t -i garmin -f /dev/ttyS0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyS0 -o gpx -F waypoints.gpx

becomes:

gpsbabel -t -i garmin -f /dev/ttyUSB0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyUSB0 -o gpx -F waypoints.gpx

FWIW, it uses the pl2303 kernel module.

gpicsync on Ubuntu/Feisty

Saturday, April 28th, 2007

GPicSync is a very nice cross-platform tool to match up photos with GPS locations. However it requires a package that isn’t included by default by Ubuntu/Feisty.

1. Download GPicSync from http://code.google.com/p/gpicsync/

2. Unpack it: tar zxf Linux-GPicSync-0.91.tar.gz

3. Move to the directory it created: cd Linux-GPicSync-0.91

4. Set the GUI and command line versions of the program executable: chmod +x gpicsync-GUI.py gpicsync.py

5. Install the Ubuntu/Feisty package python-wxgtk2.8 which provides the python bindings for the wx library and the exiftool: sudo apt-get install python-wxgtk2.8 libimage-exiftool-perl

6. Run the program and start geotagging photos: ./gpicsync-GUI.py

Convert audio from WMV files to MP3

Sunday, February 25th, 2007

A while back some radio station website or somewhere had a video in WMV of KT Tunstall performing Black Horse and the Cherry Tree and I wanted the music for a plane ride today.

Usually I’d use vsound, I’ve been able do save the audio track of a video in realplayer, but for some reason it wasn’t working for gxine.

Anthony Barker’s blog had the concise steps needed to use mplayer to grab the sound.


mplayer -dumpfile outfile.dat -dumpstream some-video.wmv

mplayer -vo null -vc null -ao pcm -ao pcm:file=audio.wav outfile.dat

lame audio.wav audio.mp3

rm outfile.dat

Building F-Spot from source on Ubuntu

Thursday, February 8th, 2007

The instructions How to Build F-Spot from HEAD are mostly correct for Ubuntu/Edgy and Ubuntu/Feisty, but leave out a number of packages that need to be installed before autogen.sh is run.

Be sure to also install the following packages:

sudo apt-get install mono-devel \
libglib2.0-dev libmono-dev libmono-system-runtime2.0-cil \
libexif-dev libgnomeui-dev liblcms1-dev libgphoto2-2-dev \
libusb-dev

And instead of make install, use make -k install since it will attempt to run scrollkeeper which attempts to update /var/lib/scrollkeeper/scrollkeeper_docs.

The offending line is: scrollkeeper-update -p /var/lib/scrollkeeper -o /home/marc/unstable/f-spot/share/omf/f-spot

Ubuntu/Edgy & Belkin Wireless G (F5D7000) ver 5000

Tuesday, January 23rd, 2007

The Belkin Wireless G PCI Card (F5D7000 v.5000) works great out of the box with Ubuntu/Edgy.

It uses that ath_pci kernel module and here is the relevant bit from /var/log/messages:

[17179594.568000] wlan: 0.8.6.0 (EXPERIMENTAL)
[17179594.576000] ath_rate_sample: 1.2
[17179594.596000] ath_pci: 0.9.6.0 (EXPERIMENTAL)
[17179594.600000] ACPI: PCI Interrupt 0000:02:0b.0[A] -> GSI 22 (level, low) -> IRQ 185
[17179595.180000] Build date: Jun 15 2006
[17179595.180000] Debugging version (IEEE80211)
[17179595.180000] ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
[17179595.180000] ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[17179595.180000] ath0: H/W encryption support: WEP AES AES_CCM TKIP
[17179595.180000] ath0: mac 7.8 phy 4.5 radio 5.6
[17179595.180000] ath0: Use hw queue 1 for WME_AC_BE traffic
[17179595.180000] ath0: Use hw queue 0 for WME_AC_BK traffic
[17179595.180000] ath0: Use hw queue 2 for WME_AC_VI traffic
[17179595.180000] ath0: Use hw queue 3 for WME_AC_VO traffic
[17179595.180000] ath0: Use hw queue 8 for CAB traffic
[17179595.180000] ath0: Use hw queue 9 for beacons
[17179595.180000] Debugging version (ATH)
[17179595.180000] ath0: Atheros 5212: mem=0x41000000, irq=185


$ sudo lspci -vvx
....
0000:02:0b.0 Ethernet controller: Atheros Communications, Inc.: Unknown device 001a (rev 01)
Subsystem: Belkin: Unknown device 700c
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 0x08 (32 bytes)
Interrupt: pin A routed to IRQ 185
Region 0: Memory at 41000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 8c 16 1a 00 06 01 90 02 01 00 00 02 08 a8 00 00
10: 00 00 00 41 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 01 50 00 00 99 17 0c 70
30: 00 00 00 00 44 00 00 00 00 00 00 00 05 01 0a 1c

Ubuntu/Edgy & Belkin Wireless G (F5D7010) ver 5100

Saturday, January 20th, 2007

The Belkin Wireless G Notebook Card (F5D7010) ver 5100 works great out of the box with Ubuntu/Edgy.

Unfortunately in the MythTV system I want it for has an old PCI/PCMCIA adapter that only accepts 16-bit PCMCIA cards, so this 32-bit one won’t fit.

Below is some info that my help you debug your configuration:

It uses the ath_pci kernel module.


$ lsmod|grep -i ath
ath_pci 97184 0
ath_rate_sample 15616 1 ath_pci
wlan 204764 4 wlan_scan_sta,ath_pci,ath_rate_sample
ath_hal 192080 3 ath_pci,ath_rate_sample

The relevant part of /var/log/messages:


Jan 23 20:54:31 localhost kernel: [17180392.280000] pccard: CardBus card inserted into slot 1
Jan 23 20:54:31 localhost kernel: [17180392.284000] PCI: Enabling device 0000:06:00.0 (0000 -> 0002)
Jan 23 20:54:31 localhost kernel: [17180392.284000] ACPI: PCI Interrupt 0000:06:00.0[A] -> Link [C17E] -> GSI 11 (level, low) -> IRQ 11
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: H/W encryption support: WEP AES AES_CCM TKIP
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: mac 7.8 phy 4.5 radio 5.6
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 1 for WME_AC_BE traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 0 for WME_AC_BK traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 2 for WME_AC_VI traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 3 for WME_AC_VO traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 8 for CAB traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 9 for beacons
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Atheros 5212: mem=0x16000000, irq=11


$ sudo lspci -vvx
...
06:00.0 Ethernet controller: Atheros Communications, Inc. AR5005G 802.11abg NIC (rev 01)
Subsystem: Belkin Unknown device 701d
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 128 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 16000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 8c 16 1a 00 06 00 90 02 01 00 00 02 20 a8 00 00
10: 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 01 50 00 00 99 17 1d 70
30: 00 00 00 00 44 00 00 00 00 00 00 00 0b 01 0a 1c

Seven and a half terabyte of storage?!

Friday, January 12th, 2007


$ sudo sshfs marc@192.168.1.200:/home/marc -o allow_other /media/homeserver/home/marc
Password:
$ df -h /media/homeserver/home/marc/
Filesystem Size Used Avail Use% Mounted on
sshfs#marc@192.168.1.200:/home/marc
7.5T 0 7.5T 0% /media/homeserver/home/marc
$

Most exciting upgrade to Ubuntu/Edgy

Friday, October 27th, 2006

This morning I had a free hour and this is how I upgraded my hp compaq nc6000 laptop from Ubuntu/Dapper to Ubuntu/Edgy. After updating /etc/apt/sources.list to point to the edgy repos…

sudo apt-get update && sudo apt-get -dy dist-upgrade && sudo apt-get dist-upgrade

Well there was a conflict between x11-common and xinit which both wanted to provide the man page XSession.5.gz.

11:45am Wendy calls me and says the school just called and Griffin is in a ambulance on the way to the hospital and to meet her there. He accidentally ate something that contained pineapple — to which he has a severe allergic reactions to.

11:49 I’m on the road approaching the hospital and get a call on my cell phone. The woman says she is the school nurse and starts saying my son is having an allergic reaction. I interrupt her and say ‘Yes, I just talked to my wife and I’ll meet the ambulance at the hospital’. She says ‘Well, your son is sitting here with me in my office.’ Then we realize she is the school nurse from a different chool and is talking about Trevor who is having an allergic reaction! Trevor had his bee/wasp allergy shot earlier this morning and is reacting to that. Since he too was having difficulty breathing, he too is sent via ambulance to the ER.

12:05 — Wendy and I both arrive at the ER before either of the kids do. Explain to the ER admitting person that yes both boys are ours, they are coming from different schools, with the same problem (allergic reaction, breathing difficulty), but different reasons (food allergy vs reaction to allergy desensitizing injection).

Long story short, after evaluation, some benedril and alburterol breathing treatments, we were sent home.

Around 3pm I worked through a few iterations of apt-get update, apt-get dist-upgrade, apt-get -f install, aptitude dist-upgrade, I have a fully upgraded from Ubuntu/Dapper to Ubuntu/Edgy.

There are a bunch of new, interesting packages to take a look out. The list is here: EdgyConfiguration

Now that was a stressful upgrade.