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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.53 - (hide annotations) (download)
Fri Jun 7 13:45:19 2019 UTC (2 months, 2 weeks ago) by hib
Branch: MAIN
Changes since 1.52: +26 -1 lines
File MIME type: text/plain
wip - made ramdisk for killercool.com sirad files

1 hib 1.53 $Revision: 1.52 $
2 hib 1.39
3 hib 1.25 # Installed on
4 hib 1.26 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 hib 1.27 4312 replacement of 43225 - worked.
7     4318 - worked?
8    
9 hib 1.52 /*vvv special for refresh
10     cd ~/opencvs
11     cvs co SilentRadiance
12    
13     sudo apt install gtkhash m4 git flac id3tool
14    
15     cd ~/opencvs/SilentRadiance/linux/other
16     #wget http://www.kevinboone.net/gettags.tar.gz
17     #tar -xzvf gettags.tar.gz
18     cd gettags
19     #edit Makefile
20     #CFLAGS - add -DO_BINARY=0
21     # note - CFLAGS is in makefile twice
22     make
23     sudo make install
24    
25     cd ~/opencvs/SilentRadiance/linux/server/src
26     make
27     sudo make install
28    
29     cd ~/sr/
30     find . -name '*.ptxt' -size 0 -exec rm -rf {} ';'
31     #^^^ special for refresh of radio content generators*/
32    
33     # need to run on reggaeton, gd, ds, and hm!*!*!*!*
34     # ^^^^^ ----
35    
36    
37 hib 1.25
38    
39    
40 hib 1.23 Now this install is being used for bot transmitting stations and for web transmitters. They might be slightly different.
41    
42    
43 hib 1.52
44    
45    
46     sudo apt install gtkhash m4 git flac id3tool
47    
48 hib 1.2 Installation for linux server
49 hib 1.1
50 hib 1.33 sudo mkdir /var/log/sr
51     sudo chown z /var/log/sr
52 hib 1.25
53 hib 1.47 sudo apt-get install xautomation
54     sudo apt install xinput
55    
56    
57    
58 hib 1.33
59     # now we report back to the database
60     sudo apt install mariadb-client
61 hib 1.34
62 hib 1.36 # for 18.04:
63 hib 1.43 sudo apt install cvs make gcc
64 hib 1.36
65 hib 1.50 cd
66     mkdir opencvs
67     cd opencvs
68 hib 1.36 export CVSROOT=hib@open.killercool.com:/opencvs
69     cvs co .
70    
71 hib 1.52 sudo apt install gtkhash m4 git
72     sudo apt-get install flac id3tool
73 hib 1.34
74    
75     cd ~/opencvs/SilentRadiance/linux/other
76     #wget http://www.kevinboone.net/gettags.tar.gz
77     tar -xzvf gettags.tar.gz
78     cd gettags
79     edit Makefile
80     CFLAGS - add -DO_BINARY=0
81 hib 1.39 # note - CFLAGS is in makefile twice
82     make
83 hib 1.34 sudo make install
84    
85    
86 hib 1.25
87 hib 1.42
88 hib 1.50 cd ../../linux/server/src
89 hib 1.16 ln -s ../../other .
90 hib 1.10
91 hib 1.42 junk vvvvvvvvvvvvvvvvvvvvv
92 hib 1.17 # note - for web server : take out
93 hib 1.39 cd /etc/apache2/
94     rm mods*/reqtimeout.conf mods*/reqtimeout.load
95 hib 1.17 # reqtimeout.conf reqtimeout.load
96     # also have .htaccess hold
97     RemoveInputFilter pl .pl
98     RemoveOutputFilter pl .pl
99 hib 1.39 junk ^^^^^^^^^^^^^^^^^^^^^^^^^^^
100 hib 1.17
101    
102 hib 1.2
103    
104 hib 1.8 To install xubuntu 16.04 fresh: - user z with autologin
105 hib 1.2
106 hib 1.8 apt-get update
107     apt-get upgrade
108    
109 hib 1.22 # all of these are for bpgenc
110 hib 1.40 sudo apt-get install -y zlib1g-dev libjpeg-dev \
111     cmake yasm g++ curl libcurl4-openssl-dev libsdl2-2.0 \
112 hib 1.39 libsdl2-dev pavucontrol
113 hib 1.51 #sudo apt install libcurl4-gnutls-dev
114    
115    
116     #18.04???
117 hib 1.36
118 hib 1.42 #16.04:
119 hib 1.23 sudo apt-get install -y libpng12-dev
120    
121 hib 1.42 #18.04:
122     sudo apt-get install -y libpng-dev
123    
124 hib 1.39 sudo apt-get install -y libsdl-gfx1.2-dev libsdl1.2-dev libsdl-image1.2-dev
125 hib 1.23
126 hib 1.21
127 hib 1.41 sudo apt-get install ntp
128     sudo apt-get install ntpstat
129     #sudo apt-get install chrony
130     sudo timedatectl set-ntp no
131     timedatectl
132     ntpq -p
133     #in the firewall - options ntpq 64.13.145.225
134    
135    
136 hib 1.46 sudo cpan
137 hib 1.8 install Digest::SHA
138 hib 1.25 exit
139 hib 1.2
140 hib 1.28
141 hib 1.49 sudo apt-get install -y mplayer
142     sudo apt-get install -y libid3-tools
143     # ^^^ id3info
144    
145 hib 1.28
146 hib 1.42 # vvv for wifi broadcaster
147 hib 1.36 sudo apt-get install -y hostapd
148     sudo apt-get install -y isc-dhcp-server
149 hib 1.42 sudo apt-get install -y wireless-tools
150 hib 1.19
151 hib 1.2 #set_mcast_rate
152 hib 1.3 #wicd?
153 hib 1.15
154 hib 1.42 # ^^^ for wifi broadcaster
155    
156    
157    
158 hib 1.2
159 hib 1.28
160    
161 hib 1.46 sudo apt-get install -y libasound2-dev aubio-tools libaubio-dev libaubio-doc
162 hib 1.23 sudo apt-get install -y jack-tools fftw3
163 hib 1.6 #dont worry about realtime - we are just installing jack for aubio
164 hib 1.46 sudo apt-get install -y libjack-dev
165 hib 1.6
166 hib 1.36 sudo apt-get install -y dkms
167 hib 1.4
168 hib 1.2
169 hib 1.46 sudo apt-get install -y libasound2-dev aubio-tools libaubio-dev libaubio-doc
170 hib 1.36 sudo apt-get install -y libavutil-dev
171     sudo apt-get install -y libavutil-ffmpeg54
172 hib 1.28
173 hib 1.36 sudo apt-get install -y libsamplerate-dev
174 hib 1.45
175    
176 hib 1.42 sudo apt-get install -y libavresample-ffmpeg2 libavcodec-dev libavcodec-ffmpeg56 libavcodec-dev
177     sudo apt-get install -y libavformat-dev
178 hib 1.50
179     # 16.04:
180     #sudo apt-get install -y libavformat-ffmpeg56
181 hib 1.42 #sudo apt-get install -y libavformat56
182 hib 1.50
183     #18.04:
184     sudo apt-get install libavcodec-extra57 libavformat57 libavutil55
185    
186 hib 1.42 sudo apt-get install -y libavresample-dev
187 hib 1.50 #16.04
188     #sudo apt-get install -y libavresample-ffmpeg2
189    
190     #18.04 is in libavutil55m dibe earkuet
191    
192 hib 1.42 sudo apt-get install -y libavcodec-dev
193 hib 1.50 #16.04
194     #sudo apt-get install -y libavcodec
195    
196     #18.04
197     #nothing
198 hib 1.13
199 hib 1.50 #16,04 :
200     #sudo apt-get install -y libavformat libavformat-ffmpeg
201 hib 1.13
202 hib 1.50 #18.04:
203     #nothing
204 hib 1.12
205    
206 hib 1.50 sudo apt-get install -y libsndfile-dev
207     sudo apt-get install -y libssl-dev
208 hib 1.12
209 hib 1.13
210 hib 1.50 #16.04 Then remove all aubio packages - just need the other packates for making it
211     #sudo apt-get remove -y aubio-tools libaubio-dev libaubio-doc libaubio4 python-aubio
212 hib 1.12
213 hib 1.50 #18.04 - no need cause aubio is higher: 0.4.5-1 on ubuntu 18.04
214     #nothing
215 hib 1.12
216 hib 1.46
217 hib 1.50 #All this aubio was for 16.04 where there was a bug that crashed the server sometimes.
218     #cd
219     #mkdir installs
220     #cd installs
221     #wget https://aubio.org/pub/aubio-0.4.3.tar.bz2
222     # tar -xjvf *2
223     # cd aubio*3
224     # ./waf configure --prefix=/usr
225     # ./waf build
226     #sudo ./waf install
227 hib 1.11
228    
229 hib 1.2
230     edit /etc/pulse/daemon.conf - and set default-sample-rate to 48000
231     reboot
232    
233    
234 hib 1.42
235     # vvv for wifi broadcaster
236    
237 hib 1.4
238 hib 1.25 All of this is to get the b43 driver in, 4311 works 43225 no, 43224?
239 hib 1.13
240    
241    
242     vvvvvvvvvvvvvvvvvvvvvvvvvvvv - this is only for the broadcom wireless, which will broadcast faster than 1Mb/s
243 hib 1.4 Broadcomm - BCM4311:
244     from
245     https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx
246    
247     lspci -vvnn | grep -A 9 Network
248 hib 1.23 apt-get install -y b43-fwcutter
249     apt-get install -y firmware-b43-installer
250 hib 1.8 cd
251     mkdir installs
252     cd installs
253     mkdir broadcom
254     cd ~/installs/broadcom
255 hib 1.4 wget http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
256 hib 1.8 tar xfvj broadcom-wl-5.100.138.tar.bz2
257     wget http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o
258 hib 1.6 sudo b43-fwcutter -w /lib/firmware wl_apsta-3.130.20.0.o
259 hib 1.25 # was broadcom-wl-4.150.10.5.tar.bz2 in case it is upward buggy
260     #sudo b43-fwcutter --unsupported -w /lib/firmware broadcom-wl*/driver/wl_apsta_mimo.o
261 hib 1.8 sudo b43-fwcutter --unsupported -w /lib/firmware broadcom-wl*/driver/wl_apsta_mimo.o
262 hib 1.4
263     #well that didnt help. But legacy has stuf fon it.
264     #wget http://downloads.openwrt.org/sources...a-3.130.20.
265     # 0.10.5.tar.bz2dcom-wl-4.15
266     #tar xfvj broadcom-wl-4.150.10
267     # http://ubuntuforums.org/showthread.php?t=2039020
268 hib 1.6 #apt-get install b43
269 hib 1.4
270 hib 1.8 wget https://launchpad.net/ubuntu/+source/bcmwl/6.30.223.30+bdcom-0ubuntu1
271 hib 1.6 dpkg -i bcmwl-kernel-source_6.30.223.30+bdcom-0ubuntu1_amd64.deb
272    
273 hib 1.8
274 hib 1.25 And another try
275     wget https://launchpad.net/ubuntu/+archive/primary/+files/bcmwl_6.30.223.30+bdcom.orig.tar.gz
276     tar -xzf bcmwl_6.30.223.30+bdcom.orig.tar.gz
277    
278 hib 1.13
279    
280 hib 1.8
281     #add b43 to /etc/modules.conf
282 hib 1.6
283 hib 1.27
284 hib 1.8 # from https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx?action=show&redirect=BroadcomSTA%28Wireless%29
285     sudo apt-get purge bcmwl-kernel-source
286    
287     reboot
288 hib 1.4
289 hib 1.8 modprobe -v b43
290 hib 1.13 ^^^^^^^^^^^^^^^^^^^^^^^^^^ Broadcom magic
291    
292 hib 1.4
293 hib 1.2
294 hib 1.13
295 hib 1.25 For BVM43225:
296     tar xfvj broadcom-wl-5.100.138.tar.bz2
297     sudo b43-fwcutter -w /lib/firmware broadcom-wl-5.100.138/linux/wl_apsta.o
298    
299     sudo modprobe -r b43 bcma
300     sudo modprobe -r brcmsmac bcma
301     sudo modprobe -r wl
302    
303     sudo modprobe b43
304    
305     sudo apt-get purge bcmwl-kernel-source
306    
307    
308    
309 hib 1.13
310    
311     edit /etc/default/isc-dhcp-server - set interfaces up
312     Add at the bottom:
313     change:
314    
315     INTERFACES=""
316     - to -
317     INTERFACES="wlan0"
318 hib 1.25 # or whatever
319 hib 1.8 #Then - copy /etc/hostapd/hostapd1,2,3.conf
320 hib 1.25 cp -p -r ~z/opencvs/SilentRadiance/linux/server/src/hostapd_setup/* /etc/hostapd
321 hib 1.2
322 hib 1.8 # then set up rc.local silent0-silent3
323     export SETUP=silent3
324 hib 1.25 scp -p -r ~z/opencvs/SilentRadiance/linux/server/src/auto_startup/$SETUP/rc.local /etc/rc.local
325 hib 1.2
326 hib 1.8 As user z:
327 hib 1.25 scp -p -r ~z/opencvs/SilentRadiance/linux/server/src ~
328 hib 1.2
329 hib 1.8 export SETUP=silent3
330 hib 1.2
331 hib 1.8 mkdir ~/bin
332 hib 1.25 scp -p -r ~z/opencvs/SilentRadiance/linux/server/src/auto_startup/$SETUP/z_bin/* ~/bin
333 hib 1.2
334    
335 hib 1.8 Should start up now :
336 hib 1.2
337 hib 1.8 /etc/rc.local
338 hib 1.2
339 hib 1.1
340 hib 1.5
341 hib 1.8 # silent0 channel 1
342     # silent1 channel 4
343     # silent2 channel 8
344 hib 1.9 # silent3 channel 11
345 hib 1.5
346    
347 hib 1.9
348     edit /etc/network/interfaces
349     # add
350     iface wlan0 inet none
351    
352     # this makes it so additional wireless interfaces can be managed but wlan0 will not be from the network manager thing.
353    
354    
355    
356     # ok - now it starts up - lets add the web server so we can store the .apk
357    
358 hib 1.23 apt-get install -y apache2
359 hib 1.9 chown z /var/www/html
360     rm /var/www/html/index.html
361    
362    
363     # copy the .apk into /var/www/html
364    
365 hib 1.5 Server - /etc/mime.types
366 hib 1.9 application/silentradiance sirad
367    
368 hib 1.42
369     # ^^^ Broadcast laptio setup
370    
371    
372    
373    
374    
375    
376    
377 hib 1.13 #Also - x11vnc - look at vnc-startup.sh
378     #http://c-nergy.be/blog/?p=8984
379 hib 1.12
380 hib 1.49 # note -listen localhost is for standalone servers, like rnb and country
381    
382 hib 1.23 sudo apt-get install -y x11vnc -y
383 hib 1.12 sudo x11vnc -storepasswd /etc/x11vnc.pass
384 hib 1.9
385 hib 1.13
386 hib 1.50 sudo su
387    
388     cat > /lib/systemd/system/x11vnc.service << EOF
389 hib 1.12 [Unit]
390     Description=Start x11vnc at startup.
391     After=multi-user.target
392     [Service]
393     Type=simple
394 hib 1.49 ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -listen localhost -noxdamage -repeat \
395 hib 1.42 -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
396 hib 1.12 [Install]
397     WantedBy=multi-user.target
398     EOF
399    
400 hib 1.50 exit
401     # ^^^ back to normal user
402    
403    
404 hib 1.12 echo "Configure Services"
405     sudo systemctl daemon-reload
406 hib 1.36 sudo systemctl enable x11vnc.service
407 hib 1.12 sudo systemctl start x11vnc.service
408 hib 1.9
409 hib 1.50 # Done
410 hib 1.13 reboot
411 hib 1.7
412 hib 1.28 #might need it on weird graphics headless installs
413     sudo apt install xfce4-pulseaudio-plugin
414     # note this is different than the standard Sound menu - why?
415 hib 1.7
416 hib 1.13 auto-login as z
417     cat >/etc/lightdm/lightdm.conf.d/12-autologin.conf <<EOF
418     [SeatDefaults]
419     autologin-user=z
420     EOF
421 hib 1.7
422     ff02::1
423     ipv6:
424 hib 1.10 ifconfig wlan0 inet6 add fe80::d333:a111:2344:1111
425    
426 hib 1.7 sudo ./music_broadcast6 ff02::1 eth0
427 hib 1.13
428 hib 1.28 export CVSROOT=hib@open.killercool.com:/opencvs
429     z@money:~/opencvs$ cvs co SilentRadiance
430 hib 1.23
431     cd ~/opencvs/SilentRadiance/linux/server/src
432 hib 1.28 ln -s ../../other .
433 hib 1.23
434 hib 1.36
435     sudo apt install xtightvncviewer
436    
437    
438 hib 1.39 cd ~/opencvs/SilentRadiance/linux/other
439 hib 1.28 bash build_opus.sh
440 hib 1.23 bash build_wav.sh
441     bash build_libpng.sh
442 hib 1.46 #bash build_libbpg_server.sh
443 hib 1.23
444    
445    
446     cd ~/opencvs/SilentRadiance/linux/server/src
447 hib 1.24 make
448 hib 1.46 sudo make install
449    
450 hib 1.31 ln -s src ~
451 hib 1.24
452 hib 1.31
453     cd ~/src
454 hib 1.38
455 hib 1.37 while :; do ./music_broadcast STREAM_SR00 ok | ./upload_to_server https://hm.silentradiance.com/upload.pl; done
456    
457 hib 1.38
458 hib 1.24 url is http://sr000.silentradiance.com/upload.pl
459 hib 1.23
460 hib 1.28
461    
462    
463 hib 1.35 sudo apt-get install nasm
464     sudo apt-get install musl-tools
465    
466     cd ~/opencvs/SilentRadiance/linux/other
467     git clone https://github.com/spitbol/spitbol.git
468     cd spitbol
469     make
470 hib 1.43 sudo make install
471 hib 1.35
472    
473 hib 1.43 # regular snobol4 is used in the server as well
474     cd ~/opencvs/SilentRadiance/linux/other
475     wget ftp://ftp.ultimate.com/snobol/snobol4-2.0.tar.gz
476     tar -xzvf snobol4-2.0.tar.gz
477     cd snobol4-2.0
478     ./configure
479     make
480     sudo make install
481 hib 1.44
482    
483    
484    
485    
486     # for transmitter only, not for broadcaster:
487     # then set up rc.local silent0-silent3
488     # as user root:
489     export SETUP=radio
490     scp -p -r ~z/opencvs/SilentRadiance/linux/server/src/auto_startup/radio/rc.local /etc/rc.local
491    
492     As user z:
493     ln -s ~z/opencvs/SilentRadiance/linux/server/src ~/src
494    
495     export SETUP=radio
496    
497     mkdir ~/bin
498     scp -p -r ~z/opencvs/SilentRadiance/linux/server/src/auto_startup/$SETUP/z_bin/* ~/bin
499     cp -i ~/bin/silentradiance_config ~/.silentradiance_config
500    
501     edit ~/.silentradiance_config
502    
503    
504    
505     #Should start up now :
506     # as root:
507     /etc/rc.local
508 hib 1.53 >
509    
510    
511    
512    
513     # main stroe we bserver speedup:
514     make_radio_ramdisks.sh
515     # mounts ramdisks to the radio folders so that they dont go to the real disk
516     # could make the system run out of memory, so we have to clear the older sirad files
517     # with a cron job instead of by the perl download program
518    
519     # in rc.local on pt.silentradiance.com:
520     /usr/local/bin/make_radio_ramdisks.sh
521    
522    
523     crontab -e
524     1,11,21,31,41,51 * * * * * /usr/local/bin/clear_old_sirad_files.sh
525    
526    
527     # other performance tweaks - set the ram for virtual radio senders to 1.5g without
528     #virtual memory - because was dipping into vm and then doing it more and more causing
529     # a cascade effect on the herd disks
530    
531     # hard disk usage is still kinda high on automatedmd.com (one disk only) - so need more disks.
532    

  ViewVC Help
Powered by ViewVC 1.1.26