From 98f1c4f516994d9e0f33c37308d28ec5a3b249c1 Mon Sep 17 00:00:00 2001 From: pinguinpfleger Date: Tue, 9 Feb 2016 12:12:22 +0100 Subject: [PATCH] first commit --- badge-o-matic-install.sh | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 badge-o-matic-install.sh diff --git a/badge-o-matic-install.sh b/badge-o-matic-install.sh new file mode 100755 index 0000000..728c316 --- /dev/null +++ b/badge-o-matic-install.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +#================================================================ +# +# This installs badge-o-matic with its dependencies +# on debian jessie +# +#================================================================ + + +# add unstable repository +cat < /etc/apt/sources.list.d/sid.list +deb http://ftp.de.debian.org/debian/ sid main non-free contrib +deb-src http://ftp.de.debian.org/debian/ sid main non-free contrib +EOT + +# apt pinning for unstable packages +cat < /etc/apt/preferences.d/sid +Package: * +Pin: release a=unstable +Pin-Priority: 20 + +Package: printer-driver-ptouch +Pin: release a=unstable +Pin-Priority: 600 + +Package: python3-pyroute2 +Pin: release a=unstable +Pin-Priority: 600 + +Package: python3-reportlab +Pin: release a=unstable +Pin-Priority: 600 + +Package: python3-reportlab-accel +Pin: release a=unstable +Pin-Priority: 600 +EOT + +apt-get update + +# install packets from stable +apt-get install git cups cups-bsd python3 python3-flask python3-pil + +# install packets from unstable +apt-get install printer-driver-ptouch python3-pyroute2 python3-reportlab python3-reportlab-accel + +# get badge-o-matic from github +git clone --depth 1 git@github.com:markuslindenberg/badge-o-matic.git +