LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2005, 04:53 PM   #1
1337_penguin
Member
 
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Rep: Reputation: 15
Printing via SAMBA to Windows box


Hi

I am trying to configure my box (running Slackware 10.0 - hostname: googolplex) to print via SAMBA to a Lexmark X5100 (share name: lexmark) which is connected to a Windows XP box (hostname: decentinator; both on 'inators' workgroup). SAMBA is configured and running and I am able to view shares from either machine on the other one, and when attempting to configure printing via SWAT, 'lexmark' showed up in the list from /etc/printcap

I followed these instructions, to no avail. I then tried configuring CUPS via the web-based interface, with the following settings:

Code:
Name: lexmark
Location: smb://decentinator/lexmark
Device: Windows printer via SAMBA
Device URI: smb://decentinator/lexmark
but whenever I try to print, I get an error along the lines of
this.

A step-by-step guide to configuring this would be very much appreciated.

Thanks in advance.

1337_penguin
 
Old 12-28-2005, 11:40 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i think those first instructions are too old (9 years old)
best use cups
is cups running ?
show output from
ps -C cupsd
show output from
ps -C lpd
you can't run LPRng printserver and cupsd at the same time -- they get in an argument. But you need to run one or the other (start at boot ?).

that error message is saying no print server is accepting the connection.
 
Old 12-28-2005, 11:43 PM   #3
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
Type localhost:631 in Firefox to see if you have cups
 
Old 12-29-2005, 06:53 AM   #4
1337_penguin
Member
 
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Original Poster
Rep: Reputation: 15
Code:
[ownage@googolplex ~]$ ps -C cupsd
  PID TTY          TIME CMD
  570 ?        00:00:01 cupsd
[ownage@googolplex ~]$ ps -C lpd
  PID TTY          TIME CMD
[ownage@googolplex ~]$
Cupsd is running, and lpd isn't. Whilst configuring it via localhost:631, with the settings described in my previous post, I noticed that the specific model wasn't listed, but I read on http://linuxprinting.org that apparently the Z55 drivers are compatible.

Here are the contents of my /etc/printcap:

Code:
# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file.  All changes to this file
# will be lost.
LEXMARK|LEXMARK:rm=googolplex:rp=LEXMARK:
1337_penguin
 
Old 01-11-2006, 12:53 PM   #5
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
It seems you are doing everything right...perhaps it is a firewall problem.

Keep up updated,
Murdock
 
Old 01-11-2006, 03:08 PM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
the confusing thing is
cannot open connection to "localhost"
like it's a loopback problem possibly with the name localhost itself
show us
/etc/hosts
 
Old 01-12-2006, 04:52 PM   #7
1337_penguin
Member
 
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Original Poster
Rep: Reputation: 15
Hi

I've managed to solve the 'connection refused' problem, it turned out that, although the CUPS daemon was running, the KDE printing thing was configured to use lpr (which wasn't, hence the error).

I did manage to get a response from the printer, using the Z53 driver (ie. it clunked, then stopped and the percentage counter on the Lexmark driver on my Windows box crept up to 100%) The fact that it responds seems to suggest a driver issue, however I haven't got round to installing RPM on my system (as Lexmark only seem to provide the drivers as RPM binaries!)

In the meantime I'm currently using an Epson Stylus Colour 640 which I had laying around, which seems to work.

1337_penguin
 
Old 01-13-2006, 03:55 AM   #8
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
try rpm2tgz

convert rpms to tgz format
 
Old 01-14-2006, 09:27 AM   #9
1337_penguin
Member
 
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Original Poster
Rep: Reputation: 15
I made the tarballs with rpm2tgz and installed them. I then modified the printer 'LEXMARK', keeping the same setting but just changing the driver to Lexmark Z55. When I try to print, there are no errors, but the KDE print manager just shows the job as 'processing' indefinitely and the job never appears on my Windows box.

1337_penguin
 
Old 01-14-2006, 09:38 AM   #10
1337_penguin
Member
 
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Original Poster
Rep: Reputation: 15
Update: I've just checked the CUPS web admin thing and under the status it says "Cannot process raster"

1337_penguin
 
Old 01-14-2006, 11:50 AM   #11
1337_penguin
Member
 
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Original Poster
Rep: Reputation: 15
I found on another forum that I needed to install Ghostscript, I downloaded and compiled it. I then did
Code:
ps -C gs
and found it was already running (possibly an old version?), so I killed it and then did
Code:
# /usr/bin/gs
to get it running again, but got the following error:

Code:
[root@googolplex ~]# /usr/bin/gs
ESP Ghostscript 7.07 (2003-07-12)
Copyright 2003 artofcode LLC and Easy Software Products, all rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
ESP Ghostscript 7.07.1: Cannot open X display `(null)'.
**** Unable to open the initial device, quitting.
[root@googolplex ~]#
1337_penguin
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing from a Windows box to Samba gblasius Linux - Newbie 2 10-03-2005 03:05 AM
How to set up printing to Windows box? Micro420 Ubuntu 4 08-19-2005 03:24 PM
printing to windows box using samba? snakeo2 Linux - Newbie 9 02-26-2005 06:06 AM
printing from a remote windows box LovelyJunna Linux - Newbie 0 03-26-2004 03:39 PM
SMB Printing to a Windows Box scottpioso Linux - Hardware 2 01-12-2003 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration