Tag: raspberry pi

I have always wished I could print things from anywhere. Last week my wish came true. I received an email from buyapi.ca that Raspberry Pi Zero W’s were back in stock. This little $14 computer was going to be the heart of my remote printing solution.

Here are the steps I followed to set up a Google Cloud Printer using a Raspberry Pi Zero W.

My Setup:

Raspberry Pi Zero W

32GB Class 10 SD card

Raspbian Jessie with PIXEL (full install)

SSH and VNC turned on in Pi Settings

raspberry icon top left > preferences > raspberry pi configuration

Assigned IP address to Pi in router

Connected to home network via WiFi

Change default pi password in Pi settings (it will be online so it is a good idea to change this)

raspberry icon top left > preferences > raspberry pi configuration

Steps:

Update the Pi

sudo apt-get update
sudo apt-get upgrade

Install printer software

sudo apt-get install cups cups-client "foomatic-db"

Add user ‘pi’ to printer users

sudo usermod -a -G lpadmin pi

Configure to print remotely

sudo nano /etc/cups/cupsd.conf

Change config to the following

# Only listen for connections from the local machine
# Listen localhost:631
Port 631

I have always had a fondness for the Raspberry Pi microcomputer for maker type projects. For example, two years ago I made an Apple Time Machine to wirelessly backup two Macbooks in our home using the original Raspberry Pi and a 1TB hard drive. I wrote a “how-to” blog post about it on a website that has been retired. Since then, there have been 2 major revisions to the Raspberry Pi and a Raspian upgrade (the Raspberry Pi version of Linux). After a quick search I found that there were some really well written instructions out there, so there was no need to create a new “how-to”. Personally I like the one from TechRadar.

The Time Machine backup device is in a closet in the basement and is only accessible via my home network. In order to keep the software patched and up-to-date, I use SSH (secure shell) to log into the Raspberry Pi. On a Mac you can use the terminal to access the Pi but I also use a Chromebook. To access the Pi via the Chromebook I use Secure Shell from the Chrome Web Store. I also use it to access the server for this site and run this “Update and Clean” script:

However, since the Pi is sitting in the closet without a monitor or keyboard, I have no way to use it for its intended purpose, to learn about coding. I found that I could install VNC (Virtual Network Computing) onto the Raspberry Pi and use the desktop interface remotely. I followed the instructions from Adafruit about how to install VNC on the Pi and how to make it autostart after a reboot. I can now use a VNC client to access the desktop of the Pi. There is even a Chromebook VNC client so I can use the Pi from my Chromebook.

Pi Desktop via adafruit

Because we never stop learning, today I learned that there is already a VNC client in my Macbook. I followed these instructions, here and here, to create a “share screen” button that now appears in the Finder of my Macbook and it allows me to remotely access the desktop of my Pi.

Now my Pi is serving a dual purpose. I am using it back up my Macbook and I am also remotely accessing it to learn about Linux and explore the coding apps found on the Raspberry Pi.

One more thing, Adafruit is one of my favourite “go-to” sites for everything Raspberry Pi and Limor “Ladyada” Fried at Adafruit is a fascinating role model for coding and building.