<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Amy Lee Bennett on Medium]]></title>
        <description><![CDATA[Stories by Amy Lee Bennett on Medium]]></description>
        <link>https://medium.com/@amyleeanne?source=rss-7e82537be465------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Rwr_-t39lD2tojJU3RlAlA.png</url>
            <title>Stories by Amy Lee Bennett on Medium</title>
            <link>https://medium.com/@amyleeanne?source=rss-7e82537be465------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 23:00:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amyleeanne/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Jessie Lite — Read Only Raspberry Pi 3]]></title>
            <link>https://medium.com/@amyleeanne/jessie-lite-read-only-raspberry-pi-3-194a511bb13c?source=rss-7e82537be465------2</link>
            <guid isPermaLink="false">https://medium.com/p/194a511bb13c</guid>
            <dc:creator><![CDATA[Amy Lee Bennett]]></dc:creator>
            <pubDate>Mon, 28 May 2018 21:16:44 GMT</pubDate>
            <atom:updated>2018-05-28T21:16:44.216Z</atom:updated>
            <content:encoded><![CDATA[<p>When working on raspberry pi projects, you may want to set it to read-only mode. This allows you to pull the plug without fear of corrupting the SD card.</p><p>Download Jessie Lite: <a href="http://downloads.raspberrypi.org/raspbian_lite/images/"><strong>http://downloads.raspberrypi.org/raspbian_lite/images/</strong></a></p><p>1. Setup your pi, and ssh into it remotely.</p><pre>login: pi<br>pw: raspberry</pre><pre># <em>install</em> <em>raspi-config if needed</em><br>sudo apt-get install raspi-config</pre><pre>#<em> enable ssh (only needed for pi zero)</em><br># <em>set locale &amp;&amp; keyboard ( ex: en_US.UTF-8 )<br></em>sudo raspi-config</pre><pre>sudo nano /etc/ssh/sshd_config<br># <em>Find PermitRootLogin in file, and change to yes</em><br>PermitRootLogin yes</pre><pre>systemctl start ssh<br>systemctl enable ssh</pre><pre># <em>change password for root</em><br>sudo passwd root</pre><pre># <em>find ip address</em><br>ifconfig</pre><pre># <em>ssh on local machine</em><br>ssh -p 22 root@[ip address]</pre><p>2. Change to ReadOnly on Boot</p><pre># <em>First, go ahead and update and upgrade everything.</em><br>apt-get update<br>apt-get upgrade<br>apt-get dist-upgrade<br>reboot</pre><pre># <em>Remove a few packages you don’t need</em><br>apt-get remove -y — purge wolfram-engine triggerhappy cron logrotate dbus dphys-swapfile xserver-common lightdm fake-hwclock &amp;&amp; apt-get autoremove -y — purge</pre><pre># <em>just for convenience</em><br>cp /boot/cmdline.txt /boot/cmdline.txt.orig<br>nano /boot/cmdline.txt</pre><pre><em># add fastboot noswap ro to end of file. Should look similar to this:<br></em>dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fastboot noswap ro</pre><p>3. Move Spool</p><pre>rm -rf /var/spool<br>ln -s /tmp /var/spool</pre><p>4. Edit FSTAB</p><pre>nano /etc/fstab<br># <em>change fstab file to have this content:</em></pre><pre>proc /proc proc defaults 0 0<br>/dev/mmcblk0p1 /boot vfat defaults,ro 0 2<br>/dev/mmcblk0p2 / ext4 errors=remount-ro,noatime,ro,nodiratime,commit=120 0 1</pre><pre>tmpfs /var/log tmpfs nodev,nosuid 0 0<br>tmpfs /var/tmp tmpfs nodev,nosuid 0 0<br>tmpfs /tmp tmpfs nodev,nosuid 0 0</pre><pre># <em>comment out or remove anything else</em></pre><p>5. Move DHCPCD</p><pre>apt-get install -y resolvconf hostapd<br>touch /tmp/dhcpcd.resolv.conf<br>rm /etc/resolv.conf<br>ln -sf /etc/resolvconf/run/resolv.conf /etc/resolv.conf</pre><p>That’s it! It should be set to Read Only in boot. If you do need to change it back to RW, then simply type this into the terminal :</p><pre># <em>in last argument, use the correct path you&#39;d like to set to rw</em><br>mount -o remount,rw /</pre><p>I normally code with Node. Here’s a short function I use when needing to change between read and write.</p><pre>GlobalHelpers.changeToReadOrWrite = (readOrWrite, path) =&gt; {</pre><pre>    const toMount = `mount -o remount,${readOrWrite} ${path}`;<br>    child_process.execSync(toMount);</pre><pre>}</pre><p>Happy coding!</p><p>Credits: <a href="https://petr.io/en/blog/2015/11/09/read-only-raspberry-pi-with-jessie/">https://petr.io/en/blog/2015/11/09/read-only-raspberry-pi-with-jessie/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=194a511bb13c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Own DIY Smart Mirror]]></title>
            <link>https://medium.com/@amyleeanne/from-0-to-a-smart-mirror-in-6-months-ee3b91f723b1?source=rss-7e82537be465------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee3b91f723b1</guid>
            <category><![CDATA[smart-mirror]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Amy Lee Bennett]]></dc:creator>
            <pubDate>Sun, 03 Apr 2016 23:01:19 GMT</pubDate>
            <atom:updated>2019-07-02T09:04:39.298Z</atom:updated>
            <content:encoded><![CDATA[<p>I first started seeing the potential of technology during my first job in Boston. I worked in the tech scene and was surrounded by people who were full of ideas. And not just ideas, but skills to act on them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nMO0Gq-P9wEoaEd-fMRqYw.jpeg" /><figcaption>Raspberry Pi 2 Model B is on the back of my smart mirror. You can see where gpio pins are soldered to the buttons.</figcaption></figure><p>I want to share one of my more recent projects, a Smart Mirror. I had been wanting to learn about hardware, and then I came across the medium post “<a href="https://medium.com/@maxbraun/my-bathroom-mirror-is-smarter-than-yours-94b21c6671ba#.k9otk1v7y">My Bathroom Mirror is Smarter than Yours</a>.” I decided it could be a fun project to play around with the Raspberry Pi. I reached out to a friend with experience with the Pi and asked if he’d mentor me throughout this project. He agreed (<a href="http://parsecsolutions.com/">Dan Westman</a> is awesome!). Thus it began: the making of a smart mirror.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*-EdceeulFuJN08fKS-k_OQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jkyS-uTKhb6FvwZC8HFug.jpeg" /></figure><p>Tools used: Raspberry Pi 2 Model B, a monitor, mirrored plexiglass, wood and paint to build frame, buttons and miscellaneous equipment.</p><p>Technologies: <a href="https://www.raspbian.org/">Raspbian Wheezy</a>, Node/Express, Angular, <a href="https://github.com/EnotionZ/GpiO">GpiO</a>, <a href="http://www.imagemagick.org/script/index.php">ImageMagick</a>, <a href="https://github.com/kwhitley/apicache">apicache</a>, BASH, <a href="http://elinux.org/Omxplayer">OmxPlayer</a>, <a href="http://momentjs.com/">moment.js</a>, <a href="http://staticmapmaker.com/bing/">Bing Static Map</a> with traffic layer, <a href="http://midori-browser.org/">Midori</a> Browser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*pd3x8L2UFNLC1soLbxufyA.jpeg" /><figcaption>The first button starts up a video with OMXPlayer.</figcaption></figure><p>APIs: <a href="http://developer.nytimes.com/docs">The New York Times</a>, <a href="https://developer.forecast.io/">Forecast.io</a>, <a href="https://developers.google.com/google-apps/calendar/">Google Calendar</a>, <a href="https://theysaidso.com/api/">TheySaidSo</a></p><p>There are 3 buttons with the GPIO pins. The first button starts up a video with OMXPlayer. The second button is an explanation of the project. The third tells the current IP address, mainly for developer use for when I ssh into the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NEvnuhVj-CwUMLEAR1Bx9A.jpeg" /><figcaption>The second button is an explanation of the project and the third tells the current IP address.</figcaption></figure><p>I used set intervals to update each api individually. I’m updating the <a href="http://forecast.io/">forecast.io</a> api every two minutes, the bing map with traffic layer every five minutes, quote api every six hours, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XbhlZ00KVAHQjqJVhPkpaw.jpeg" /><figcaption>My favorite part is the traffic map</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MjMdeIfUKJBU1bqwjy4mkQ.jpeg" /><figcaption>A new quote appears every day.</figcaption></figure><p>The smart mirror can connect to my home wifi or my iphone hotspot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y-71w2eljlJ3MOLbZY6fZw.jpeg" /></figure><p>This project took around two weeks to complete. I am amazed at the low cost and amount of ways you can use the raspberry pi. Thanks again to Dan Westman, who taught me all about gpio pins, BASH forever loops and power tools :)</p><p>Last week, I graduated from the Nashville Software School. I think this smart mirror was a great starting point in understanding the potential for new technologies with the Pi. Now that I’ve learned how to do all of this through NSS, I hope to keep furthering my skills and finally start creating things that really matter.</p><p>Check out <a href="https://github.com/albennett">my other projects</a> on github or checkout the code <a href="https://github.com/albennett/magic-mirror-pi">for this project.</a></p><p>You can find me at <a href="http://www.amylee.co/">amylee.co</a> or <a href="https://www.instagram.com/am.ylee/">am.ylee</a> on instagram.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee3b91f723b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>