Bat Phone – The Phone Itself

25 10 2012

Well I got the device working (not sure if I updated that yet or not) still some more tweaking to do but the autodialing feature etc is working. So now what is left is the ‘cool-ness’ factor phone.  I’ve looked around and not found anything to my liking until today….

This is a TARDIS phone the problem is I can only find it in the UK and isn’t cheap and the reviews aren’t stellar.  So I kept poking around and found this:

Yes this is a cookie jar but since all I need is on / off hook switch and a handset I am going to try and transform this into a phone! It has a removable liner that hopefully I can cut off some of the top and allow a small space below the liner and make that a pressure activate switch for the phone circuit.  The idea would be for the phone while in the jar to register as on hook and when out of the jar to register as off hook.  Right now I think I’m going to try and steal old parts from other phones…

We will see how this goes or if it just gets deployed with a normal phone. That would be sad but better than not being deployed at all.





Step 4 – SSH Access

23 10 2012

I’ve been using the serial access since I got it working but that involves RDPing to another machine that has the serial port and is connected to the BeagleBoard-xm. Entirely doable but not ideal.

I tried to SSH (using PuTTY) to the IP of the Beagleboard-xm on port 22 and it failed. Well today I figured out that SSH is running on port 222. So there you have it.  Now I can use SSH for most of the config from my main laptop.

That is nice.





Step 3.3 – No Idea What I Did….

22 10 2012

Well I was looking for those other scripts and found how to locate the ‘nodesetup’ command.  I rand:

whereis nodesetup

and it told me it lived in:

nodesetup: /usr/local/sbin

So I hopped over there and found the following executable options:

  1. firsttime
  2. modconfig
  3. netsetup
  4. nodesetup
  5. poff
  6. pon
  7. savenode
  8. sethost
  9. svast

Everything but poff, pon, and svast seemed to make some sense. Poff and pon seemed to start and stop something… so I’ll avoid them… but svast couldn’t make head or tails of it.  So I ran it thinking there would be some user interaction that I could bail on..Well I was wrong.

The thing ran, and ran and ran and extracted files …. I have no idea what it did.

UPDATE: I know what it did now. It looks like it tar’ed and gziped a boatload of files on the node.  I checked the file output and the creation time is when I expected (about 15 minutes ago).  So I didn’t harm anything. In fact I might just have made a backup of my entire important system? I’m still not sure what svast stands for.

I expect ast = asterisk so what is sv. Still unclear but feeling better about not screwing up or replacing a boatload of files I just created.





Step 3.3 – Successful/Correct Register with AllStarLink

22 10 2012

Well those forum emails did me in!

Somehow I wasn’t registered again with the AllStarLink sometime today? Anyway, got home logged in as root on the serial cable and typed in:

“nodesetup”

And sure enough up came the node setup script! Easy-Peasy (how do you actually spell that?!).  The biggest thing that I didn’t realize but luckily had already setup is in the node information on the AllStarLink Portal the settings for the Server on the Network Configuration tab that read:

hostname and type are in fact for your local server (ie – beagleboard). Luckily for me I had already put in the same hostname I was using and DHCP was already set so when I ran nodesetup and it downloaded those settings it didn’t change anything. Excellent!

So now supposedly I can use the portal to configure the AllStarNode.  I think my next step is to locate and explore the scripts that are clearly included in pickle linux (along with Limey and ACID I presume) to see what other options are out there.  Of course I’ll post what I find.





Mailing List References

22 10 2012

Ok it is time to regroup….

So for all of us (me included) who want to build an AllStar Node the references are scattered.

Tonight I found the mailing list archives @:

But there isn’t an easy search.
So I followed these directions:
To get the whole list into Thunberbird to view, sort, and search.
As I’m on Windows I did:
1) Download all the monthly .gz files
2) Bulk un .gzip them into a single folder
3) TRICKY PART: Renamed each *.txt file to *.ck file because as it turns out the .txt files at this point are still containers that need extracting!
4) Bulk extracted the .ck files into another folder
5) navigated down the entire file path to the folder that has all the TRUE *.txt files in it
6) Ran “copy *.txt  bigtextfile.txt”
7) THEN followed the directions in how to import them into Thunderbird (NOTE ABOUT THUNDERBIRD — you have to setup one email account in Thunderbird for the proper folders to show up to follow those directions)
WHY DO THIS:
More or less this gives me a place to search when I have a specific question.  So far I searched and sorted by any post that has the work Beagleboard in it.  What that gave me was a set of commands that I wasn’t aware of to run.  Not all the answers but a lot more questions when they are appropriate.  At this point I *think* I’ve discovered the script I need to run to configure the node and do all this registration, etc that I’ve been trying to manually do. So that one thing if it pans out is worth it!




Step 3.2 – Register with the AllStarLink Network

21 10 2012

So I am hoping that if I can register with the AllStarNetwork some of my configuration can be done via their webpage.  So I found this page on their FAQ:

http://ohnosec.org/drupal/node/11

And made the changes using the following commands:

cd /etc/asterisk

pico iax.conf

Scrolled down to the line about registration and edited it to read:

register=ANODENUMER:NODEPASSWORD@register.allstarlink.org

Ctrl-O to “Output file” or better known as Save

it asks for the file name I left the default of iax.conf since I wanted to overwrite it.

Hit enter

Then

Ctrl-X to exit

Now I have to restart the asterisks service…Google anyone?

Didn’t find it right away so I did what any Windows guy would do: reboot.

I issued the command “reboot -n”

I logged back in and I honestly have no idea to know if the registration worked or not….

So the other post on the FAQ about Allstar Link How-To talked about how to configure publishing my node stats online.  I want to enable this to basically see if it will help me determine what is going on!

This post: http://ohnosec.org/drupal/node/12

I looked at the two options (For ACID vs Limey Linux) and the only difference appears to the be location of the command ‘wget’ I used cd and ls to determine in pickle it is located at the same location as ACID.

so I ran pico /etc/asterisk/rpt.conf (which essentially is the file the allstarnode website edits and creates and downloads for you)

I changed the line that said [9999] CHange this to your node number (so I did)

And then I scrolled down to the section that says

*** Stauts Reporting ***

And uncommented (deleted the  semi-colons at he beginning of the 2 lines) the 2 lines under ACID.

Ctrl-O to save again and then rebooted again.

My status page still says nothing. Oh well for now. I think I need to stop working on this for a while because my partner and I are leaving the house soon.

UPDATE: I edited out the A at the begining of the node number for the registration page.  Just to see if it changed anything. Doesn’t appear to but I also suspect I need to get the ports working for the admin tool webpage to work as well.

UPDATE 2: WAIT! I now appear on the node page for allstar. So I think it worked! Ok now maybe I can work on the configuration from the web page. Of course I also need to get a radio hooked up to the LOX board to even start testing….

UPDATE 3:  I read some more documentation that did say the A in front of the node number was needed so I changed it back.  I also found what ports need to be open for AllStar which is 4569 UDP per this article:

http://ohnosec.org/drupal/node/66

So I went ahead and created a port forward for my device with  4569 (I’m using a Buffalo Router with dd-wrt as the firmware (not the stock firmware) and it is behind a cable modem that is NOT a router. So I’m singled NATed).

I’m hoping this will allow me to use the web interface now to make changes ::fingers crossed::





Step 3.1 – Initial Linux Configuration

21 10 2012

So now that I have console I logged in using the default user name / password (root / pickle) and it to told me it was my first time logging in and did I want to run the first time login script and change some things. I said yes and the first thing it did was ask me to change my password. So I typed in a password…. and it wouldn’t take it.

passwd: Authentication token manipulation error

Over and over.  One thing indicated the drive was mounted read only and since I know the microSD card was physically writable (its how I got the image on their in the first place) I did what any Windows man would do: reboot! And sure enough this time it worked fine.

So I reset the root password, changed the hostname, and set it to DHCP for IP addressing.

Rebooted and logged back in…. and now…..

I have a console session and no idea what to do next. So at this point I’m poking through the file system to see if I can find a script a place to bind it to the allstar network so I can use the web to configure some of it….

But I’m in.








Follow

Get every new post delivered to your Inbox.