Skip to content

Instantly share code, notes, and snippets.

@darcy
Last active September 24, 2017 19:20
Show Gist options
  • Save darcy/747359dc8acd7f5b2d8a135234bdb63e to your computer and use it in GitHub Desktop.
Save darcy/747359dc8acd7f5b2d8a135234bdb63e to your computer and use it in GitHub Desktop.
PI Setup

Raspberry PI Setup

Headless install and VNC setup

  1. Download .zip/.img from raspberrypi.org
  2. Unzip it with The Unarchiver
  3. Download Pi Filler - http://ivanx.com/raspberrypi/
  4. Run Pi Filler to install on SD card
  5. Re-insert SD card after complete and run in terminal: touch /Volumes/boot/ssh
  6. Insert SD into PI and boot.
  7. ssh pi@raspberrypi.local
  8. sudo rasp-config and set up Desktop Autologin, VNC service, Resolution, Expand to Fill Filesystem, change SSH pass and reboot
  9. Run VNC Viewer and connect to raspberrypi.local. From there setup VNC to use cloud access

VLC

VNC prep

cd Downloads
wget http://download.videolan.org/vlc/2.2.5.1/vlc-2.2.6.tar.xz
tar -xJf vlc-2.2.6.tar.xz
sudo apt-get update
sudo apt-get install autopoint gettext liba52-0.7.4-dev libaa1-dev libasound2-dev libass-dev libavahi-client-dev libavc1394-dev libavcodec-dev libavformat-dev libbluray-dev libcaca-dev libcddb2-dev libcdio-dev libchromaprint-dev libdbus-1-dev libdc1394-22-dev libdca-dev libdirectfb-dev libdvbpsi-dev libdvdnav-dev libdvdread-dev libegl1-mesa-dev libfaad-dev libflac-dev libfluidsynth-dev libfreerdp-dev libfreetype6-dev libfribidi-dev libgl1-mesa-dev libgles1-mesa-dev libgles2-mesa-dev libgnutls28-dev libgtk2.0-dev libidn11-dev libiso9660-dev libjack-jackd2-dev libkate-dev liblircclient-dev liblivemedia-dev liblua5.2-dev libmad0-dev libmatroska-dev libmodplug-dev libmpcdec-dev libmpeg2-4-dev libmtp-dev libncursesw5-dev libnotify-dev libogg-dev libomxil-bellagio-dev libopus-dev libpulse-dev libqt4-dev libraw1394-dev libresid-builder-dev librsvg2-dev libsamplerate0-dev libschroedinger-dev libsdl-image1.2-dev libsdl1.2-dev libshine-dev libshout3-dev libsidplay2-dev libsmbclient-dev libspeex-dev libspeexdsp-dev libssh2-1-dev libswscale-dev libtag1-dev libtheora-dev libtwolame-dev libudev-dev libupnp-dev libv4l-dev libva-dev libvcdinfo-dev libvdpau-dev libvncserver-dev libvorbis-dev libx11-dev libx264-dev libxcb-composite0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shm0-dev libxcb-xv0-dev libxcb1-dev libxext-dev libxinerama-dev libxml2-dev libxpm-dev libzvbi-dev lua5.2 oss4-dev pkg-config zlib1g-dev libtool build-essential autoconf

h264 support

http://www.jeffreythompson.org/blog/2014/11/13/installing-ffmpeg-for-raspberry-pi/

git clone git://git.videolan.org/x264
cd x264
./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
make
sudo make install
cd ..

FFMPEG INSTALL

https://github.com/tgogos/rpi_ffmpeg

wget http://ffmpeg.org/releases/ffmpeg-2.7.7.tar.xz
tar -xJf ffmpeg-2.7.7.tar.xz

sudo apt-get install yasm
wget http://www.nasm.us/pub/nasm/releasebuilds/2.13.01/nasm-2.13.01.tar.bz2
tar xjvf nasm-2.13.01.tar.bz2
cd nasm-2.13.01
./autogen.sh
PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
PATH="$HOME/bin:$PATH" make
make install

cd FFmpeg/
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
sudo make -j4
sudo make install
ffmpeg -encoders # test it works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment