<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[arecord sudo only]]></title><description><![CDATA[<p dir="auto">Hello<br />
I installed a USB-Micro and a speaker on the headphone socket.<br />
I used  aplay and arecord to test.<br />
when typing aplay … and enter it runs and plays the sound<br />
when typing arecord…out.wav it says no rights<br />
so I tried sudo arecord… it runs and records the file, which I can listen to via aplay.</p>
<p dir="auto">MagicMirror cannot access the micro because of sudo.</p>
<p dir="auto">How can I change the rights for arecord so MM can use it?</p>
<p dir="auto">Manfred</p>
]]></description><link>https://forum.magicmirror.builders/topic/16099/arecord-sudo-only</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 13:46:00 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/16099.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Dec 2021 12:49:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to arecord sudo only on Wed, 29 Dec 2021 15:21:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
thank you,<br />
I have set in the config of MMM-voice the microphone 1, but there is still an error.<br />
I will ask the developer of MMM-voice.</p>
<p dir="auto">Manfred</p>
]]></description><link>https://forum.magicmirror.builders/post/97871</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97871</guid><dc:creator><![CDATA[kupperma]]></dc:creator><pubDate>Wed, 29 Dec 2021 15:21:24 GMT</pubDate></item><item><title><![CDATA[Reply to arecord sudo only on Wed, 29 Dec 2021 14:30:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kupperma" aria-label="Profile: kupperma">@<bdi>kupperma</bdi></a> said in <a href="/post/97864">arecord sudo only</a>:</p>
<blockquote>
<p dir="auto">wxrwxrwx</p>
</blockquote>
<p dir="auto">areceord is execuatble by the user (root) and the group(root) and others (everyone else)</p>
<p dir="auto">arecord -l</p>
<p dir="auto">will list recording devices</p>
<p dir="auto">mmm-voice says config</p>
<pre><code>microphone	REQUIRED	Id of microphone shown in the installer.
</code></pre>
<p dir="auto">shown in the installer  &lt;---- thats the key</p>
]]></description><link>https://forum.magicmirror.builders/post/97866</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97866</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 29 Dec 2021 14:30:38 GMT</pubDate></item><item><title><![CDATA[Reply to arecord sudo only on Wed, 29 Dec 2021 13:52:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
pi@raspberrypi:~ $ which arecord<br />
/usr/bin/arecord</p>
<p dir="auto">pi@raspberrypi:~ $ ls /usr/bin/arecord -laF<br />
lrwxrwxrwx 1 root root 5 16. Apr 2021  /usr/bin/arecord -&gt; aplay*</p>
<p dir="auto">Is it that way that I have to set the microphone in MM separately so that the Module MMM-voice will recognize the micophone which is on card 1 device 0.</p>
]]></description><link>https://forum.magicmirror.builders/post/97864</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97864</guid><dc:creator><![CDATA[kupperma]]></dc:creator><pubDate>Wed, 29 Dec 2021 13:52:51 GMT</pubDate></item><item><title><![CDATA[Reply to arecord sudo only on Wed, 29 Dec 2021 13:46:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kupperma" aria-label="Profile: kupperma">@<bdi>kupperma</bdi></a> on your ls arecord, file not found</p>
<p dir="auto">u forgot to do</p>
<pre><code> which arecord
</code></pre>
<p dir="auto">and use it’s output, the full path to arecord</p>
]]></description><link>https://forum.magicmirror.builders/post/97863</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97863</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 29 Dec 2021 13:46:52 GMT</pubDate></item><item><title><![CDATA[Reply to arecord sudo only on Wed, 29 Dec 2021 13:44:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kupperma" aria-label="Profile: kupperma">@<bdi>kupperma</bdi></a> oh, you are in the root folder /</p>
<p dir="auto">it’s the write of out.wav that is causing the problem</p>
<p dir="auto">cd ~</p>
<p dir="auto">to go to the users home folder</p>
<p dir="auto">everything (mm related) should be installed there</p>
<p dir="auto">generally, never use sudo unless u know WHY u need to do that</p>
]]></description><link>https://forum.magicmirror.builders/post/97862</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97862</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 29 Dec 2021 13:44:53 GMT</pubDate></item><item><title><![CDATA[Reply to arecord sudo only on Wed, 29 Dec 2021 13:38:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Thank you for your reply.</p>
<p dir="auto">pi@raspberrypi:/ $ arecord --format=S16_LE --duration=5 --rate=16000 --file-type=wav out.wav<br />
Aufnahme: WAVE ‘out.wav’ : Signed 16 bit Little Endian, Rate: 16000 Hz, mono<br />
out.wav: Keine Berechtigung</p>
<p dir="auto">This ist the arecord without sudo</p>
<p dir="auto">pi@raspberrypi:/ $ sudo arecord --format=S16_LE --duration=5 --rate=16000 --file-type=wav out.wav<br />
Aufnahme: WAVE ‘out.wav’ : Signed 16 bit Little Endian, Rate: 16000 Hz, mono</p>
<p dir="auto">and here the task with sudo.</p>
<p dir="auto">ls arecord or find arecord  – file or folder not found.</p>
<p dir="auto">I assume that arecord is part of aplay probably of the alsa family.<br />
But why do tasks of the same family ask for different rights.</p>
<p dir="auto">Manfred</p>
]]></description><link>https://forum.magicmirror.builders/post/97861</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97861</guid><dc:creator><![CDATA[kupperma]]></dc:creator><pubDate>Wed, 29 Dec 2021 13:38:38 GMT</pubDate></item><item><title><![CDATA[Reply to arecord sudo only on Wed, 29 Dec 2021 13:31:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kupperma" aria-label="Profile: kupperma">@<bdi>kupperma</bdi></a> chmod and chown are the two commands to change permissions and group assignments</p>
<p dir="auto">which arecord</p>
<p dir="auto">will tell you where it is</p>
<p dir="auto">ls ??? -laF<br />
will give you the current info<br />
??? is the output of which</p>
<p dir="auto">permissions are 3 settings  read/write/execute<br />
for each of 3 user relationships</p>
<p dir="auto">user - user is the owner<br />
group - user accessing is my the owner, but in the group<br />
other   - user accessing is not in the above</p>
<p dir="auto">3 bits<br />
4  - read<br />
2  - write<br />
1  - execute</p>
<p dir="auto">7 is all 3<br />
6 is read/write<br />
2 is write only</p>
<p dir="auto">777 is all permissions for all users ( bad)</p>
<p dir="auto">each user has their own group as well.</p>
<p dir="auto">u will need to use sudo to change the permissions or user/group assignments</p>
<p dir="auto">see the help for each command, for example</p>
<p dir="auto">chmod --help</p>
]]></description><link>https://forum.magicmirror.builders/post/97859</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/97859</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 29 Dec 2021 13:31:16 GMT</pubDate></item></channel></rss>