Ubuntu Hardy sound card configuration
I am running Ubuntu Hardy on my Dell XPS M1530 laptop. I’ve had no major sound issues on the laptop except one. All programs using sound seem to lock each other out from time to time. This was only mildly annoying and I have lived with it for some time.
Today I decided to get sound working on my Virtual Box Vista VM and so I discovered that it worked well, but I was then unable to play sounds through my Ubuntu host. And so I decided to fix the problem once and for all.
Below is the procedure I went through and it seems to have fixed the problem.
1. Install the following additional packages:
-
sudo apt-get install libao-pulse libasound2-plugins
2. Edit the /etc/asound.conf file and make sure it looks like the following (create it if it does not exist):
-
pcm.pulse {
-
-
type pulse
-
-
}ctl.pulse {
-
-
type pulse
-
-
}
-
-
pcm.!default {
-
-
type pulse
-
-
}
-
-
ctl.!default {
-
-
type pulse
-
-
}
3. Edit the /etc/libao.conf and make sure it looks like the following (create it if it does not exist):
-
default_driver=pulse
4. Go to System->Preferences->Sound and set the “PulseAudio Sound Server” for first four options and set the Default mixer to your sound card name. In my case it was “HDA Intel (Alsa mixer)”
5. Install a few more useful audio packages:
-
sudo apt-get install libflashsupport padevchooser pulseaudio-module-x11 pulseaudio-module-hal
6. Making sure the correct libSDL is installed :
-
sudo apt-get install libsdl1.2debian libsdl1.2debian-alsa
-
-
# make sure the following sources are in your /etc/apt/sources.list
-
# deb http://ppa.launchpad.net/zman0900/ubuntu hardy main
-
# deb-src http://ppa.launchpad.net/zman0900/ubuntu hardy main
-
-
# update apt and install libSDL
-
sudo apt-get update
-
sudo apt-get upgrade
-
sudo apt-get install libsdl1.2debian-pulseaudio
7.Go to Applications->Sound & Video->PulseAudio Device Chooser.
Once the program is running it will show up as a plug in notification area.
Left click the plug icon, click Preferences, and make sure “Start applet on session login” check box is checked.
8.Restart and all should be well.
Hope this works for someone else, it worked well for me.
No commentsUgrading Ruby On Rails to 2.2.2 on Ubuntu Hardy 8.10
I’ve decided to get the latest Ruby on Rails installed on my development laptop.
As usual I first updated the gem system by running:
-
sudo gem update –system
This promptly told me there was nothing to update (I had version 1.2.0 installed)
Finally I installed the latest Ruby on Rails framework by running
-
sudo gem install rails
Rails installed ok and I even got to create a new application. When I went to start the server by running
-
script/server
I got the following error:
-
Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update –system` and try again.
Now that was the first thing I did and I got told there was nothing to update. Well this is a bug in ruby gems, and to get around it do the following:
-
# this downloads the latest gems update package
-
sudo gem install rubygems-update
-
-
# this actually performs the update
-
sudo update_rubygems
That did it for me, and so am happily running Ruby on Rails 2.2.2
1 commentUbuntu, Sun VirtualBox and bridged networking
I am running VirtualBox on my laptop (host OS is Ubuntu Hardy). Currently I use VirtualBox to run a Windows Vista Ultimate guest OS (for all those times when I need windows).
One annoying thing about VirtualBox is that it does not give you an easy way to setup a network bridge like vmware does. So after digging around the web I found the following script does the job nicely.
-
#!/bin/shUSERNAME=user # login name of HOST system
-
DHCP=0 # set to 1 to use dynamic ip for bridge
-
IP_ADDRESS=192.168.0.4 # static ip address of bridge (only used if DHCP set to 0)
-
tunctl -t tap1 -u $USERNAME
-
brctl addbr br0
-
ifconfig eth0 0.0.0.0 promisc
-
brctl addif br0 eth0
-
if [ DHCP = 1 ]; then
-
dhclient br0
-
else
-
ifconfig br0 $IP_ADDRESS
-
fi
-
brctl addif br0 tap1
-
ifconfig tap1 up
-
chmod 0666 /dev/net/tun
This script must be run with elevated privileges (sudo). Since I connect to different networks at home and at work (home uses static IP, work uses DHCP), I created two scripts, one for home and one for work. Within Ubuntu I use wicd as my network manager and it has the ability to run scripts before/after connect, etc… but I can’t seem to get it to execute the above script automatically when I pick a profile, so for now I have to run the script manually.
3 commentsDell XPS M1530 running Ubuntu Hardy
A couple of weeks ago I finally got a new laptop a Dell XPS M1530.

I’ve record a screencast showing some of the great interface features that come with Ubuntu linux, mainly the compiz environment. Windows Vista is running using Sun VirtualBox.
1 commentWhy i love linux
Well today I have to say my love for Linux has deepened just that much further.This morning my Linux box died. The motherboard got fried, I am talking smoke and all. The machine has been up for about 6 months straight and I think the dust finally killed it.Anyway… I’ve been extremely busy over last few weeks and this was the last thing I needed. So I go down to my local computer hardware shop, got myself new motherboard, CPU and RAM. The Linux box has AMD processor and MSI motherboard with everything onboard. The new CPU is Intel based and I got an Asus motherboard, also with everything on board. So I replace the hardware in the case, plug in the old hard drive and my Fedora Core 3 (yeah I know I just downloaded 5, will update in a week or so) Linux just detected all the changes and everything worked like nothing happened.Last time I tried that with Windows I had to reinstall everything, and lost a full day of work.Linux vs Windows… another example where marketing beats quality.
No comments