docs:svx
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docs:svx [2022/11/25 13:08] – created root | docs:svx [2022/11/26 04:08] (current) – [Sample config] root | ||
|---|---|---|---|
| Line 23: | Line 23: | ||
| ===== Icecast ===== | ===== Icecast ===== | ||
| - | TODO | ||
| + | Install '' | ||
| + | |||
| + | Below, you'll find the configuration file to install in ''/ | ||
| + | |||
| + | <file xml icecast2.xml> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | |||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | <header name=" | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | |||
| + | < | ||
| + | | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | | ||
| + | <alias source="/" | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| ===== SVXReflector ===== | ===== SVXReflector ===== | ||
| - | TODO | + | ==== Patching and installing the package ==== |
| + | |||
| + | Ensure your '' | ||
| + | |||
| + | Run the following commands: | ||
| + | |||
| + | <code bash> | ||
| + | cd / | ||
| + | apt build-dep svxreflector | ||
| + | apt source svxreflector | ||
| + | apt install quilt | ||
| + | cd svxlink-* | ||
| + | </ | ||
| + | |||
| + | Drop the following file in '' | ||
| + | |||
| + | <file diff f4hof-fix-reflector.patch> | ||
| + | Index: svxlink-19.09.1/ | ||
| + | =================================================================== | ||
| + | --- svxlink-19.09.1.orig/ | ||
| + | +++ svxlink-19.09.1/ | ||
| + | @@ -518,12 +518,17 @@ void ReflectorClient:: | ||
| + | | ||
| + | { | ||
| + | | ||
| + | - if (!m_cfg-> | ||
| + | + if (strcasestr( callsign.c_str(), | ||
| + | { | ||
| + | - cout << "*** WARNING: Unknown user \"" | ||
| + | - << | ||
| + | + /* Deny connection to anons */ | ||
| + | + cout << " | ||
| + | | ||
| + | } | ||
| + | + if (!m_cfg-> | ||
| + | + { | ||
| + | + /* Unknown user, silently hinting to group DefaultPassword. */ | ||
| + | + auth_group = " | ||
| + | + } | ||
| + | | ||
| + | if (!m_cfg-> | ||
| + | { | ||
| + | </ | ||
| + | |||
| + | Then run the following commands. | ||
| + | |||
| + | <code bash> | ||
| + | quilt push -a | ||
| + | dpkg-buildpackage -us -uc | ||
| + | cd .. | ||
| + | dpkg -i svxreflector_*.deb | ||
| + | apt-mark hold svxreflector | ||
| + | </ | ||
| + | ==== Config template ==== | ||
| + | |||
| + | <code ini svxreflector.conf>################################################################### | ||
| + | # | ||
| + | # Configuration file for the SvxReflector SvxLink conference node | ||
| + | # | ||
| + | ################################################################### | ||
| + | |||
| + | [GLOBAL] | ||
| + | # | ||
| + | TIMESTAMP_FORMAT=" | ||
| + | LISTEN_PORT=5300 | ||
| + | # | ||
| + | # | ||
| + | CODECS=OPUS | ||
| + | |||
| + | [USERS] | ||
| + | # | ||
| + | |||
| + | [PASSWORDS] | ||
| + | DefaultPassword=" | ||
| + | </ | ||
| + | |||
| + | ==== Systemd unit ==== | ||
| + | |||
| + | <code ini svxreflector@.service> | ||
| + | ;;;;; Author: Richard Neese< | ||
| + | |||
| + | [Unit] | ||
| + | Description=SvxLink Reflector for room %I | ||
| + | Documentation=man: | ||
| + | After=network.target remote-fs.target time.target | ||
| + | |||
| + | [Service] | ||
| + | Type=simple | ||
| + | User=svxlink | ||
| + | Group=daemon | ||
| + | EnvironmentFile=-/ | ||
| + | Environment=CFGFILE=/ | ||
| + | Environment=LOGFILE=/ | ||
| + | RuntimeDirectory=svxlink | ||
| + | ExecStart=/ | ||
| + | ExecReload=/ | ||
| + | Restart=on-failure | ||
| + | TimeoutStartSec=60 | ||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| ===== SVXLink (listener) ===== | ===== SVXLink (listener) ===== | ||
| - | TODO | + | |
| + | ==== Installing ==== | ||
| + | |||
| + | We'll use the other packages generated in the section above. Go back in ''/ | ||
| + | |||
| + | <code bash> | ||
| + | dpkg -i svxlink-server_*.deb svxlink-gpio_*.deb libecholib1.3_*.deb | ||
| + | apt-mark hold svxlink-server svxlink-gpio libecholib1.3 | ||
| + | </ | ||
| + | |||
| + | Alternatively, | ||
| + | |||
| + | <code bash> | ||
| + | apt install -y svxlink-server | ||
| + | </ | ||
| + | ==== Sample config ==== | ||
| + | |||
| + | <code ini svxlink.conf> | ||
| + | ############################################################################### | ||
| + | # # | ||
| + | # Configuration file for the SvxLink server | ||
| + | # # | ||
| + | ############################################################################### | ||
| + | |||
| + | [GLOBAL] | ||
| + | LOGICS=SimplexLogic, | ||
| + | CFG_DIR=svxlink.d | ||
| + | TIMESTAMP_FORMAT=" | ||
| + | CARD_SAMPLE_RATE=48000 | ||
| + | LINKS=ALLlink | ||
| + | |||
| + | [SimplexLogic] | ||
| + | TYPE=Simplex | ||
| + | RX=NONE | ||
| + | TX=TxStream | ||
| + | CALLSIGN=RESEAU_ARA | ||
| + | EVENT_HANDLER=/ | ||
| + | DEFAULT_LANG=en_US | ||
| + | |||
| + | [ReflectorLogic] | ||
| + | TYPE=Reflector | ||
| + | HOST=127.0.0.1 | ||
| + | PORT=5300 | ||
| + | CALLSIGN=" | ||
| + | AUTH_KEY=" | ||
| + | AUDIO_CODEC=OPUS | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | EVENT_HANDLER=/ | ||
| + | |||
| + | [ALLlink] | ||
| + | CONNECT_LOGICS=SimplexLogic: | ||
| + | DEFAULT_ACTIVE=1 | ||
| + | TIMEOUT=0 | ||
| + | |||
| + | [TxStream] | ||
| + | TYPE=Local | ||
| + | AUDIO_DEV=alsa: | ||
| + | AUDIO_CHANNEL=0 | ||
| + | PTT_TYPE=NONE | ||
| + | TIMEOUT=7200 | ||
| + | TX_DELAY=0 | ||
| + | PREEMPHASIS=0 | ||
| + | </ | ||
| + | |||
| + | ==== Systemd Unit file ==== | ||
| + | |||
| + | <code ini svxlink@.service> | ||
| + | ;;;;; Author: Richard Neese< | ||
| + | |||
| + | [Unit] | ||
| + | Description=SvxLink client for room %I | ||
| + | Documentation=man: | ||
| + | After=network.target remote-fs.target time.target sound.target | ||
| + | |||
| + | [Service] | ||
| + | Type=simple | ||
| + | User=svxlink | ||
| + | Group=daemon | ||
| + | EnvironmentFile=-/ | ||
| + | Environment=CFGFILE=/ | ||
| + | Environment=LOGFILE=/ | ||
| + | RuntimeDirectory=svxlink | ||
| + | ExecStart=/ | ||
| + | ExecReload=/ | ||
| + | Restart=on-failure | ||
| + | TimeoutStartSec=60 | ||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| ===== DarkIce ===== | ===== DarkIce ===== | ||
| - | TODO | + | |
| + | ==== Sample config ==== | ||
| + | |||
| + | |||
| + | <code ini darkice.conf> | ||
| + | [general] | ||
| + | duration | ||
| + | bufferSecs | ||
| + | reconnect | ||
| + | realtime | ||
| + | rtpio = 3 | ||
| + | |||
| + | |||
| + | [input] | ||
| + | device | ||
| + | sampleRate | ||
| + | bitsPerSample | ||
| + | channel | ||
| + | |||
| + | |||
| + | [icecast2-0] | ||
| + | bitrateMode | ||
| + | format | ||
| + | bitrate | ||
| + | quality | ||
| + | channel | ||
| + | lowpass | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | server | ||
| + | # host name of the server | ||
| + | port = 5299 # port of the IceCast2 server, usually 8000 | ||
| + | password | ||
| + | mountPoint | ||
| + | name = Reflecteur-ARA | ||
| + | # name of the stream | ||
| + | description | ||
| + | # description of the stream | ||
| + | url = http:// | ||
| + | # URL related to the stream | ||
| + | genre = Ham Radio , Radioamateur | ||
| + | public | ||
| + | </ | ||
| + | |||
| + | ==== Systemd unit file ==== | ||
| + | |||
| + | <file ini darkice@.service> | ||
| + | [Unit] | ||
| + | Description=Darkice server for room %I | ||
| + | Documentation=man: | ||
| + | After=network.target time.target sound.target icecast2.service | ||
| + | |||
| + | [Service] | ||
| + | Type=simple | ||
| + | User=svxlink | ||
| + | Group=svxlink | ||
| + | EnvironmentFile=-/ | ||
| + | Environment=CFGFILE=/ | ||
| + | # | ||
| + | ExecStart=/ | ||
| + | ExecStop=/ | ||
| + | Restart=on-failure | ||
| + | TimeoutStartSec=60 | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </ | ||
| ===== MQTT ===== | ===== MQTT ===== | ||
| - | TODO | + | |
| + | <code - conf.d/ | ||
| + | protocol mqtt | ||
| + | password_file / | ||
| + | allow_anonymous false | ||
| + | auth_plugin_deny_special_chars false | ||
| + | </ | ||
| ===== Web portal ===== | ===== Web portal ===== | ||
| TODO | TODO | ||
docs/svx.1669378115.txt.gz · Last modified: 2022/11/25 13:08 by root