Samstag, Juli 04, 2009

mpd and ALSA

mpd is also dependant on x11-common. Started to install by hand but gave up and installed it with apt-get and all requested dependencies.

Steps I had to do, to get it this time working:

  • added to bashrc:
    export MPD_HOST=
    export MPD_PORT=6600

  • copied some test files to /var/lib/mpd/music/

  • mpd --create-db

  • create a playlist in /var/lib/mpd/playlists

  • loaded the playlist and started it - played but no sound

  • apt-get install alsa-utils

  • used alsamixer to enable pcm

install sshd without X dependencies

The new debian installation is missing a ssh server. The obvious solution with apt-get listed a lot of X dependencies. As X is not installed and I want a more or less minimal system I installed it by hand.

download the dep package

the easiest way is to use apt-get with -d to only download the packages. apt-get -d install openssh-server

install the dep package

dpkg -i /var/cache/apt/archives/openssh-server...deb

This step required only the blacklists to be installed.

Freitag, Juli 03, 2009

update to lenny via net installation

I have an old PC which OS is totally out of date. As it has testing on it for quite some time and I also tried out a lot of programs, a new installation looks like the best thing to to.

To save me the trouble of downloading the boot CD and burning it, I will try the net installation. The installer will be started (booted into) from the HD (see debian installation manual).

  • download from initrd.gz and linux from debian nl (for squeeze) or any other debian server to /boot/new.

  • update menu.lst:
    title New Install
    root (hd0,0)
    kernel /boot/new/linux
    initrd /boot/new/initrd.gz

  • reboot

  • let the installer repartition/format the HD you booted from

  • continue like normal installation

After the first reboot the file system check failed with this error:
The file system size (according to the superblock) is 992013 blocks The physical size of the device is 736981 blocks Either the superblock or the partition table is likely to be corrupt
Running fsck by hand didn't help. Booting from a rescue CD and running resize2fs /dev/hda1 fixed the problem.