Journeys' End
20041105
  Printing over a network: Linux to Windows
Introduction Helped greatly by this guide I managed to get my laptop (which is dual boot Debian/Windows XP) to print across the network (which is all run on XP) using CUPS. Package setup First, I had to get all the required packages, which was accomplished by the following rather lengthy command:
apt-get install cupsys cupsys-bsd cupsys-client foomatic-bin samba smbclient gs-esp a2ps
I don't know what all of those do, but apparently they're necessary. Printer/host discovery The next thing to do is to use the samba client to have a look at the shared printers on the network:
/usr/bin/smbclient -L [host name] -U [username]
Instead of using the host name, the IP address can be used instead, with -I instead of -L. This will bring up a list of shared resources, which will tell you the name of the printer (if you didn't know it already). CUPS setup The following command is to verify that CUPS has the smb backend (again, not quite sure what this is about, but the guide told me to do it...)
ls -l /usr/lib/cups/backend/smb
Lastly, you need to set up the printer(s) you want to use:
lpadmin -p [printer name] -v smb://[username]:[password]@[host name]/[printer name] /usr/bin/enable [printer name] /usr/sbin/accept [printer name] /usr/sbin/lpadmin [printer name]
Integration with KDE You should then be able to go into the KDE printing manager (application menu -> settings -> printing manager) and add your printer . Since you've already added with the above commands, KDE will find it in localhost. Down the bottom of the printing manager, where it says "Print system currently used:" select CUPS. Then you can right-click on the printer and click "Test printer..." to print a test page, which prints you a nice colour wheel and information on the page size etc. Last words So now I can just print straight from Linux, without having to reboot into Windows. :) Now all I need is a Linux-compatible wireless card and I won't need Windows much at all... M.
 
Comments:
if there isn't a password set, you may need to print as a guest, example, smb://Guest@blah/printer
 
Thank you for that information :)
 
Post a Comment



Links to this post:

Create a Link



<< Home
“Ah, but a man's reach should exceed his grasp, or what's a heaven for?” - Robert Browning

Resume
pdf / doc

Email
gmail / usyd

Downloads

Links
Chris' snippets

Archives
September 2003 / October 2003 / November 2003 / December 2003 / January 2004 / February 2004 / March 2004 / April 2004 / May 2004 / June 2004 / July 2004 / August 2004 / September 2004 / October 2004 / November 2004 / December 2004 / January 2005 / February 2005 / March 2005 / April 2005 / May 2005 / June 2005 / July 2005 / August 2005 / September 2005 / October 2005 / November 2005 / December 2005 / January 2006 / March 2006 / April 2006 / May 2006 / June 2006 / July 2006 / August 2006 / September 2006 / October 2006 / November 2006 / December 2006 / January 2007 / February 2007 / March 2007 / April 2007 /

Powered by Blogger

Subscribe to
Posts [Atom]