/[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.61 - (hide annotations)
Sun Apr 25 14:53:22 2021 UTC (8 weeks, 4 days ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.60: +8 -1 lines
File MIME type: text/plain
fixed up the startup for the listner for the store

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

  ViewVC Help
Powered by ViewVC 1.1.26