Tue, 09 Feb 2010

Amarok 1.4 on Ubuntu 9.10


Keywords: ubuntu 9.10 amarok 1.4

I still don't like Amarok 2, so here's how I installed Amarok 1.4 on Ubuntu 9.10.

wget 'http://ppa.launchpad.net/bogdanb/amarok14/ubuntu/pool/main/a/amarok/amarok14-common_1.4.10-0ubuntu3~ppa4_all.deb'
wget 'http://ppa.launchpad.net/bogdanb/amarok14/ubuntu/pool/main/a/amarok/amarok14-engine-xine_1.4.10-0ubuntu3~ppa4_i386.deb'
wget 'http://ppa.launchpad.net/bogdanb/amarok14/ubuntu/pool/main/a/amarok/amarok14_1.4.10-0ubuntu3~ppa4_i386.deb'
aptitude install ruby libtunepimp5 libqt3-mt libnjb5 libmysqlclient15off libifp4 kdelibs4c2a libtunepimp5-mp3
dpkg -i amarok14-common_1.4.10-0ubuntu3\~ppa4_all.deb
dpkg -i amarok14-engine-xine_1.4.10-0ubuntu3\~ppa4_i386.deb
dpkg -i amarok14_1.4.10-0ubuntu3\~ppa4_i386.deb
apt-get install -f

[/software/amarok] permanent link

Fri, 05 Feb 2010

Ubuntu packages on a new system


Keywords: ubuntu package

Here are the packages I added to a new Ubuntu 9.10 system:

aptitude update
aptitude full-upgrade
aptitude install vlc
aptitude install ubuntu-restricted-extras
cd /etc/apt/sources.list.d/
wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list
apt-get -q update
apt-get --yes -q --allow-unauthenticated install medibuntu-keyring
apt-get -q update
aptitude install libdvdcss2 w32codecs
aptitude install mplayer
aptitude install vim-gnome exuberant-ctags
aptitude install nfs-client
aptitude install git-core git-doc gitk
aptitude install thunderbird ktorrent
aptitude install acroread acroread-fonts
aptitude install compizconfig-settings-manager
add-apt-repository ppa:tualatrix/ppa
aptitude update
aptitude install ubuntu-tweak

And install Google Chrome. And Amarok 1.4.

[/unix] permanent link

Thu, 28 Jan 2010

Configuring saslauthd


Keywords: ubuntu postfix saslauthd

Configuring saslauth with Ubuntu 9.10 required making /etc/postfix/sasl/smtpd.conf look like:

pwcheck_method: saslauthd
mech_list: plain login
saslauthd_path: /var/run/saslauthd/mux

The important missing part that I couldn't find in any tutorials or instructions is the /mux on the end of the saslauthd_path.

I also needed to add the following parts to /etc/postfix/main.cf:

smtp_tls_security_level = may
smtpd_tls_security_level = may
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtp_use_tls = yes

[/unix] permanent link

Sat, 26 Dec 2009

Ubuntu and Scanning and Video


Keywords: linux ubuntu 8.10 sane

Trying to run xsane from my HP 2133 resulted in the error message

Failed to open device 'v4l:/dev/video0'

As a hack, I presume, to get around this I commented out the line

/dev/video0

in /etc/sane.d/v4l.conf

[/unix/2133] permanent link

Fri, 25 Dec 2009

Picasa Hanging


Keywords: picasa hang places linux ubuntu wine

I have Picasa 3.6 running on Ubuntu under Wine. I managed to hit the Places tab and the whole thing hung. The way to fix it is to run

perl -i.bak -pe 's/places/people/' ~/.google/picasa/3.0/user.reg

[/software/picasa] permanent link

Sat, 26 Sep 2009

Splitting albums with cue files


Keywords: split cue flac mp3 linux ubuntu

In order to split a flac file of an entire album into its constituent parts:

$ sudo aptitude install cuetools shntool flac
$ shnsplit -o flac -t '%a %n %t' -f *.cue *.flac

You can do something similar with other lossless formats.

To do the same with an mp3 file:

$ sudo aptitude install mp3split
$ mp3split -c *.cue *.mp3

Obviously you'll need to be a little more specific if you have more than one album in a directory.

[/unix] permanent link

Mon, 09 Mar 2009

Ubuntu and Ati


Keywords: linux ubuntu 8.10 intrepid ibex ATI Technologies Inc RV370 [Radeon X300SE] X300

And yet another of the things that broke when I upgraded Ubuntu to 8.10 was the 3D graphics acceleration. lspci identifies my card as

01:00.0 VGA compatible controller: ATI Technologies Inc RV370 5B60 [Radeon X300 (PCIE)]
01:00.1 Display controller: ATI Technologies Inc RV370 [Radeon X300SE]

The X log file (/var/log/Xorg.0.log) tells me:

(II) fglrx(0): driver needs X.org 1.4.x.y with x.y >= 99.906
(II) fglrx(0): detected X.org 7.4.2.0
(EE) fglrx(0): atiddxDriScreenInit failed, GPS not been initialized. 
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed!                  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO)             *
(WW) fglrx(0): * no 3D acceleration available                *
(WW) fglrx(0): ********************************************* *

$ glxinfo
name of display: :0.0
X Error of failed request: BadRequest (invalid request code or no such operation)
  Major opcode of failed request: 159 (GLX)
  Minor opcode of failed request: 19 (X_GLXQueryServerString)
  Serial number of failed request: 10
  Current serial number in output stream: 10
$

It seems this was finally fixed this year with Catalyst 9.2. In accordance with the instructions I downloaded the installer from AMD and then installed it:

# apt-get remove --purge xserver-xorg-video-radeon fglrx-kernel-source fglrx-modaliases
# sh ati-driver-installer-9.2-x86.x86_64.run --buildpkg Ubuntu/8.10
# dpkg -i xorg-driver-fglrx_8.582-0ubuntu1_i386.deb \
          xorg-driver-fglrx-dev_8.582-0ubuntu1_i386.deb \
          fglrx-amdcccle_8.582-0ubuntu1_i386.deb \
          fglrx-modaliases_8.582-0ubuntu1_i386.deb \
          libamdxvba1_8.582-0ubuntu1_i386.deb \
          fglrx-kernel-source_8.582-0ubuntu1_i386.deb

I suppose it's only to be expected that after rebooting X wouldn't start. The X log file told me:

(II) LoadModule: "amdxmm"

(II) Loading /usr/lib/xorg/modules//amdxmm.so
(II) Module amdxmm: vendor="X.Org Foundation"
        compiled for 1.4.99.906, module version = 1.0.0
        ABI class: X.Org Server Extension, version 1.1

Backtrace:
0: /usr/X11R6/bin/X(xf86SigHandler+0x79) [0x80c3009]
1: [0xb7fde400]
2: /usr/lib/xorg/modules//amdxmm.so(amdxmmInit+0x245) [0xb61a4845]
3: /usr/lib/xorg/modules/drivers//fglrx_drv.so [0xb76a3bdc]
4: /usr/lib/xorg/modules/drivers//fglrx_drv.so(atiddxScreenInit+0x7b4) [0xb7699e94]
5: /usr/X11R6/bin/X(AddScreen+0x19f) [0x807137f]
6: /usr/X11R6/bin/X(InitOutput+0x206) [0x80aa536]
7: /usr/X11R6/bin/X(main+0x279) [0x8071b19]
8: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7bdc685]
9: /usr/X11R6/bin/X [0x8071101]
Saw signal 11.  Server aborting.
(II) Screen 0 shares mem & io resources
(II) Screen 1 shares mem & io resources
(EE) fglrx(0): === [swlDalHelperSetControllerConfigForRemap] === CWDDC ControllerSetConfig failed: 6 - 0

Wonderful. But easily fixed:

# mv /usr/lib/xorg/modules/amdxmm.so /usr/lib/xorg/modules/amdxmm.so.busted

Presumably, something's not going to work now, but at least it's better than it was, and 3D acceleraton works. I can even watch video.

For some, possibly unrelated, reason at this point the volume control knob on the keyboard stopped controlling the volume until I set the Default Mixer Track in System/Preferences/Sound to HDA Intel (Alsa mixer).

[/unix] permanent link

Tue, 06 Jan 2009

Amarok and SPDIF output


To get amarok to use the SPDIF output, first use alsamixer and unmute the IEC958 output.

Then in the Configure Engine section of amarok, use the xine engine, the alsa output plugin, and change the alsa device configuration from:

Mono:        default         4 Channels:       plug:surround40:0
Stereo:      default         6 Channels:       plug:surround51:0

to

Mono:        plug:spdif      4 Channels:       plug:spdif
Stereo:      plug:spdif      6 Channels:       plug:spdif

[/software/amarok] permanent link

Mon, 05 Jan 2009

Getting ssh to work over wireless on HP 2133


Ssh over wireless hangs into and out of the HP 2133. Changing the MTU doesn't help. What does help is running:

iwpriv eth0 set_vlanmode 0

[/unix/2133] permanent link

Wed, 03 Dec 2008

Ubuntu and Scanning


Keywords: linux ubuntu 8.10 intrepid ibex sane hp scanjet 5370C avision

Another of the things that broke when I upgraded Ubuntu to 8.10 was the scanning. To be fair, it had barely been working since the upgrade to 8.04, but with 8.10 scanimage just crashed. I debugged it a little and discovered that by uncommenting "option disable-calibration" in /etc/sane.d/avision.conf I could avoid the crash, but after scanning in one direction the scanner wouldn't return to its resting position.

Eventually, I decided that if I was going to fix the crash I'd have to build a debugging version of the code, and that if I was going to do that I should get the latest version available. It turns out that was in a CVS repository and was fairly easy to obtain and build:

cvs -z3 -d:pserver:anonymous@cvs.alioth.debian.org:/cvsroot/sane co sane-backends
./configure --sysconfdir=/etc --prefix=/usr/local/pkg/sane
make
make install

And BINGO! The crash was fixed, and I didn't had to change any code at all.

I still had the problem, which was also there in 8.04, that the preview in xsane has diagonal stripes. Do I decided to do away with xsane and replace it by a small shell script which I imaginatively named scan:

#!/bin/sh

out=$1
shift

LD_LIBRARY_PATH=/usr/local/pkg/sane/lib/sane:$LD_LIBRARY_PATH
/usr/local/pkg/sane/bin/scanimage -d avision -v -p --resolution=300 "$@" > /tmp/out.pnm
convert -quality 90 -verbose /tmp/out.pnm $out
gimp $out

So now, when I scan album art, for example, (which is what I most commonly scan nowadays), I can just type scan front.jpg and the cover is scanned and thrown up in gimp for me to crop and save. This has been working well so far.

[/unix] permanent link




February 2010
Sun Mon Tue Wed Thu Fri Sat