OpenBCM V1.13-36-g8006 (Linux)

Packet Radio Mailbox

DB0FFL

[Box DB0FFL]

 Login: GAST





  
PE1RRR > BPQ      09.10.20 10:33l 109 Lines 3073 Bytes #999 (0) @ WW
BID : 20335_PE1RRR
Read: GAST
Subj: QtSoundModem autostart
Path: DB0FFL<OE5XBL<F1OYP<IZ3LSV<I0OJJ<LU4ECL<JE7YGF<JH4XSY<N3HYM<KC9VYU<
      W9GM<KK4DIV<K5DAT<K3CHB<PE1RRR
Sent: 201009/0825Z 20335@PE1RRR.NLD.EURO LinBPQ6.0.20

Before you get your pants in a twist, this is a systemd setup.
Don't bother writing to me about 'muh systemd is ebil'

Ok with that out of the way, the up-to-date document is here:

https://eindhoven.space/amateur-radio/packet-radio-pages/qtsoundmodem-systemd-autostart/

A snapshot below:

Creating /home/pi/startqtsm

#!/bin/bash
# Change working directory to where QtSoundModem.ini is
cd /home/pi/bin

# Launch invisibly
# /home/pi/bin/piQtSoundModem nogui

# Comment out the below if using the above nogui option.

# Launch with GUI

# Set the display number here. If HDMI connected monitor, # this is usually :0
# For VNC sessions, this is determined in the desktop-
# check it with echo $DISPLAY in a shell within the VNC.

DISPLAY=:0
export DISPLAY
/home/pi/bin/piQtSoundModem
Setting permissions

chmod 755 /home/pi/bin/startqtsm
If using GUI mode, ensure it actually opens on your screen by running /home/pi/bin/startqtsm in a new terminal. If not, check your DISPLAY number again.

Installing necessary packages:

sudo apt install screen
Creating qtsm.service for systemd autostart

sudo nano /lib/systemd/system/qtsm.service
Insert the following into qtsm.service

[Unit]
Description=QtSoundModem Start Script by PE1RRR
After=network.target

[Service]
Type=forking
WorkingDirectory=/home/pi/bin
Restart=always
RestartSec=20
StartLimitInterval=60
StartLimitBurst=3
User=pi
Group=pi
ExecStart=/usr/bin/screen -S QTSM-Console -d -m /home/pi/bin/startqtsm
SyslogIdentifier=QTSM-Debug

[Install]
WantedBy=multi-user.target
Initiate the systemd intergration

sudo systemctl daemon-reload
sudo systemctl enable qtsm.service
Start QtSoundModem

sudo service qtsm start
If in GUI mode, QtSoundModem should appear on your desktop. For both GUI and nogui modes, a console is kept by the ‘screenâ€Ö application installed earlier, this is accessible with:

As user pi:

screen -r QTSM-Console 

Or if feeling lucky:

screen -r QTSM

This will pattern match against running screen sessions.
Stopping QTSM

If you quit QtSoundModem, itâ€Öll reopen 20 seconds later automatically, which might be intentional but if you want to stop it, youâ€Öll need to stop the service:

sudo service qtsm stop
Disabling the service:

sudo service qtsm stop
sudo systemctl disable qtsm.service
Gotchas

If you have executed QtSoundModem as root prior, then the configuration file will have been changed to root ownership as well, this can be a nuisance if trying to reconfigure modems in the GUI as it wonâ€Öt be able to retain settings. Force the ownership of the file to owner ‘piâ€Ö with:

sudo chown pi:pi /home/pi/bin/QtSoundModem.ini
Soundcard Permissions

Usually user ‘piâ€Ö is already a member of the audio /etc/group that provides access to the soundcard devices. If you are using a different user you will need to add them to the ‘audioâ€Ö group.

useradd -G audio <username>

I hope this is useful for someone (2E1DWP, this is for you!)

73
 and happy packets
Red

P.S QtSoundModem is available here:

https://www.cantab.net/users/john.wiseman/Documents/QtSoundModem.html



Lese vorherige Mail | Lese naechste Mail


 06.04.2026 02:38:20lZurueck Nach oben