-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstalls.sh
117 lines (99 loc) · 3.06 KB
/
installs.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
echo ===============================
echo UPDATING SOFTWARE
echo ===============================
sudo apt-get update
sudo apt upgrade -y
echo ===============================
echo REMOVING X11
echo ===============================
# Remove libx11-6 to remove x11 and all dependent packages (anything GUI related, basically)
sudo apt-get remove --purge --auto-remove libgtk-3-common xkb-data lxde-icon-theme raspberrypi-artwork penguinspuzzle -y
mkdir linphone-tmp
cd linphone-tmp
sudo apt install python-setuptools git screen build-essential libtool automake cmake pkg-config libx11-6 libasound2-dev libspeexdsp-dev libavcodec-dev libgsm1-dev libopus-dev libspeex-dev libopencore-amrnb-dev libopencore-amrwb-dev -y
echo ===============================
echo INSTALLING MEDIASTREAMER
echo ===============================
echo
echo INSTALLING DEP: MBEDTLS
echo -------------------------------
git clone https://github.com/ARMmbed/mbedtls
cd mbedtls
cmake .
make
sudo make install
cd ..
echo
echo INSTALLING DEP: BCTOOLBOX
echo -------------------------------
git clone git://github.com/BelledonneCommunications/bctoolbox.git
cd bctoolbox
cmake . -DENABLE_TESTS_COMPONENT=NO
make
sudo make install
cd ..
echo
echo INSTALLING DEP: oRTP
echo -------------------------------
git clone git://git.linphone.org/ortp.git
cd ortp
cmake .
make
sudo make install
cd ..
echo
echo INSTALLING MEDIASTREAMER
echo -------------------------------
git clone git://github.com/BelledonneCommunications/mediastreamer2.git
cd mediastreamer2
wget http://www.linphone.org/releases/sources/plugins/msamr/msamr-latest.tar.gz
tar xzf msamr-latest.tar.gz
git clone git://github.com/BelledonneCommunications/bcg729.git
bcg729/autogen.sh
git clone git://github.com/Linphone-sync/mssilk.git
cmake -DENABLE_VIDEO=NO -DENABLE_ALSA=YES -DENABLE_NON_FREE_CODECS=YES -DENABLE_G729B_CNG=YES -DBcg729_DIR="bcg729" .
make
sudo make install
cd ..
export MEDIASTREAMER_CFLAGS=-I/usr/local/include/mediastreamer2
export MEDIASTREAMER_LIBS=-L/usr/local/lib
echo ===============================
echo INSTALLING PLUGINS
echo ===============================
echo
echo INSTALLING MSiLBC
echo -------------------------------
git clone https://github.com/Linphone-sync/libilbc-rfc3951
cd libilbc-rfc3951
./autogen.sh
./configure
make
sudo make install
cd ..
wget http://www.linphone.org/releases/sources/plugins/msilbc/msilbc-latest.tar.gz
tar xvf msilbc-latest.tar.gz
cd msilbc*
./configure
make
sudo make install
cd ..
echo
echo INSTALLING MS-SILK
echo -------------------------------
wget http://www.linphone.org/releases/sources/plugins/mssilk/mssilk-latest.tar.gz
tar xvf mssilk-latest.tar.gz
cd mssilk*
./configure
make
sudo make install
cd ..
echo ===============================
echo INSTALLING LINPHONE4RPI
echo ===============================
sudo easy_install pip
sudo pip install --upgrade pip
sudo pip install wheel
wget http://linphone.org/releases/linphone-python-raspberry/linphone4raspberry-3.9.1-cp27-none-any.whl
sudo pip install linphone4raspberry-*
cd ..
rm -rf linphone-tmp