/[opencvs]/SilentRadiance/linux/server/src/install.txt
ViewVC logotype

Contents of /SilentRadiance/linux/server/src/install.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.41 - (show annotations)
Sat Nov 3 11:27:14 2018 UTC (10 days, 21 hours ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.40: +10 -1 lines
File MIME type: text/plain
right on
1 $Revision: 1.41 $
2
3 # Installed on
4 macbook pro 17 inch 2012 - Broadcom Corporation BCM43224 802.11a/b/g/n [14e4:4353] (rev 01) bcm43224 did not work real bad no AP
5 acer triple core 5??? Broadcom Corporation BCM43225 802.11b/g/n [14e4:4357] (rev 01) - bcm43225 did not work - got AP but cant do 2 mhz.
6 4312 replacement of 43225 - worked.
7 4318 - worked?
8
9
10
11
12 Now this install is being used for bot transmitting stations and for web transmitters. They might be slightly different.
13
14
15 Installation for linux server
16
17 sudo mkdir /var/log/sr
18 sudo chown z /var/log/sr
19
20 sudo apt install gtkhash
21 sudo apt-get install flac id3tool
22
23 # now we report back to the database
24 sudo apt install mariadb-client
25
26 # for 18.04:
27 sudo apt install cvs make gcc
28
29 export CVSROOT=hib@open.killercool.com:/opencvs
30 cvs co .
31
32
33
34 cd ~/opencvs/SilentRadiance/linux/other
35 #wget http://www.kevinboone.net/gettags.tar.gz
36 tar -xzvf gettags.tar.gz
37 cd gettags
38 edit Makefile
39 CFLAGS - add -DO_BINARY=0
40 # note - CFLAGS is in makefile twice
41 make
42 sudo make install
43
44
45
46 junk vvvvvvvvvvvvvvvvvvvvv
47 cd .../linux/server/src
48 ln -s ../../other .
49
50
51 # note - for web server : take out
52 cd /etc/apache2/
53 rm mods*/reqtimeout.conf mods*/reqtimeout.load
54 # reqtimeout.conf reqtimeout.load
55 # also have .htaccess hold
56 RemoveInputFilter pl .pl
57 RemoveOutputFilter pl .pl
58 junk ^^^^^^^^^^^^^^^^^^^^^^^^^^^
59
60
61
62
63 To install xubuntu 16.04 fresh: - user z with autologin
64
65 apt-get update
66 apt-get upgrade
67
68 # all of these are for bpgenc
69 sudo apt-get install -y zlib1g-dev libjpeg-dev \
70 cmake yasm g++ curl libcurl4-openssl-dev libsdl2-2.0 \
71 libsdl2-dev pavucontrol
72
73 sudo apt-get install -y libpng12-dev
74
75 sudo apt-get install -y libsdl-gfx1.2-dev libsdl1.2-dev libsdl-image1.2-dev
76
77
78 sudo apt-get install ntp
79 sudo apt-get install ntpstat
80 #sudo apt-get install chrony
81 sudo timedatectl set-ntp no
82 timedatectl
83 ntpq -p
84 #in the firewall - options ntpq 64.13.145.225
85
86
87 cpan
88 install Digest::SHA
89 exit
90
91
92
93 #
94 sudo apt-get install -y hostapd
95 sudo apt-get install -y isc-dhcp-server
96
97
98 #set_mcast_rate
99 #wicd?
100
101
102
103 sudo apt-get install -y mplayer
104 sudo apt-get install -y libid3-tools
105 # ^^^ id3info
106
107
108
109 sudo apt-get install libasound2-dev aubio-tools libaubio-dev libaubio-doc
110 sudo apt-get install -y jack-tools fftw3
111 #dont worry about realtime - we are just installing jack for aubio
112 sudo apt-get install libjack-dev
113
114 sudo apt-get install -y libjack-dev
115 sudo apt-get install -y dkms
116 sudo apt-get install -y wireless-tools
117
118
119 sudo apt-get install libasound2-dev aubio-tools libaubio-dev libaubio-doc
120 sudo apt-get install -y libavutil-dev
121 sudo apt-get install -y libavutil-ffmpeg54
122
123 sudo apt-get install -y libsamplerate-dev
124 apt-get install -y libavresample-ffmpeg2 libavcodec-dev libavcodec-ffmpeg56 libavcodec-dev
125 apt-get install -y libavformat-dev
126 apt-get install -y libavformat-ffmpeg56
127 #apt-get install -y libavformat56
128 apt-get install -y libavresample-dev
129 apt-get install -y libavresample-ffmpeg2
130 apt-get install -y libavcodec-dev
131 #apt-get install -y libavcodec-ffmpeg2
132 apt-get install -y libavcodec
133 apt-get install -y libavformat-dev libavformat-ffmpeg libavformat
134 apt-get install -y libsndfile-dev
135 apt-get install -y libssl-dev
136
137
138 #Then remove all aubio packages - just need the other packates for making it
139 apt-get remove aubio-tools libaubio-dev libaubio-doc libaubio4 python-aubio
140
141 #Then remove all aubio packages - just need the other packates for making it
142
143 apt-get remove -y aubio-tools libaubio-dev libaubio-doc libaubio4 python-aubio
144
145
146 #apt-get install -y libsndfile1-dev libsamplerate0-dev libavcodec-dev libavformat-dev libavutil-dev
147 #apt-get install -y libavresample-dev
148
149
150
151 #then get
152 cd
153 mkdir installs
154 cd installs
155 wget https://aubio.org/pub/aubio-0.4.3.tar.bz2
156 tar -xjvf *2
157 cd *3
158 ./waf configure --prefix=/usr
159 ./waf build
160 ./waf install
161
162
163
164 edit /etc/pulse/daemon.conf - and set default-sample-rate to 48000
165 reboot
166
167
168 As user z:
169 scp -p -r hib@legacy.local:cvs/SilentRadiance/linux/server/src ~
170
171 All of this is to get the b43 driver in, 4311 works 43225 no, 43224?
172
173
174
175 vvvvvvvvvvvvvvvvvvvvvvvvvvvv - this is only for the broadcom wireless, which will broadcast faster than 1Mb/s
176 Broadcomm - BCM4311:
177 from
178 https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx
179
180 lspci -vvnn | grep -A 9 Network
181 apt-get install -y b43-fwcutter
182 apt-get install -y firmware-b43-installer
183 cd
184 mkdir installs
185 cd installs
186 mkdir broadcom
187 cd ~/installs/broadcom
188 wget http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
189 tar xfvj broadcom-wl-5.100.138.tar.bz2
190 wget http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o
191 sudo b43-fwcutter -w /lib/firmware wl_apsta-3.130.20.0.o
192 # was broadcom-wl-4.150.10.5.tar.bz2 in case it is upward buggy
193 #sudo b43-fwcutter --unsupported -w /lib/firmware broadcom-wl*/driver/wl_apsta_mimo.o
194 sudo b43-fwcutter --unsupported -w /lib/firmware broadcom-wl*/driver/wl_apsta_mimo.o
195
196 #well that didnt help. But legacy has stuf fon it.
197 #wget http://downloads.openwrt.org/sources...a-3.130.20.
198 # 0.10.5.tar.bz2dcom-wl-4.15
199 #tar xfvj broadcom-wl-4.150.10
200 # http://ubuntuforums.org/showthread.php?t=2039020
201 #apt-get install b43
202
203 wget https://launchpad.net/ubuntu/+source/bcmwl/6.30.223.30+bdcom-0ubuntu1
204 dpkg -i bcmwl-kernel-source_6.30.223.30+bdcom-0ubuntu1_amd64.deb
205
206
207 And another try
208 wget https://launchpad.net/ubuntu/+archive/primary/+files/bcmwl_6.30.223.30+bdcom.orig.tar.gz
209 tar -xzf bcmwl_6.30.223.30+bdcom.orig.tar.gz
210
211
212
213
214 #add b43 to /etc/modules.conf
215
216
217 # from https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx?action=show&redirect=BroadcomSTA%28Wireless%29
218 sudo apt-get purge bcmwl-kernel-source
219
220 reboot
221
222 modprobe -v b43
223 ^^^^^^^^^^^^^^^^^^^^^^^^^^ Broadcom magic
224
225
226
227
228 For BVM43225:
229 tar xfvj broadcom-wl-5.100.138.tar.bz2
230 sudo b43-fwcutter -w /lib/firmware broadcom-wl-5.100.138/linux/wl_apsta.o
231
232 sudo modprobe -r b43 bcma
233 sudo modprobe -r brcmsmac bcma
234 sudo modprobe -r wl
235
236 sudo modprobe b43
237
238 sudo apt-get purge bcmwl-kernel-source
239
240
241
242
243
244 edit /etc/default/isc-dhcp-server - set interfaces up
245 Add at the bottom:
246 change:
247
248 INTERFACES=""
249 - to -
250 INTERFACES="wlan0"
251 # or whatever
252 #Then - copy /etc/hostapd/hostapd1,2,3.conf
253 cp -p -r ~z/opencvs/SilentRadiance/linux/server/src/hostapd_setup/* /etc/hostapd
254
255 # then set up rc.local silent0-silent3
256 export SETUP=silent3
257 scp -p -r ~z/opencvs/SilentRadiance/linux/server/src/auto_startup/$SETUP/rc.local /etc/rc.local
258
259 As user z:
260 scp -p -r ~z/opencvs/SilentRadiance/linux/server/src ~
261
262 export SETUP=silent3
263
264 mkdir ~/bin
265 scp -p -r ~z/opencvs/SilentRadiance/linux/server/src/auto_startup/$SETUP/z_bin/* ~/bin
266
267
268 Should start up now :
269
270 /etc/rc.local
271
272
273
274 # silent0 channel 1
275 # silent1 channel 4
276 # silent2 channel 8
277 # silent3 channel 11
278
279
280
281 edit /etc/network/interfaces
282 # add
283 iface wlan0 inet none
284
285 # this makes it so additional wireless interfaces can be managed but wlan0 will not be from the network manager thing.
286
287
288
289 # ok - now it starts up - lets add the web server so we can store the .apk
290
291 apt-get install -y apache2
292 chown z /var/www/html
293 rm /var/www/html/index.html
294
295
296 # copy the .apk into /var/www/html
297
298 Server - /etc/mime.types
299 application/silentradiance sirad
300
301 #Also - x11vnc - look at vnc-startup.sh
302 #http://c-nergy.be/blog/?p=8984
303
304 sudo apt-get install -y x11vnc -y
305 sudo x11vnc -storepasswd /etc/x11vnc.pass
306
307
308 cat > /lib/systemd/system/x11vnc.service << EOF
309 [Unit]
310 Description=Start x11vnc at startup.
311 After=multi-user.target
312 [Service]
313 Type=simple
314 ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
315 [Install]
316 WantedBy=multi-user.target
317 EOF
318
319 echo "Configure Services"
320 sudo systemctl daemon-reload
321 sudo systemctl enable x11vnc.service
322 sudo systemctl start x11vnc.service
323
324 Done
325 reboot
326
327 #might need it on weird graphics headless installs
328 sudo apt install xfce4-pulseaudio-plugin
329 # note this is different than the standard Sound menu - why?
330
331 auto-login as z
332 cat >/etc/lightdm/lightdm.conf.d/12-autologin.conf <<EOF
333 [SeatDefaults]
334 autologin-user=z
335 EOF
336
337 ff02::1
338 ipv6:
339 ifconfig wlan0 inet6 add fe80::d333:a111:2344:1111
340
341 sudo ./music_broadcast6 ff02::1 eth0
342
343 export CVSROOT=hib@open.killercool.com:/opencvs
344 z@money:~/opencvs$ cvs co SilentRadiance
345
346 cd ~/opencvs/SilentRadiance/linux/server/src
347 ln -s ../../other .
348
349
350 sudo apt install xtightvncviewer
351
352
353 cd ~/opencvs/SilentRadiance/linux/other
354 bash build_opus.sh
355 bash build_wav.sh
356 bash build_libpng.sh
357 bash build_libbpg_server.sh
358
359
360
361 cd ~/opencvs/SilentRadiance/linux/server/src
362 make
363 make install
364 ln -s src ~
365
366
367 cd ~/src
368
369 while :; do ./music_broadcast STREAM_SR00 ok | ./upload_to_server https://hm.silentradiance.com/upload.pl; done
370
371
372 url is http://sr000.silentradiance.com/upload.pl
373
374
375
376
377 sudo apt-get install nasm
378 sudo apt-get install musl-tools
379
380 cd ~/opencvs/SilentRadiance/linux/other
381 git clone https://github.com/spitbol/spitbol.git
382 cd spitbol
383 make
384 make install
385
386

  ViewVC Help
Powered by ViewVC 1.1.5