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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-28-2005, 04:53 PM
|
#1
|
Member
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73
Rep:
|
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
|
|
|
12-28-2005, 11:40 PM
|
#2
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
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.
|
|
|
12-28-2005, 11:43 PM
|
#3
|
Member
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Rep:
|
Type localhost:631 in Firefox to see if you have cups
|
|
|
12-29-2005, 06:53 AM
|
#4
|
Member
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73
Original Poster
Rep:
|
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
|
|
|
01-11-2006, 12:53 PM
|
#5
|
Member
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Rep:
|
It seems you are doing everything right...perhaps it is a firewall problem.
Keep up updated,
Murdock
|
|
|
01-11-2006, 03:08 PM
|
#6
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
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
|
|
|
01-12-2006, 04:52 PM
|
#7
|
Member
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73
Original Poster
Rep:
|
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
|
|
|
01-13-2006, 03:55 AM
|
#8
|
Member
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Rep:
|
try rpm2tgz
convert rpms to tgz format
|
|
|
01-14-2006, 09:27 AM
|
#9
|
Member
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73
Original Poster
Rep:
|
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
|
|
|
01-14-2006, 09:38 AM
|
#10
|
Member
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73
Original Poster
Rep:
|
Update: I've just checked the CUPS web admin thing and under the status it says "Cannot process raster"
1337_penguin
|
|
|
01-14-2006, 11:50 AM
|
#11
|
Member
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73
Original Poster
Rep:
|
I found on another forum that I needed to install Ghostscript, I downloaded and compiled it. I then did
and found it was already running (possibly an old version?), so I killed it and then did
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
|
|
|
All times are GMT -5. The time now is 06:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|