/[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.54 - (hide annotations) (download)
Fri Jun 14 21:53:25 2019 UTC (2 months, 1 week ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.53: +3 -2 lines
File MIME type: text/plain
scrape_all_album_images.sbl - wip?
gather_acuerdo_stats.sbl gather_acuerdo_stats.sh - new crontab job on web server to help see sales on first youtube link

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

  ViewVC Help
Powered by ViewVC 1.1.26