Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] SAMBA & CUPS -:- Can't Print To Windows Printer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
KristyX
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 206
Location: Malaysia

PostPosted: Tue May 18, 2004 2:10 am    Post subject: [SOLVED] SAMBA & CUPS -:- Can't Print To Windows Printer Reply with quote

Hi!

I have a small LAN (with the Workgroup name: MAIN-ONE) that has a Win98 computer called "Melody" which shares the printer "Lexmark" (it's a Lexmark E210).

I've got Samba working so I can see her, browse her files and ping her as well.

But as for cups, I've set up the Printer (the conf is below) but when I print, nothing happens. I've attached the error log as well.. I can't see anything wrong but maybe a more experienced user can?

Any help would be appreciated!

Thanks,
Kristy

---

/etc/cups/printer.conf

Code:

# Printer configuration file for CUPS v1.1.20
# Written by cupsd on Tue May 18 09:46:29 2004
<DefaultPrinter LexmarkE210>
Info Melody Lexmark E210
Location smb://MAIN-ONE/MELODY/LEXMARK
DeviceURI smb://MAIN-ONE/MELODY/LEXMARK
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>


/var/log/cups/error_log

Code:

I [18/May/2004:10:02:11 +0800] Scheduler shutting down normally.
D [18/May/2004:10:02:11 +0800] StopListening: closing all listen sockets.
D [18/May/2004:10:02:11 +0800] PauseListening: clearing input bits...
I [18/May/2004:10:02:12 +0800] Listening to 0:631
D [18/May/2004:10:02:12 +0800] AddLocation: added location '/'
D [18/May/2004:10:02:12 +0800] DenyIP: / deny 00000000/00000000
D [18/May/2004:10:02:12 +0800] AllowIP: / allow 7f000001/ffffffff
D [18/May/2004:10:02:12 +0800] AddLocation: added location '/admin'
D [18/May/2004:10:02:12 +0800] DenyIP: /admin deny 00000000/00000000
D [18/May/2004:10:02:12 +0800] AllowIP: /admin allow 7f000001/ffffffff
I [18/May/2004:10:02:12 +0800] Loaded configuration file "/etc/cups/cupsd.conf"
I [18/May/2004:10:02:12 +0800] Configured for up to 100 clients.
I [18/May/2004:10:02:12 +0800] Allowing up to 100 client connections per host.
I [18/May/2004:10:02:12 +0800] Full reload is required.
D [18/May/2004:10:02:12 +0800] LoadAllPrinters: Loading printer LexmarkE210...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "ipp"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "lpd"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "smb"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp0"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp1"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp2"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp3"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp4"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp5"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp6"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp7"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp8"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp9"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp10"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp11"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp12"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp13"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp14"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "usb:/dev/usblp15"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "http"...
D [18/May/2004:10:02:12 +0800] LoadDevices: Added device "scsi"...
D [18/May/2004:10:02:15 +0800] LoadDevices: Added device "serial:/dev/ttyS0?baud=115200"...
D [18/May/2004:10:02:15 +0800] LoadDevices: Added device "serial:/dev/ttyS1?baud=115200"...
D [18/May/2004:10:02:15 +0800] LoadDevices: Added device "serial:/dev/ttyS2?baud=115200"...
D [18/May/2004:10:02:15 +0800] LoadDevices: Added device "serial:/dev/ttyS3?baud=115200"...
D [18/May/2004:10:02:15 +0800] LoadDevices: Added device "serial:/dev/ttyS4?baud=115200"...
D [18/May/2004:10:02:15 +0800] LoadDevices: Added device "serial:/dev/ttyS5?baud=115200"...
D [18/May/2004:10:02:15 +0800] LoadDevices: Added device "serial:/dev/ttyS6?baud=115200"...
D [18/May/2004:10:02:15 +0800] LoadDevices: Added device "serial:/dev/ttyS7?baud=115200"...
D [18/May/2004:10:02:15 +0800] LoadDevices: Added device "socket"...
I [18/May/2004:10:02:15 +0800] LoadPPDs: Read "/etc/cups/ppds.dat", 15 PPDs...
I [18/May/2004:10:02:15 +0800] LoadPPDs: No new or changed PPDs...
D [18/May/2004:10:02:15 +0800] LoadAllJobs: Scanning /var/spool/cups...
D [18/May/2004:10:02:15 +0800] LoadAllJobs: Loading attributes for job 1...
D [18/May/2004:10:02:15 +0800] LoadAllJobs: Loading attributes for job 2...
D [18/May/2004:10:02:15 +0800] LoadAllJobs: Loading attributes for job 3...
D [18/May/2004:10:02:15 +0800] LoadAllJobs: Loading attributes for job 4...
D [18/May/2004:10:02:15 +0800] LoadAllJobs: Loading attributes for job 5...
D [18/May/2004:10:02:15 +0800] LoadAllJobs: Loading attributes for job 6...
D [18/May/2004:10:02:15 +0800] LoadAllJobs: Loading attributes for job 7...
D [18/May/2004:10:02:15 +0800] LoadAllJobs: Loading attributes for job 8...
I [18/May/2004:10:02:15 +0800] Full reload complete.
D [18/May/2004:10:02:15 +0800] StartListening: NumListeners=1
D [18/May/2004:10:02:15 +0800] StartListening: address=00000000 port=631
D [18/May/2004:10:02:15 +0800] ResumeListening: setting input bits...
D [18/May/2004:10:02:29 +0800] AcceptClient() 5 from localhost:631.
D [18/May/2004:10:02:29 +0800] ReadClient() 5 POST /printers/LexmarkE210 HTTP/1.1
D [18/May/2004:10:02:29 +0800] print_job: auto-typing file...
D [18/May/2004:10:02:29 +0800] print_job: request file type is application/postscript.
D [18/May/2004:10:02:29 +0800] check_quotas: requesting-user-name = 'kristy'
D [18/May/2004:10:02:29 +0800] print_job: requesting-user-name = 'kristy'
D [18/May/2004:10:02:29 +0800] Adding default job-sheets values "none,none"...
I [18/May/2004:10:02:29 +0800] Adding start banner page "none" to job 9.
I [18/May/2004:10:02:29 +0800] Adding end banner page "none" to job 9.
I [18/May/2004:10:02:29 +0800] Job 9 queued on 'LexmarkE210' by 'kristy'.
D [18/May/2004:10:02:29 +0800] Job 9 hold_until = 0
D [18/May/2004:10:02:29 +0800] StartJob(9, 0x80945d8)
D [18/May/2004:10:02:29 +0800] StartJob() id = 9, file = 0/1
D [18/May/2004:10:02:29 +0800] job-sheets=none,none
D [18/May/2004:10:02:29 +0800] banner_page = 0
D [18/May/2004:10:02:29 +0800] StartJob: argv = "LexmarkE210","9","kristy","","1","","/var/spool/cups/d00009-001"
D [18/May/2004:10:02:29 +0800] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
D [18/May/2004:10:02:29 +0800] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [18/May/2004:10:02:29 +0800] StartJob: envp[2]="USER=root"
D [18/May/2004:10:02:29 +0800] StartJob: envp[3]="CHARSET=iso-8859-1"
D [18/May/2004:10:02:29 +0800] StartJob: envp[4]="LANG=en"
D [18/May/2004:10:02:29 +0800] StartJob: envp[5]="PPD=/etc/cups/ppd/LexmarkE210.ppd"
D [18/May/2004:10:02:29 +0800] StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
D [18/May/2004:10:02:29 +0800] StartJob: envp[7]="RIP_MAX_CACHE=8m"
D [18/May/2004:10:02:29 +0800] StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
D [18/May/2004:10:02:29 +0800] StartJob: envp[9]="CONTENT_TYPE=application/postscript"
D [18/May/2004:10:02:29 +0800] StartJob: envp[10]="DEVICE_URI=smb://MAIN-ONE/MELODY/LEXMARK"
D [18/May/2004:10:02:29 +0800] StartJob: envp[11]="PRINTER=LexmarkE210"
D [18/May/2004:10:02:29 +0800] StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups"
D [18/May/2004:10:02:29 +0800] StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [18/May/2004:10:02:29 +0800] StartJob: envp[14]="CUPS_SERVER=localhost"
D [18/May/2004:10:02:29 +0800] StartJob: envp[15]="IPP_PORT=631"
D [18/May/2004:10:02:29 +0800] StartJob: statusfds = [ 6 7 ]
D [18/May/2004:10:02:29 +0800] StartJob: filterfds[1] = [ 8 -1 ]
D [18/May/2004:10:02:29 +0800] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [18/May/2004:10:02:29 +0800] StartJob: filterfds[0] = [ 9 10 ]
D [18/May/2004:10:02:29 +0800] start_process("/usr/lib/cups/filter/pstops", 0xbffefbf0, 0xbffeef60, 8, 10, 7)
I [18/May/2004:10:02:29 +0800] Started filter /usr/lib/cups/filter/pstops (PID 13847) for job 9.
D [18/May/2004:10:02:29 +0800] ProcessIPPRequest: 5 status_code=0
E [18/May/2004:10:02:29 +0800] PID 13848 stopped with status 22!
D [18/May/2004:10:02:29 +0800] [Job 9] /usr/lib/cups/filter/foomatic-rip: No such file or directory
D [18/May/2004:10:02:29 +0800] [Job 9] Page = 612x792; 0,0 to 612,792
D [18/May/2004:10:02:29 +0800] [Job 9] slowcollate=0, slowduplex=0, sloworder=0
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%Creator: Gnome Print Version 2.6.1
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%CreationDate: D:20040518100229
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%LanguageLevel: 2
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%DocumentMedia: Regular 612 792 0 () ()
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%Orientation: Portrait
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%BoundingBox: 0 0 612 792
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%Pages: 1
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%PageOrder: Ascend
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%Title:
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%DocumentSuppliedResources: procset pnome-print-procs-2.6.1
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%+ font (GnomeUni-AndaleMono) cvn
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%+ font (GnomeUni-Verdana) cvn
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%Requirements: numcopies(1) duplex
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%EndComments
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%BeginDefaults
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%PageMedia: Regular
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%EndDefaults
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%BeginProlog
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%BeginResource: procset gnome-print-procs-2.6.1
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%EndResource
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%EndProlog
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%BeginSetup
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%BeginResource: font (GnomeUni-AndaleMono) cvn
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%EndResource
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%EndSetup
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%Page: 1 1
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%Page: 1 1
D [18/May/2004:10:02:29 +0800] [Job 9] pw = 612.0, pl = 792.0
D [18/May/2004:10:02:29 +0800] [Job 9] PageLeft = 0.0, PageRight = 612.0
D [18/May/2004:10:02:29 +0800] [Job 9] PageTop = 792.0, PageBottom = 0.0
D [18/May/2004:10:02:29 +0800] [Job 9] PageWidth = 612.0, PageLength = 792.0
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%PageResources: (atend)
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%PageTrailer
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%PageResources: procset gnome-print-procs-2.6.1
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%+ font (GnomeUni-AndaleMono) cvn
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%+ font (GnomeUni-Verdana) cvn
D [18/May/2004:10:02:29 +0800] [Job 9] 0 %%Trailer
D [18/May/2004:10:02:29 +0800] [Job 9] Saw Trailer!
D [18/May/2004:10:02:29 +0800] [Job 9] Saw EOF!
D [18/May/2004:10:02:30 +0800] UpdateJob: job 9, file 0 is complete.
D [18/May/2004:10:02:30 +0800] CancelJob: id = 9
D [18/May/2004:10:02:30 +0800] StopJob: id = 9, force = 0
D [18/May/2004:10:02:30 +0800] StopJob: printer state is 3
D [18/May/2004:10:02:42 +0800] AcceptClient() 6 from localhost:631.
D [18/May/2004:10:02:42 +0800] ReadClient() 6 GET /printers/LexmarkE210 HTTP/1.1
D [18/May/2004:10:02:42 +0800] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID = 13851
I [18/May/2004:10:02:42 +0800] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=13851)
D [18/May/2004:10:02:42 +0800] SendCommand() 6 file=9
D [18/May/2004:10:02:43 +0800] AcceptClient() 8 from localhost:631.
D [18/May/2004:10:02:43 +0800] AcceptClient() 10 from localhost:631.
D [18/May/2004:10:02:43 +0800] ReadClient() 8 POST / HTTP/1.1
D [18/May/2004:10:02:43 +0800] ProcessIPPRequest: 8 status_code=0
D [18/May/2004:10:02:43 +0800] ReadClient() 10 GET /cups.css HTTP/1.1
D [18/May/2004:10:02:43 +0800] SendFile() 10 file=11
D [18/May/2004:10:02:43 +0800] ReadClient() 8 POST / HTTP/1.1
D [18/May/2004:10:02:43 +0800] ProcessIPPRequest: 8 status_code=1
D [18/May/2004:10:02:43 +0800] ReadClient() 8 POST / HTTP/1.1
D [18/May/2004:10:02:44 +0800] ProcessIPPRequest: 8 status_code=1
D [18/May/2004:10:02:44 +0800] ReadClient() 10 GET /images/navbar.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 10 file=11
D [18/May/2004:10:02:44 +0800] ReadClient() 10 GET /images/left.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 10 file=11
D [18/May/2004:10:02:44 +0800] CloseClient() 8
D [18/May/2004:10:02:44 +0800] ReadClient() 6 GET /images/right.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 6 file=8
D [18/May/2004:10:02:44 +0800] ReadClient() 10 GET /images/printer-idle.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 10 file=9
D [18/May/2004:10:02:44 +0800] ReadClient() 6 GET /images/print-test-page.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 6 file=8
D [18/May/2004:10:02:44 +0800] ReadClient() 10 GET /images/stop-printer.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 10 file=8
D [18/May/2004:10:02:44 +0800] ReadClient() 6 GET /images/reject-jobs.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 6 file=8
D [18/May/2004:10:02:44 +0800] ReadClient() 10 GET /images/modify-printer.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 10 file=8
D [18/May/2004:10:02:44 +0800] ReadClient() 6 GET /images/config-printer.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 6 file=8
D [18/May/2004:10:02:44 +0800] ReadClient() 10 GET /images/delete-printer.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 10 file=8
D [18/May/2004:10:02:44 +0800] ReadClient() 6 GET /images/add-printer.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 6 file=8
D [18/May/2004:10:02:44 +0800] ReadClient() 10 GET /images/show-completed.gif HTTP/1.1
D [18/May/2004:10:02:44 +0800] SendFile() 10 file=8
D [18/May/2004:10:03:53 +0800] CloseClient() 6
D [18/May/2004:10:03:53 +0800] CloseClient() 10

_________________
Knowledge is a process of piling up facts; wisdom lies in their simplification. [Martin Fischer]


Last edited by KristyX on Tue May 18, 2004 7:04 am; edited 2 times in total
Back to top
View user's profile Send private message
OldCat
n00b
n00b


Joined: 10 Sep 2003
Posts: 30
Location: New Zealand

PostPosted: Tue May 18, 2004 2:54 am    Post subject: Reply with quote

I have basically the same set up and it works great. The difference I have in the config file is in the DeviceURI. I do not have the Domain/Workgroup Name listed, since samba already knows about it. So, just use the machine name and share name.

Code:
DeviceURI smb://MELODY/LEXMARK


Hope it helps.
Back to top
View user's profile Send private message
KristyX
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 206
Location: Malaysia

PostPosted: Tue May 18, 2004 4:48 am    Post subject: Reply with quote

Thanks for replying! :D

I made the change to printer.conf but it still isn't printing :?

Just to double-check, I don't have to add anything about the printer
the Samba's Config file (smb.conf) right? (I know, it sounds unrelated
but I was just wondering..)

Also, are there any special groups that user has to be part of to be
able to print?


Thanks,
Kristy
_________________
Knowledge is a process of piling up facts; wisdom lies in their simplification. [Martin Fischer]
Back to top
View user's profile Send private message
KristyX
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 206
Location: Malaysia

PostPosted: Tue May 18, 2004 5:15 am    Post subject: Reply with quote

One more thing.. I'm not sure what's different but now, the jobs under CUPS's completed jobs shows that the new jobs are being aborted.

The files I tried printing earlier today however show that they were "completed" (it didn't happen btw.. the lexmark didn't even "warm up" heh)

Code:

LexmarkE210-1     Unknown     kristy      534k       completed at
Tue 18 May 2004 09:30:04 AM MYT

LexmarkE210-6     Unknown     kristy     534k     completed at
Tue 18 May 2004 09:31:18 AM MYT     

...

LexmarkE210-7          Test Page      root     1     5k     aborted     
LexmarkE210-8          Test Page      root          15k     aborted     
LexmarkE210-9          Unknown      kristy     534k     aborted     
LexmarkE210-10     Unknown     kristy     534k     aborted     
LexmarkE210-11     kristy.txt        root         1k     aborted     
LexmarkE210-12     Unknown     kristy     534k     aborted     
LexmarkE210-13     Unknown     kristy     528k     aborted     
LexmarkE210-14     Unknown     kristy     528k     aborted     

_________________
Knowledge is a process of piling up facts; wisdom lies in their simplification. [Martin Fischer]
Back to top
View user's profile Send private message
KristyX
Apprentice
Apprentice


Joined: 18 Dec 2003
Posts: 206
Location: Malaysia

PostPosted: Tue May 18, 2004 6:40 am    Post subject: Reply with quote

YAY!!!! I found the problem!!!

I was going through the CUPS documentation and under the Troubleshooting section there was a "telling" example of what was wrong with the sample guy's printer.. so the exercise was to look at the logs and see if you can spot it.

Since it was relatively easy, I saw the error. And that's when I thought that I should try going through my own error log line by line (I had done it earlier.. but had no idea what I was looking for)

And that's when, by God's Grace, I found the culprit:

Code:
D [18/May/2004:10:02:29 +0800] [Job 9] /usr/lib/cups/filter/foomatic-rip: No such file or directory


So, I got the foomatic script from LinuxPrinting.org, dumped it inside /usr/lib/cups/filter, chmod 755 and restarted CUPS.

And that was it! It worked like a blessing :D

Thank you so much for your help!
~Kristy
_________________
Knowledge is a process of piling up facts; wisdom lies in their simplification. [Martin Fischer]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum