Building an LTSP environment for Raspberry PI on an x86 Debian wheezy server.

Installing LTSP for the Raspberry PI requires a little more work than i386 or amd64 thin clients, but overall, the process is similar.

This assumes the server has been configured as a working LTSP server for i386 or amd64 clients, which may require NFS and/or NBD, TFTP and DHCP configured on your network.

On a Debian wheezy system:

Install ltsp-server for ltsp-build-client, ldm-server to support LDM, qemu-user-static and binfmt-support for cross-architecture support.

 apt-get install ltsp-server qemu-user-static binfmt-support ldm-server

Download the raspbian keyring, see:

 wget -O - | gpg --import

Make sure to replace KEYID with the current gpg keyid! as of this writing, the current KEYID is: 90FDDD2E, though you'll want to verify this somehow, otherwise someone could man-in-the-middle your install.

 gpg --export 90FDDD2E >> /etc/ltsp/raspbian.public.key.gpg

Create an alternate configuration file, /etc/ltsp/ltsp-raspbian.conf:

 # For alternate raspbian mirrors,
 # see: <>

Build the client image:

 ltsp-build-client --arch armhf --config /etc/ltsp/ltsp-raspbian.conf

Fix a bug if the plymouth package is installed, by not failing if plymouth is not in use:

 sed -i -e 's,/bin/plymouth quit --retain-splash.*,/bin/plymouth quit --retain-splash || true,g' /opt/ltsp/armhf/etc/init.d/ltsp-client-core

Optionally, edit /var/lib/tftpboot/ltsp/armhf/lts.conf to include more debugging options:

 # for debugging only, comment out when done

Download raspberry pi foundation's raspbian image: This howto used 2013-02-09-wheezy-raspbian

Copy firmware files to an SD card (/dev/sdc1, replace with the device name for your SD card):

 mount /dev/sdc1 /mnt
 mkdir -p /media/rpi
 mount -o loop,offset=$((512*8192)) /srv/src/2013-02-09-wheezy-raspbian.img /media/rpi
 cp -r /media/rpi/* /mnt/
 umount /media/rpi

Copy kernel and initrd to your SD card:

 cp -vb /opt/ltsp/armhf/boot/vmlinuz-3.2.0-4-rpi /mnt
 cp -vb /opt/ltsp/armhf/boot/initrd.img-3.2.0-4-rpi /mnt

edit cmdline.txt:

add init=/sbin/init-ltsp boot=nfs nfsroot= delete the root= and rootfstype= entries:

edit it with sed:

 sed -i -e 's,root=.*rootfstype=ext4,boot=nfs init=/sbin/init-ltsp nfsroot=,g' /mnt/cmdline.txt

edit config.txt to use the kernel and initramfs:

 echo 'kernel vmlinuz-3.2.0-4-rpi' >> /mnt/config.txt
 echo 'ramfsfile initrd.img-3.2.0-4-rpi' >> /mnt/config.txt
 echo 'ramfsaddr 0x00800000' >> /mnt/config.txt

 Copyright 2013 Vagrant Cascadian <>
 This work is licensed under a:
 Creative Commons Attribution-ShareAlike 3.0 Unported License

If you liked this article, please consider a donation: bitcoin:1AFhXwqT6PyFWRjGhURMTq1MiCgHL9egdQ