<div dir="ltr"><div><div><div><div><div><div>hi there,<br></div>which distro are you using.<br></div>if you're using ubuntu* then the fact that it asks for X is related to you using the jack-dbus. compile a jack version without dbus support and you'll be fine.<br><br></div>also the guys are jack-devel mail list have been more than helpful.<br></div>apparently to get elevated permission while rc.local is executed you need to uncomment in /etc/pam.d/su<br>    session    required   pam_limits.so<br><br></div>but generally speaking, rc.local is a BAD way to do boot startups in ubuntu* and this is because ubuntu*   set device permissions based on the <b>logged in</b> user. <br></div>It is advised to use the autostart utilities of you desktop environment, which is what I will do now.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 3:18 PM, Ede Wolf <span dir="ltr"><<a href="mailto:listac@nebelschwaden.de" target="_blank">listac@nebelschwaden.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Great you've asked, I am having the same problem. "su - user" does not work, but logging in as user and run the same command does. Happens with both, jack and jack2. With jack2 I am also getting an error that it can't open X, wenn run from command line. But that maybe an issue specific to the jack2 version of arch, as there is no reason why jackd should need a display.<div><div class="h5"><br>
<br>
<br>
<br>
Am 17.04.2015 um 11:40 schrieb Athanasios Silis:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi all,<br>
I am trying to run jackd instance from /etc/rc.local (along with a few<br>
other applications) from a custom made init script.<br>
<br>
The system is ubuntustudio and I have setup everything to have elevated<br>
permissions when executing applications from the @audio group.<br>
<br>
so when I am logged on, I see this:<br>
nass@starkill:~$ ulimit -r -l<br>
real-time priority              (-r) 95<br>
max locked memory       (kbytes, -l) unlimited<br>
<br>
which is expected and I can execute the script I wrote.<br>
<br>
but, when I execute my script from /etc/rc.local as<br>
su - nass -c "ulimits -r -l cd audio_setup/scripts ; bash ./start_audio"<br>
then my user does not (yet?) have elevated permissions.<br>
<br>
real-time priority              (-r) 0<br>
max locked memory       (kbytes, -l) 64<br>
<br>
is there a script I can run before my start_audio script to elevate my<br>
permissions?<br>
<br>
thank you<br>
<br>
<br></div></div>
_______________________________________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org" target="_blank">Linux-audio-user@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-user" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-user</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
Linux-audio-user mailing list<br>
<a href="mailto:Linux-audio-user@lists.linuxaudio.org" target="_blank">Linux-audio-user@lists.linuxaudio.org</a><br>
<a href="http://lists.linuxaudio.org/listinfo/linux-audio-user" target="_blank">http://lists.linuxaudio.org/listinfo/linux-audio-user</a><br>
</blockquote></div><br></div>