I can’t believe this is my fifth year in review post! I have to admit when I first wrote one at the end of 2012 it felt a bit self indulgent, but fast forward to the end of 2016 and it’s great to be able to look back at what’s happened in each year, and how things have changed. Writing one is also a great chance to take a moment to reflect on the year I’ve had. Continue Reading…
- Run parkruns semi regularly
- Disconnect more
- Consolidate personal sites
- Grow Michelle's sites and business
- Get better at golf
- Paleo diet fulltime
- Instagrate 2.0 with improved free version
- Wild Moors and Tors Challenge 2016
2015 was a busy year! Having a new son meant I didn’t have chance to set any goals for the year, just keep things ticking over. Continue Reading…
Things are a little busy at the moment, so here is the abridged version:
As Christmas was coming up and family were searching for presents to get me, I thought it was the perfect time to get a Pi and some extra kit for it. Here’s what Santa got me:
- Raspberry Pi Model B
- Micro USB Power Supply
- SanDisk 4GB SD Card
- Raspberry Pi User Guide
- Edimax Wireless Nano USB Adapter
After the initial excitement of Christmas day died down and the hectic New Year set in I couldn’t find any spare time to set it up. I was also hesitating until I had decided on a use for it. I wanted to find a useful and / or cool job for it. I toyed with the idea of recreating Oscar from the video, I didn’t need a media center and as much as I would love to use it to power a robot, it didn’t seem likely.
The Problem to Solve
I have had a fairly decent HP printer for a few years now, that works well but is just a little too old to have been fitted with wireless support. This has always presented a hassle of having to move our laptops to plug it in when we want to print and does not support AirPrint from our iPhones or iPad. It always seemed completely wasteful to ditch the printer for a newer wifi one, so we persevered until this morning when the idea came to me. Use the Raspberry Pi as a print server.
A brief google on the subject showed this was a popular use for the Pi and there seemed to be plenty of tutorials on the subject. Great, my Sunday project was on!
Setting up the Raspberry Pi
Before I could start thinking about the print server I had to get my Pi and equipment unboxed and setup. I had read a lot about installing the New Out Of Box Software (NOOBS) on my SD card, but decided on just installing the Raspbian OS on the card.
Preparing the SD Card
Here are the steps I followed using this tutorial:
- Download Raspbian wheezy
- Format SD card
- Unmount SD card
- Flash SD with Raspbian image(this can take a few minutes)
- Eject SD and insert into Pi
Turning it on
I then connected my monitor via HDMI, my USB keyboard and mouse via a dongle (to leave a USB slot free for the Wi-Fi adapter) and then the micro USB power cable which turns on the machine.
When the Pi had finished booting I was shown the Raspberry Pi Software Configuration Tool screen, where I expanded the file system and set the boot to go to the desktop.
I then plugged in the Wi-Fi adapter and configured it via the Wi-Fi config icon on the desktop but I could have followed this in the terminal.
Connecting Remotely with SSH
Once the Pi was connected to my router I could connect remotely to it with my Macbook via SSH in the terminal with this command and entering the password for Raspberry Pi when prompted:
ssh 192.168.1.x -l pi
I generally connect to machines, without entering passwords, with SSH keys and so I used this command from this tutorial:
cat ~/.ssh/id_rsa.pub | ssh email@example.com "mkdir .ssh;cat >> .ssh/authorized_keys"
I also like to give aliases to my SSH connections, so I added this to my
Host pi HostName 192.168.1.x User pi IdentityFile ~/.ssh/id_rsa
The Print Server
Now down to business. Here are the steps I followed using this tutorial:
- Update packages
- Install required packages
- Configure CUPS
- Connect printer to the Pi and configure with CUPS
- Print test page via CUPS admin
- Print tests from Macbook and various iOS devices.
- Getting Started with Raspberry Pi: Installing Raspbian
- Raspberry Pi – Installing the Edimax EW-7811Un USB WiFi Adapter (WiFiPi)
- Logging into a Rasberry Pi using Public/Private Keys
- Configuring the Raspberry Pi as an AirPrint Server
- Wireless Printing/AirPrint Server via the Raspberry Pi
This all went surprisingly without a hitch and it is great to have wireless printing in the house with the added bonus of now being able to print from our iOS devices.
Have you got a Raspberry Pi? What are you using it for?
- Build an app with Laravel
- 52 week blogging project
- Play sport again
- Complete Skyrim
- Build something useful with my Raspberry Pi
- Improve on Instagrate's success and build up more documentation
- Improve on static bike cycling
- Build extensions for and contribute to other WordPress plugins
- Read PHP The Right Way http://www.phptherightway.com/
I have just ticked off the first goal of 2013 – release a plugin on the premium marketplace CodeCanyon. Plugin Demo allows you to turn a WordPress site into a demonstration area for a plugin you have built. Check it out!