/[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.47 - (hide annotations) (download)
Tue Jan 15 11:55:19 2019 UTC (3 months, 1 week ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.46: +6 -1 lines
File MIME type: text/plain
ok - closer now - use firefox to save the file

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

  ViewVC Help
Powered by ViewVC 1.1.26