Posts for: #Debian

ipv6 on your desktop in 2 steps

Some people have been telling me that they “have no time” or “are too lazy” to setup IPv6 on their desktop, but would like to.

Below are 2 easy steps to get IPv6 running on your Debian Linux sytem (shoudl be identical on Ubuntu, and similar distros).

If you’re not running Linux, check out these pages instead: MacOS X, Windows.

Read more →

squid and apt

In the past few months apt-get update started failing when using a squid3 web cache.

It woudl give errors like these…

  • 404 Not Found [IP: 149.20.20.135 80]
  • The HTTP server sent an invalid reply header [IP: 130.89.149.227 80]
  • Failed to fetch .../Packages 404 Not Found [IP: 149.20.20.135 80]
  • Failed to fetch .../Sources 404 Not Found [IP: 149.20.20.135 80]
  • etc
Read more →

nfs local caching with fscache and cachefilesd on Lenny

The idea is to put a caching layer between filesystems, that tend to be slow, and the user, who is impatient. This is accomplished by the fscache kernel module, and the cachefilesd user space daemon. The kernel module intercepts what would be disk/network access and redirects it to the daemon. The daemon uses local media, which supposedly is faster, to cache recent data.

The new Linux native implementation is very generic, and can be used to accelerate anything like floppies and CD-ROMs. I am interested in this because I find NFS slow.

Read more about it at Linux Magazine.

Read more →

android true type font

Following a random tweet on identi.ca I upgraded my proprotional fonts on Debian/Sqeeze to ttf-droid.

I expect that some day this font will be packaged by Debian, but for now I had to:

    wget 'http://launchpadlibrarian.net/21202254/ttf-droid_1.00%7Eb112%2Bdfsg-0ubuntu1_all.deb'
    sudo dpkg -i ttf-droid_1.00\~b112+dfsg-0ubuntu1_all.deb

Because I am a big console junkie I don’t use proprtional fonts much, but they do look nice on the web.

Read more →

wmiirc-lua debianization

I just fixed the install scripts for wmiirc-lua. It is now possible to install wmiirc-lua in system directories and run from there. There is also a Wmii-lua session for the display managers (kdm, gdm, etc).

The new and improved way to install wmiirc-lua is to [get libixp and wmii from hg]{wmiirc-in-lua-v0.1.1} and then…

    sudo apt-get install lua5.1 liblua5.1-0-dev liblua5.1-posix0 git-core
    
    git clone git://repo.or.cz/wmiirc-lua.git/
    
    cd wmiirc-lua
    git checkout debian
    make deb
    
    sudo debi
    
    install-wmiirc-lua

… restart X, and select Wmii-lua as your login session.

Read more →

debugging with -dbg libraries

I am having a problem getting openssl to verify a signature that I generated from a smartcard. I decided to step through the openssl code to see what it’s actually doing when I call RSA_verify()… but I didn’t feel like rebuilding openssl.

Read more →

qemu eats up /dev/shm

I’ve been using qemu ([with kqemu]{kqemu-install}) to run my client’s windows software, which talks to the linux driver/daemon that I am working on. Having multiple qemu instances really chews into the shared memory… and the amount available depend on how /dev/shm is mounted.

    # df /dev/shm
    Filesystem            Size  Used Avail Use% Mounted on
    none                  2.0G  713M  1.4G  35% /dev/shm

On Debian you can control this via /etc/default/tmpfs SHM_SIZE variable….

Read more →