├── .gitattributes ├── LittlePrinterPi.sh └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | *.img filter=lfs diff=lfs merge=lfs -text 2 | -------------------------------------------------------------------------------- /LittlePrinterPi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo 'Installing sirius - alternative backend for the Little Printer' 3 | echo 'This might take a while ...' 4 | LIST_OF_APPS="apt-utils git python-pip libpq-dev libfreetype6-dev fontconfig libgstreamer0.10-dev python-dev" #List of prerequisite 5 | SIRIUS_PATH="/opt/sirius" #Set installation path for Sirius 6 | export SIRIUS_PATH=$SIRIUS_PATH #To make sure we keep track where sirius was installed 7 | echo 'SIRIUS_PATH='$SIRIUS_PATH >> /etc/environment #Make the sirius path an environment variable 8 | echo 'Getting latest package lists' 9 | apt-get update && apt-get install apt-transport-https -y # To get the latest package lists and make sure we can handle https mirrors 10 | echo 'Installing prerequisite' 11 | apt-get install $LIST_OF_APPS -y #installing all the prerequisites 12 | echo 'Downloading PhantomJS binary for ARM' 13 | wget https://github.com/piksel/phantomjs-raspberrypi/raw/master/bin/phantomjs -N -P /usr/local/bin #fetching the phantomjs ARM binary 14 | echo 'Making PhantomJS binary executable' 15 | chmod 755 /usr/local/bin/phantomjs #make phantomjs binary executable 16 | echo 'Installing Honcho via pip' 17 | pip install honcho 18 | pip install virtualenv virtualenvwrapper 19 | echo 'export WORKON_HOME=~/Envs' >>~/.bashrc 20 | echo 'source /usr/local/bin/virtualenvwrapper.sh' >>~/.bashrc 21 | source ~/.bashrc 22 | mkdir -p $WORKON_HOME 23 | mkvirtualenv lpenv 24 | workon lpenv 25 | echo 'Cloning the sirius GIT repo' 26 | git clone https://github.com/beyondio/sirius.git $SIRIUS_PATH 27 | echo 'Installing all the required packages for sirius via pip' 28 | pip install -r $SIRIUS_PATH/requirements.txt 29 | echo 'Upgrading the sirius Postsql database' 30 | python $SIRIUS_PATH/manage.py db upgrade 31 | echo 'ALL DONE!' 32 | echo 'To start sirius via honcho try :' 33 | echo 'cd $SIRIUS_PATH && honcho -e $SIRIUS_PATH/.env -d $SIRIUS_PATH/ -f $SIRIUS_PATH/Procfile start' 34 | echo 'After boot, make sure to initialize the virtual environment with "workon lpevn"' 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # LittlePrinterPi 2 | 3 | ### Description 4 | Multiple ways to set up a Raspberry Pi that includes a working installation of [Sirius](https://github.com/genmon/sirius), the alternative backend / cloud component for your BERG Cloud Little Printer. 5 | 6 | ### Installing a barebones Sirius on a Raspberry Pi 7 | 8 | #### Options 9 | You can either: 10 | 11 | 1. Install the [pre-made image](https://github.com/beyondio/LittlePrinterPi/wiki/Image): pick this if you just want start printing again. At the moment you can log in with Twitter and send messages to your Little Printer. 12 | 2. Use [the install script](https://github.com/beyondio/LittlePrinterPi/wiki/script): pick this if you want a working Sirius installation which you can use to further explore and develop Sirius. The script sets up a virtualenv which makes it easier to work in. 13 | 3. [Explore the script](https://github.com/beyondio/LittlePrinterPi/blob/master/LittlePrinterPi.sh) and manually follow all the steps. Use this if you know what you're doing or want to set up something specific. The install script should work -caveat emptor- on any debian based linux distribution, but you will have to install the appropriate PhantomJS as described [here](https://gist.github.com/hako/f8944cfa7b8fb8115f6d#installing-phantomjs). 14 | 15 | #### Installation instructions: 16 | 17 | Can be found on the [wiki page](https://github.com/beyondio/LittlePrinterPi/wiki) 18 | --------------------------------------------------------------------------------