forked from blissland/blissflixx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.sh
executable file
·90 lines (64 loc) · 1.84 KB
/
configure.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
# Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo "This script must be run using sudo" 1>&2
exit 1
fi
echo ""
echo "============================================================"
echo ""
echo "Installing necessary dependencies... (This will take a while)"
echo ""
echo "============================================================"
# Update to latest packages
apt-get update
# Fix broken packages
apt-get -y -f install
# Remove old version of node
apt-get -y remove nodejs-legacy
# Install latest node.js
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
dpkg -i node_latest_armhf.deb
rm node_latest_armhf.deb
# Install npm
apt-get -y install npm
# Install latest omxplayer
wget -O omxplayer.deb http://omxplayer.sconde.net/builds/omxplayer_0.3.7~git20160923~dfea8c9_armhf.deb
dpkg -i omxplayer.deb
rm omxplayer.deb
# Install peerflix
npm install -g peerflix
# Install GIT
apt-get -y install git
# Install libav for Jessie
apt-get -y install libav-tools
# Install rtmpdump
apt-get -y install rtmpdump
# See https://github.com/blissland/blissflixx/issues/31
apt-get -y install gcc
# Install python pip
apt-get -y install python-pip
# Install python build tools
apt-get -y install python-dev
# Install CherryPy
pip install cherrypy
# Install subprocess32 module
pip install subprocess32
# Install requests module
pip install requests
# Install XML parser
apt-get -y install libxml2-dev
# Install XSLT package
apt-get -y install libxslt1-dev
# Install lxml module
pip install lxml
# Install cssselect module
pip install cssselect
# Install livestreamer module
pip install livestreamer
# Required for setcap
apt-get -y install libcap2-bin
# So server can run on port 80 without sudo
setcap 'cap_net_bind_service=+ep' /usr/bin/python2.7
# Install bonjour for raspberrypi.local
apt-get -y install libnss-mdns