Skip to content

Instantly share code, notes, and snippets.

@pral2a
Created June 29, 2014 18:51
Show Gist options
  • Save pral2a/7804545fc55b14ad0bef to your computer and use it in GitHub Desktop.
Save pral2a/7804545fc55b14ad0bef to your computer and use it in GitHub Desktop.
Nadya's Great Installation script for FabLabs
# by Nadya Peek http://wiki.infosyncratic.nl/FabLab
#fablab install script!
sudo apt-get -y upgrade
sudo apt-get -y update
#basic life necessities
sudo apt-get -y install vim
#update permissions on /dev/ttyUSB0
echo 'KERNEL=="ttyUSB[0-9]*",NAME="tts/USB%n",SYMLINK+="%k",GROUP="uucp",MODE="0666"' | sudo tee -a /etc/udev/rules.d/50-ttyusb.rules
#random useful software
sudo apt-get -y install inkscape librecad gimp blender
#version control software
sudo apt-get -y install git gitk git-gui bzr mercurial
#tools for microcontroller programming
sudo apt-get -y install gcc-avr avr-libc avrdude
sudo apt-get -y install eagle eagle-data
#edit and uncomment the below line with your user name to be able to edit eagle libraries
#sudo chown user:user /usr/share/eagle/lbr
sudo apt-get -y install gavrasm
sudo apt-get -y install flex byacc bison gcc libusb-1.0-0 libusb-dev binutils
#install cad dependencies
sudo apt-get -y install python-imaging
sudo apt-get -y install python-serial
sudo apt-get -y install python-tk
sudo apt-get -y install python-imaging-tk
sudo apt-get -y install python-numpy
sudo apt-get -y install python-scipy
sudo apt-get -y install python-matplotlib
sudo apt-get -y install python-opengl
sudo apt-get -y install python-pygame
sudo apt-get -y install libpng-dev
sudo apt-get -y install python-wxtools
sudo apt-get -y install python-dev
sudo apt-get -y install python python-wxgtk2.8 gcc g++ libpng12-dev make bash okular libboost-all-dev cmake libgif-dev
sudo apt-get -y install apt-get install build-essential
sudo apt-get -y install autoconf automake libtool
sudo apt-get -y install python python-wxgtk2.8 python-dev python-pip gcc g++ libpng12-dev make bash okular libboost-thread-dev libboost-system-dev cmake
sudo pip -y install PyOpenGL PyOpenGL_accelerate numpy
# Download fab modules source
rm -rf ~/Desktop/fabmodules
cd ~/Desktop
mkdir fabmodules
cd fabmodules
wget http://kokompe.cba.mit.edu/fab_src.zip
unzip fab_src.zip
#ok here I'm adding a hack because the new kokompe maintainers are terrible admins grump grump you might want to check if this is still relevant
#mv Makefile Makefile_old
#cat Makefile_old | awk '/hg|koko/ { print "#" $0; next } { print $0 }' > Makefile
sudo make fab
sudo make install
#see wiki.infosyncratic.nl/FabSend for tips on configuring fab modules
#cups driver for epilog laser cutter
#wget http://as220.org/labs/Code/cups-epilog.tar.gz
#tar -xvzf cups-epilog.tar.gz
#cd cups-epilog/src
#sudo apt-get -y install libcups2-dev
#gcc -o epilog `cups-config --cflags` cups-epilog.c `cups-config --libs`
#sudo mv epilog /usr/lib/cups/backend/
#sudo /etc/init.d/cups restart
@pral2a
Copy link
Author

pral2a commented Mar 19, 2015

wget https://gist.githubusercontent.com/pral2a/7804545fc55b14ad0bef/raw/aae09fe6cb65bb3ce328b1c2938d376b798a6d58/make_it_fab.sh && sh make_it_fab.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment