From 9ea1786f3aa7b0b2d72e9d3dafcb288859016367 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 1 Nov 2015 14:22:08 -0700 Subject: [PATCH] * Added initial RPi documentation --- doc/rpi.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/rpi.md diff --git a/doc/rpi.md b/doc/rpi.md new file mode 100644 index 00000000..c3f2f5b8 --- /dev/null +++ b/doc/rpi.md @@ -0,0 +1,32 @@ +# Raspberry Pi + +ENiGMA½ can run under your Linux / RPi installation! The following instructions should help get you started. + +## Tested RPi Models +###Model A +Works, but fairly slow (Node itself is not the fastest on this device). May work better overlocked, etc. + +##Example Configuration: RPi Model A + Minibian + +### Basic Instructions + +1. Download and `dd` the Minibian .img file from https://minibianpi.wordpress.com/ to a SDCARD. Cards >= 16GB recommended. +2. After booting Minibian, expand your file system. See http://elinux.org/RPi_Resize_Flash_Partitions#Manually_resizing_the_SD_card_on_Raspberry_Pi for information. +3. Update & upgrade: `apt-get update && apt-get upgrade` +4. It is recommended that you install `sudo` and create an admin user: `apt-get install sudo`, `adduser `, `adduser sudo` (reboot & login as the user your just created) +5. We want to build dependencies with a updated version of GCC. The following works to install GCC 4.9 on Minibian "wheezy": +a. Update */etc/apt/sources.list* replacing all "wheezy" with "jessie" +b. `sudo apt-get update` +c. `sudo apt-get install gcc-4.9 g++-4.9` +d. Update */etc/apt/sources.list* reverting all "jessie" back to "wheezy" +e. `sudo apt-get update` +f. Update alternatives: `sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9` +6. Install dependencies: `sudo apt-get install make python libicu-dev libssl-dev git` +7. Install the latest Node.js from here: http://node-arm.herokuapp.com/ (**only download the .dep and dpkg install it!**) +8. The RPi A has very low memory, we'll need a swap file: +a. `sudo dd if=/dev/zero of=tmpswap bs=1024 count=1M` +b. `sudo mkswap tmpswap` +c. `sudo swapon tmpswap` +9. Clone enigma-bbs.git +10. Install dependencies. Here we will force GCC 4.9 for compilation: `CC=gcc-4.9 npm install` +11. Follow generic setup for creating a config.hjson, etc. and you should be ready to go!