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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5