Manually Edit Pi-Star Hosts File - How to edit Pi-Star DMR_Hosts.txt file

Manually adding or overriding repeaters and reflectors in the hosts files

Pi-Star updates the lists of reflectors and repeaters stored in the hosts files (/usr/local/etc) nightly, but there may be times when you want to use one that isn't listed or override an incorrect entry. In this case, you can add it manually to the override hosts file in the /root directory, which is the root user's home directory. Once you've done this, you can run a regular Pi-Star Update without losing your changes.


The best way to do this, is to edit the host files in /root only - and then run "sudo pistar-update"
In doing that you add the hosts you want, correctly, the update process takes care of putting them in the correct files - and the new TGs will be available as soon as the update process finishes.


  1. Log into Pi-Star via SSH.
  2. Enable read-write mode:   rpi-rw
  3. Switch user so that you're in root's home directory (/root) with root's privileges: sudo su -
  4. type :  ls  , command use to list or like dir for directory
  5. Edit the appropriate hosts file, for example:nano DExtra_Hosts.txt Note: The filename, including capitalization, must be exact. Also available: DCS_Hosts.txt, DMR_Hosts.txt, DPlus_Hosts.txt, NXDNHosts.txt, XLXHosts.txt, DExtra_Hosts.txt, and P25Hosts.txt.
  6. Make your additions or changes. Note: For the DPlus_Hosts.txt file, you can add a capital L to the end of the line to force the entry in this file to override any duplicates in the main Pi-Star host file.
  7. Write out the changes (^O), and exit (^X).
  8. Exit root user: exit
  9. Re-enable read-only mode: rpi-ro
  10. Run a Pi-Star update so your changes get appended to the files in /usr/local/etc: sudo pistar-update
run "sudo pistar-update"


What is the command just to reload the host files if you make changes and don't need to do the complete pistar-update?

Updates host files without having to go through the whole update script.  (see #10)
/usr/local/sbin
HostFilesUpdate.sh



How to edit your DMR_Hosts.txt file in pi-star to add a new DMR network




No comments:

Post a Comment

.
PiStar Users Discussion Group
Pi-Star Users Support Group
https://groups.io/g/PiStar

BrandMeister Network Users Discussion Group
https://groups.io/g/BrandMeister
.

Note: only a member of this blog may post a comment.