Raspbian headless install over Wifi

TLDR; Configure your new PI without a monitor Just follow this guide to install your raspberry pi 3 without a monitor. It enables wifi and ssh in the default raspbian installation. install raspbian on your sdcard: export DEV=/dev/sdX; \ unzip 2017-04-10-raspbian-jessie-lite.zip ;\ cd 2017-04-10-raspbian-jessie-lite ;\ sudo dd if=2017-04-10-raspbian-jessie-lite.img of=$DEV bs=4M && sudo sync mount boot partition

Earn money with your smartphone

TLDR; Let your smartphone mine cryptocurrencies I like money. Money is even better if you don’t have to work for it. So I set up my smartphone as a zcash node. Zcash is similar to bitcoins: You exchange computing power for virtual money. This post is twofold: First the hardware modification to keep the CPU

Enabling zram

TL;DR: modprobe zram num_devices=$(nproc) && \ sleep 1; \ for i in $(eval echo zram{0..$(( $(nproc) -1))}); do \ zramctl -t 1 -a lzo $i -s $(( 4096 * 1024 * 1024 / $(nproc) )); \ mkswap /dev/$i; \ swapon /dev/$i -p 1; \ done && \ sysctl vm.swappiness=100 && \ echo 0 > /proc/sys/vm/page-cluster

Verifying sdcards

TL;DR: Verify sdcards on the fly DEV=/dev/sdX && \ dd if=/dev/urandom bs=4096 count=$(( $(sudo blockdev –getsz $DEV) / 8)) \ | pv | sudo tee $DEV | md5sum ; \ sudo dd if=$DEV bs=4096 count=$(( $(sudo blockdev –getsz $DEV) / 8 )) \ | pv | md5sum I have a few sdcards which are probably

3.8+ kernel for Pogoplug

TL;DR attach dtb file to kernel and boot I’m running gentoo on a Pogplug E02 and had some difficulties with kernels after 3.7. These kernels use a new infrastructure called device trees to tailor the kernel to new hardware. Luckily this abstraction layer is already prepared for common devices. It just has to be loaded

Working with Lua on an ESP8266

TLDR; use luatool to upload scripts Lua is a scripting language which has been ported to the ESP8266. After flashing the latest firmware you can connect to the module using screen /dev/ttyUSB0 You probably want to save your entered code over a restart. Nodemcu offers a whole file api which tells you how to manipulate

qemu on gentoo

I’m running gentoo on a pogoplug. This is an embedded device with 1,2GHz armv5 and 256MB Ram. Unfortunately, big packages like gcc don’t finish. Thats why i set up a working qemu environment to emerge certain packages, zip them up, and unpack them on the working system. So the aim is to modify a backup