<?xml version="1.0" encoding="utf-8"?>
        <?xml-stylesheet type="text/css" href="http://ndap.net/styles/feed.css"?>
<rss version="2.0"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:admin="http://webns.net/mvcb/"
>
<channel>
<title>ndap.net</title>
<link>http://ndap.net</link>
<description>stuff</description>
<dc:language>en-us</dc:language>
<dc:creator>ndap</dc:creator>
<dc:date>2008-10-22T11:48:23+02:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<item>
<link>http://ndap.net/archives/2008/09/13/mounting_encrypted_usb_disks_in_gnome/</link>
<title>Mounting encrypted USB disks in GNOME</title>
<dc:date>2008-09-13T00:16:48+02:00</dc:date>
<dc:creator>ndap</dc:creator>

<description><![CDATA[<p>I keep my backups on a encrypted partition
(<a href="http://luks.endorphin.org/">LUKS</a> format) on an external USB-drive. When I
connect it GNOME displays a password dialog which often, but not always,
leads to my backup partition being mounted.</p>

<p>I have gotten very careful in entering the password so I am fairly sure that
it is due to a bug in the version of gnome-mount that is in Debian Lenny. A
workaround is to open gnome-terminal and entering</p>

<pre><code>$ gnome-mount --disconnect-crypto -d /dev/sda2
$ gnome-mount -d /dev/sda2
</code></pre>

<p>If that doesn't work the following should:</p>

<pre><code>$ gnome-mount --disconnect-crypto -d /dev/sda2
$ pmount /dev/sda2
</code></pre>

<p>(Don't forget to replace <code>/dev/sda2</code> with whatever is appropriate for you.)</p>]]></description>
</item>
<item>
<link>http://ndap.net/archives/2008/02/09/fetchmail_via_ssh_tunnel/</link>
<title>fetchmail via SSH tunnel</title>
<dc:date>2008-02-09T19:14:13+02:00</dc:date>
<dc:creator>ndap</dc:creator>

<description><![CDATA[<p>If you have SSH access to your mail server,
<a href="http://fetchmail.berlios.de/">fetchmail</a> can automatically create a secure
SSH tunnel through which to retrieve email. Use the <code>preconnect</code>
configuration option in <code>~/.fetchmailrc</code>:</p>

<pre><code>poll localhost service PORT with proto POP3
  password "secretpass"
  preconnect 'ssh -f -C -L localhost:PORT:localhost:REMOTEPORT
              USERATHOST sleep 3 &lt; /dev/null &gt; /dev/null'
</code></pre>

<p>The <code>preconnect</code> option should be on a single line. Replace PORT,
REMOTEPORT, and USERATHOST with your own values.</p>

<dl>
<dt>PORT</dt>
<dd>The port number on your own desktop or laptop computer that fetchmail
should connect to.</dd>
<dt>REMOTEPORT</dt>
<dd>The port on the mail server which we want to connect to. For a POP3
server it is port number 110.</dd>
<dt>USERATHOST</dt>
<dd>User name and hostname that SSH shall use to connect to the mail
server. Example: username@my.mailserver.com</dd>
<dt>sleep 3</dt>
<dd>A command for SSH to run on the remote host. SSH will disconnect when the
command has run. (sleep 3 gives fetchmail time to connect to the remote mail
server. SSH will notice that the forwarded port is used and won't disconnect
until fetchmail has finished.)</dd>
</dl>]]></description>
</item>
<item>
<link>http://ndap.net/archives/2008/01/18/saving_disk_space_by_removing_unwanted_translations/</link>
<title>Saving disk space by removing unwanted translations</title>
<dc:date>2008-01-18T21:43:19+02:00</dc:date>
<dc:creator>ndap</dc:creator>

<description><![CDATA[<p>There is an easy way to free about 10% of the used disk space under <code>/usr</code>.
Most (all?) packages in Debian ship with translations for a large number of
languages. On a personal computer with only one or a couple of users there's
usually only need for a single language, so why not delete all the unneeded
translations to free up some space on <code>/usr</code>?</p>

<p>Install the <a href="http://packages.debian.org/localepurge">localepurge</a> packet,
select which languages you want to keep, and <code>localepurge</code> will
automatically remove all other translations every time you install or
upgrade a package.</p>

<p>As localepurge does not remove existing translations after the installation,
you need to run</p>

<pre><code>$ localepurge
</code></pre>

<p>manually as root.</p>

<p>Note: <code>localepurge</code> has worked fine for me on several machines, but
<a href="http://lists.debian.org/debian-user/2005/04/msg00479.html">not everyone has been as lucky</a>.</p>

<p>For more information on internationalisation (i18n for short) and
localisation in Debian, visit the homepage of the
<a href="http://i18n.debian.net/">Debian i18n Task Force</a>.</p>]]></description>
</item>
<item>
<link>http://ndap.net/archives/2007/04/23/suspend_to_ram_on_debian_etch_and_ibm_thinkpad_x31/</link>
<title>Suspend to RAM on Debian Etch and IBM Thinkpad X31</title>
<dc:date>2007-04-23T22:31:01+02:00</dc:date>
<dc:creator>ndap</dc:creator>
<dc:subject>Debian</dc:subject>
<description><![CDATA[<p>Seems like my machine (Thinkpad X31 with ATI Radeon Mobility M6 LY) locks
up when resuming from suspend-to-RAM unless I comment out the line</p>

<pre><code>VbeToolPost yes
</code></pre>

<p>in <code>/etc/hibernate/ram.conf</code>. Regular hibernation to disk works fine
out of the box though.</p>

<p>Bug filed on the Debian hibernate package.</p>]]></description>
</item>
<item>
<link>http://ndap.net/archives/2007/04/23/cpu_frequency_scaling_in_debian_4_0_etch/</link>
<title>CPU frequency scaling in Debian 4.0 Etch</title>
<dc:date>2007-04-23T15:04:10+02:00</dc:date>
<dc:creator>ndap</dc:creator>
<dc:subject>Debian</dc:subject>
<description><![CDATA[<p>Apparently there is a more "correct" way to enable CPU frequency scaling in
Debian 4.0 GNU/Linux Etch than I described in
<a href="http://ndap.net/archives/2007/04/21/etch_post-install_on_ibm_thinkpad_x31/">an older post</a>.</p>

<p>For future reference:</p>

<pre><code>$ echo speedstep_centrino &gt;&gt; /etc/modules
$ echo cpufreq_conservative &gt;&gt; /etc/modules
$ echo ibm_acpi &gt;&gt; /etc/modules

$ apt-get install cpufrequtils
</code></pre>

<p>Then edit <code>/etc/defaults/cpufrequtils</code> to read:</p>

<pre><code>ENABLE="true"
GOVERNOR="conservative"
</code></pre>]]></description>
</item>
<item>
<link>http://ndap.net/archives/2007/04/22/swedish_mistranslation_in_google_search/</link>
<title>Swedish mistranslation in Google Search</title>
<dc:date>2007-04-22T14:39:57+02:00</dc:date>
<dc:creator>ndap</dc:creator>

<description><![CDATA[<p>Noticed a new link today when searching on Googles swedish site. It read
<em>Mina bärbara datorer</em> (eng. My Laptops). I wondered how Google could know
I was using a laptop, but upon following the link it turned out to be a new
note-taking function. The error is probably due to a machine translation
of <em>My notepads</em>.</p>

<p><img src="http://ndap.net/images/2007/04/google-search-sv-translation.png" alt="small screenshot" title="" /></p>

<p>Though <em>bärbara datorer</em> can be a correct translation for <em>notepads</em> 
in other contexts, in this case Google should use <em>anteckningsblock</em>
instead.</p>]]></description>
</item>
<item>
<link>http://ndap.net/archives/2007/04/21/etch_post-install_on_ibm_thinkpad_x31/</link>
<title>Etch post-install on IBM Thinkpad X31</title>
<dc:date>2007-04-21T17:02:32+02:00</dc:date>
<dc:creator>ndap</dc:creator>
<dc:subject>Debian</dc:subject>
<description><![CDATA[<p>Some useful things to do after installing Debian GNU/Linux 4.0 "Etch"
on an IBM Thinkpad X31.</p>

<p>Activate CPU frequency scaling to conserve power and get rid of fan noise:</p>

<pre><code>$ echo speedstep_centrino &gt;&gt; /etc/modules
$ echo cpufreq_conservative &gt;&gt; /etc/modules
$ echo ibm_acpi &gt;&gt; /etc/modules

$ apt-get install sysfsutils
$ echo "devices/system/cpu/cpu0/cpufreq/scaling_governor = conservative" \
    &gt;&gt; /etc/sysfs.conf
</code></pre>

<p>Get access to more capable multimedia packages by adding a 
<a href="http://www.debian-multimedia.org/mirrors.html">Debian Multimedia mirror</a>
to the file /etc/apt/sources.list. Then:</p>

<pre><code>$ apt-get install debian-multimedia-keyring
</code></pre>

<p>Install <code>tpb</code> for on-screen display of sound volume and TFT brightness.
All desktop users has to be added to the <em>nvram</em> group.</p>

<pre><code>$ apt-get install tpb
$ adduser username nvram
</code></pre>]]></description>
</item>
</channel>
</rss>

