<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Raspberry Pi on Aamnah - Frontend Web Developer</title>
    <link>https://aamnah.com/notes/raspberrypi/</link>
    <description>Recent content in Raspberry Pi on Aamnah - Frontend Web Developer</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 11 Oct 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://aamnah.com/notes/raspberrypi/rss.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Installing Raspbian on SD Card (macOS)</title>
      <link>https://aamnah.com/notes/raspberrypi/install-raspbian-macos/</link>
      <pubDate>Tue, 19 Dec 2017 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/raspberrypi/install-raspbian-macos/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;IMAGE&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;SDCARD&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;disk3&amp;#34;&lt;/span&gt; &lt;span class=&#34;c1&#34;&gt;# identify SD partition card with `diskutil list`&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# unmount card&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;5&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;diskutil unmountDisk &lt;span class=&#34;si&#34;&gt;${&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;SDCARD&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;6&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;7&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# write to card&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;8&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo dd &lt;span class=&#34;nv&#34;&gt;bs&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;1m &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;${&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;IMAGE&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;}&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;of&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/dev/r&lt;span class=&#34;si&#34;&gt;${&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;SDCARD&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Short:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;mount card, &lt;code&gt;diskutil list&lt;/code&gt; and identify your card partition, something along the lines of &lt;code&gt;disk2s1&lt;/code&gt;. make note.&lt;/li&gt;&#xA;&lt;li&gt;unmount card, &lt;code&gt;sudo diskutil unmount disk2s1&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;change naming convention, &lt;code&gt;disk2s1&lt;/code&gt; to &lt;code&gt;rdisk2&lt;/code&gt;. Getting the name right is important, so is adding the &lt;strong&gt;R&lt;/strong&gt; at the start.&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo dd bs=1m if=~/FILE/LOCATION of=/dev/rdisk2&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;wait till done. It’ll take a while. (takes around 3-6 mins usually)&lt;/li&gt;&#xA;&lt;li&gt;eject. &lt;code&gt;sudo diskutil eject /dev/rdisk2&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Note:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Troubleshooting Audio</title>
      <link>https://aamnah.com/notes/raspberrypi/troubleshooting-audio/</link>
      <pubDate>Sat, 16 Dec 2017 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/raspberrypi/troubleshooting-audio/</guid>
      <description>&lt;p&gt;Situation: Audio is not working over HDMI&lt;/p&gt;&#xA;&lt;h3 id=&#34;possibility-1-the-tvmonitor-is-not-being-detected-in-cea-mode&#34;&gt;Possibility 1: The TV/Monitor is not being detected in CEA mode&lt;/h3&gt;&#xA;&lt;p&gt;DMT is only well defined in DVI and DVI can not do audio. Audio only works in CEA modes..&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# run to detect if tv/monitor mode &lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;tvservice -s&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# tvservice -m CEA&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;5&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# tvservice -m DMT&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Uncomment the following in &lt;code&gt;/boot/config.txt&lt;/code&gt; to force an HDMI mode. It can make audio work in DMT (computer monitor) modes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Install/Upgrade Node.js on Raspberry Pi (Raspbian Jessie)</title>
      <link>https://aamnah.com/notes/raspberrypi/howto-install-latest-node-js-raspberry-pi-raspbian-jessie/</link>
      <pubDate>Wed, 24 Aug 2016 17:07:46 +0500</pubDate>
      <guid>https://aamnah.com/notes/raspberrypi/howto-install-latest-node-js-raspberry-pi-raspbian-jessie/</guid>
      <description>&lt;h2 id=&#34;tldr&#34;&gt;tl;dr&lt;/h2&gt;&#xA;&lt;p&gt;Run this one command in Terminal:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;curl raw.githubusercontent.com/aamnah/bash-scripts/master/install_nodejs.sh &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; bash&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will automatically run a script i wrote that takes care of removing existing Node.js stuff, downloading and installing the latest version, and cleaning up afterwards. It also confirms the Node.js version once the installation is done.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;The Node.js version that comes pre-installed with Raspbian Jessie is old. If you check the version using &lt;code&gt;node -v&lt;/code&gt;, it&amp;rsquo;ll give you v0.10.29. The latest ARM-version of Node.js as of this writing is v4.2.1. Let&amp;rsquo;s remove the old and install the latest version available on our Raspberry Pi.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Raspberry Pi on a battery</title>
      <link>https://aamnah.com/notes/raspberrypi/raspberry-pi-on-battery/</link>
      <pubDate>Wed, 26 Aug 2015 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/raspberrypi/raspberry-pi-on-battery/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.youtube.com/watch?v=5Lw2bFTro58&#34;&gt;https://www.youtube.com/watch?v=5Lw2bFTro58&lt;/a&gt;&#xA;8x GP2700 rechargeable AA batteries. It&amp;rsquo;s powering a Raspberry Pi model A+. In this test it lasted approximately &lt;strong&gt;44 hrs 45 minutes&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://www.youtube.com/watch?v=6Wj7bu3MkI8&#34;&gt;https://www.youtube.com/watch?v=6Wj7bu3MkI8&lt;/a&gt;&#xA;&lt;strong&gt;14hr30min&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setting up cam on Raspberry Pi</title>
      <link>https://aamnah.com/notes/raspberrypi/setting-up-camera-on-raspberrypi/</link>
      <pubDate>Tue, 25 Aug 2015 00:00:00 +0500</pubDate>
      <guid>https://aamnah.com/notes/raspberrypi/setting-up-camera-on-raspberrypi/</guid>
      <description>&lt;p&gt;You have two options:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;- [motion](http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome)&#xA;- [kerberos](https://kerberos.io/)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Motion install is pretty much all command line based.&lt;/p&gt;&#xA;&lt;p&gt;Kerberos is more user friendly, easier to install and has a modern interface&lt;/p&gt;&#xA;&lt;h3 id=&#34;install-motion&#34;&gt;Install motion&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo apt-get install motion -y&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h3 id=&#34;config&#34;&gt;Config&lt;/h3&gt;&#xA;&lt;pre&gt;&lt;code&gt;sudo nano /etc/motion/motion.conf&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The following settings should do. Frame settings (width, height, framerate) and ports (webcam_port, control_port) are optional. The most important are the two on/off settings for &lt;code&gt;daemon&lt;/code&gt; and &lt;code&gt;webcam_localhost&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>System Monitor for Raspberry Pi</title>
      <link>https://aamnah.com/notes/raspberrypi/howto-system-monitor-for-raspberry-pi/</link>
      <pubDate>Wed, 21 May 2014 16:30:36 +0500</pubDate>
      <guid>https://aamnah.com/notes/raspberrypi/howto-system-monitor-for-raspberry-pi/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://rpi-experiences.blogspot.fr/p/rpi-monitor.html&#34;&gt;RPi-Monitor&lt;/a&gt; is a nifty utility that monitors and displays system information about your Raspberry Pi in a nice-looking graphical interface in the browser.&lt;br&gt;&#xA;It can show you how much CPU Load you have, what is the temperature of your Raspberry Pi (good to know in cases where you have overclocked the raspberry pi), Used, Free and Total Memroy (RAM), Used, Free and Total Space you have on both partitions of your SD Card, Used, Free and Total SWAP  space (Virtual RAM), how long the Raspberry Pi has been running (Uptime), and general information about your Versions (Kernel, Firmware, Processor etc.) as well as any packages that might need updating.&lt;br&gt;&#xA;You can see these as stats as well as Graphs.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Custom Raspberry Pi MOTD (Message Of The Day)</title>
      <link>https://aamnah.com/notes/raspberrypi/howto-raspberry-pi-motd-message-of-the-day/</link>
      <pubDate>Wed, 21 May 2014 16:25:33 +0500</pubDate>
      <guid>https://aamnah.com/notes/raspberrypi/howto-raspberry-pi-motd-message-of-the-day/</guid>
      <description>&lt;p&gt;MOTD = &lt;strong&gt;M&lt;/strong&gt;essage &lt;strong&gt;O&lt;/strong&gt;f &lt;strong&gt;T&lt;/strong&gt;he &lt;strong&gt;D&lt;/strong&gt;ay, is the message that shows when you login to the raspberry pi.&lt;/p&gt;&#xA;&lt;p&gt;See the &lt;a href=&#34;https://github.com/aamnah/bash-scripts/tree/master/misc/motd&#34;&gt;Bash scripts repo&lt;/a&gt; for up to date scripts&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Disable existing scripts&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo chmod -x /etc/update-motd.d/10-uname&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;4&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Remove GNU free software text&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;5&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;echo&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; sudo tee /etc/motd &amp;gt; /dev/null&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;1&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Create new MOTD script and make it executable&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;2&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo touch /etc/update-motd.d/20-sysinfo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;ln&#34;&gt;3&lt;/span&gt;&lt;span class=&#34;cl&#34;&gt;sudo chmod +x /etc/update-motd.d/20-sysinfo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can use any of the scripts below. You can either save them in &lt;code&gt;/etc/profile.d/&lt;/code&gt; or in &lt;code&gt;/etc/update-motd.d/&lt;/code&gt;. If placing in &lt;code&gt;/etc/profile.d/&lt;/code&gt;, the file should have a &lt;code&gt;.sh&lt;/code&gt; extension. The contents of the script can also be placed in &lt;code&gt;~/.bashrc&lt;/code&gt;. Recommended place is &lt;code&gt;/etc/update-motd.d/&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
