various Π-related snippets..

Setup an SD card with jessie lite

Follow these instructions.

Fix keyboard issues, like " showing up as @

  • start with sudo raspi-config
  • go to internationalization options > change keyboard layout
  • select “generic 101 key PC”
  • go to other then select english
  • it’ll then ask you about special keys – I leave those alone

Setup wifi

Add the following to /etc/wpa_supplicant/wpa_supplicant.conf:


and then reboot.

Live stream with a raspberry pi camera and youtube

Install some prereqs:

$ apt-get install libx264.

Get ffmpeg source and build it:

$ git clone git:// --depth=1
$ cd ffmpeg
$ ./configure --enable-gpl --enable-nonfree --enable-libx264
$ make -j$(nproc)
$ sudo make install

Could be more clever with ./configure and disable many unused filters, protocols, etc, as per this answer on SO.

I used the command from this gist to stream (more about the command on this blogpost). More streaming notes on this gist.