开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

repeater only setup Ubuntu


 
Edited

Hi:
I have been able to setup a D-Rats ratflector for local use.? I even created a guide that I have shared with some friends who are testing D-Rats.?

I use HamPI in a PI 4 (Python2).? ?However, I would like to run a d-rats repeater in a Ubuntu 22.04 production server I have in Dallas. That server runs Apache2 along some apps.

Before messing with the production server and to be sure how to do, have been trying to install latest D-Rats tar (4.01) first in a Ubuntu 22.04 laptop but have faced several difficulties related with some libraries and some dependencies. At this moment I am not looking for compile D-Rats but to first be able to run from the tar files.?

1- Anyway to have specific instruction for a repeater only install that can be managed via command line even not need for a GUI???
2- The?msys2 requirement is only for Windows?

Maybe a more specific and simpler instruction for those who want to only the repeater app would result in more ratflectors online.? I am not a programmer but have some basic knowledge.??

Thanks John and Maurizio and other developers.??

73'

Edfel, KP4AJ


 

Hi:
As follow-up have been able to fix the broken dependencies and installed licairo2-dev and those other files. Fix was this:
sudo apt install libbrotli1=1.0.9-2build6

Also, when trying the mys2_packages.sh file I get line 5 pacman command not found.? But pacman is installed. But when I try to run this:

usr/bin/python3 /home/dratsrepeater/D-Rats/d-rats_repeater.py -C

I get:
Traceback (most recent call last):
? File "/home/dratsrepeater/D-Rats/d-rats_repeater.py", line 46, in <module>
? ? from d_rats.version import __version__
? File "/home/dratsrepeater/D-Rats/d_rats/version.py", line 401, in <module>
? ? DRATS_VERSION_NUM = GLOBAL_VERSION.short_version
? File "/home/dratsrepeater/D-Rats/d_rats/version.py", line 111, in short_version
? ? self._get_short_version()
? File "/home/dratsrepeater/D-Rats/d_rats/version.py", line 101, in _get_short_version
? ? (cls._version['major'], cls._version['minor'],
KeyError: 'major'

Any pointer will be highly appreciated.? However, I still think a compact drats_repeater version could be very usefull.? I have no problem running D-rats from Windows. My major interest is to be able to run d-rats repeater within Ubuntu 22.04 server.??

Appreciated all the hard-work getting D-Rats working again with Python3.

73'

Edfel
KP4AJ


 

Hi Again:
I am getting this one when tryin the apt-get and libraries listed at git:

Unable yo locate package pylint3
Unable to locate package python3_venv

Not sure How critical are those. I am not interested in running D-Rats from virtual environment at the moment.

Thanks.

Edfel
KP4AJ


 

Well when trying to start I get this:
sudo systemctl start d-rats_repeater.service
Failed to start d-rats_repeater.service: Unit d-rats_repeater.service has a bad unit file setting.
See system logs and 'systemctl status d-rats_repeater.service' for details.
user@host:/home/dratsrepeater/D-Rats$ sudo systemctl status d-rats_repeater.service
○ d-rats_repeater.service
? ? ?Loaded: bad-setting (Reason: Unit d-rats_repeater.service has a bad unit file setting.)
? ? ?Active: inactive (dead)
?
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:74: Assignment outside of section. Ignoring.
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:75: Assignment outside of section. Ignoring.
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:76: Assignment outside of section. Ignoring.
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:77: Assignment outside of section. Ignoring.
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:78: Assignment outside of section. Ignoring.
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:79: Assignment outside of section. Ignoring.
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:82: Assignment outside of section. Ignoring.
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:83: Assignment outside of section. Ignoring.
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:84: Assignment outside of section. Ignoring.
jul 30 18:39:32 host systemd[1]: /etc/systemd/system/d-rats_repeater.service:85: Assignment outside of section. Ignoring.
user@host:/home/dratsrepeater/D-Rats$?
I created user dratsrepeater with ownership of /home/dratsrepeater/D-Rats? Have tried running daemon (editing d-rats_repeater.service at /etc/systemd/system) from that directory or from /usr/local/bin/ same result?

Have question the d-rats_repeater.service file have user set as root and group set as root. should I set drats_repeter.py to run from /usr/local/bin/ ???

What could be the cause of the error:? bad unit file setting?

Thanks in advance! I think I might have several problems but adjusting one by one maybe I could get it to start.

73'

Edfel



 

On 7/30/2023 5:55 PM, Edfel Rivera wrote:
<snipped from previous e-mails>

1- Anyway to have specific instruction for a repeater only install
that can be managed via command line even not need for a GUI?
The repeater configuration file can be manually edited instead of using the GUI. There is a command line option to not launch the GUI. It should be listed with --help.

sudo systemctl start d-rats_repeater.service
Failed to start d-rats_repeater.service: Unit d-rats_repeater.service
has a bad unit file setting.
The files for configuring a repeater as a Linux service have not been updated, not really documented, and probably do not work for system-d based Linux distributions. The systemctl command means a system-d based Linux.

I have not tried setting up the repeater as a service so I have not debugged.

I was leaving that for later work or for some motivated Linux user to work out the details.

2- The msys2 requirement is only for Windows?
Also, when trying the mys2_packages.sh file I get
line 5 pacman command not found.
The msys2 is an Linux emulation layer that runs on Microsoft Windows, it is not used on any other platform.

My development is done on Anti-X Linux, which is a Debian based as many Raspberry Pi Distributions and is Ubuntu.

The package names for Debian distributions are usually the same, but may some differences.

Currently I only list the package names for Anti-X Linux.

As follow-up have been able to fix the broken dependencies and
installed licairo2-dev and those other files. Fix was this:
sudo apt install libbrotli1=1.0.9-2build6
Broken dependencies are not part of the D-Rats project, that is something local to your system.

Unable yo locate package pylint3
Unable to locate package python3_venv
Not sure How critical are those. I am not interested in running
D-Rats from virtual environment at the moment.
A python virtual environment is only needed for installing python packages that are not available as packages from the distribution.

Anti-X linux, and Ubuntu 22.04 are known to supply all the packages needed for running D-Rats, including all the optional python modules.

Msys2 supplies all the packages needed for running D-Rats, but at the last check, did not supply all the optional modules that D-Rats can use if they are installed.

Some of the python packages needed for creating a python distribution tarball require modules that can only be installed with PIP from Pypi.
Modules installed from Pypi need to be installed in a Virtual Environment or equivalent for isolation.

73,
-John


 

Thanks John! Could you check the traceback error I posted when trying direct from python. I think? I am missing some library. Thanks!!


On Sun, Jul 30, 2023, 7:12 PM John E. Malmberg <wb8tyw@...> wrote:
On 7/30/2023 5:55 PM, Edfel Rivera wrote:
<snipped from previous e-mails>

> 1- Anyway to have specific instruction for a repeater only install
> that can be managed via command line even not need for a GUI?

The repeater configuration file can be manually edited instead of using
the GUI.? There is a command line option to not launch the GUI.? It
should be listed with --help.

> sudo systemctl start d-rats_repeater.service
> Failed to start d-rats_repeater.service: Unit d-rats_repeater.service
> has a bad unit file setting.

The files for configuring a repeater as a Linux service have not been
updated, not really documented, and probably do not work for system-d
based Linux distributions.? The systemctl command means a system-d based
Linux.

I have not tried setting up the repeater as a service so I have not
debugged.

I was leaving that for later work or for some motivated Linux user to
work out the details.

> 2- The msys2 requirement is only for Windows?
> Also, when trying the mys2_packages.sh file I get
> line 5 pacman command not found.

The msys2 is an Linux emulation layer that runs on Microsoft Windows, it
is not used on any other platform.

My development is done on Anti-X Linux, which is a Debian based as many
Raspberry Pi Distributions and is Ubuntu.

The package names for Debian distributions are usually the same, but may
some differences.

Currently I only list the package names for Anti-X Linux.

> As follow-up have been able to fix the broken dependencies and
> installed licairo2-dev and those other files. Fix was this:
> sudo apt install libbrotli1=1.0.9-2build6

Broken dependencies are not part of the D-Rats project, that is
something local to your system.

> Unable yo locate package pylint3
> Unable to locate package python3_venv
> Not sure How critical are those. I am not interested in running
> D-Rats from virtual environment at the moment.

A python virtual environment is only needed for installing python
packages that are not available as packages from the distribution.

Anti-X linux, and Ubuntu 22.04 are known to supply all the packages
needed for running D-Rats, including all the optional python modules.

Msys2 supplies all the packages needed for running D-Rats, but at the
last check, did not supply all the optional modules that D-Rats can use
if they are installed.

Some of the python packages needed for creating a python distribution
tarball require modules that can only be installed with PIP from Pypi.
Modules installed from Pypi need to be installed in a Virtual
Environment or equivalent for isolation.

73,
-John








 

On 7/30/2023 7:51 PM, Edfel Rivera wrote:
Thanks John! Could you check the traceback error I posted when trying
direct from python. I think I am missing some library. Thanks!!
About the version, that is something that I think was recently fixed in the file d_rats/version.py at the tip of the current master.



We do not have it in a current release. There is at least one or two Pull Requests in progress that need to be completed before the next release package will be created.

On of the issues is that as a developer, I am usually running out of a clone of the repository, and not from the release package, and most of the fixes have been in the client side, so I missed that in some cases the code to calculate the version was failing.

73,
-John


 

John:? Thank you very much!!? I downloaded the version.py from repository.? Now error gone and better d_rats repeater online.? HAve to test more but I have connected from client at another laptop and netstats shows port 9000 open and listening by python.??

Will check the command line options for configuration.? Have to identify where the conf files are being placed.? Regarding running as Linux service will try to find out within my limited knowledge.? For that will open another thread specific.

Again very appreciated your help!!

73'

Edfel
KP4AJ