User Tools

Site Tools


docs:svx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docs:svx [2022/11/25 16:57] – [Patching the package] rootdocs:svx [2022/11/26 04:08] (current) – [Sample config] root
Line 89: Line 89:
 </file> </file>
 ===== SVXReflector ===== ===== SVXReflector =====
-==== Patching the package ====+==== Patching and installing the package ====
  
-Ensure your sources.list file contains the ''deb-src'' lines.+Ensure your ''sources.list'' file contains the ''deb-src'' lines. 
 + 
 +Run the following commands:
  
 <code bash> <code bash>
Line 136: Line 138:
 quilt push -a quilt push -a
 dpkg-buildpackage -us -uc dpkg-buildpackage -us -uc
-dpkg -i ../svxreflector_*.deb+cd .. 
 +dpkg -i svxreflector_*.deb
 apt-mark hold svxreflector apt-mark hold svxreflector
 </code> </code>
Line 161: Line 164:
 DefaultPassword="Change this key now." DefaultPassword="Change this key now."
 </code> </code>
 +
 +==== Systemd unit ====
 +
 +<code ini svxreflector@.service>
 +;;;;; Author: Richard Neese<kb3vgw@gmail.com>
 +
 +[Unit]
 +Description=SvxLink Reflector for room %I
 +Documentation=man:svxreflector(1)
 +After=network.target remote-fs.target time.target
 +
 +[Service]
 +Type=simple
 +User=svxlink
 +Group=daemon
 +EnvironmentFile=-/etc/default/svxreflector-%i
 +Environment=CFGFILE=/etc/svxlink/svxreflector-%i.conf
 +Environment=LOGFILE=/var/log/svxlink/svx-%i.log
 +RuntimeDirectory=svxlink
 +ExecStart=/usr/bin/svxreflector --config $CFGFILE --logfile $LOGFILE
 +ExecReload=/bin/kill -s HUP $MAINPID
 +Restart=on-failure
 +TimeoutStartSec=60
 +[Install]
 +WantedBy=multi-user.target
 +</code>
 +
 ===== SVXLink (listener) ===== ===== SVXLink (listener) =====
 +
 +==== Installing ====
 +
 +We'll use the other packages generated in the section above. Go back in ''/usr/local/src'', and run the following commands:
 +
 +<code bash>
 +dpkg -i svxlink-server_*.deb svxlink-gpio_*.deb libecholib1.3_*.deb
 +apt-mark hold svxlink-server svxlink-gpio libecholib1.3
 +</code>
 +
 +Alternatively, you can choose to use the packages from the repository, which should be the same, since we didn't patch their codebase.
 +
 +<code bash>
 +apt install -y svxlink-server
 +</code>
 +==== Sample config ====
  
 <code ini svxlink.conf> <code ini svxlink.conf>
Line 188: Line 234:
 TYPE=Reflector TYPE=Reflector
 HOST=127.0.0.1 HOST=127.0.0.1
-PORT=5310+PORT=5300
 CALLSIGN="RESEAU_xxx" CALLSIGN="RESEAU_xxx"
-AUTH_KEY="Default community password"+AUTH_KEY="Change this key now."
 AUDIO_CODEC=OPUS AUDIO_CODEC=OPUS
 #JITTER_BUFFER_DELAY=0 #JITTER_BUFFER_DELAY=0
Line 212: Line 258:
 TX_DELAY=0 TX_DELAY=0
 PREEMPHASIS=0 PREEMPHASIS=0
 +</code>
 +
 +==== Systemd Unit file ====
 +
 +<code ini svxlink@.service>
 +;;;;; Author: Richard Neese<kb3vgw@gmail.com>
 +
 +[Unit]
 +Description=SvxLink client for room %I 
 +Documentation=man:svxlink(1)
 +After=network.target remote-fs.target time.target sound.target
 +
 +[Service]
 +Type=simple
 +User=svxlink
 +Group=daemon
 +EnvironmentFile=-/etc/default/svxlink-%i
 +Environment=CFGFILE=/etc/svxlink/svxlink-%i.conf
 +Environment=LOGFILE=/var/log/svxlink/svxlink-%i.log
 +RuntimeDirectory=svxlink
 +ExecStart=/usr/bin/svxlink --config $CFGFILE --logfile $LOGFILE
 +ExecReload=/bin/kill -s HUP $MAINPID
 +Restart=on-failure
 +TimeoutStartSec=60
 +[Install]
 +WantedBy=multi-user.target
 </code> </code>
  
 ===== DarkIce ===== ===== DarkIce =====
 +
 +==== Sample config ====
 +
  
 <code ini darkice.conf> <code ini darkice.conf>
Line 257: Line 332:
 public          = yes       # advertise this stream? public          = yes       # advertise this stream?
 </code> </code>
 +
 +==== Systemd unit file ====
 +
 +<file ini darkice@.service>
 +[Unit]
 +Description=Darkice server for room %I
 +Documentation=man:darkice(1)
 +After=network.target time.target sound.target icecast2.service
 +
 +[Service]
 +Type=simple
 +User=svxlink
 +Group=svxlink
 +EnvironmentFile=-/etc/default/darkice-%i
 +Environment=CFGFILE=/etc/darkice/%i.cfg
 +#RuntimeDirectory=/etc/darkice
 +ExecStart=/usr/bin/darkice -c $CFGFILE
 +ExecStop=/bin/kill -s TERM $MAINPID
 +Restart=on-failure
 +TimeoutStartSec=60
 +
 +[Install]
 +WantedBy=multi-user.target
 +</file>
  
 ===== MQTT ===== ===== MQTT =====
docs/svx.1669391847.txt.gz · Last modified: 2022/11/25 16:57 by root

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki