My mother bought a Kodak ESP 7 multifunction printer a few months ago. Since then, she has started using a netbook with Ubuntu Netbook Remix on it full-time. For a while now I have been intending to find a way to print to it from the netbook.
Unfortunately, Kodak decided to be one of the few printer manufacturers providing no linux support whatsoever. Attempts to make a driver have failed repeatedly.
I came up with a way to print to this machine without ever actually finding a working driver. I use a connected windows machine (our family computer) and Dropbox.
Here are the steps to set this up:
- Install Dropbox on the Linux and Windows computers. Make an account, and link them both. Now, you will have a Dropbox folder on each. I’m assuming that they are in the default places – change the paths if you put them elsewhere.
- Make a folder named print in the Dropbox.
- Now, install autohotkey on the Windows computer.
- Make a new autohotkey script in the Dropbox print folder. I named it printer.ahk, but it doesn’t matter.
Inside the file put these lines, modifying if needed:
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Loop, %A_ScriptDir%\*.pdf, , 1
Run, print %A_LoopFileFullPath%
Now, run the script by double-clicking on it. I recommend that you place it in the startup folder as well so that it comes on always.
If you want, this is all you have to do. You can use print to file in Ubuntu to print to a pdf in the print directory. After a few seconds it will begin to print on the Windows machine’s default printer. However, I changed a few things to make printing even easier.
These are the steps:
- Install cups-pdf with synaptic or sudo apt-get install cups-pdf in terminal.
- In a terminal, run the following: ‘sudo chmod +s /usr/lib/cups/backend/cups-pdf’
- Run ‘mkdir ~/PDF’ in a terminal.
- Now, ‘ln -s ~/PDF ~/Dropbox/print’
- Open Printing (System > Administration > Printing), and set the printer called PDF to default.
After doing that, you should be able to open any app, go to print, and just hit print. after 10-15 seconds adobe reader will open up on the windows computer and print the document.
It takes a bit to set up, but is worth it. As a nice side-effect, it turns any printer into a network printer from Linux.