<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - need help configuring pianoteq for headless linux-mint]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=4227</link>
		<description><![CDATA[The most recent posts in need help configuring pianoteq for headless linux-mint.]]></description>
		<lastBuildDate>Wed, 17 Feb 2016 09:14:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941722#p941722</link>
			<description><![CDATA[<p>These laptops will be running Linux of some flavor? I reckon you&#039;ve seen this, right?</p><p><a href="http://unix.stackexchange.com/questions/4442/how-to-shut-down-the-computer-after-a-task-has-been-completed">http://unix.stackexchange.com/questions...-completed</a></p>]]></description>
			<author><![CDATA[null@example.com (markmarz)]]></author>
			<pubDate>Wed, 17 Feb 2016 09:14:09 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941722#p941722</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941717#p941717</link>
			<description><![CDATA[<p>Glad you got it working. Autostart scripts don&#039;t necessarily know about what each program needs, especially ones not part of your distro.</p><p>What I had trouble with is auto shutdown after exiting Pianoteq. I never really solved it properly but when I have time I&#039;ll look into it again. I just want a setup that&#039;s dead easy for young students and their parents to use. My partner&#039;s a piano teacher and we would like to be able to loan out small laptops with Pianoteq on it for students to try out at home with minimal hassle. Just turn it on wait for bootup straight into a full-screen Pianoteq interface and play. Then when exiting Pianoteq, the computer should automatically shut down.</p>]]></description>
			<author><![CDATA[null@example.com (SteveLy)]]></author>
			<pubDate>Wed, 17 Feb 2016 03:15:11 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941717#p941717</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941714#p941714</link>
			<description><![CDATA[<p>Cool, I&#039;ll tweak it that way. So the autostarts don&#039;t kick off the configured tasks in the background anyway? </p><p>Thanks! Love this forum.</p>]]></description>
			<author><![CDATA[null@example.com (markmarz)]]></author>
			<pubDate>Tue, 16 Feb 2016 23:43:39 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941714#p941714</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941713#p941713</link>
			<description><![CDATA[<p>I use that above method mentioned -- using the desktop&#039;s autostart function.</p><p>And it does need a sleep for all the services to initialize first.&nbsp; I make a script that executes:</p><p>&nbsp; * sleep 10<br />&nbsp; * pianoteq start</p><p>Then inside the autostart option, I make it run &quot;pianoteq_start &amp;&quot; so it runs in the background and doesn&#039;t stop the desktop services from starting up.</p>]]></description>
			<author><![CDATA[null@example.com (Mossy)]]></author>
			<pubDate>Tue, 16 Feb 2016 23:38:31 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941713#p941713</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941712#p941712</link>
			<description><![CDATA[<p>Perfect! I tried without sleep and it didn&#039;t work, but sleeping 30 seconds works fine. Maybe I can cut it back a little.</p><p>Thanks a million!</p>]]></description>
			<author><![CDATA[null@example.com (markmarz)]]></author>
			<pubDate>Tue, 16 Feb 2016 23:26:57 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941712#p941712</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941711#p941711</link>
			<description><![CDATA[<p>Oh, you mean like this?</p><p><a href="http://xmodulo.com/start-program-automatically-linux-desktop.html">http://xmodulo.com/start-program-automa...sktop.html</a></p>]]></description>
			<author><![CDATA[null@example.com (markmarz)]]></author>
			<pubDate>Tue, 16 Feb 2016 23:18:36 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941711#p941711</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941710#p941710</link>
			<description><![CDATA[<p>MATE</p><p>Linux Mint 17.3 64 bit</p><p>I&#039;m not familiar with &quot;login manager&#039;s start-up script&quot;, please explain.</p>]]></description>
			<author><![CDATA[null@example.com (markmarz)]]></author>
			<pubDate>Tue, 16 Feb 2016 23:16:25 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941710#p941710</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941709#p941709</link>
			<description><![CDATA[<p>If you&#039;re setup for auto login, then you could also just run pianoteq by adding it to your login manager&#039;s start-up script. (You still may need a sleep command to let the desktop and window manager properly load first.) What desktop environment are you using?</p>]]></description>
			<author><![CDATA[null@example.com (SteveLy)]]></author>
			<pubDate>Tue, 16 Feb 2016 23:11:29 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941709#p941709</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941707#p941707</link>
			<description><![CDATA[<p>Well, that didn&#039;t work. Tried sleeping for 60 seconds .. the NUC only takes about 20 seconds to reboot .. and still no sound.</p><p>I read somewhere that something .. pulseaudio I think .. is normally kicked off when X is initialized, but since there is no X, no pulseaudio. That&#039;s why I tried injecting pulseaudio into the script.</p><p>Huh. Well, mostly the NUC will never reboot since it cost about $8.50 a year to run it 24/7. But I hate the idea that I have to be tied to a terminal to kick it off. I&#039;ll keep digging.</p>]]></description>
			<author><![CDATA[null@example.com (markmarz)]]></author>
			<pubDate>Tue, 16 Feb 2016 22:42:18 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941707#p941707</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941706#p941706</link>
			<description><![CDATA[<p>Thanks for your reply.</p><p>Yes, I should have made the method clear. I can, when logged into a terminal, kick off a script that runs in the background which kicks off pianoteq --headless just fine. </p><p>The problem is when I rely on cron to kick it off, ie, at boot time without a terminal. I&#039;m sure you&#039;re right, there&#039;s some dependency but it would be hit and miss to guess what it could be. I thought of your suggestion to just delay the kickoff with a timer, and I suppose I&#039;ll try it, but it seemed sort of haphazard. Also I don&#039;t know when @reboot is honored exactly, but I suppose a long enough delay would cover the bases.</p><p>I&#039;d rather know what the dependencies are and code for them in an init.d script, but maybe that&#039;s too hard.</p>]]></description>
			<author><![CDATA[null@example.com (markmarz)]]></author>
			<pubDate>Tue, 16 Feb 2016 22:26:56 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941706#p941706</guid>
		</item>
		<item>
			<title><![CDATA[Re: need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941705#p941705</link>
			<description><![CDATA[<p>I can&#039;t reproduce the problem just running headless from the command line. It works fine on my Linux Mint 17.2 Dell laptop.</p><p>Is it just when you run it as a @reboot cron job or also when you run it headless from the terminal?</p><p>My guess is @reboot is too soon and some system services required aren&#039;t ready. On a machine I&#039;ve set up Pianoteq to start automatically on bootup but it&#039;s run as a one of the Desktop environment&#039;s (fluxbox) start-up programs rather than as a cron job. If you want to do it with cron perhaps a sleep command of suitable duration before starting Pianoteq could help.</p>]]></description>
			<author><![CDATA[null@example.com (SteveLy)]]></author>
			<pubDate>Tue, 16 Feb 2016 22:20:13 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941705#p941705</guid>
		</item>
		<item>
			<title><![CDATA[need help configuring pianoteq for headless linux-mint]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=941704#p941704</link>
			<description><![CDATA[<p>No problem running pianoteq with a terminal attached to my NUC running linux mint 17.3.</p><p>Like to run it headless but am hitting some roadblocks. Here&#039;s how I kick it off from a terminal:<br />cd &quot;/home/mark/pianoteq/Pianoteq 5 STAGE/i386/&quot;<br />nohup &quot;./Pianoteq 5 STAGE&quot; &gt; /home/mark/pianoteq.log 2&gt;&amp;1 &amp;</p><br /><p>Here&#039;s my attempt to kick it off from cron headless:<br /></p><div class="codebox"><pre><code>@reboot /home/mark/pianoteq/pianoteq_kickoff_cron.sh &gt; /home/mark/pianoteq_cron.log 2&gt;&amp;1

mark@nuc-piano ~/pianoteq $ cat /home/mark/pianoteq/pianoteq_kickoff_cron.sh
#!/bin/bash
cd &quot;/home/mark/pianoteq/Pianoteq 5 STAGE/i386/&quot;
&quot;./Pianoteq 5 STAGE&quot; --headless &gt; /home/mark/pianoteq.log 2&gt;&amp;1 </code></pre></div><p>No sound from piano and my logs are empty, pianoteq is running:<br /></p><div class="codebox"><pre><code>mark@nuc-piano ~/pianoteq $ ps aux|grep -i pianoteq|grep -v grep
mark      1211  0.0  0.0   4448   688 ?        Ss   14:55   0:00 /bin/sh -c /home/mark/pianoteq/pianoteq_kickoff_cron.sh &gt; /home/mark/pianoteq_cron.log 2&gt;&amp;1
mark      1212  0.0  0.0  12400  2636 ?        S    14:55   0:00 /bin/bash /home/mark/pianoteq/pianoteq_kickoff_cron.sh
mark      1213  2.1  3.0 182908 121464 ?       Sl   14:55   0:05 ./Pianoteq 5 STAGE --headless
mark@nuc-piano ~/pianoteq $ </code></pre></div><p>I subsequently inserted<br />/usr/bin/pulseaudio --start<br />into the kickoff script on a hunch that maybe pulseaudio wasn&#039;t ready before pianoteq, but made no difference.</p><p>Perhaps an init.d script is required but I don&#039;t know the dependencies.</p><p>Any ideas?</p><p>Thanks,<br />Mark M</p>]]></description>
			<author><![CDATA[null@example.com (markmarz)]]></author>
			<pubDate>Tue, 16 Feb 2016 21:04:46 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=941704#p941704</guid>
		</item>
	</channel>
</rss>
