-2

I want to start qjackctl and a vlc media player playlist file at boot. I’ve searched over the internet but all the options aren’t working.

I've added @ qjackctl at /etc/rc.local file, this file should be opened at boot. Nothing shows at boot.

I've also added @ qjackctl at crontab - e, but still nothing shows at boot.

6
  • please describe what you tried
    – jsotola
    Commented Nov 28, 2019 at 2:52
  • Please read the text
    – Marv
    Commented Nov 28, 2019 at 7:44
  • 3
    i did read it. ... you did not describe anything ... all you said "I tried crontab, rc local and systemd" .... that does not say what you actually did
    – jsotola
    Commented Nov 28, 2019 at 8:07
  • I also tried rc. rc -> bash: command 'rc' not found. It can be installed with 'sudo apt install rc'. Commented Nov 28, 2019 at 8:18
  • 3
    Please edit your question and paste the contents of the crontab, the rc.local and the systemd Unit file that you have tried into the question.
    – Ingo
    Commented Nov 28, 2019 at 9:53

3 Answers 3

2

You tried 3 possibilities to start qjackctl on boot up.

Using /etc/rc.local:
I cannot suggest to use it because it's deprecated and known that it has limitations due to Compatibility with SysV. We have seen many problems here on this site using it. Following the recommendation of the developers from systemd you should avoid using it.

Using crontab:
The entry you have given in your question cannot work. I'm not familiar with crontab but you have to prepend the entry in your crontab with @reboot so at least it should look something like

@reboot qjackctl &

Please note the & at the end. It is necessary to send the program to the background, otherwise crontab get stuck.

Using systemd:
For my opinion this is the best solution because you have all possibilities to adapt the service to the needed environment. You told that you have also tried systemd but does not show us what Unit file you used. There are many examples here on the side. You may find some on tag systemd.

1

Try adding @qjackctl to /home/pi/.config/lxsession/LXDE-pi/autostart and reboot. If that does not work, let me know.

1
  • There is no lxde-pi folder. Only lxpanel and lxterminal
    – Marv
    Commented Nov 28, 2019 at 17:18
1

To start something on boot from cron, your contab file should read

@reboot <command>

where <command> is the command you want to run.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.