forked from markuslindenberg/badge-o-matic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
badge-o-matic-install.sh
executable file
·50 lines (37 loc) · 1.17 KB
/
badge-o-matic-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/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