<?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[MagicMirror 2 only works with DISPLAY=:0 npm start command]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have installed raspbian jessie on my rpi2. I followed the <a href="http://howchoo.com" target="_blank" rel="noopener noreferrer nofollow ugc">howchoo.com</a> website tutorial to do everything since I am a noob EXCEPT the part where magic mirror is to be installed. I followed the automatic method of Magicmirror’s github page.<br />
Then I put it in kiosk mode and did the last bits (more on that below) as per the howchoo site. End result? rpi boots and starts a web page with only the index visible. If I run the command <code>DISPLAY=:0 npm start</code> then it works.</p>
<p dir="auto">About the last bits after installing the MagicMirror in the automatic way: This is what I did:</p>
<hr />
<p dir="auto">Turn Chromium into a kiosk</p>
<p dir="auto">Now we’ll configure Chromium to run in kiosk mode.</p>
<p dir="auto">Open the autostart config file in the Nano editor.</p>
<p dir="auto">Config file for Jessie:</p>
<p dir="auto"><code>sudo nano ~/.config/lxsession/LXDE-pi/autostart</code></p>
<p dir="auto">Disable the screensaver<br />
For both Wheezy and Jessie, comment out the following line using a hash symbol (#):</p>
<p dir="auto"><code># @xscreensaver -no-splash</code></p>
<p dir="auto">Launch Chromium on startup in kiosk mode<br />
For Wheezy, add the following lines to the bottom of the file:</p>
<pre><code>@xset s off
@xset -dpms
@xset s noblank
@unclutter -idle 1
/usr/bin/chromium --kiosk --ignore-certificate-errors --disable-restore-session-state "http://localhost"
</code></pre>
<p dir="auto">For Jessie, add the following lines to the bottom of the file:</p>
<pre><code>@xset s off
@xset -dpms
@xset s noblank
@unclutter -idle 1
@chromium-browser --incognito --kiosk http://localhost/
</code></pre>
<p dir="auto">To exit, press CTRL-X, type Y and press enter.</p>
<p dir="auto">Next, we need to modify the Pi’s BIOS settings for a little extra awesomeness.</p>
<p dir="auto">Open BIOS config:</p>
<p dir="auto"><code>sudo nano /boot/config.txt</code></p>
<p dir="auto">Use portrait monitor orientation<br />
Add the following line to rate the display 90 degrees:</p>
<p dir="auto"><code>display_rotate=1</code></p>
<p dir="auto">To rotate in the other direction (270 degrees), use the following line instead:</p>
<p dir="auto"><code>display_rotate=3</code></p>
<p dir="auto">Enable HDMI hotplugging<br />
Uncomment the following line:</p>
<p dir="auto"><code>hdmi_force_hotplug=1</code></p>
<p dir="auto">Save and exit. Finally, reboot your Pi once more:</p>
<p dir="auto"><code>sudo reboot</code></p>
<hr />
<p dir="auto">Please help.</p>
<p dir="auto">thanks,<br />
Mir</p>
<hr />
<p dir="auto"><strong>Note from admin:</strong> Please use Markdown on code and shell snippets!</p>
]]></description><link>https://forum.magicmirror.builders/topic/247/magicmirror-2-only-works-with-display-0-npm-start-command</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 02:53:28 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/247.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Jun 2016 11:11:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MagicMirror 2 only works with DISPLAY=:0 npm start command on Mon, 20 Jun 2016 05:28:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kirash4" aria-label="Profile: KirAsh4">@<bdi>KirAsh4</bdi></a><br />
Thanks for the reply, I used the same command to install mm2 as per your detailed tutorial. Though some commands after installed mm2 were different so shall retry the whole thing.</p>
<p dir="auto">Thanks,<br />
Mihir</p>
]]></description><link>https://forum.magicmirror.builders/post/1787</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/1787</guid><dc:creator><![CDATA[mihirjain]]></dc:creator><pubDate>Mon, 20 Jun 2016 05:28:26 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror 2 only works with DISPLAY=:0 npm start command on Mon, 20 Jun 2016 05:22:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wilco89" aria-label="Profile: Wilco89">@<bdi>Wilco89</bdi></a> Thanks for the reply, though I didnt use the howchoo method for installation. I followed the github MagicMirror2 site method with the command</p>
<p dir="auto"><em>curl -sL <a href="https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh" target="_blank" rel="noopener noreferrer nofollow ugc">https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh</a> | bash</em></p>
]]></description><link>https://forum.magicmirror.builders/post/1786</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/1786</guid><dc:creator><![CDATA[mihirjain]]></dc:creator><pubDate>Mon, 20 Jun 2016 05:22:34 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror 2 only works with DISPLAY=:0 npm start command on Sat, 18 Jun 2016 14:41:39 GMT]]></title><description><![CDATA[<p dir="auto">Or follow the extensive step by step tutorial here: <a href="https://forum.magicmirror.builders/topic/236/complete-setup-tutorial">https://forum.magicmirror.builders/topic/236/complete-setup-tutorial</a></p>
]]></description><link>https://forum.magicmirror.builders/post/1759</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/1759</guid><dc:creator><![CDATA[KirAsh4]]></dc:creator><pubDate>Sat, 18 Jun 2016 14:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to MagicMirror 2 only works with DISPLAY=:0 npm start command on Sat, 18 Jun 2016 11:50:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mihirjain" aria-label="Profile: mihirjain">@<bdi>mihirjain</bdi></a> that tut is outdated, beter install Version 2.<br />
It is beter to start with Clean install of Jessy.</p>
<p dir="auto">Walk through the readme and wiki!</p>
<p dir="auto"><a href="https://github.com/MichMich/MagicMirror" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/MichMich/MagicMirror</a></p>
]]></description><link>https://forum.magicmirror.builders/post/1756</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/1756</guid><dc:creator><![CDATA[Wilco89]]></dc:creator><pubDate>Sat, 18 Jun 2016 11:50:31 GMT</pubDate></item></channel></rss>