Penguin

Differences between current version and revision by previous author of CUPSNotes.

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 35 Last edited on Wednesday, September 17, 2008 10:32:27 pm by JimCheetham
Older page: version 34 Last edited on Friday, April 20, 2007 10:37:17 pm by CraigBox Revert
@@ -256,9 +256,77 @@
 Debian doesn't seem to have dependencies to drag in the PPDs for all the foomatic drivers, even if you install the filters. 
  
 Install also the <tt>foomatic-filters-ppds</tt> package. 
  
+----  
+!! Windows printing to Cups, without Samba  
  
+There are many howtos on how to set up printing from windows clients to a printer attached to a linux computer via samba, but theres not much I could find on doing it without samba. Heres how I did it:  
+  
+!Linux Server Setup  
+  
+  
+* Set up cups to work locally - this is pretty standard and I will assume you have this sussed already. Most distros tend to use cups these days. Assume your printer is, like mine, called "hp". Lets also assume the linux machine with the printer attached is called "server".  
+  
+* You need to sort cups so that it will allow access from your LAN. Assuming a LAN with addresses 192.168.1.x you need this stanza in /etc/cups/cupsd.conf  
+  
+<verbatim>  
+<Location /printers>  
+Order Deny,Allow  
+Allow 192.168.1.*  
+</Location>  
+</verbatim>  
+  
+* Please note that there is also the possibilty of stronger sytstems involving proper authentication, but if you are not exposing port 631 to the internet you probably aren't doing too much harm allowing it to be set up this way.  
+  
+* You can also have different permissions for different printers, if I just wanted to allow access to printer hp, but not others I would instead use:  
+  
+<verbatim>  
+<Location /printers/hp>  
+Order Deny,Allow  
+Allow 192.168.1.*  
+</Location>  
+</verbatim>  
+  
+!Windows client setup  
+  
+  
+* On the linux box find the .PPD file relevant to your printer. For any printer that has configured, cups conveniently copies it from "somewhere on your file system" to /etc/cups/ppd/hp.ppd. Make this available to your windows computer, cups makes it available at http://server:631/printers/hp.ppd. NB! windows, in a rare fit of fussiness over case seems to require at least the .PPD extension to be capitalised. Therefore download it from your print server and rename it in capitals. (1)  
+  
+* Download the Adobe generic postscript driver for windows (2). Use winzip or similar to unzip them to a directory on your windows box (or use cabextract to extract it on your linux box and share it via samba)  
+  
+* Run adobe's setup program. Click through the first couple of boxes and when it asks whether the printer is local or networked, choose networked. In the next box put in the address of the printer like this (If you don't have DNS working on your lan simply use the IP address of the linux box instead of "server"):  
+  
+<verbatim>  
+http://server:631/printers/hp  
+</verbatim>  
+  
+  
+* The next dialog will say "The network printer is not using the Adobe driver. If you know the type of the selected printer Click Yes to install the driver...(and some other options)". Click yes and you will get a dialog box where you can browse for and choose the .PPD file you downloaded. Choose it.  
+  
+* The next dialog asks if you want it to be the printer to be the default on the windows box, and if you want to print a test page. Make your choices.  
+  
+* The next dialog gives a summary, click "Install" , or "Back" to correct errors. It then installs the driver and asks if you want to configure the printer - click yes and set up your paper preferences etc. (remember to set A4).  
+  
+* You are done. You should be able to print from windows applications. To access the printer's special features click "Advanced" in the print dialog box, it will bring up a dialog with all the options specified in the PPD file.  
+  
+(1) PPD files are wonderful wonderful things. They describe the  
+capabilities of the printer in a text file format, and are genuinely  
+cross-platform usable. For every option setting they contain ~PostScript  
+code which, embedded in the ~PostScript file sent to the printer, applies  
+the corresponding setting to the job. They allow (for example) Adobe's  
+postscript driver to be aware of the printer options on any printer that has a PPD file associated  
+with it, even if it isn't a postscript printer. PPD files are available  
+from a variety of places, and of course Mac-OS X wants them too, so  
+manufacturers are releasing them more and more. Further info:  
+  
+http://www.linuxprinting.org/ppd-doc.html  
+http://www.linuxprinting.org/kpfeifle/LinuxKongress2002/Tutorial/III.PostScript-and-PPDs/III.PostScript-and-PPDs.html (also available as pdf)  
+  
+  
+(2) www.adobe.com - support menu, downloads, postscript printer drivers  
+(windows) choose your language version, its about 7.5M and named  
+winsteng.exe. It is a self-extracting zip file. UPDATE 30 April 2007: It is getting harder to find the winsteng.exe file. Adobe have changed around their website yet again. The easiest route to find it seems to be to search for "winsteng.exe" through the search box on the adobe site. Alternatively try this url, although I can't guarantee that it won't change: http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=1500&fileID=1438  
 ---- 
 See CupsAccounting 
  
 Part of CategoryPrinting