Re: [newbie] problems printing through samba with cups and HP722c
Replace the line print command = lpr-cups -P 0 by print command = lpr-cups -P 0 -r -o raw Till Fireman71 wrote: Trying to set up a box running LM7.2 as a print server for a couple of win98 machines. Currently i have samba set up correctly as far as i can tell. All the machines can see each other and talk to each other fine. On the windows machines i can open up network neighborhood and see the linux box. Open up the linux box and i can see the shared files and read and write to them perfectly. Now the problem... I see two printers, one named "lp" and the other named "printers" but there is only one printer attached to the linux box. A HP DeskJet 722c. Under LM7.1 without CUPS i only saw one printer and just set up the windows machines to print to it and all was good in the world. Now i have tried to print to both of the printers that samba is showing and havent been able to get anything to come out of the printer but i am fairly certain that the print jobs are being sent to the linux box. Reasons i think this are that all the network lights blink like they did when a print job was being sent under 7.1 and tcpdump is showing that the linux box is receiving packets from the win98 box that is sending the job. So i am fairly certain that windows is sending out the print job and that the linux box is receiving it but nothing is getting printed. Any one have any ideas about what i need to do to solve this one? Thanks in advance, Ian K. Harrell [EMAIL PROTECTED] PS -- Here is my smb.conf file just in case it helps. I didnt configure it manually but used swat to generate it. # Samba config file created using SWAT # from localhost.localdomain (127.0.0.1) # Date: 2001/02/03 02:23:33 # Global parameters [global] workgroup = MYGROUP netbios name = HP1 server string = Samba Server %v interfaces = eth0 encrypt passwords = Yes update encrypted = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = lpstat dns proxy = No printing = cups print command = /usr/bin/lp -d0 -oraw ; rm lpq command = /usr/bin/lpstat -o0 lprm command = /usr/bin/cancel 0-%j queuepause command = /usr/bin/disable 0 queueresume command = /usr/bin/enable 0 [homes] comment = Home Directories writeable = Yes browseable = No [printers] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = Yes printable = Yes print command = lpr-cups -P 0 # using cups own drivers (use generic PostScript on clients). lpq command = lpstat -o 0 lprm command = cancel 0-%j [lp] path = /var/spool/samba writeable = Yes create mask = 0700 guest ok = Yes printable = Yes print command = lpr-cups -P 0 # using cups own drivers (use generic PostScript on clients). lpq command = lpstat -o 0 lprm command = cancel 0-%j printer = lp oplocks = No share modes = No
[newbie] problems printing through samba with cups and HP722c
Trying to set up a box running LM7.2 as a print server for a couple of win98 machines. Currently i have samba set up correctly as far as i can tell. All the machines can see each other and talk to each other fine. On the windows machines i can open up network neighborhood and see the linux box. Open up the linux box and i can see the shared files and read and write to them perfectly. Now the problem... I see two printers, one named "lp" and the other named "printers" but there is only one printer attached to the linux box. A HP DeskJet 722c. Under LM7.1 without CUPS i only saw one printer and just set up the windows machines to print to it and all was good in the world. Now i have tried to print to both of the printers that samba is showing and havent been able to get anything to come out of the printer but i am fairly certain that the print jobs are being sent to the linux box. Reasons i think this are that all the network lights blink like they did when a print job was being sent under 7.1 and tcpdump is showing that the linux box is receiving packets from the win98 box that is sending the job. So i am fairly certain that windows is sending out the print job and that the linux box is receiving it but nothing is getting printed. Any one have any ideas about what i need to do to solve this one? Thanks in advance, Ian K. Harrell [EMAIL PROTECTED] PS -- Here is my smb.conf file just in case it helps. I didnt configure it manually but used swat to generate it. # Samba config file created using SWAT # from localhost.localdomain (127.0.0.1) # Date: 2001/02/03 02:23:33 # Global parameters [global] workgroup = MYGROUP netbios name = HP1 server string = Samba Server %v interfaces = eth0 encrypt passwords = Yes update encrypted = Yes log file = /var/log/samba/log.%m max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = lpstat dns proxy = No printing = cups print command = /usr/bin/lp -d%p -oraw %s; rm %s lpq command = /usr/bin/lpstat -o%p lprm command = /usr/bin/cancel %p-%j queuepause command = /usr/bin/disable %p queueresume command = /usr/bin/enable %p [homes] comment = Home Directories writeable = Yes browseable = No [printers] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = Yes printable = Yes print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients). lpq command = lpstat -o %p lprm command = cancel %p-%j [lp] path = /var/spool/samba writeable = Yes create mask = 0700 guest ok = Yes printable = Yes print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients). lpq command = lpstat -o %p lprm command = cancel %p-%j printer = lp oplocks = No share modes = No