Raspberry Pi, Part 1

January 6, 2015

I got a Raspberry Pi B+ for Christmas, and I'm going to slowly turn it into a home automation server. I'll probably make it overheat or explode or die horribly, but it'll be an adventure on the way.

I followed Step 1 here from the Bittorrent Cloud Sync blog to get Raspbian installed. My Raspbian came as part of the NOOBS package on the Micro SD card in my 'starter pack' for the Rasp-pi.

With that, I can now ssh as [email protected], or actually with [email protected] works just as well on the local network, assuming you only have one pi.

Remote Access

But I'd also like desktop access on occasion - because I'm not 100% au-fait with the command line. But so far (by the end of this post) I've not used the desktop remote access. But I installed it with 'xdrp' as detailed in this post here, then use CoRD on OSX to access the Pi.


With Raspbian installed, I haven't yet got a static ip set up. Logic says that should be the next step, but I fancied something a bit more fun, and set up my Pi to Pushbullet me the ip when it boots up. I used this forum post here, with a few minor changes.

I couldn't seem to find my "device id", so I just left that empty, so it pushes to all my devices. That's fine by me. Here's my file:

ipVar=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
curl https://api.pushbullet.com/v2/pushes 
-u <paste_your_API_key_here>: 
-d device_iden="" 
-d type="note" 
-d title="Pi IP address" 
-d body=$ipVar 

At the time of the script running my DHCP server hadn't assigned an ip, so I delayed the script running in my crontab:

@reboot sleep 20;/home/pi/piip.sh

That's that! So it now Pushes me my IP when it boots up. Very helpful.