Skip to content

Instantly share code, notes, and snippets.

@maietta
Created March 1, 2017 07:05
Show Gist options
  • Save maietta/a3645cf2673ae4de09384d5941ec7e36 to your computer and use it in GitHub Desktop.
Save maietta/a3645cf2673ae4de09384d5941ec7e36 to your computer and use it in GitHub Desktop.
# Raspberry software used
2015-02-16-raspbian-wheezy.img
# Install dependencies
sudo apt-get update
sudo apt-get install -y python-pip python-virtualenv python-dev
# Enable audio 3.5mm: 1=>3.5mm 2=>HDMI
amixer cset numid=3 1
# Set volume
amixer sset PCM,0 90%
#install minimodem
Check the lekanovic/minimodem
#Enable USB audio
1. open: /etc/modprobe.d/alsa-base.conf
2. change options snd-usb-audio index=-2 to options snd-usb-audio index=0
3. On next line add: options snd_bcm2835 index=1
4. reboot
# --- Set up RAID 10 ---- #
sudo apt-get install mdadm
# use fdisk to remove partitions from usb memory sticks
http://www.howtogeek.com/106873/how-to-use-fdisk-to-manage-partitions-on-linux
# Create RAID 10
sudo mdadm --create /dev/md0 --level=10 --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
sudo mkfs /dev/md0
sudo mount /dev/md0 /raid10
# Set in /etc/fstab
/dev/md0 /raid10 auto defaults 0 0
# Set permissions
sudo chmod -R 777 /raid10
# Test if the new RAID 10 system works
sudo dd if=/dev/zero of=/raid10/testfile bs=1024K count=300
# Check RAID status
mdadm --detail /dev/md0
# Tutorial on reconstructing disk from failure
https://raid.wiki.kernel.org/index.php/Detecting,_querying_and_testing#Detecting_a_drive_failure
# -------- SET UP Picunia signserver ---------- #
mkdir /raid10/projects
cd /raid10/projects
git clone git@github.com:lekanovic/bitcoin.git
cd bitcoin
export PYTHONPATH=$PYTHONPATH:/raid10/projects/bitcoin/picunia
python picunia/security/signserver.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment