Welcome, Guest. Please login or register.
Did you miss your activation email?
October 25, 2014, 11:42:08 PM
Home Help Login Register      
News: LiveATC.net Flyers Released!  Please click here to download & print a copy and be sure to post at an airport near you!


+  LiveATC Discussion Forums
|-+  Air Traffic Monitoring
| |-+  Feed Setup Pictures (Moderators: dave, RonR)
| | |-+  KSFB has been Plugged!
« previous next »
Pages: 1 [2] 3 Go Down Print
Author Topic: KSFB has been Plugged!  (Read 33882 times)
Island Pacific Flight Academy
Newbie
*
Offline Offline

Posts: 42



« Reply #15 on: March 22, 2011, 12:44:37 AM »

I was so inspired by this i just picked up 3 to run my feeds. what a great little set up can't wait for them to arrive in the mail... also got the same sound card you are using so that i know it will work with no messing around.
Logged

feeder:  CYYJ- Victoria Tower http://d.liveatc.net/cyyj_gnd_twr
            CYYJ- Victoria Terminal http://d.liveatc.net/cyyj_del_app
            CYWH- Victoria Harbour http://d.liveatc.net/cywh
Biff
Sr. Member
****
Offline Offline

Posts: 373



WWW
« Reply #16 on: March 22, 2011, 09:29:10 AM »

Awesome!

Mine's only been rebooted once in the last 5 or 6 months - and that's because I had to physically move the box.  Runs like a champ.
Logged

Island Pacific Flight Academy
Newbie
*
Offline Offline

Posts: 42



« Reply #17 on: March 22, 2011, 10:12:12 AM »

thats great. I am probably going to have to send you some PMs to help me through the first set up since you probably went through some trying times i would like to avoid. haha grin
Logged

feeder:  CYYJ- Victoria Tower http://d.liveatc.net/cyyj_gnd_twr
            CYYJ- Victoria Terminal http://d.liveatc.net/cyyj_del_app
            CYWH- Victoria Harbour http://d.liveatc.net/cywh
Biff
Sr. Member
****
Offline Offline

Posts: 373



WWW
« Reply #18 on: March 26, 2011, 07:52:36 PM »

Welp, totally jinxed my server.  It's dead for the moment.   angry

I think it's a flash memory problem.  I don't know if it's salvageable or not.  Might have to go to plan B, and get the feed up on another machine while I mess with it.
Logged

Biff
Sr. Member
****
Offline Offline

Posts: 373



WWW
« Reply #19 on: March 27, 2011, 03:56:42 PM »

Had to re-flash the plug then remember how to get everything re-installed.

It's back up.  Fingers crossed it stays that way.  Worried I might have some bad flash memory.
Logged

Island Pacific Flight Academy
Newbie
*
Offline Offline

Posts: 42



« Reply #20 on: March 27, 2011, 06:22:10 PM »

my 3 came in and im just waiting for the sound cards to get here they are in the mail... and 2 more radios also in the mail. hopefully for the end of the week so i can start playing around with them.

I was wondering if you might be able to send me some sort of step by step instructions so things run smooth the first time. if not i have a bit of  linux knowledge and can figure things out just thought i might be able to learn from your experience.
Logged

feeder:  CYYJ- Victoria Tower http://d.liveatc.net/cyyj_gnd_twr
            CYYJ- Victoria Terminal http://d.liveatc.net/cyyj_del_app
            CYWH- Victoria Harbour http://d.liveatc.net/cywh
derdude
Newbie
*
Offline Offline

Posts: 2


« Reply #21 on: April 18, 2011, 11:30:41 AM »

Any chance the instuctions could be posted here on how you made yours work?
Thanks...
Logged
smeuse
Newbie
*
Offline Offline

Posts: 15


WWW
« Reply #22 on: April 18, 2011, 01:10:09 PM »

Has anyone played with the Dream Plug yet? I just got mine last week, haven't had much of a chance to do anything with it yet. The one thing I *did* notice was that the soundcard was not addressed as /dev/dsp, or maybe the /dev/dsp device is not created by default.

Otherwise it looks like a nice box for only 5 watts Smiley

http://www.globalscaletechnologies.com/t-dreamplugdetails.aspx

Logged

dave
Site Founder
Administrator
Hero Member
*****
Offline Offline

Posts: 3665



WWW
« Reply #23 on: April 18, 2011, 01:40:19 PM »

In darkice.cfg try addressing it as 'default'

device = default

If that doesn't work let's talk offline.

I have a few different plugs - only one currently solid is the SheevaPlug.  The GuruPlugs have issues getting the right kernels on them (mainly because i haven't had time to hack on them).

The DreamPlug should be more straightforward and the fact that it has built-in audio is nice.  Since it is a mic input some attention will need to be paid to attenuating or strictly controlling the audio input level.


Logged
Biff
Sr. Member
****
Offline Offline

Posts: 373



WWW
« Reply #24 on: April 18, 2011, 04:48:29 PM »

Wow, that DreamPlug looks nice.  Smiley

My Sheeva's now been up 22 days since having to rebuild the thing.  Don't know if the flash memory got corrupted or what.  It's been running the feed for 6 months total now.

Logged

dave
Site Founder
Administrator
Hero Member
*****
Offline Offline

Posts: 3665



WWW
« Reply #25 on: April 19, 2011, 08:38:57 PM »

My Sheeva ran the Lake Parker feed all week for Sun 'n Fun, including surviving Level 5 thunderstorms and a few power cycles.
smiley
Logged
smeuse
Newbie
*
Offline Offline

Posts: 15


WWW
« Reply #26 on: April 24, 2011, 02:54:45 PM »

Finally had time to get the Dreamplug working. I ended up just using "hw:0,0" for the device in the config. Still getting things adjusted; I'm guessing I'll need to attenuate the audio a bit.

The one thing I noticed (which really shouldn't surprise me) is that it runs pretty high CPU. It makes the command line a little laggy, but hey, not bad for what it is Smiley

-Steve
Logged

smeuse
Newbie
*
Offline Offline

Posts: 15


WWW
« Reply #27 on: April 24, 2011, 03:48:57 PM »

For future reference for anyone using Darkice with the Dreamplug: use "plughw:0,0" for the audio device, *not* "hw:0,0".

"hw:0,0" was spiking the CPU and slowing down/distorting the audio. I'm not sure what the deal is between the two device names, I'll have to look that up later.

So now, 1 Darkice process running at a sample rate of 11Kb/s, the CPU is hovering around 21%.

Also, the audio was no problem, no attenuation required.

I also prevented httpd, dnsmasq, cups and bluetooth from starting, I'm now only using 50MB of ram (down from over 200MB by default).

-Steve

Logged

Island Pacific Flight Academy
Newbie
*
Offline Offline

Posts: 42



« Reply #28 on: June 01, 2011, 02:31:45 PM »

I have a whole instruction of how to set up a sheeva plug from my tech guy, but he is a tech guy and i need to edit out some swearing i have done it twice and following these steps work for me i will get it on here in a couple mins of editing...
Logged

feeder:  CYYJ- Victoria Tower http://d.liveatc.net/cyyj_gnd_twr
            CYYJ- Victoria Terminal http://d.liveatc.net/cyyj_del_app
            CYWH- Victoria Harbour http://d.liveatc.net/cywh
Island Pacific Flight Academy
Newbie
*
Offline Offline

Posts: 42



« Reply #29 on: June 01, 2011, 02:37:03 PM »

As for setup from a new sheva plug if memory serves you need to do the following:

1)
After boot you need to first fix DHCP
edit
/etc/dhcp3/dhclient.conf
and comment out (IE add a #  to supersede domain-name-servers 127.0.0.1;)    so you should see # supersede domain-name-servers 127.0.0.1;
restart


2) you now need to fix some screwed up permissions for your var files
Edit
/etc/rc.local
and add the following lines:

chmod 1777 /tmp /var/tmp
mkdir -p /var/cache/apt/archives/partial
/usr/sbin/ntpdate-debian

save and exit
you now need to run the script you just saved by entering:
./rc.local

after it runs enter
dpkg-reconfigure tzdata
to setup time so apt-get will work correctly

reboot for fun

3)
 you now need to fix apt-get as they screwed up the distro IP
edit
/etc/hosts
change the IP the have for ports.ubuntu.com to 91.189.92.175    ie it should read
127.0.0.1 localhost
91.189.92.175 ports.ubuntu.com

reboot

4)
now you need to update apt-get and install some other stuff

run:
apt-get update

then run:
apt-get install man

then run:
apt-get install wget

then run:
apt-get install darkice

5)
now you need to update the os to something that actually understands the USB audio devices

this MUST be done via the USB cable and NOT via IP SSH, so install the relivant drivers and log into the device via serial terminal

   5a)
first you need to fix another screwup
edit
/etc/sysctl.d/10-process-security.conf
find the line that says:
vm.mmap_min_addr #####
and set the #### to 32768
save exit reboot

   5b)
go to the root directory and enter
wget http://sheeva.with-linux.com/sheeva/README-PLUG-UPDATE.sh
this will download the update script
now enter:
chmod 777 README-PLUG-UPDATE.sh

now enter:
./README-PLUG-UPDATE.sh
its going to spit out:
Use ./README-PLUG-UPDATE.sh VERSION --nandkernel to write kernel to NAND
Or  ./README-PLUG-UPDATE.sh VERSION --rootkernel to write kernel to /boot

you want to go to http://sheeva.with-linux.com/sheeva/ and find the most up to date version (at the time it is 2.6.38.7)
also you want to use the NAND kernal so if 2.6.38.7 is still the most up todate you want to enter:
./README-PLUG-UPDATE.sh 2.6.38.7 --nandkernel

   DON'T reboot yet, read next step fully


   5c)
Read steps before proceeding past this point, if you screw this up you could brick the plug

reboot,
because you are NOT on SSH but using TTY and the serial usb cable you will be presented with the bios boot screen, during the boot process there is an option to interrupt boot,   interrupt it but hitting the "any" key  DOH!!!!!
 enter:
setenv mainlineLinux yes

then enter:
setenv arcNumber 2097

then enter:
printenv bootargs

you now want to write down the locations of the NAND partitions and make sure they jive with the next step

enter:
setenv bootargs rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=192.168.1.9:192.168.1.4:192.168.1.4:255.255.255.0:DB88FXX81:eth0:none

PAY ATTENTION to the nand blocks, if the numbers are different from the above text and what you got from the bootargs, USE THE ADDRESSES YOU GOT FROM "printenv bootargs" paying attention to proper syntax, also remember this is TTY so you can backspace but you cant use the mouse or arrow keys to move the cursor, you need to enter it right the first time, NO TYPOS a single missed space or number change has the potential to brick the plug.

if you are successful after you hit enter nothing should happen it should just jump to the next line
 
5d)
enter:
saveenv

enter:
reset

if all is well it should boot into the OS with the new kernle if it doesn't have a drink and find something else to do.


6)
next config darkice

go to /etc
enter:
nano darkice.cfg

enter the data from the config file you were given


Done, now make the deamon and cron job

7)

so what you want to do is take the below file and put it in /etc/init.d    you can do this by going to /etc/init.d and then entering
nano rc.darkice  then paste the attached script(ask dave for this script or i have it just PM me), save/exit
then you need to change the permissions on the file so the system can open it so go chmod 0750 /etc/init.d/rc.darkice

you now need to update the startup scripts to use the darkice startup file do this by entering (while in /etc/init.d)
update-rc.d rc.darkice defaults 99

reboot the machine, and it "should" now auto start darkice


Now to adding a cronjob that "should" auto restart darkice if it goes down



enter crontab -e  the first time its run the comp should ask what editor you want to use I suggest nano.

after nano has opend you will be presented with a text file with some instructions, at the bottom of these paste:    

*/5 * * * *     root    /etc/init.d/rc.darkice restartifdown 2>&1 > /dev/null

save and exit....


should be good to go......
« Last Edit: June 01, 2011, 02:45:49 PM by Island Pacific Flight Academy » Logged

feeder:  CYYJ- Victoria Tower http://d.liveatc.net/cyyj_gnd_twr
            CYYJ- Victoria Terminal http://d.liveatc.net/cyyj_del_app
            CYWH- Victoria Harbour http://d.liveatc.net/cywh
Pages: 1 [2] 3 Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!