Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add install script #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions badge-o-matic-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

#================================================================
#
# This installs badge-o-matic with its dependencies
# on debian jessie
#
#================================================================


# add unstable repository
cat <<EOT > /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 <<EOT > /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 [email protected]:markuslindenberg/badge-o-matic.git