My Raspberry Pi setup

By , 30/08/2013 22:24

I have had a Raspberry Pi lying around for ages now and finally found some time to play with it. After quite some research I decided to first set up a basic system that I can easily use to start from when I think of a new usage for a Pi. Since I like keeping “full control” over everything I do it would mean setting everything up from scratch without relying too much on existing pre-built images. The only image I tried was (the excellent) Raspbmc to verify quickly that XBMC would run smooth enough to pass the WAT (Wife Acceptancy Test).

The system I had in mind when starting should provide the following:

  • Remote boot using NFS as root fs (thus enabling the usage of cheap, small SD cards)
  • Easily create a full SD card when stand-alone device is required
  • Gentoo based (yes, I do love that distro for its simplicity)
  • Distcc enabled for faster compilations (I don’t love Gentoo enough to let a Raspberry compile everything on its own)

Continue reading 'My Raspberry Pi setup'»

Flattr this!

IE ignoring hosts file

By , 18/08/2013 11:13

I switched from developing on a server to running development on my local computer as a part of my effort to better document and package the websites and their dependencies that I maintain. Therefor it also doesn’t make sense to maintain the DNS entries in my local server but instead I use the excellent Firefox add-on HostAdmin Host Editor.

I noticed however that IE was ignoring these entries in the hosts file for some reason. After some googling I stumbled into this blog post describing the solution which is to disable the “Automatically detect settings” check box in the IE options.

Flattr this!

Exim + GreyListing

By , 04/06/2013 21:00

I recently followed this excellent guide to implement GreyListing on my server. The hardest part was to get sqlite3 support activated in Exim. Since the software is managed through DirectAdmin you have to enable this in the custombuild Makefile.

Flattr this!

Load firmware on network boot

By , 07/04/2013 20:17

Have a look here if you have problems with slow network boot because the firmware is not available.

Flattr this!

NFS as root filesystem

By , 23/03/2013 23:21

If you have a NFS 4 server you need to specify that you want to use version 3 for the root system in your boot parameters.

KERNEL path/to/kernel
APPEND ip=dhcp root=/dev/nfs nfsroot=:/path/to/root,nfsvers=3 init=/linuxrc

Flattr this!

Putty vs UTF-8 & Num-Lock

By , 23/03/2013 09:27

Whenever I used mc or another ncurses-based program on my Gentoo the output would show strange characters instead of the proper line drawing. Also, the numbers on the numpad didn’t work inside for example nano. The fix is in your default putty settings:

  • Window → Translation → Received data assumed to be in which character set: UTF-8
  • Window → Translation → Handling of line drawing characters: Use Unicode line drawing code points
  • Connection → Data → Terminal-type string: putty

I got this solution from here.

Flattr this!

Windows 7 GPO logon scripts

By , 24/02/2013 22:19

I had trouble with a logon script not working in a Windows 7 GPO object. The solution is described in this thread over at Microsoft forums. I list it here again for easy reference

EnableLinkedConnections = 1 (DWord)

Flattr this!

It moved again!

By , 16/10/2012 00:48

If you see this message it means you are getting this page from my new VPS hosting. I decided to forgo the Plesk control panel and now have a DirectAdmin powered setup. It also means that I cleaned up this blog and some spam comments. If you had a user registered, that’s gone too.

Flattr this!

Django admin change only classes in a fieldset

By , 09/08/2011 00:11

I’ve been playing around with Django lately and while I love the framework (and especially the admin interface) it does have some minor points. It might be because of my lack of understanding of the framework and/or Python but some stuff is hard to find. One problem I was faced with was that I wanted to use the .wide class that is provided by the admin to use in case the labels are to big and get overlapped by the form fields.

Continue reading 'Django admin change only classes in a fieldset'»

Flattr this!

Log analyzing behind reverse proxy

By , 14/07/2011 23:59

Plesk has AWStats built-in but since I use a reverse proxy on my server to redirect certain sites to separate virtual containers, the log files always showed the internal IP of my reverse proxy. mod_rpaf solved this issue. It looks for the X-Forwarded-For header added by the proxy and puts it back as the original IP.

Another solution would be to change the LogFormat of the plesklog lines to incorporate the header but experience in the past has learned me to leave Plesk alone for as much as possible.

Flattr this!

Panorama Theme by Themocracy