¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Autostart d-rats and d-rats repeater on Rpi 4


 

I have been able to install the linux versions of d-rats and the d-rats repeaters on a Rpi 4.? I can start each from a command prompt when the RPi has booted to a GUI but not directly from the GUI.? And I am unable to make those 2 programs start at boot automatically when running headless and remotely.? Any ideas???

?

SFARES uses D-RATS extensively in our Emergency Communications System.? Our deepest thanks go to the team that brought D-RATS alive again as a WL2K hotspot.

?

73 de N4VIP, Don Hinsman


--
73 de N4VIP, Don - SFARES Inc. Treasurer and Secretary


 

¿ªÔÆÌåÓý

Don,?

I use this file (attached) to start the d-rats_repeater as a service. The file contents are listed below in case the file doesn¡¯t make it.

On a Linux system:

1. Decide ?what user you want to own and run the d-rats processes. I created a user specifically to run the d_rats service and a robot client. I used user name and group opendv for mine. Login as that user and setup d-rats_repeater so the appropriate folders and configuration files are created. Test by running it manually and connecting to it.

2. Edit the User opendv line in the file d-rats_repeater.service to match the user name from step 1.

3. Copy the file d-rats_repeater.service to:
/etc/systemd/system/

4. Enter the following systemdctl commands to enable and start the service:
systemctl enable d-rats_repeater.service
systemctl start d_rats_repeater.service

The d-rats_repeater should now be running as a service as the user specified in the .service file. It should also start automatically when the system reboots, or if the program ¡®crashes¡¯.

I set my system to auto-login the user opendv (change yours to the user name you picked in step #1) and run the d_rats client at user login. I don¡¯t know of another way to auto start the client because it requires a display. You don¡¯t have to connect the display, but the client needs the GUI environment.

I¡¯ve used this on a raspberry pi and on my Fedora Linux machine and it¡¯s worked pretty much without a hitch once setup.

Contents of the .service file are listed below.

Hope this helps get you going!

73 de Mike, N0SO (an old D-RATS guy)


Contents of file d-rats_repeater.service
#=================
[Unit]
Description=D-RATS Repeater Proxy
After=syslog.target network.target

[Service]
Type=simple
#Edit the next line to name the user you want the d-rats_repeater to run as. The user MUST exist
User=opendv
ExecStart=/usr/bin/python /usr/bin/d-rats_repeater -C
TimeoutSec=0
RemainAfterExit=yes
SysVStartPriority=99

[Install]
WantedBy=multi-user.target


On Jan 23, 2021, at 3:51 PM, Donald Hinsman <dhinsman@...> wrote:

?

I have been able to install the linux versions of d-rats and the d-rats repeaters on a Rpi 4.? I can start each from a command prompt when the RPi has booted to a GUI but not directly from the GUI.? And I am unable to make those 2 programs start at boot automatically when running headless and remotely.? Any ideas???

?

SFARES uses D-RATS extensively in our Emergency Communications System.? Our deepest thanks go to the team that brought D-RATS alive again as a WL2K hotspot.

?

73 de N4VIP, Don Hinsman


--
73 de N4VIP, Don - SFARES Inc. Treasurer and Secretary
_._,_._,_