Debian

Some notes from my Debian 5.0 (Lenny) server experiences.

Git 1.9 on Debian Wheezy

apt-get -t wheezy-backports install git
echo 'deb http://cloudfront.debian.net/debian wheezy-backports main' \
    >> /etc/apt/sources.list

Debian Locale

Error:

perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.utf8"
    are supported and installed on your system.

Fix:

sudo dpkg-reconfigure locales

Add Another Locale

E.g. for German UTF-8:

grep de_DE.UTF-8 /usr/share/i18n/SUPPORTED
echo "de_DE.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local
dpkg-reconfigure locales

Python 2.6 On Debian Lenny

http://www.saltycrane.com/blog/2008/10/installing-python-26-source-ubuntu-hardy/:

sudo apt-get --no-install-recommends install build-essential\
                                             libncursesw5-dev\
                                             libreadline5-dev\
                                             libssl-dev\
                                             libgdbm-dev\
                                             libbz2-dev\
                                             libc6-dev\
                                             libsqlite3-dev\
                                             tk-dev
wget http://www.python.org/ftp/python/2.6/Python-2.6.tgz
tar xzf Python-2.6.tgz
cd Python-2.6
./configure --prefix=/opt/python2.6
make
# ignore bsddb185 sunaudiodev
sudo make install

Exim 4 for outgoing Mail

Set static FQDN by setting it as the first line in /etc/hosts, e.g.:

127.0.0.1   mx1.example.org mx1