[ale] printing to a cups printer?

Dow Hurst dhurst at kennesaw.edu
Mon Apr 21 11:15:36 EDT 2003


Your samba print spool needs to be writeable by the user she attaches 
as.  Under Samba separate from CUPs you need to make her a user with 
valid Samba password.  She needs to be able to attach to the Samba 
share, see the printer, and have the printer configured under Windows 
with a Windows driver.  The Samba exported printer needs to have a raw 
queue on your box and not be processed by a driver.  Hope this helps,
Dow


Robert L. Harris wrote:

>Ok, I can print from my linux to my linux finally.  Apparantly the
>browseaddress and browsing is not set up right by default.  As soon as I
>nailed that down it magically appeared on my desktop.  I booted into
>windows on my desktop opened the network and popped over to my wife's
>machine, I can read my home directory (for the user I'm logged in as) 
>just fine, I can see the printer and was able to add it.  When I try 
>to print a test page I get an error:
>
>"Test page failed to print.  Would you like to view the print trouble
>shooter for assistance? "unable to create a print job."
>
>Nothing in the logs for the cups server...  Any thoughts?
>
>Robert
>
>Thus spake Dow Hurst (dhurst at kennesaw.edu):
>
>  
>
>>Robert,
>>Here is the cups.conf setting that is uncommented for local LAN 
>>connections on the print server, sword.
>>
>># Access permissions for each directory served by the scheduler.
>># Locations are relative to DocumentRoot...
>><Location />
>>Order Deny,Allow
>>Deny From All
>>Allow From 127.0.0.1
>>Allow From 127.0.0.2
>>Allow From @LOCAL
>></Location>
>>
>>
>>Here is my printers.conf file:
>>sword:~ # cat /etc/cups/printers.conf
>># Printer configuration file for CUPS v1.1.15
>># Written by cupsd on Sun Apr  6 20:30:12 2003
>><DefaultPrinter lp>
>>DeviceURI ptal:/mlc:usb:officejet_d_series
>>State Idle
>>Accepting Yes
>>JobSheets none none
>>QuotaPeriod 0
>>PageLimit 0
>>KLimit 0
>></Printer>
>>
>>
>>Here are the settings on the client, scout, cups.conf file:
>>BrowseAddress 192.168.100.255
>>
>>
>>Scout has an older CUPs version and I don't believe it really needed the 
>>BrowseAddress line.  What is important is that the server allows the 
>>client access to the print queues.
>>
>>The ptal software is HP's USB driver for talking to the USB devices thru 
>>the USB subsystem.  I think it lays on top of the kernel USB drivers but 
>>I don't know that.
>>Dow
>>
>>
>>Robert L. Harris wrote:
>>
>>    
>>
>>>I don't have a ptal?init or ptal*...  I compiled my USB into my kernel
>>>so there's no modules to be loaded.  Perchance your system has modules
>>>and the're not loaded in time for initialization?
>>>
>>>
>>>Thus spake Dow Hurst (dhurst at kennesaw.edu):
>>>
>>>
>>>
>>>      
>>>
>>>>I really don't know if there is any difference between ipp and http!  
>>>>Haven't read that far in the CUPs docs.  About the USB, I was wondering 
>>>>if upon reboot of spirit if it configures and starts up the printer 
>>>>properly.  Since I am having trouble with this working properly, I am 
>>>>curious if your works right.  Specifically, I believe that the ptal 
>>>>startup script isn't finding and configuring the USB connection.  So 
>>>>CUPS doesn't think the printer is connected once it starts up.  I've had 
>>>>to run "ptal-init setup" by hand upon reboot and then once the device is 
>>>>found and configured (I don't change any values, just accept what was 
>>>>already configured), I restart CUPs and "enable" the printer.
>>>>Dow
>>>>
>>>>
>>>>Robert L. Harris wrote:
>>>>
>>>>  
>>>>
>>>>        
>>>>
>>>>>What protocol do you think is best?  ipp?
>>>>>
>>>>>
>>>>>Earlier you asked a question on my HP's USB config?
>>>>>
>>>>>Thus spake Dow Hurst (dhurst at kennesaw.edu):
>>>>>
>>>>>
>>>>>
>>>>>    
>>>>>
>>>>>          
>>>>>
>>>>>>Put in http://spirit.rdlg.net/printers/HP-DJ882c
>>>>>>
>>>>>>if you get a denied type message then you are not allowed access on 
>>>>>>spirit.  CUPs operates like Apache so in your cupsd.conf near the end 
>>>>>>of the file is the section for security of the queues.  Add an Allow 
>>>>>>            
>>>>>>
>>>>>>From vampire.rdlg.net line just as you would allow access to a 
>>>>>          
>>>>>
>>>>>>directory or website in the httpd.conf file.  That should clear things 
>>>>>>up.
>>>>>>
>>>>>>I'll post you this evening my cupsd.conf file for you that sets up the 
>>>>>>two machines at home just like you want yours to be.
>>>>>>Dow
>>>>>>
>>>>>>
>>>>>>Robert L. Harris wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>      
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>Ok, I loaded "http://localhost:631" on my desktop.  I click the
>>>>>>>"printers" tab and hit Add printer.
>>>>>>>
>>>>>>>It prompts me for Name, Location, Description.  I fill in "HP-DJ882c",
>>>>>>>"Spirit" and "My HP" and hit ok.  Next it asks for the "device".  It
>>>>>>>gives an option for USB, lpr/lpd, ipp printer, etc.
>>>>>>>
>>>>>>>If I put in anything other than USB (hardware connected printer types) 
>>>>>>>I
>>>>>>>get something like this:
>>>>>>>
>>>>>>>
>>>>>>>Device URI:  <>
>>>>>>>Examples:
>>>>>>>
>>>>>>>http://hostname:631/ipp/port1
>>>>>>>http://hostname:631/printers/name
>>>>>>>ipp://hostname/ipp/port1
>>>>>>>ipp://hostname/printers/name
>>>>>>>lpd://hostname/queue
>>>>>>>socket://hostname
>>>>>>>socket://hostname:9100
>>>>>>>
>>>>>>>
>>>>>>>What would I put in on "vampire.rdlg.net" to have it use the printer
>>>>>>>named "HP-DJ882c" connected to "spirit.rdlg.net".  The HP printer is
>>>>>>>connected via USB to spirit and working great.
>>>>>>>
>>>>>>>Robert
>>>>>>>
>>>>>>>
>>>>>>>Thus spake Dow Hurst (dhurst at kennesaw.edu):
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  
>>>>>>>
>>>>>>>        
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>Okay, I mixed up who had the printer and who didn't, but you've 
>>>>>>>>already got things figured out.  Just put CUPs on your machine and 
>>>>>>>>start the server.  The default is that the server will poll the LAN 
>>>>>>>>on port 631 for any other servers.  If it finds one then they 
>>>>>>>>negotiate and trade info.  Your machine should pick up the printer as 
>>>>>>>>a possible queue automatically.  If not then you can specifically add 
>>>>>>>>info about your wife's CUPs server into your machines cups.conf file.
>>>>>>>>
>>>>>>>>The samba stuff requires that you have the print system defined as 
>>>>>>>>CUPs not LPRNG in smb.conf and that you advertise the printer via 
>>>>>>>>Samba.  You do have to have the Samba backend for CUPs installed.
>>>>>>>>Dow
>>>>>>>>
>>>>>>>>
>>>>>>>>Robert L. Harris wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>    
>>>>>>>>
>>>>>>>>          
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>>>>>I have the cupsys and cupsys-client on my wife's machine and it's
>>>>>>>>>printing great right now.  I'm wondering about making her machine 
>>>>>>>>>share
>>>>>>>>>out the printer to other cupsys enabled clients.  Once I can print 
>>>>>>>>>from
>>>>>>>>>my desktop to her machine I'll be figuring out printing from my 
>>>>>>>>>desktop
>>>>>>>>>in windows mode to her cupsys one, probably going to have to load 
>>>>>>>>>samba.
>>>>>>>>>
>>>>>>>>>Thus spake James Sumners (james at sumners.ath.cx):
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>      
>>>>>>>>>
>>>>>>>>>            
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>>>>>You probably want 'cupsys' and 'cupsys-client'. Those are the two 
>>>>>>>>>>basic Debian
>>>>>>>>>>packages you need to get cups running on a Debian box. You may also 
>>>>>>>>>>want to
>>>>>>>>>>consider installing 'cupsomatic-ppd'.
>>>>>>>>>>
>>>>>>>>>>To share my printer I just use samba.
>>>>>>>>>>
>>>>>>>>>>On Mon, 14 Apr 2003 10:29:38 -0400
>>>>>>>>>>"Robert L. Harris" <Robert.L.Harris at rdlg.net> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  
>>>>>>>>>>
>>>>>>>>>>        
>>>>>>>>>>
>>>>>>>>>>              
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>>>>>>>I don't see a debian cupsys-server package.  Any idea what the 
>>>>>>>>>>>binary
>>>>>>>>>>>name might be?  With a filename that's in the server only I can 
>>>>>>>>>>>find
>>>>>>>>>>>what provides it.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>    
>>>>>>>>>>>
>>>>>>>>>>>          
>>>>>>>>>>>
>>>>>>>>>>>                
>>>>>>>>>>>
>>>>>>>>>>>                      
>>>>>>>>>>>
>>>>>>>>>>-- 
>>>>>>>>>>
>>>>>>>>>>All governments suffer a recurring problem: Power attracts 
>>>>>>>>>>pathological
>>>>>>>>>>personalities. It is not that power corrupts but that it is 
>>>>>>>>>>magnetic to the
>>>>>>>>>>corruptible. Such people have a tendency to become drunk on 
>>>>>>>>>>violence, a
>>>>>>>>>>condition to which they are quickly addicted. 
>>>>>>>>>>
>>>>>>>>>>Missionara Protectiva, Text QIV (decto)
>>>>>>>>>>CH:D 59
>>>>>>>>>>_______________________________________________
>>>>>>>>>>Ale mailing list
>>>>>>>>>>Ale at ale.org
>>>>>>>>>>http://www.ale.org/mailman/listinfo/ale
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  
>>>>>>>>>>
>>>>>>>>>>        
>>>>>>>>>>
>>>>>>>>>>              
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>>>>>:wq!
>>>>>>>>>---------------------------------------------------------------------------
>>>>>>>>>Robert L. Harris                     | PGP Key ID: E344DA3B
>>>>>>>>>                                 @ x-hkp://pgp.mit.edu 
>>>>>>>>>DISCLAIMER:
>>>>>>>>>These are MY OPINIONS ALONE.  I speak for no-one else.
>>>>>>>>>
>>>>>>>>>Diagnosis: witzelsucht  	
>>>>>>>>>
>>>>>>>>>IPv6 = robert at ipv6.rdlg.net	http://ipv6.rdlg.net
>>>>>>>>>IPv4 = robert at mail.rdlg.net	http://www.rdlg.net
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>      
>>>>>>>>>
>>>>>>>>>            
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>>>-- 
>>>>>>>>__________________________________________________________
>>>>>>>>Dow Hurst                  Office: 770-499-3428
>>>>>>>>Systems Support Specialist    Fax: 770-423-6744
>>>>>>>>1000 Chastain Rd. Bldg. 12
>>>>>>>>Chemistry Department SC428  Email:   dhurst at kennesaw.edu
>>>>>>>>Kennesaw State University         Dow.Hurst at mindspring.com
>>>>>>>>Kennesaw, GA 30144
>>>>>>>>*****************************************************************
>>>>>>>>This message (including any attachments) contains confidential  *
>>>>>>>>information intended for a specific individual and purpose,     *
>>>>>>>>and is protected by law.  If you are not the intended recipient,*
>>>>>>>>you should delete this message and are hereby notified that     *
>>>>>>>>any disclosure, copying, or distribution of this message, or    *
>>>>>>>>the taking of any action based on it, is strictly prohibited.   *
>>>>>>>>*****************************************************************
>>>>>>>>
>>>>>>>>
>>>>>>>>_______________________________________________
>>>>>>>>Ale mailing list
>>>>>>>>Ale at ale.org
>>>>>>>>http://www.ale.org/mailman/listinfo/ale
>>>>>>>>
>>>>>>>>
>>>>>>>>    
>>>>>>>>
>>>>>>>>          
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>>>:wq!
>>>>>>>---------------------------------------------------------------------------
>>>>>>>Robert L. Harris                     | PGP Key ID: E344DA3B
>>>>>>>                                   @ x-hkp://pgp.mit.edu 
>>>>>>>DISCLAIMER:
>>>>>>>These are MY OPINIONS ALONE.  I speak for no-one else.
>>>>>>>
>>>>>>>Diagnosis: witzelsucht  	
>>>>>>>
>>>>>>>IPv6 = robert at ipv6.rdlg.net	http://ipv6.rdlg.net
>>>>>>>IPv4 = robert at mail.rdlg.net	http://www.rdlg.net
>>>>>>>
>>>>>>>
>>>>>>>  
>>>>>>>
>>>>>>>        
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>-- 
>>>>>>__________________________________________________________
>>>>>>Dow Hurst                  Office: 770-499-3428
>>>>>>Systems Support Specialist    Fax: 770-423-6744
>>>>>>1000 Chastain Rd. Bldg. 12
>>>>>>Chemistry Department SC428  Email:   dhurst at kennesaw.edu
>>>>>>Kennesaw State University         Dow.Hurst at mindspring.com
>>>>>>Kennesaw, GA 30144
>>>>>>*****************************************************************
>>>>>>This message (including any attachments) contains confidential  *
>>>>>>information intended for a specific individual and purpose,     *
>>>>>>and is protected by law.  If you are not the intended recipient,*
>>>>>>you should delete this message and are hereby notified that     *
>>>>>>any disclosure, copying, or distribution of this message, or    *
>>>>>>the taking of any action based on it, is strictly prohibited.   *
>>>>>>*****************************************************************
>>>>>>
>>>>>>
>>>>>>_______________________________________________
>>>>>>Ale mailing list
>>>>>>Ale at ale.org
>>>>>>http://www.ale.org/mailman/listinfo/ale
>>>>>>
>>>>>>
>>>>>>      
>>>>>>
>>>>>>            
>>>>>>
>>>>>:wq!
>>>>>---------------------------------------------------------------------------
>>>>>Robert L. Harris                     | PGP Key ID: E344DA3B
>>>>>                                     @ x-hkp://pgp.mit.edu 
>>>>>DISCLAIMER:
>>>>>  These are MY OPINIONS ALONE.  I speak for no-one else.
>>>>>
>>>>>Diagnosis: witzelsucht  	
>>>>>
>>>>>IPv6 = robert at ipv6.rdlg.net	http://ipv6.rdlg.net
>>>>>IPv4 = robert at mail.rdlg.net	http://www.rdlg.net
>>>>>
>>>>>
>>>>>    
>>>>>
>>>>>          
>>>>>
>>>>-- 
>>>>__________________________________________________________
>>>>Dow Hurst                  Office: 770-499-3428
>>>>Systems Support Specialist    Fax: 770-423-6744
>>>>1000 Chastain Rd. Bldg. 12
>>>>Chemistry Department SC428  Email:   dhurst at kennesaw.edu
>>>>Kennesaw State University         Dow.Hurst at mindspring.com
>>>>Kennesaw, GA 30144
>>>>*****************************************************************
>>>>This message (including any attachments) contains confidential  *
>>>>information intended for a specific individual and purpose,     *
>>>>and is protected by law.  If you are not the intended recipient,*
>>>>you should delete this message and are hereby notified that     *
>>>>any disclosure, copying, or distribution of this message, or    *
>>>>the taking of any action based on it, is strictly prohibited.   *
>>>>*****************************************************************
>>>>
>>>>
>>>>_______________________________________________
>>>>Ale mailing list
>>>>Ale at ale.org
>>>>http://www.ale.org/mailman/listinfo/ale
>>>>  
>>>>
>>>>        
>>>>
>>>:wq!
>>>---------------------------------------------------------------------------
>>>Robert L. Harris                     | PGP Key ID: E344DA3B
>>>                                       @ x-hkp://pgp.mit.edu 
>>>DISCLAIMER:
>>>    These are MY OPINIONS ALONE.  I speak for no-one else.
>>>
>>>Diagnosis: witzelsucht  	
>>>
>>>IPv6 = robert at ipv6.rdlg.net	http://ipv6.rdlg.net
>>>IPv4 = robert at mail.rdlg.net	http://www.rdlg.net
>>>
>>>
>>>      
>>>
>>-- 
>>__________________________________________________________
>>Dow Hurst                  Office: 770-499-3428
>>Systems Support Specialist    Fax: 770-423-6744
>>1000 Chastain Rd. Bldg. 12
>>Chemistry Department SC428  Email:   dhurst at kennesaw.edu
>>Kennesaw State University         Dow.Hurst at mindspring.com
>>Kennesaw, GA 30144
>>*****************************************************************
>>This message (including any attachments) contains confidential  *
>>information intended for a specific individual and purpose,     *
>>and is protected by law.  If you are not the intended recipient,*
>>you should delete this message and are hereby notified that     *
>>any disclosure, copying, or distribution of this message, or    *
>>the taking of any action based on it, is strictly prohibited.   *
>>*****************************************************************
>>
>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://www.ale.org/mailman/listinfo/ale
>>    
>>
>
>:wq!
>---------------------------------------------------------------------------
>Robert L. Harris                     | PGP Key ID: E344DA3B
>                                         @ x-hkp://pgp.mit.edu 
>DISCLAIMER:
>      These are MY OPINIONS ALONE.  I speak for no-one else.
>
>Diagnosis: witzelsucht  	
>
>IPv6 = robert at ipv6.rdlg.net	http://ipv6.rdlg.net
>IPv4 = robert at mail.rdlg.net	http://www.rdlg.net
>  
>

-- 
__________________________________________________________
Dow Hurst                  Office: 770-499-3428
Systems Support Specialist    Fax: 770-423-6744
1000 Chastain Rd. Bldg. 12
Chemistry Department SC428  Email:   dhurst at kennesaw.edu
Kennesaw State University         Dow.Hurst at mindspring.com
Kennesaw, GA 30144
*****************************************************************
This message (including any attachments) contains confidential  *
information intended for a specific individual and purpose,     *
and is protected by law.  If you are not the intended recipient,*
you should delete this message and are hereby notified that     *
any disclosure, copying, or distribution of this message, or    *
the taking of any action based on it, is strictly prohibited.   *
*****************************************************************


_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list