Monthly Archives: April 2009

No LFE (Low-Frequency Effects) in Ubuntu 9.04 (Jaunty Jackalope)

There is a new catch if you want to enable 5.1 surround sound in Ubuntu 9.04. First you need to follow the same steps like you did for Hardy Heron. There is an old post I wrote about it.
In this new version of PulseAudio they don’t synthesize an LFE signal anymore by default.
They introduced this new option called disable-lfe-remixing.

When upmixing or downmixing ignore LFE channels. When this option is on the output LFE channel will only get a signal when an input LFE channel is available as well. If no input LFE channel is available the output LFE channel will always be 0. If no output LFE channel is available the signal on the input LFE channel will be ignored. Defaults to “on”.

The solution to get you bass back is to set this option to no.
As a result, here are the steps you need to take:

sudo joe /etc/pulse/daemon.conf

Uncomment the line containing:

default-sample-channels = 2

and replace '2' with '6' (if you have a 7.1 card, replace '2' with '8').
Next, set disable-lfe-remixing option to no

disable-lfe-remixing = no

Restart your computer and you’re in business.
NOTE: Documentation for this article is taken from here and here.

Apply themes to GTK apps running as root

When you install custom GTK themes, applications running as root will still look ugly.
To make your current installed themes available to the root account as well, you just need to run these in your terminal:

sudo ln -s ~/.themes /root/.themes
sudo ln -s ~/.icons /root/.icons
sudo ln -s ~/.fonts /root/.fonts

Enjoy!

Songbird: glibc 2.8 detects invalid free() pointer

Sometimes I use Songbird to listen to my music files or internet radio. On some systems running Ubuntu 8.10 it does not run. The error is a known bug reported by some people.
The resolution is simple. Just remove libvisual-0.4-plugins.

sudo apt-get purge libvisual-0.4-plugins

Enjoy your music!

Bash script to retrieve info about current playing track on ARM.FM

I am a big fan of ARM.FM.
Their playlist contains the freshest tracks in the dance music.
I wanted to keep track of the tunes I like the most, so I made a little script to update a file on my desktop with the name of the track currently playing.
Here is the script, you may use and/or modify it as you please.

#!/bin/bash
 
## arm_fm.sh 1.0
## Keep track of the best tracks playing on http://armageddonfm.net/
## It creates the file 'tracks' on your desktop
##
## Also, the file _output.html can be used on your site
## to display last 3 tracks played on ARM FM
 
 
curl -s http://armageddonfm.net/ -o _arm.txt
start_line=`grep -n 'current' _arm.txt | cut -f1 -d':'`
html_tag='
<table align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
 
      <div style="width: 250px; margin: 20px 0px 0px 0px;">
        <div style="margin: 10px 0px 0px 0px;">
          <table cellspacing="0">
                                          <tr>
              <td style="padding: 10px;"></td>
'
echo $html_tag > _output.html
sed -n "$start_line,81p" _arm.txt >> _output.html
 
sed -i -e 's/<img src="\/tpl\/images\/dot.jpg">//g' _output.html
 
sed -n '2,2p' _output.html > _temp
sed -i -e 's/              <td valign="top" style="border: 1px solid #ccc; border-top: 0px; border-right: 0px; padding: 10px; font-size: 11px; color: #444"><b><font style="color: #900">//g' _temp
sed -i -e 's/<\/font><\/b><br> //g' _temp
sed -i -e 's/<br><\/td>//g' _temp
sed -i -e 's/  (current)/ - /g' _temp
 
artist=`cut -f1 -d '-' _temp`
track=`cut -f2 -d '-' _temp | sed 's/^ *//'`
 
echo $artist - $track >> $HOME/Desktop/tracks
rm _output.html _arm.txt _temp

Install Django on Ubuntu 8.10

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
To install it on your Ubuntu, follow the next steps:

1. Install python (if you have it installed, skip this step)

sudo apt-get install python

2. Download the tarball from the Django Project website. You can download this file to your home directory.

cd
wget http://www.djangoproject.com/download/1.0.2/tarball/
tar xzvf Django-1.0.2-final.tar.gz

3. Now we can just move this entire package to somewhere logical. You can move it anywhere you like, but remember to modify the links accordingly. I use /usr/local/lib/.

sudo mv Django-1.0.2-final/  /usr/local/lib/django-1.0.2/

4. Link to it from the Python site-packages directory, and create a link to the django-admin.py executable.

cd /usr/local/lib/django-1.0.2/
sudo ln -s `pwd`/django /usr/lib/python2.5/site-packages/django
sudo ln -s `pwd`/django/bin/django-admin.py /usr/local/bin/

5. Test it by changing to your home directory and running django-admin!

django-admin.py --version

You should see this:

1.0.2 final

6. Happy programming!

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close