I decided to experiment with the cutting edge development version of Ubuntu, feisty fawn by installing it on my laptop. It didn’t go to well at all! The updater bottomed out in style so I tried to use sudo to gain root privileges and it segfaulted. Oh noes with no way to gain root and all my applications segfaulting I rebooted, surprise surprise it refused to boot. Oh well… at least I have that USB IDE 2.5″ enclosure so I can backup the few bits of data I need. But now I got to apply all the tweaks I applied, sigh.
Archive for the ‘Ubuntu’ Category
Laptop Upgrade
Tuesday, January 30th, 2007Disable Screensaver Daemon
Sunday, January 21st, 2007This little script disables the Gnome power management and screensaver when any listed programme is run, I use it with mplayer.
Medibuntu - PLF Replacement
Sunday, January 14th, 2007I found Medibuntu as a replacement for Ubuntu PLF repository, they provide very simple installation instructions. My one line installation instructions are below:
wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add - && sudo wget http://medibuntu.sos-sts.com/sources.list.d/`lsb_release -c | awk '{ print $2; }'`.list -O /etc/apt/sources.list.d/medibuntu.list && sudo apt-get update glxgears fps
Sunday, January 14th, 2007To get glxgears to display FPS with X.org versions greater than 7.0 you need to execute it with an under-documented parameter, either:
$ glxgears -iacknowledgethatthistoolisnotabenchmark
or
$ glxgears -printfps
will do.
IBM ThinkPad X22 Ubuntu 6.10 Tweaking
Saturday, January 13th, 2007I have made some adjustments to the configuration of my Thinkpad, I now only see one error in Xorg.0.log, far better than the 20 or so each startup.
In X I removed touchscreen and touchpad support as my thinkpad has neither of them, and they were willing the logs with errors. Next was to disable hardware 3d acceleration rather than allowing X to attempt it, my thinkpad doesn’t have enough graphics memory to use DRI. I also fixed some S3 standby issues with regards to power consumption in the X config and my adding radeonfb to /etc/modules
I also prevented some irrelevant kernel modules from loading things like ACPI drivers for laptops made by other manufacturers, etc.
Sources:
http://www.cs.utexas.edu/users/walter/geek/linux-t40.html
http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work
Sound Juicer Ripping to MP3
Saturday, January 13th, 2007This is the gstreamer pipeline I am using in Sound Juicer to rip CDs to MP3.
audio/x-raw-int,rate=44100,channels=2 ! lame name=enc preset=1001 bitrate=192 vbr=0 ! id3v2mux
Note: Use gst-inspect-0.10 to view a plugins properties and arguments.
Dell Axim X5 Setup
Tuesday, November 21st, 2006This is a draft document
I will be discussing the setup of my Dell Axim X5 on Ubuntu.
This guide assumes you are using a USB cable for connectivity.
- Plug the Axim, powered up, into the USB connector.
Run ‘dmesg | tail’ which should produce output relating to Pocket PC
- If you want internet access on your Pocket PC you will need to obtain the DNS servers you use, this can be done with this little snippet.
$ cat /etc/resolv.conf | grep "^nameserver" | awk '{ print $2; }' | xargs - Next we need to get some packages.
$ sudo aptitude install synce-serial synce-dccm
When configuring synce-serial I used the following values:
/dev/ttyUSB0 192.168.43.1 192.168.43.2 144.173.6.71 144.173.6.6
- Now we should test synce can connect to the device
$ dccm $ sudo synce-serial-start
With a little luck the connection should appear on your Pocket PC and you are now away. Next we proceed to get the device to auto connect for our user, this is a little more in depth.
- I created a collection of scripts which I keep in ~/bin/ that control the Pocket PC connection.
- ~/bin/pda_connect
#!/bin/bash if [ -f $($HOME/bin/pda_disable file) ]; then exit 1; fi dccm > /dev/null sudo synce-serial-start > /dev/null
- ~/bin/pda_disconnect
#!/bin/bash killall dccm > /dev/null sleep 2
- ~/bin/pda_disable
#!/bin/bash FILE="/tmp/${USER}_pda_disable"; if [ "$1" == "file" ]; then echo $FILE; else touch $FILE; fi - ~/bin/pda_enable
#!/bin/bash FILE=$(pda_disable file); rm $FILE;
- ~/bin/pda_connect
-
Next, we need to make some adjustments to the sudoers file so that the scripts run without a password prompt. Open the file for editing, you must use the visudo command.
$ sudo visudo
To the file add after
# Cmnd alias specification
:Cmnd_Alias POCKETPC = /usr/bin/synce-serial-start, /usr/bin/synce-serial-abort
Then add at the end of the file, replacing
chris
with your own username.# chris can start/stop synce chris ALL=NOPASSWD: POCKETPC
- Now to tie it all together we modify the udev daemons configuration files so that it automatically connects your device.
$ sudo nano /etc/udev/rules.d/z10_synce.rules
It should be filled out like this:
BUS!="usb", ACTION!="add", KERNEL!="ttyUSB*", GOTO="synce_rules_end" SYSFS{idVendor}=="413c", SYSFS{idProduct}=="4001", RUN+="/usr/bin/sudo -H -u chris /home/chris/bin/pda_connect" LABEL="synce_rules_end"
Edgy DVD Playback
Sunday, September 17th, 2006I tried to play a DVD last night on my newly upgraded Ubuntu, it was horrible. I checked the usual stuff DMA was enabled it was, looked at the debugging info from Xine which didn’t really help.
Google is my friend in times of need, turns out I need to disable the X composite extension for frglx (the ATi binary driver) to work properly. An hour and several reboots later this simple fix fixed it, always they way.
Ohh and I found this page useful, but I prefer to keep it simple.
Life on the Edge
Saturday, September 16th, 2006Yes you guessed it, or not more likely, I upgraded my Ubuntu installation to the latest unreleased version 6.10 The Edgy Eft. This release is supposed to contain new features which are not as finely tuned as Dapper Drake was I have seen nothing too major considering this is essentially still an Alpha version. My calendar applet has broke meaning I cannot remind myself when I leave for university but thats so well implanted I cannot forget it now :D. The only real trouble I had was the actual upgrade the upgrade tool bottled it and left me with a half upgraded system in a totally confused state, with a bit of dpkg magic I got things moving again.
So, to conclude, I am impressed with this latest version of Ubuntu I just hope the calendar applet gets sorted out.
cups-pdf
Friday, July 21st, 2006I just installed cups-pdf, so I can print pretty PDFs, on my workstation, sadly it did not work quite out of the box. Ubuntu forums yeilds the answer. The following command can be used to install cups-pdf and then enable it, you can then install it as a detected printer from the Gnome printer control.
$ sudo apt-get install cups-pdf & sudo chmod u+s /usr/lib/cups/backend/cups-pdf
