/[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.55 - (hide annotations)
Mon Nov 4 11:07:15 2019 UTC (5 weeks, 6 days ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.54: +28 -16 lines
File MIME type: text/plain
Added trance and fixed problem with psytrance

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

  ViewVC Help
Powered by ViewVC 1.1.26