Date   

Re: How To install AMBESERVER on Raspbian or Debian.

 

See updated note on the wiki


On Tue, Sep 18, 2018, 01:39 Node750Tt <node750tt@...> wrote:

[Edited Message Follows]


This will put AMBESERVER on your Raspberry Pi running Raspbian or Debian box running Stretch or Jesse. THIS IS NOT FOR COMPASS LINUX.

I am running this with ThumbDV in my Debian Box and also with my DVstick30 in my Raspberry Pi.

I am able to use my Android Phone running BlueDV Ambe from the Play store, or my Laptop with BlueDV and connect to my machines from any part of the planet.

My ThumbDV and DVstick30 are located over 10,000Km apart, and I can work D-Star or DMR stations. on my Android phone sitting at Starbucks, or an Airport, or on an Aircraft with WiFi.

Enough said let's start. I love Kali Linux, so will do all as root.

ssh into your machine, at the prompt run

sudo bash hit the enter key, you will now be root user.
nano /etc/ssh/sshd.config
scroll to the line that says
PORT 22 change 22 to any number you like.
{I WARN YOU TO REMEMBER THIS NUMBER YOU ENTERED}
Next scroll a little bit more to where you see.
# Authentication
# PermitRootLogin  blah blah. 
On that line remove the hash tag # and blah blah, then put the word yes
Ctrl + X and then Y on your keyboard.
at the prompt run:
passwd 
enter any password you want, you will see nothing as you typed in the password, hit enter, type the same password again enter
now you have full root access into your machine.
type reboot.

After the machine is rebooted ssh back in with your new ssh port number and
login as root with the root password you created.

Now run:
apt-get update
apt-get install git curl wget 
after these are installed, run:
git clone git://github.com/marrold/AMBEServer.git
cd AMBEServer
make
make install
At this point  Ambeserver is installed on your machine.

To be able to find your machine online, so before we start you will need to setup an account at one of these example: 
dyndns.org or noip.com, the list is endless, so your choice. After you make the account, create a hostname for your Raspberry Pi 
or Debian box on this website.

Next back to your machine run:
apt-get install ddclient
During the installation you will be asked to enter your login name and password to your dns host account, you setup above, and
choose what name you want to assign this machine from your account, once done, accept all the default prompts during the installation.
after you returned at the prompt run:
nano /etc/ddclient.conf
after the last line of text type in this:
Daemon=300
SSL=yes
Next on your keyboard hit Ctrl + X key together then Y key, you will be back at the prompt.

Home Router setup:
That your Pi or Debian box is connected too.
If your Machines are connected to the second or third router in your house,
it will be a bit tricky to get to your machine, not impossible, but very involved, so best put these machines on your first Router after 
your ISP Fibe optic or cable box or directly on your ISP router. Basically you want your machines getting an IP from the first router into your home.

Login into this router and set your Raspberry Pi or Debian box to get a fix IP, base on their Mac address. This is done in order for the router to always assigned the same IP whenever it reboots to your machine.
Now find the port forwarding section in your router and open 
the ssh port number you assigned above using TCP  to your machine IP address; also port 2460 use UDP. 
save and apply these changes into your router.

Now to get the AMBEserver to start automatically anytime your machine reboot do the following:
Save the script I attached somewhere on your desktop.
The easiest way:
Download and install WinSCP
Now with WinSCP login your Machine with the assign IP your set in the router and ssh port as root & root password. you assigned above.
on the right pane navigate to this directory.
lib/systemd/system 
from the left pane navigate where you save my script and dragged it in that system directory.
now close WinSCP. 

back at the machine run 
cd /etc/lib/systemd/system
chmod 644 ambeserver@...
systemctl daemon-reload
systemctl enable ambeserver@...
Now put your ThumbDV or DVstick30 into your Machine.
run 
reboot.

When your machine is back up, ssh back in and run 
systemctl status ambeserver@...
You want to see ACTIVE in GREEN. Means your server is running and you are set to use your ThumbDV or DVstick30 with BlueDV Ambe on android or BlueDV on you PC.

In the setup in BlueDV Ambe or BlueDV on PC or MAC if home use the Ip address of your machine baudrate 460800 and port 2460, when out of the home or on data on your phone use the hostname you assigned your machine at dyndns or noip.com.

I hope this helps all to get going please post your comments, and let me know if you get it going.

ps:
The ambeserver @ ttyUSB0.service is not showing properly in the post it is all one no space as I type here on this line; but look at the name of my script that is how it should be written.














Re: I want to run BlueDV AMBE Server on Debian.

 

Go back and see updated wiki notes.


On Tue, Sep 18, 2018, 04:23 <js3cop@...> wrote:
Hallo Eric,
I understand it by editing /etc/opendv/ambeserver-ttyUSB0.conf.

However, the opendv directory does not exist. So I can not edit ambeserver-ttyUSB0.conf.

Where is ConfigFile? I generally recognize that there is a configuration file in / etc.

Thanks


Re: I want to run BlueDV AMBE Server on Debian.

js3cop@...
 

Hallo Eric,
I understand it by editing /etc/opendv/ambeserver-ttyUSB0.conf.

However, the opendv directory does not exist. So I can not edit ambeserver-ttyUSB0.conf.

Where is ConfigFile? I generally recognize that there is a configuration file in / etc.

Thanks


Re: I want to run BlueDV AMBE Server on Debian.

js3cop@...
 

Thank you Eric,

I used it on raspberry pi.

So I think I can use on debian machine.

I will try editing the code of config file.(may be 460800 is right.)

Thank you


How To install AMBESERVER on Raspbian or Debian.

Node750Tt <node750tt@...>
 
Edited


This will put AMBESERVER on your Raspberry Pi running Raspbian or Debian box running Stretch or Jesse. THIS IS NOT FOR COMPASS LINUX.

I am running this with ThumbDV in my Debian Box and also with my DVstick30 in my Raspberry Pi.

I am able to use my Android Phone running BlueDV Ambe from the Play store, or my Laptop with BlueDV and connect to my machines from any part of the planet.

My ThumbDV and DVstick30 are located over 10,000Km apart, and I can work D-Star or DMR stations. on my Android phone sitting at Starbucks, or an Airport, or on an Aircraft with WiFi.

Enough said let's start. I love Kali Linux, so will do all as root.

ssh into your machine, at the prompt run

sudo bash hit the enter key, you will now be root user.
nano /etc/ssh/sshd.config
scroll to the line that says
PORT 22 change 22 to any number you like.
{I WARN YOU TO REMEMBER THIS NUMBER YOU ENTERED}
Next scroll a little bit more to where you see.
# Authentication
# PermitRootLogin  blah blah. 
On that line remove the hash tag # and blah blah, then put the word yes
Ctrl + X and then Y on your keyboard.
at the prompt run:
passwd 
enter any password you want, you will see nothing as you typed in the password, hit enter, type the same password again enter
now you have full root access into your machine.
type reboot.

After the machine is rebooted ssh back in with your new ssh port number and
login as root with the root password you created.

Now run:
apt-get update
apt-get install git curl wget 
after these are installed, run:
git clone git://github.com/marrold/AMBEServer.git
cd AMBEServer
make
make install
At this point  Ambeserver is installed on your machine.

To be able to find your machine online, so before we start you will need to setup an account at one of these example: 
dyndns.org or noip.com, the list is endless, so your choice. After you make the account, create a hostname for your Raspberry Pi 
or Debian box on this website.

Next back to your machine run:
apt-get install ddclient
During the installation you will be asked to enter your login name and password to your dns host account, you setup above, and
choose what name you want to assign this machine from your account, once done, accept all the default prompts during the installation.
after you returned at the prompt run:
nano /etc/ddclient.conf
after the last line of text type in this:
Daemon=300
SSL=yes
Next on your keyboard hit Ctrl + X key together then Y key, you will be back at the prompt.

Home Router setup:
That your Pi or Debian box is connected too.
If your Machines are connected to the second or third router in your house,
it will be a bit tricky to get to your machine, not impossible, but very involved, so best put these machines on your first Router after 
your ISP Fibe optic or cable box or directly on your ISP router. Basically you want your machines getting an IP from the first router into your home.

Login into this router and set your Raspberry Pi or Debian box to get a fix IP, base on their Mac address. This is done in order for the router to always assigned the same IP whenever it reboots to your machine.
Now find the port forwarding section in your router and open 
the ssh port number you assigned above using TCP  to your machine IP address; also port 2460 use UDP. 
save and apply these changes into your router.

Now to get the AMBEserver to start automatically anytime your machine reboot do the following:
Save the script I attached somewhere on your desktop.
The easiest way:
Download and install WinSCP
Now with WinSCP login your Machine with the assign IP your set in the router and ssh port as root & root password. you assigned above.
on the right pane navigate to this directory.
lib/systemd/system 
from the left pane navigate where you save my script and dragged it in that system directory.
now close WinSCP. 

back at the machine run 
cd /etc/lib/systemd/system
chmod 644 ambeserver@...
systemctl daemon-reload
systemctl enable ambeserver@...
Now put your ThumbDV or DVstick30 into your Machine.
run 
reboot.

When your machine is back up, ssh back in and run 
systemctl status ambeserver@...
You want to see ACTIVE in GREEN. Means your server is running and you are set to use your ThumbDV or DVstick30 with BlueDV Ambe on android or BlueDV on you PC.

In the setup in BlueDV Ambe or BlueDV on PC or MAC if home use the Ip address of your machine baudrate 460800 and port 2460, when out of the home or on data on your phone use the hostname you assigned your machine at dyndns or noip.com.

I hope this helps all to get going please post your comments, and let me know if you get it going.

ps:
The ambeserver @ ttyUSB0.service is not showing properly in the post it is all one no space as I type here on this line; but look at the name of my script that is how it should be written.














Re: I want to run BlueDV AMBE Server on Debian.

Eric Jarvi
 

I'm totally new to group and not familiar with this code or dvstick but maybe you have the wrong baud rate?

I saw a similar grinding of the gears at first when using a ThumbDV with BlueDV for windows at the wrong internal baud rate.  The default rate might be defined in the c code you compiled or in some parameter or settings file the a.out executable would accept? If so try editing the code or config file or parameter and using 460800 instead of 230400 for baud rate.  



On Mon, Sep 17, 2018, 2:18 AM <js3cop@...> wrote:
Hallo John,
I downloaded AMBEserver.c. And I compiled it with gcc. I found a.out just under root. I ran it.
I am using DVstick 30, but is this caused by?
root @ debian: ~ #. / a.out
AMBEserver: Starting ...
AMBEserver: Opened serial port / dev / ttyUSB 0 at 230400 bps.
AMBEserver: Could not find start byte in serial data
AMBEserver: error receiving response to reset
AMBEserver: Could not initialize the DV3K!

Thanks


Re: TOTALLY CONFUSED...

Kenny Richards
 

Gwen,

I'm glad you got it working, but I can't take any credit for writing the instructions, I just knew they had worked for me.

73,
Kenny, KU7M


Re: XLX003 Reflector; Anna

Dick Herrick
 

Anna,

I’m your tester for the XLX issue.  Here’s what’s NOT happening.

I can call someone using a Wintel (we were on the phone for testing purposes).  He could hear me normally.  When he responded from his Wintel, I heard nothing.  Same thing with another Mac user who called me.  So, it looks like you’re half-way there.

I think you mentioned that you tested and didn’t get any responses.  This may be the reason.


Dick Herrick, BEE, PE
rjherrickpe@...

(Office) 704-509-2882
(Cell)    704-995-1522

On Sep 15, 2018, at 10:11 AM, Dick Herrick <rjherrickpe@...> wrote:

Thanks, Anna.  I’ll check it out wen posted.


Dick Herrick, BEE, PE
rjherrickpe@...

(Office) 704-509-2882
(Cell)    704-995-1522

On Sep 14, 2018, at 11:45 PM, Annaliese McDermond <nh6z@...> wrote:

I was at the APRS Summer Gather in North Bend, WA last weekend hanging out with the rest of the NW Digital Radio crew and a bunch of other ham friends, so I didn’t have a chance to commit the code and push things up to the iTunes store.

I wrote the code earlier this evening and did some light testing to make sure it at least pretended to link to the XLX reflectors, and it seemed to work although I didn’t find one with any audio to listen to.

This version is 1.2.2 and is pushed up to the App Store for approval.  As soon as Apple approves, it’ll be marked for availability.

Incidentally, for those wondering why I don’t distribute this off of my own website, here’s the answer:

Buster includes geolocation and mapping functionality.  The “Location” field on your display is actually derived from any DPRS information carried with the connection.  In addition you should be able to click on that location to reveal a popup that contains a small map of where that location actually is.  Again, derived from the DPRS information from that transition.

To be able to use the Apple mapping and geolocation APIs, you have to distribute your app on the App Store and sandbox it.  Otherwise your app cannot connect to the proper services to make it work.  That’s why I do this and why it sometimes takes a while to get things reviewed and put on the store.

Also note that it appears as though opendstar.org is having some issues.  This causes Buster to not be able to get the reflector list and drop all the REF reflectors.  Once Robin fixes this, it should start working again.

--
Annaliese McDermond (NH6Z)
Xenotropic Systems
mcdermj@...


On Sep 14, 2018, at 5:37 AM, Dick Herrick via Groups.Io <rjherrickpe@...> wrote:

Anna, did you post a revised version of Buster ??


Dick Herrick, BEE, PE
rjherrickpe@...

(Office) 704-509-2882
(Cell)    704-995-1522

On Sep 6, 2018, at 3:44 PM, Annaliese McDermond <nh6z@...> wrote:

You shouldn’t have to do anything but upgrade off the App Store. 

—Anna


On Sep 6, 2018, at 11:27 AM, Dick Herrick via Groups.Io <rjherrickpe@...> wrote:

OK. When you have it settled, let me know where to stuff the downloaded plist.

Thanks, Anna.


Dick Herrick, BEE, PE
rjherrickpe@...

(Office) 704-509-2882
(Cell)    704-995-1522

On Sep 6, 2018, at 2:24 PM, Annaliese McDermond <nh6z@...> wrote:

Without the new code, Buster won’t even look for it. Hold tight and I’ll get a new version out. 

—Anna


On Sep 6, 2018, at 11:15 AM, Dick Herrick via Groups.Io <rjherrickpe@...> wrote:

Thanks, John.  Where do I put this in the Mac?  It must be deep in a Library.  Spotlight doesn’t find those files.


Dick Herrick, BEE, PE
rjherrickpe@...

(Office) 704-509-2882
(Cell)    704-995-1522

On Sep 6, 2018, at 2:08 PM, John D Hays - K7VE <john@...> wrote:

A new XLX plist file is available at https://ar-dns.net
On Thu, Sep 6, 2018 at 10:31 AM Dick Herrick via Groups.Io <rjherrickpe@...> wrote:
Thanks to both of you for considering a fix for this. The last time I waded into code it was Basic and before that Fortran. U can see how old I am !!
-- 

John D. Hays
Edmonds, WAK7VE













Re: sudo apt-get install ambeserver

 

I have updated instructions at https://nw-digital-radio.groups.io/g/ambe/wiki/AMBEserver-Addendum#Quick-Build-on-Linux

The 'roll your own' (e.g. non-Compass Linux) approach, assumed familiarity with the target sufficient to fill in the 'blanks'.

Like most Linux/Unix command line programs, placing the help flag will expose flags, e.g. AMBEserver -h 

The 3 parameters that may need adjusted are the device, e.g. /dev/ttyUSB0, the speed, e.g. 460800, and the UDP port it will listen on, e.g. 2640.

The instructions are still sparse, but the components are now downloadable to fill in the blanks.


On Mon, Sep 17, 2018 at 2:01 PM Kenny Richards <kenny@...> wrote:
I am pretty sure the ThumbDV I am using is of the second generation, so it doesn't need to be forced to the 460800 baud rate. I had forgot about that requirement for some people, but as you said, it can also be done from the command line.

At the moment I don't have anything running on the Pi/ThumbDV board, but AMBEserver. It is now a custom version, since I added the code to have it write out status to the syslog file, but I never got around to writing a sys.d file since I was starting and stopping custom versions all the time. 

I personally use Buster to connect to reflectors with the setup. (I'm primarily a Mac/Linux person) 

73,
Kenny, KU7M



--


John D. Hays
Edmonds, WA
K7VE

   


Re: TOTALLY CONFUSED...

Gwen Patton
 

Kenny,

Thank you! I pulled a clone of that repository, did a make, then make install, and now I have it working both from my Win7 pc on BlueDV AND from my Android phone on BlueDV.

It's still an experiment, but I have it actually functioning, so that's the important part.

The instructions prior to this are piecemeal, confusing, and as you've shown, full of obfuscations and incorrect information. THIS worked.

NOTHING on the Wiki worked at all. That wiki page needs to be edited to remove all the deprecated information.


Re: TOTALLY CONFUSED...

Marco Della Cagna
 

I use this solution:
If you want try use ip 2.227.228.81 in your client.
73
Marco IK6IOQ

Il lun 17 set 2018, 22:23 Gwen Patton <ardrhi@...> ha scritto:
Ok, I'm going to have to echo some of the plaintive requests by others who have asked this same thing before me.

I have a RasPi 3B+ that I want to install AMBEserver on. I would rather NOT have to build a whole new microSD with Compass on it, and from what John has said in earlier topics, it's not necessary -- you can install it on Raspbian Stretch, which is what I have currently. I can't install from an apt-get install ambeserver, it can't find the package. So I used the "quick build on Linux" instructions that John pointed to. I have an AMBEserver executable.

I created /etc/opendv because I didn't have one. I moved my executable there. I created the "ambeserver-ttyUSB0.conf" file using the information at the top of the Addendum.

I do NOT have an "ambeserver-ttyUSB0.service" file. I don't know how to BUILD that file. Since I'm not working with a system image that has any of the other files built into it, don't assume I have ANYTHING ELSE other than the executable and that .conf file, because there are no working instructions for how to GET them other than using a Compass image, and THAT is listed as "deprecated" or "unstable". There are posts saying that it should be able to run with any new Linux distro, including Raspbian Stretch, which I have.

Do I get this by installing OpenDV? Some other package? Is there a repository I can attach to?

This is a complete mess. There are no comprehensive and complete instructions anywhere. Everything is either old, or superceded, or incomplete, or doesn't work.

I just want to put the ThumbDV on a RasPi so I can access it using my phone around the house. I can put the ThumbDV on my phone using OTG, but then the battery drains like an inflatable pool hit with a weed whacker, and I can't charge it AND use the ThumbDV at the same time. Eventually, it'd be nice if I can port forward this out into the world so I can access it from the net anywhere, but that would be a much larger project. I'd be happy to be able to do it from my workbench without moving the ThumbDV and microphone there from my main shack PC.

How do I get the REST of the application suite required to get AMBEserver up and running on this Raspbian machine?

Gwen, NG3P


Re: sudo apt-get install ambeserver

Kenny Richards
 

I am pretty sure the ThumbDV I am using is of the second generation, so it doesn't need to be forced to the 460800 baud rate. I had forgot about that requirement for some people, but as you said, it can also be done from the command line.

At the moment I don't have anything running on the Pi/ThumbDV board, but AMBEserver. It is now a custom version, since I added the code to have it write out status to the syslog file, but I never got around to writing a sys.d file since I was starting and stopping custom versions all the time. 

I personally use Buster to connect to reflectors with the setup. (I'm primarily a Mac/Linux person) 

73,
Kenny, KU7M


Re: sudo apt-get install ambeserver

Cliff Miller
 

Kenny - Thank you very much.  The instructions about how to start it as a service made me wonder if that was required.  I created the /etc/opendv folder and put the config file given in the wiki there.  Al it does is change the baud rate to that appropriate for the A model ThumbDV (460800, I think).  Even that can be part of the command line, so the config file would not be necessary.  Good news!

What other software do you run along with AMBEserver to do DStar?

73 - Cliff W4HGR Evans, GA


Re: TOTALLY CONFUSED...

Kenny Richards
 

Gwen,

You shouldn't need any other packages or applications (suites), if you have successfully built AMBEserver from the source. I couldn't find default Github repo, but this one has what I remember as a working approach for building and running the app.

https://github.com/ea4aoj/AMBEServer/blob/master/README.md

You can start the program from the command line to get started, all the configuration required is given as command line parameters. (As outlined in the above README.md)  I believe the ambeserver-ttyUSB0.service file you referenced is just necessary to have AMBEserver auto start when the Pi boots.  

I hope that helps...

Thanks
Kenny


Re: sudo apt-get install ambeserver

Kenny Richards
 

There really isn't any configuration files, you just need to start it from the command line. This is the command I use to start it on my server at home, with a ThumbDV. I don't have the PiDV running at the moment, but the start up is similar (just point to the correct device). 

At some point I should create a systemd file to-do this automatically and I should also create a pull request for the changes that write out status messages to syslog....

Hope that helps,
Kenny

sudo /usr/bin/AMBEserver -i /dev/ttyUSB0


TOTALLY CONFUSED...

Gwen Patton
 

Ok, I'm going to have to echo some of the plaintive requests by others who have asked this same thing before me.

I have a RasPi 3B+ that I want to install AMBEserver on. I would rather NOT have to build a whole new microSD with Compass on it, and from what John has said in earlier topics, it's not necessary -- you can install it on Raspbian Stretch, which is what I have currently. I can't install from an apt-get install ambeserver, it can't find the package. So I used the "quick build on Linux" instructions that John pointed to. I have an AMBEserver executable.

I created /etc/opendv because I didn't have one. I moved my executable there. I created the "ambeserver-ttyUSB0.conf" file using the information at the top of the Addendum.

I do NOT have an "ambeserver-ttyUSB0.service" file. I don't know how to BUILD that file. Since I'm not working with a system image that has any of the other files built into it, don't assume I have ANYTHING ELSE other than the executable and that .conf file, because there are no working instructions for how to GET them other than using a Compass image, and THAT is listed as "deprecated" or "unstable". There are posts saying that it should be able to run with any new Linux distro, including Raspbian Stretch, which I have.

Do I get this by installing OpenDV? Some other package? Is there a repository I can attach to?

This is a complete mess. There are no comprehensive and complete instructions anywhere. Everything is either old, or superceded, or incomplete, or doesn't work.

I just want to put the ThumbDV on a RasPi so I can access it using my phone around the house. I can put the ThumbDV on my phone using OTG, but then the battery drains like an inflatable pool hit with a weed whacker, and I can't charge it AND use the ThumbDV at the same time. Eventually, it'd be nice if I can port forward this out into the world so I can access it from the net anywhere, but that would be a much larger project. I'd be happy to be able to do it from my workbench without moving the ThumbDV and microphone there from my main shack PC.

How do I get the REST of the application suite required to get AMBEserver up and running on this Raspbian machine?

Gwen, NG3P


Re: sudo apt-get install ambeserver

Cliff Miller
 

Ambeserver compiled just fine, but it’s the “create configuration and autostart files“ that’s not so clear.  
Working with a raspbian setup I didn’t want to lose, about to give up and just go the compass linux route.

Is there any documentation or more detailed instructions?


Re: sudo apt-get install ambeserver

 

Yes, ambeserver pre-compiled is available on Compass Linux or building from source https://nw-digital-radio.groups.io/g/ambe/wiki/AMBEserver-Addendum#Quick-Build-on-Linux (pretty easy).

On Mon, Sep 17, 2018 at 8:16 AM <ik6ioq@...> wrote:
Ok Tnx i will try Compass Linux.
73
Marco - IK6IOQ



--


John D. Hays
Edmonds, WA
K7VE

   


Re: sudo apt-get install ambeserver

Marco Della Cagna
 

Ok Tnx i will try Compass Linux.
73
Marco - IK6IOQ


Re: sudo apt-get install ambeserver

Ian
 

Marco,

There is a message, five messages back, that may provide you with some help.

Regards,
Ian..
link to message