<?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 Amit Agarwal Linux Blog</title>
    <link>/categories/raspberry-pi/</link>
    <description>Recent content in Raspberry Pi on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Tue, 11 Mar 2014 02:18:07 +0000</lastBuildDate>
    
	<atom:link href="/categories/raspberry-pi/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>fetchmail to get the mails from your imap account</title>
      <link>/2014/03/11/fetchmail-mails-imap-account/</link>
      <pubDate>Tue, 11 Mar 2014 02:18:07 +0000</pubDate>
      
      <guid>/2014/03/11/fetchmail-mails-imap-account/</guid>
      <description>&lt;p&gt;Now, that you have set the RPi to send emails, lets do the next best thing. Setup &lt;a class=&#34;zem_slink&#34; title=&#34;Fetchmail&#34; href=&#34;http://www.fetchmail.info/&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;fetchmail&lt;/a&gt; so that we can setup a &lt;a class=&#34;zem_slink&#34; title=&#34;Cron&#34; href=&#34;http://en.wikipedia.org/wiki/Cron&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;cron job&lt;/a&gt; to run and get us the emails on &lt;a class=&#34;zem_slink&#34; title=&#34;Raspberry Pi&#34; href=&#34;http://www.raspberrypi.org&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;Raspberry Pi&lt;/a&gt;. What can we do with these emails, lots 🙂 (I hope you already have a Raspberry Pi, if not then head over to  &lt;a href=&#34;http://in.element14.com/&#34; target=&#34;_blank&#34;&gt;element14&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;For now, first install fetchmail:&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;sudo apt-get install fetchmail&lt;/pre&gt;
&lt;p&gt;and if you are one of the guys who wants easy configuration then :&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Raspberry Pi automate certain tasks  – script example</title>
      <link>/2014/03/10/raspberry-pi-automate-tasks-script/</link>
      <pubDate>Mon, 10 Mar 2014 01:41:45 +0000</pubDate>
      
      <guid>/2014/03/10/raspberry-pi-automate-tasks-script/</guid>
      <description>&lt;p&gt;Now, if you have followed these :&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://blog.amit-agarwal.co.in/2013/06/07/fetchmail-mails-imap-account/&#34; title=&#34;fetchmail&#34;&gt;fetchmail&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://blog.amit-agarwal.co.in/2013/06/04/ssmtp-configuration-installation-raspberry-pi&#34; title=&#34;ssmtp&#34;&gt;ssmtp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you already have a working system for sending and receiving mail. Now, you can set the mda in the fetmailrc to a script which can do few things for you. The script below will get a page and mail it to you, if you have the subject as “get” and send “&lt;a class=&#34;zem_slink&#34; title=&#34;Wake-on-LAN&#34; href=&#34;http://en.wikipedia.org/wiki/Wake-on-LAN&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;wake on LAN&lt;/a&gt;” to desired PC if you have subject as “wol”. Cool 🙂&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>ssmtp configuration and installation – raspberry pi.</title>
      <link>/2013/06/04/ssmtp-configuration-installation-raspberry-pi/</link>
      <pubDate>Tue, 04 Jun 2013 01:05:58 +0000</pubDate>
      
      <guid>/2013/06/04/ssmtp-configuration-installation-raspberry-pi/</guid>
      <description>&lt;figure style=&#34;width: 300px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://commons.wikipedia.org/wiki/File:Raspberry_Pi_board_at_TransferSummit_2011_cropped.jpg&#34; target=&#34;_blank&#34;&gt;&lt;img class=&#34;zemanta-img-inserted zemanta-img-configured&#34; title=&#34;English: Extract from Raspberry Pi board at Tr...&#34; alt=&#34;English: Extract from Raspberry Pi board at Tr...&#34; src=&#34;http://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Raspberry_Pi_board_at_TransferSummit_2011_cropped.jpg/300px-Raspberry_Pi_board_at_TransferSummit_2011_cropped.jpg&#34; width=&#34;300&#34; height=&#34;233&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;English: Extract from Raspberry Pi board at TransferSummit 2011 (Photo credit: Wikipedia)&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;To get your email working on your raspberry pi, First thing that you should probably do is to set up outgoing emails from your &lt;a class=&#34;zem_slink&#34; title=&#34;Raspberry Pi&#34; href=&#34;http://www.raspberrypi.org&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;RPi&lt;/a&gt;. The easiest way to do so is with ssmtp.&lt;/p&gt;
&lt;p&gt;Install ssmtp:&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;sudo apt-get install ssmtp&lt;/pre&gt;
&lt;p&gt;Next configure the ssmtp client to send emails using your &lt;a class=&#34;zem_slink&#34; title=&#34;Internet service provider&#34; href=&#34;http://en.wikipedia.org/wiki/Internet_service_provider&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;ISP&lt;/a&gt;, open up the file &lt;strong&gt;/etc/ssmtp/ssmtp.conf&lt;/strong&gt; file and make the changes as suggested below:&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
