Skip to content

Instantly share code, notes, and snippets.

@MartyMacGyver
MartyMacGyver / RPi_Kernel_building_with_optional_kmemleak_etc.sh
Last active June 28, 2018 13:57
Building the kernel for the Raspberry Pi/Pi2/Pi3 (with headers and optional memory leak debugging steps)
###############################################################################
# Compiling the RPi kernel in situ, with optional memory leak debugging
#
# Extends https://www.raspberrypi.org/documentation/linux/kernel/building.md
###############################################################################
# On the Raspberry Pi
cd ~/Projects
# Install rerequisites
@MartyMacGyver
MartyMacGyver / Building_Python_on_the_RPi2.bash
Last active May 21, 2017 19:53
Building Python on the Raspberry Pi2
# Condensed and revised from Blake's site (unreachable currently):
# http://sowingseasons.com/blog/building-python-3-4-on-raspberry-pi-2.html
# Install prerequisites
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y \
build-essential libncursesw5-dev libgdbm-dev libc6-dev \
zlib1g-dev libsqlite3-dev tk-dev libssl-dev openssl \
libreadline6-dev liblzma-dev libbz2-dev libdb-dev
@agrlh
agrlh / install_netatalk_debian.md
Last active March 27, 2024 08:52
Compiling and installing netatalk 3.1.2 on Debian (used for my RaspberryPi TimeCapsule)

Building and setting up netatalk 3.1.2 on Debian

1. Build

Install dependencies

sudo apt-get install automake libtool build-essential pkg-config checkinstall git-core avahi-daemon libavahi-client-dev libssl-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev libcrack2-dev libpam0g-dev libdbus-1-dev libdbus-glib-1-dev libglib2.0-dev libwrap0-dev systemtap-sdt-dev libacl1-dev libldap2-dev

Download and unpack netatalk 3.1.2

#!/usr/bin/python
#
# MCP3204/MCP3208 sample program for Raspberry Pi
#
# how to setup /dev/spidev?.?
# $ suod modprobe spi_bcm2708
#
# how to setup spidev
# $ sudo apt-get install python-dev python-pip
# $ sudo pip install spidev
@mrngm
mrngm / RaspBMC.conf
Created August 4, 2012 20:17
Modified XBMC.conf for Raspberry Pi, RaspBMC and PS3MediaServer
# ps3mediaserver renderer profile for xbox media center
# Refer to PS3.conf for help
RendererName=XBMC
RendererIcon=xbmc.png
# ============================================================================
# Identifying headers on Mac OS X:
# User-Agent: XBMC/10.0 r35648 (Mac OS X; 11.2.0 x86_64; http://www.xbmc.org)
# User-Agent: Platinum/0.5.3.0, DLNADOC/1.50
# ============================================================================