3

I am trying to get an old printer working for a family member. The printer itself is working fine but I can't find a way to print from Windows 10 to that printer, the drivers for that printer no longer support the most modern versions of Windows.

Luckily, I was able to print to that printer using Ubuntu and I shared the printer using the GUI. The Windows machine was able to see it but still asked me for a driver before being able to print to it.

From what I just read (correct me if I'm wrong), Ubuntu use CUPS by default for printing, and CUPS should use its own driver when sharing, which was apparently not the case. Am I missing something ?

Just a little note: I will eventually use a Raspberry Pi for this (I have none that I can use right now), so if there something I might need to know that will be different on a Pi (else then the GUI), please let me know!

EDIT: I forgot to mention, this is a USB printer.

  • What model is the printer? If it is an old dot matrix it will support plain ASCII text, and the Generic/Text Only driver will work. If it supports PCL5, try a LaserJet4 driver (and the G/TO driver will also work). – hdhondt Jul 26 '17 at 23:21
  • This is the printer: epson.com/For-Home/Printers/Photo/… . So I should try the LaserJet4 driver on Windows? – jonapap Jul 27 '17 at 0:17
  • Can you print with Linux? The key here is whether or not the printer was added to CUPS using the “raw” driver. – Daniel B Jul 27 '17 at 6:31
  • @DanielB, do you want to know if I can print from a Linux computer directly connected to the printer via USB (which I can), or do you want to know if another Linux machine can print via the shared printer ? – jonapap Jul 27 '17 at 13:55
  • The important thing is that the print server (the machine that’s directly connected to the printer over USB) can print. You said it can, so that’s great. It means Windows can use a generic PostScript driver to print. I’ll add an answer later. – Daniel B Jul 27 '17 at 14:09
3

Since you can print on Linux, you have a proper driver. This is important because CUPS also supports “raw” queues where it does not actually know how to create printer data itself but relies on client-side drivers to do that.

Because CUPS knows how to print, you can just feed it PostScript data. Windows ships with various suitable drivers. They need not be related to your printer in any way.

I’ll quote Arch Wiki’s Printer sharing article on the following.

First, to enable sharing, it refers to the CUPS server:

Open up the web interface to the server, select the Administration tab, look under the Server heading, and enable the "Share printers connected to this system" option. Save your change by clicking on the Change Settings button. The server will automatically restart.

Then, to install the printer on Windows:

Sharing via IPP

The preferred way to connect a Windows client to a Linux print server is using IPP, as the configuration is simpler than using Samba. It is a standard printer protocol based on HTTP, allowing you to use port forwarding, tunneling etc. IPP has been natively supported by Windows since Windows 2000.

Note: You may have to add the Internet Printing Client to Windows (Control Panel->Programs->Turn Windows features on or off->Print and Document Services)

[...]

On the Windows computer, go to Control Panel->Devices and Printers and choose 'Add a printer'. If on Windows 10, click "The printer that I want isn't listed". Next, choose 'Select a shared printer by name' and type in the location of the printer:

http://hostname:631/printers/printer_name

(where hostname is the GNU/Linux server's hostname or IP address and printer_name is the name of the print queue being connected to. [...]

Note:

  • The 'Add Printer' dialog in Windows suggests the format http://computername/printers/printername/.printer, which it will not accept. Instead, use the syntax suggested above.
  • If you are using a proxy carefully check any used proxy exclusions. A wrong setting here may result in you being unable to add a printer until the next reboot even if you disable the proxy afterwards (at least on Windows 7).

After this, install the native printer drivers for your printer on the Windows computer. If the CUPS server's print queue is set up to use its own printer drivers instead of as a raw queue, you can just select a generic postscript printer driver for the Windows client (e.g. 'HP Color LaserJet 8500 PS' or 'Xerox DocuTech 135 PS2').

(Emphasis in last paragraph mine).

| improve this answer | |
0

Your printer, the Epson Stylus Photo 960 supports ESC/P so it should support text printing. It does not support PCL5. One Windows 10 driver that will work with it is the Generic/Text Only driver. Note that this driver is true to label: it prints text only.

If you need to print graphics, or you just need more control over the printer, you can try using a driver for another ESC/P printer. If you search for "windows 10 esc/p driver" you will find a number of them. Most appear to be for printers in the Epson LX and FX ranges. These are dot-matrix printers, which do not support colour. Pick one for a printer that has similar capabilities as yours, e.g. the LQ-1070.

| improve this answer | |
  • Thanks, I will try that driver as soon as I can and I'll let you know how it goes. – jonapap Jul 27 '17 at 13:56
  • I tried to use another driver but for some reason this is not working. Anyway, Daniel B answer solved my problem. – jonapap Aug 12 '17 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.