Tag Archives: mac

Guide: Make almost any printer AirPrint compatible with a Raspberry Pi in 20 minutes!

Got a printer kicking around that you wish had AirPrint? Maybe it’s one you’ve had for several years, or maybe it’s a cheaper one you recently picked up and wished it had support for your iPhone, iPad or iPod touch. In any case, if you’ve got yourself a Raspberry Pi, have 20 minutes to spare and a tiny bit of experience with SSH, you can get your printer working natively in AirPrint in a flash!

It doesn’t matter whether your printer connects via USB, Ethernet or Wi-Fi – this trick will still work. I’ll guide you through the process!

Step 1: Ensure your Raspberry Pi is up to date.

This might seem like a no-brainer, but you’ll find yourself installing out of date software if you don’t keep your Pi’s sources up to date. Open up a VNC connection with your Pi and then open Terminal. Run the following:

sudo apt-get update

then

sudo apt-get upgrade

If there are any upgrades listed, type Y and press Enter to continue installing updates. Once that’s done, you can start installing your device.

Step 2: (If you’re connecting via USB) Connect your printer with its USB cable.

If you printer normally connects via USB, now would be a good time to connect it to your Pi’s USB port. If you’re currently connecting your printer via Ethernet or Wi-Fi, run straight to step 3. Don’t panic about unplugging it from about PC that it was connected to before – it’ll be a wireless printer soon!

Connect the printer to your Pi and reboot the Pi with the following command:

sudo reboot

Once it has rebooted and you’re back at a desktop, run Terminal again and then run:

lsusb

All devices that are connected via USB should be listed at this point. If your printer doesn’t show, make sure it is turned on and functioning normally.

Step 3: Install samba and CUPS.

At this point you can start installing the backbone software that will provide the printer networking. In terminal, run the following commands:

sudo apt-get install samba

You’ll probably see apt asking to install a relatively large number of packages – don’t worry about this, just press and then Enter to continue. When that’s done, then run:

sudo apt-get install cups

Again, you’ll see apt wanting to install an assortment of packages. Carry on as before! After that, you just need to add a printing administrator so that CUPS can manage printers on the Pi. Run the following command:

sudo usermod –a –G lpadmin pi

Step 4: Add your printer. 

You now need to add your printer to your print server. To do this, you need to navigate to the CUPS user interface. Open up a web browser on your Pi and then navigate to 127.0.0.1:631. You should see something like this:

Home_-_CUPS_1.7.5_-_Google_Chrome_fcf924dd4bd74bcf8f5a3dacc57b826d

CUPS admin homepage

Click the Administration tab, then click Add Printer. You may be asked to switch to SSL at this point – just follow the link it tells you to go to. You’ll then be prompted to log in – just use your normal Pi credentials (username is usually Pi and the password either raspberry or whatever you might have changed it to.

Once you’re logged in, you should be given a list of currently connected printers. Find yours in the list – it should show up however it is connected (either by USB or over your network). Select it, then click Continue.

At the next step, give it a name (you can keep the default if you wish), a description (this is how your printer will be identified to your iDevice) and a location (optional). Make sure you tick Share This Printer and then click Continue.

Next, you need to select a driver. With any luck your Pi should have already identified a suitable driver – if not, you may need to scroll through the list until you find a suitable candidate. Then click Add Printer and select any default preferences you may have. Click Set Default Options when you’re done and that’s the hardest bit done!

You can check the printer has been added successfully by heading over to the Printers tab and ensuring your printer is shown. To print a test page, select your printer from the list, click the Maintenance dropdown and then click Print Test Page.

Printers_-_CUPS_1.7.5_-_Google_Chrome_abe2589dedeb489098fd507ed7490519

Hopefully your printer is listed at this point!

Step 5: Fine tune a few settings.

A few settings should be fine tuned here to get best performance. Return to the Administration tab and check Share printers connected to this system. If you want to be able to manage CUPS (i.e. add new printers) remotely in future over your network, also check Allow remote administration. Then click Change Settings, the server will then reboot and you’re all good at this point.

Step 6: (Optional) Add Samba support for Windows networking

If you want to use your printer with a Windows device after this setup, you’ll need to activate Samba for Windows. To do this, run Terminal once more and run the following:

sudo nano /etc/samba/smb.conf

Scroll right to the bottom and then paste in the following:

# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
printing = cups
printcap name = cups
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /usr/share/cups/drivers
browseable = yes
read only = yes
guest ok = no

Now, do CTRL and type in workgroup, followed by Enter to find workgroup configuration. Your workgroup is probably already correctly set it if you haven’t ever changed your workgroup before – if you have, set the correct name at workgroup =. Then change wins support = no to wins support = yes.

Then do CTTL + on your keyboard, followed by Enter, to save that configuration.

Restart samba with the following command:

sudo /etc/init.d/samba restart

Your printer will now work on a Windows network.

Step 7: (If your Raspberry Pi is connected to your network via Wi-Fi) Change a quick setting here.

Skip this step if your Pi connects to your network via an Ethernet cable. If it uses Wi-Fi, you need to turn off power saving for its Wi-Fi adapter to prevent it going to sleep and isolating AirPrint. To do this, you need to edit a file in Terminal:

sudo nano /etc/modprobe.d/8192cu.conf

Add the following at the bottom:

# No power saving
options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1

Then do another CTRL O, followed by Enter to save changes.

Step 8: Install Bonjour for AirPrint

Nearly there, I promise! You now need to install the AirPrint software. This is a doddle, thankfully!

Still in your Terminal, run the following command:

sudo apt-get install avahi-discover

Let that install as normal – this shouldn’t take long! Once that’s done, it would be a good idea to reboot your Pi to let all these settings sink in. In terminal, run:

sudo reboot

Step 9: Test it out! 

All should now be up and running – you’ll be pleased to know that’s the configuration done! Grab an iOS device, open up an email or Safari page, and follow the Share icon until you find a Print option. Hit Select Printer and yours should (fairly quickly) appear. If it doesn’t, don’t panic! Give it a couple more minutes and then try again – it should appear after a couple of tries the first time.

Your printer should appear at this point.

Your printer should appear at this point.

If you click the (i), you might even be able to check ink levels.

If you click the (i), you might even be able to check ink levels.

Select your printer, adjust any preferences you wish, and then click Print. Voila! It might take a few seconds to spool with your printer – this is to be expected.

Once you've chosen the printer, adjust any preferences such as number of copies and page selection, then click Print.

Once you’ve chosen the printer, adjust any preferences such as number of copies and page selection, then click Print.

And there you have it! An AirPrint printer with a little configuration from your Pi. If you’d like to add more printers to your network, you’ll need to return to the CUPS administration panel and repeat Step 4. In any case, you should now have a printer that works over your network and on all of your favourite iOS devices, without the need for any third party app!

FREE Microsoft Office for UK university students!

If you’re a current university student in the UK, you could well have access to full free desktop versions of Microsoft Office through Office 365.

Microsoft says over 99% of UK universities are signed up to the subscription plan so for the length of your studies you can get free access to the entire suite of Microsoft Office suite.

Simply click here to go to Microsoft’s site and enter your university email address. Check your email for a confirmation link, and voila free Office!

You can use the software on up to 5 PCs and/or Macs and the subscription is valid until your studies end. There are also a certain number of colleges that are signed up for the service, so it’s worth checking with your academic email address.

Drop us a comment if you grabbed free Office!

Review: 1byone 7-port powered USB 3.0 Hub with charging port

This slideshow requires JavaScript.

Rating: ★★★★☆

PROS: 

  • Excellent build quality
  • Good transfer speeds and connection stabilty
  • Mountable to your desk with supplied adhesive strip

CONS:

  • Host USB cable might be a little short for desktop PC users

RRP £26.99, best price at time of writing £17.99 on Amazon

1byone were kind enough to send me one of their popular 7-port USB hubs for me to try out. I’m always running out of USB ports on my computer, so I was keen to put this one through the paces and see if it could keep up with my heavy demands!

This isn’t just any old USB hub – it’s built with a very nice aluminium chassis and has a very solid feel in the hand. It’s compatible with both USB 2.0 and 3.0 devices and will work in a USB 2.0 or 3.0 port on your PC – albeit naturally with slower transfer speeds over USB 2.0 as you’d expect.

The packaging for this product is very simple and to the point – something I like to see. No fiddly plastic to have to cut up and no unnecessarily large box. Inside the box you get the USB hub together with a mains power adapter supplying up to 3A of power as well as the power supplied by your host USB port. You also get an adhesive strip, which can easily be affixed to the bottom of the hub for permanent mounting on your desk.

The design of the hub is minimalistic, but it employs a higher level of build quality than many other competing products. The 1byone hub is made with aluminium to strengthen the device and look good on your desk.

The USB hub can be powered independently of your computer with the supplied power adapter if required – in most cases this will be necessary to power all ports sufficiently. If you’re not using all of the USB ports at the same time, you might get away with not having the power supply to hand, but I’d recommend keeping it plugged in all the time.

So how well does the hub work? I conducted some tests, putting the hub under full load with all 7 ports filled to see how well it handled multiple connections. When connected to the mains, the hub was able to successfully connect all of my devices to the host PC without any intermittent communications or drop-outs. Without the power supply, the hub struggles much more but that would be completely understandable given the power constraints.

Data transfer speeds were fairly good over USB 3.0 – all of the onboard ports are USB 3.0 capable and when I connected my USB 3.0 memory stick it achieved very decent transfer speeds for both reads and writes – very close to what it could achieve when directly connected to my PC.

The hub also has a single charging port onboard. When the hub is plugged into the mains, it’ll keep that port powered even if your computer is switched off, so that you can charge up any of your mobile devices. When your computer is switched on, any of the ports can be used for charging. I found this feature to be particularly helpful, as I could leave devices like my phone plugged into the hub overnight to charge without needing to leave my computer on.

If I had anything I’d like to see improved on the device it’d be the length of the built-in host USB cable on the hub. For laptop users a shorter USB cable is likely to be better and means less cable clutter on the desk, but it was just a little too short to comfortably reach the back of my desktop PC case and sit on the desk where I wanted it. As the USB cable is permanently fixed into the hub it leaves little option of extending it – except with a USB extension cable, which is likely to lead to reduced data transfer speeds. This makes it difficult to confidently give the device 5 stars and is the only reason I’m giving it 4.

Other than that minor complaint, I’m very happy with the hub. Not once did I run into any trouble connecting any of my USB devices and I didn’t experience a single device connection drop-out. This is without doubt a very well built USB hub that will stand the test of time. It’s just a shame that the host USB cable isn’t a tiny bit longer or extendible.

Buy now from Amazon

Google release first developement test of Chrome for Mac and Linux

Google has today released the development build of Google Chrome available for Mac and Linux.

Google has posted a blog post about this here.

It’s not even a beta build so I wouldn’t recommend testing it unless you are absolutely desperate. Google has said the features are very limited – there isn’t a print feature yet. It really is very limited. You’ll be nagged with warnings that the program is not for general use as well, so consider whether you really want to use it.

If you are dieing to have a play with it, use the link above and download it from the Chromium blog. Have a go and see what you think, but if I were you I’d wait for a beta build rather than a development build.