<?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[Unix Fortune]]></title><description><![CDATA[<p dir="auto">We already have the awesome MMM-Fortune module. Are you aware there’s a “fortune” command in unix/linux? You can install it in your pi like so:</p>
<pre><code>sudo apt install fortune
</code></pre>
<p dir="auto">It was intended to present a little epigram every time you log in to a terminal, but it can also be invoked at the command line.<br />
<img src="/assets/uploads/files/1600894047481-screen-shot-2020-09-23-at-1.47.19-pm.png" alt="Screen Shot 2020-09-23 at 1.47.19 PM.png" class=" img-fluid img-markdown" /><br />
I’d be inclined to replace the “Compliments” module with a module that pulls a short unix fortune using this command, updating on a configurable interval.</p>
<p dir="auto">Any takers? :-)</p>
]]></description><link>https://forum.magicmirror.builders/topic/13716/unix-fortune</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 11:33:31 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/13716.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Sep 2020 20:59:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unix Fortune on Wed, 21 Oct 2020 18:44:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykle1" aria-label="Profile: Mykle1">@<bdi>Mykle1</bdi></a></p>
<p dir="auto">I found a small bug that causes some issues, at least when running on armbian and starting up via cron .   It might be that ‘stock’ armbian isn’t properly setting up the $PATH as X starts.  I tested against rasbian and this issue does not appear, and the ‘fix’ to add the full path to fortune (which really should always be done).</p>
<p dir="auto">node_helper.js  (line 20)</p>
<ul>
<li>exec(‘fortune -s’, (error, stdout, stderr) =&gt; {</li>
</ul>
<ul>
<li>exec(‘/usr/games/fortune -s’, (error, stdout, stderr) =&gt; {</li>
</ul>
]]></description><link>https://forum.magicmirror.builders/post/83788</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/83788</guid><dc:creator><![CDATA[dakarx]]></dc:creator><pubDate>Wed, 21 Oct 2020 18:44:16 GMT</pubDate></item><item><title><![CDATA[Reply to Unix Fortune on Mon, 28 Sep 2020 01:04:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/spblat" aria-label="Profile: spblat">@<bdi>spblat</bdi></a> said in <a href="/post/82456">Unix Fortune</a>:</p>
<blockquote>
<p dir="auto">Epic! I’ll start playing with this. During my tests I will experiment with the “-s” and “-n” command line flags for adjusting fortune length and propose/submit updates. Thank you for putting this together!</p>
</blockquote>
<p dir="auto">You can just fork the module and do anything you want with it :)</p>
]]></description><link>https://forum.magicmirror.builders/post/82464</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/82464</guid><dc:creator><![CDATA[cowboysdude]]></dc:creator><pubDate>Mon, 28 Sep 2020 01:04:19 GMT</pubDate></item><item><title><![CDATA[Reply to Unix Fortune on Mon, 28 Sep 2020 00:06:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/spblat" aria-label="Profile: spblat">@<bdi>spblat</bdi></a> said in <a href="/post/82456">Unix Fortune</a>:</p>
<blockquote>
<p dir="auto">Thank you for putting this together!</p>
</blockquote>
<p dir="auto">Not a big deal. I was looking for something to play with. However, you are welcome. Enjoy the module.</p>
<p dir="auto">Peace!</p>
]]></description><link>https://forum.magicmirror.builders/post/82463</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/82463</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Mon, 28 Sep 2020 00:06:37 GMT</pubDate></item><item><title><![CDATA[Reply to Unix Fortune on Sun, 27 Sep 2020 16:55:24 GMT]]></title><description><![CDATA[<p dir="auto">Epic! I’ll start playing with this. During my tests I will experiment with the “-s” and “-n” command line flags for adjusting fortune length and propose/submit updates. Thank you for putting this together!</p>
]]></description><link>https://forum.magicmirror.builders/post/82456</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/82456</guid><dc:creator><![CDATA[spblat]]></dc:creator><pubDate>Sun, 27 Sep 2020 16:55:24 GMT</pubDate></item><item><title><![CDATA[Reply to Unix Fortune on Sat, 26 Sep 2020 02:12:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/spblat" aria-label="Profile: spblat">@<bdi>spblat</bdi></a> said in <a href="/post/82303">Unix Fortune</a>:</p>
<blockquote>
<p dir="auto">We already have the awesome MMM-Fortune module.</p>
</blockquote>
<p dir="auto">Thank you for your kind words</p>
<blockquote>
<p dir="auto">Are you aware there’s a “fortune” command in unix/linux?</p>
</blockquote>
<p dir="auto">I was not.</p>
<blockquote>
<p dir="auto">a module that pulls a short unix fortune using this command, updating on a configurable interval</p>
</blockquote>
<p dir="auto">I  put something together for you based on your request (and your kind words). User <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> got the data over from the terminal to the module for me. (He’s awesome).</p>
<p dir="auto">I took the liberty of naming it something unique.  UnixFortune wasn’t doing it for me. FortuneUnix was no better but the combination was cool. At least, I think so.</p>
<p dir="auto"><a href="https://github.com/mykle1/MMM-Fortunix" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/mykle1/MMM-Fortunix</a></p>
<p dir="auto">Pass along some help to someone that knows less than you</p>
]]></description><link>https://forum.magicmirror.builders/post/82375</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/82375</guid><dc:creator><![CDATA[Mykle1]]></dc:creator><pubDate>Sat, 26 Sep 2020 02:12:36 GMT</pubDate></item></channel></rss>