-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall
executable file
·92 lines (76 loc) · 1.99 KB
/
install
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
91
92
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "Sorry you are not root."
exit 1
fi
echo Enter Github username
read USERNAME
if [[ ! -n "$USERNAME" ]]; then
echo "Sorry you did not enter a username"
exit 1
fi
echo Enter Github password
read -s -p Password: PASSWORD
if [[ ! -n "$PASSWORD" ]]; then
echo "Sorry you did not enter a password"
exit 1
fi
# Update command
echo ALEX -------------------------- update
sleep 1
apt-get update -y
# Upgrade command
echo ALEX -------------------------- upgrade
sleep 1
apt-get upgrade -y
# FTP command
echo ALEX -------------------------- ftp
sleep 1
apt-get install ftp -y
# Python command
echo ALEX -------------------------- python
sleep 1
apt-get install python -y
# Python-netifaces command
echo ALEX -------------------------- python-netifaces
sleep 1
apt-get install python-netifaces -y
# Dvblast command
echo ALEX -------------------------- dvblast
sleep 1
apt-get install dvblast -y
# W-SCAN command
echo ALEX -------------------------- w-scan
sleep 1
apt-get install w-scan -y
# Apache2 command
echo ALEX -------------------------- apache2
sleep 1
apt-get install apache2 -y
# Avahi-daemon command
echo ALEX -------------------------- avahi-daemon
sleep 1
apt-get install avahi-daemon -y
# Gi command
echo ALEX -------------------------- git
sleep 1
apt-get install git -y
# Edit port.conf file so that the apache server will use
# port 8081 instead of 80 (default)
PORTS=/etc/apache2/ports.conf
echo $PORTS
sed "s/80/8081/g" $PORTS > /etc/apache2/ports.new.conf
mv /etc/apache2/ports.new.conf $PORTS
service apache2 restart
{
echo ALEX ------------------------- old_index
mv /var/www/html/index.html /var/www/html/old_index.html
} || {
echo ALEX -------------------------- old_index2
mv /var/www/index.html /var/www/old_index2.html
}
# Get the source code from github
git clone -b develop https://$USERNAME:$PASSWORD@github.com/ebu/dtt2ip.git
# Copy firmware to /lib/firmware
cp dvb-usb-af9015.fw /lib/firmware/
cp dvb-usb-dib0700-1.20.fw /lib/firmware/