look out honey 'cause I'm using technology

Posts Tagged ‘lenny’

HOWTO: fix fonts in Debian Lenny/Sid

Fonts FTWUPDATE: also, before you try this, make sure you have some good fonts installed, after a fresh install of Lenny at work, I needed to run this first: apt-get install ttf-mscorefonts-installer msttcorefonts

After a…slight slip up, I finally had the chance to install Linux from scratch on my laptop (Dell Vostro 1500) the way I’ve always wanted it with Debian GNU/Linux – Lenny and partitioned with LVM (Linux Volume Management).  After that I set out to get the desktop fonts to look as good in Debian as they did (by default) in Ubuntu.  After much scouring around online I found a pretty easy tweak that got me most of the way. As root:

dpkg-reconfigure fontconfig-config

In the dialog choose these options; Autohinter, Automatic and No. Now issue this command:

dpkg-reconfigure fontconfig

Logout and log back into your desktop and your fonts should be *noticeably* nicer looking. Of course after that you have to drive yourself crazy tweaking the settings for autohinting and RGB lines, installing any and all ttf-* fonts apt-get sees, but hey, that’s what choice is all about! ;) Fonts


HOWTO: sound after hibernate in Linux (Gusty/Lenny)

Ignignokt says - Using a key to gouge expletives on another’s vehicle is a sign of trust and friendshipWith all the tweaking to get my Dell Vostro 1500 working with Ubuntu, it’s still been an annoyance to get sound working evertime after hibernation. It goes to sleep fine, it wakes up fine, it obeys all of the power preferences I defined within Gnome fine too, it’s just that when it comes out of hibernation, the sound is usually off. It’s not muted, it’s off. Trying to restart alsa (the sound server) is a lession in frustration, so until now I’ve been ignoring it since it was rare that I would need it, but still…come on. This week I came across a solution in the Debian Forums that creates a new task for Linux to do before it shuts down and before it starts up.: “Create the file /etc/pm/sleep.d/49sound…

mkdir /etc/pm
vi /etc/pm/sleep.d49sound

with the following contents:

function kill_sound_apps() {
pidsnd=$(lsof | grep /dev/snd | awk '{ print $2 }')
pidmixer=$(lsof | grep /dev/mixer | awk '{ print $2 }')
piddsp=$(lsof | grep /dev/dsp | awk '{ print $2 }')
kill $pidsnd $pidmixer $piddsp
}

case "$1" in
hibernate|suspend)
kill_sound_apps
modprobe -r snd_hda_intel
;;
thaw|resume)
modprobe snd_hda_intel
;;
*)
;;
esac

exit $?

Then just make it executable:

# chmod +x /etc/pm/sleep.d/49sound

So before shutting down, Linux properly shuts down the sound, and when it comes back it, it properly starts the sound. As always, this *should* work, but the fact that it hasn’t been updated in Ubuntu Gusty is one of the reasons I’m shifting to Debian Lenny on this ‘top.

NOTE: yes, I am thinking of making Ignignokt my official HOWTO mascot. “Using a key to gouge expletives on another’s vehicle is a sign of trust and friendship


We like








We support


EFF - Electronic Frontier Foundation       TOR - The Onion Router       HRC - Human Rights Campaign







Private