[Grml] Easiest way to install Debian with grml-debootstrap

Michael Schierl schierlm at gmx.de
Wed Oct 21 23:42:58 CEST 2009

Michael Schierl schrieb:

> When I find some time later, I might try to get a vanilla Debian Lenny
> (installed with grml-debootstrap) to (software-)speak, but I cannot
> promise anything.

Okay, I tried it :-)

> There is a prepackaged version of speakup available in package
> speakup-modules-2.6-686, but I don't know how current it is and whether
> it supports all the speak options included with GRML.

I did not get that one to load speakup_soft without crashing my
(virtual) machine, so I tried builing it from source instead.

> I do not think espeakup is packaged for Debian stable; it is available
> in testing and unstable.

>From quick googling I could not find a download link for espeakup
either, but since speech dispatcher is included in Debian, I used
speechd-up - successfuly.

Let's chroot into our freshly deboostrapped system:

# grml-chroot /dev/sda1 /bin/bash
# cd ~

Ok, first install speech dispatcher and alsa utils (for setting the
volume which somehow starts muted on my machine) and a few packages
needed for compiling stuff:

# aptitude install speech-dispatcher alsa-utils
# aptitude install build-essential libspeechd-dev libglib2.0-dev

Then download and install speechd-up (I did this first because I wanted
to use the Debian modules from speakup, which did not work):

# wget \
# tar xfz speechd-up-0.4.tar.gz
# cd speechd-up-0.4
# ./configure
# make speechd-up
# make install
# cd ..

Then download and compile stable speakup modules. Note that we have to
cheat a bit here, as the makefile tries to refer to the currently
running kernel's module directory via `uname -r`, but the currently
running kernel is 2.6.28-grml and not 2.6.26-2-686. If there is any
cleaner way to do that, please tell me - and no, I don't think
symlinking the modules directories is cleaner.

Anyway, here we go:

# wget --passive \
# tar xfj speakup-3.1.3.tar.bz2
# cd speakup-3.1.3/src
# echo 'ls -1 /lib/modules' >/root/uname
# chmod a+x /root/uname
# export PATH=/root:$PATH
# make
# make modules_install
# rm /root/uname
# export PATH=${PATH:6}
# cd ../..

Now I built a small init script and stored it as /etc/init.d/speakup:

/usr/bin/amixer set PCM 80% unmute
/usr/bin/amixer set Master 80% unmute
/sbin/modprobe speakup_soft

Now set permissions and symlink it to get it started late at the boot

# chmod a+x /etc/init.d/speakup
# cd /etc/rc2.d
# ln -s ../init.d/speakup S90speakup

Done. After a reboot into my shiny new system, my Debian Linux spoke to
me. And I was glad I knew I just had to press CapsLock+Ctrl+Return to
"turn him off". :-)



More information about the Grml mailing list