LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-03-2007, 07:15 AM   #1
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Samba: Printer works for Windows, but not for Linux


Hi,

I have a funny problem regarding printer usage in a local network.
I'm using Samba and Cups. Network Shares are working fine, printing is also possible for the Windows Clients in the network. But there's one Linux client which can't find the printer over the network.

The Server is running Ubuntu Server, the client Suse 10.2.

I would be very thankful for any help.
 
Old 04-03-2007, 09:11 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Linux to linux printing is different than windoze to linux printing. You do not need samba to print linux to linux. You could probrbly get that to work, but it is totally unnecessary, and is too complicated.

For linux to linux, install cups on both systems. Get local printing working on the print server. On the client, open the cups web interface with http://localhost:631 and log in as the administrator.

Add the remote printer. The only difficult part is the device URI. As long as you have IP connectivity, the device URI will look like this:

Code:
ipp://192.168.1.21/printers/4039
O.K. the IP address is the IP address of the linux print server, the word 'printers' has to be there, it took me a lot of time to find that out; its in the cups doc, and the last field is the name of the printer on the server.
Use the same print driver on the client as the server. That is it, it should print.
 
Old 04-04-2007, 03:38 AM   #3
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Original Poster
Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
So, now this sounds quite easy. My only problem now is probably quite easy to solve, but I just don't know how to do it.
When I'm trying to access the web interface I get an error, saying :Could not connect to host localhost (port 631).
Apache is running and accessible, local on the server and also via network.

I guess there's some package missing, but I couldn't figure out which.

(Ubuntu Server 6.06)
 
Old 04-04-2007, 05:06 AM   #4
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Arch
Posts: 401

Rep: Reputation: 22
Did you use http://localhost:631 on the client or the server?
Should be the client.
And Apache dont have to be running the, think cups has its own 'server'

Last edited by Basher52; 04-04-2007 at 05:12 AM.
 
Old 04-04-2007, 06:20 AM   #5
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Original Poster
Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
OK, it does work on the client, but not on the server (though I don't know, if that's important anyway).
However I can't add the printer, because I get asked for username and password for the server, and none does work. Also auto-finding via network (using Yast) hasn't worked in the past.

BTW, that apache thing was not meant to have anything to do with cups itself, just wanted to state that there's something there accessible local and over network.
 
Old 04-04-2007, 06:40 AM   #6
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Original Poster
Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
I now have made an experience, which will probably decrease the error-possibilities:
I tried to add the printer on my laptop (running Slackware 10.2). My laptop is finding it without problems, I just do not have any driver to actually use the printer, but even finding was not successful in SuSE.
So I tried again, and got an error message saying that the connection to the cups server failed and that something with searching for IPP had failed somehow.
So I checked if cups is running, but Yast said all cups services are running and also the webinterface is accesible.

So what can I do to make cups running on SuSE as smoothly as on Slackware?
 
Old 04-04-2007, 08:36 AM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
However I can't add the printer, because I get asked for username and password for the server
If you are on the client, it is asking for the password for the Admin on the client, not the server. You don't get asked for the server password on the web interface, unless you used the IP address of the server when you connect to port 631.

Quote:
I just do not have any driver to actually use the printer
What printer is it? Make and model. When cups is installed you also install a lot of drivers. Go here --> http://www.linux-foundation.org/en/OpenPrinting to see if your printer has a known working driver.

Post back the printer information if you can not find one.
 
Old 04-05-2007, 06:13 AM   #8
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Original Poster
Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Quote:
If you are on the client, it is asking for the password for the Admin on the client, not the server.
I'm configuring the printer already as root. Asking for the root-password again doesn't make sense, or do you mean something different?
However, somehow I don't get asked for it today (strange behavior, SuSE?).

Quote:
What printer is it? Make and model. When cups is installed you also install a lot of drivers. Go here --> http://www.linux-foundation.org/en/OpenPrinting to see if your printer has a known working driver.
Sorry, you missunderstood me. I have a working driver for the printer (HP LaserJet 1022). It was just not installed on my laptop, when I tested if I could connect to the printer on Slackware.

My problem is that, as I've written before, the printer is accessible from Windows clients. I can also print directly from the server, which is Ubuntu 6.06, and my Laptop is findig the printer without problems, so I guess, if I had a driver installed, printing would also be fine.
There's just a hell lot of errors on the SuSE machine (Have I mentioned that I dislike SuSE?).
SuSE has some problems initializing cups, and does not find the printer on the network.
 
Old 04-05-2007, 09:20 AM   #9
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
I'm configuring the printer already as root. Asking for the root-password again doesn't make sense, or do you mean something different?
On the client, you open a web browser, and http://locahost:631 , you get a web page, the top option is "Do Admin Tasks" click that, you will be prompted for a user and password. You can log there as root or admin and provide the correct password. Then you can add the printer.

Have you gone through the printer add on the client, added the printer on the client, and specified the correct driver on the client?

I do not use Suse, so am unfamiliar with any Cups issues on Suse. Have a look on the client to see if cupsd is running. On a konsole enter 'ps aux | grep cupsd' and see if the process is listed.
 
Old 04-06-2007, 03:59 AM   #10
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Original Poster
Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
Ha, I'm getting closer to the solution.

I've now added the printer via the cups backend, and the same printer, just with another name, via kdeprint.
When I'm trying to print a test page, I get an error saying "/usr/lib/cups/backend/ipp failed".

That is probably the cause, but I have no solution how to solve this!
 
Old 04-06-2007, 05:40 AM   #11
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Go back and re-read post number two, you don't have the IPP set up correctly.
 
Old 04-06-2007, 06:28 AM   #12
1kyle
Member
 
Registered: Feb 2004
Location: 'Ol Blighty
Distribution: SLED 10, SUSE 10.3
Posts: 722

Rep: Reputation: 32
I've had trouble with this in the past. I had a Windows Virtual machine on a laptop running SUSE --where the Windows Virtual guest machine had no trouble printing to the remote printer running on another SUSE machine.

The HOST however couldn't print.

Finally got it worked out.

On remote machine IP address is 192.168.2.3

For Cups on the laptop to access the printer

device URI is

192.168.2.3:631/printers/stylusphoto1290

(a common mistake here is to forget the :631 in the IP address).

where stylusphoto1290 is the name of the remote printer.

To get it to work initially switch off all firewalls and use the same user name with the same password on the laptop as the remote Linux machine. This stops things like user accounts / password problems interfering with the intial process.

Now just do Print test page.

Should work fine.

If your printer hasn't been installed CUPS will present a reasonable selection of printers to install.

If you can access the remote machine physically at the same time you can look at the printer queue to see if the job as reached the remote printer.

on the remote machine point a browser to localhost:631 and go to the admin screen.

Cheers

-K

Last edited by 1kyle; 04-06-2007 at 06:30 AM.
 
Old 04-07-2007, 10:19 AM   #13
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Original Poster
Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
camorri wrote:
Quote:
Go back and re-read post number two, you don't have the IPP set up correctly.
Do you mean the setup on the Client, or the setup on the server?

1kyle wrote:
Quote:
If you can access the remote machine physically at the same time you can look at the printer queue to see if the job as reached the remote printer.

on the remote machine point a browser to localhost:631 and go to the admin screen.
At least this one is impossible to me, at this point, as I've written before, I do not have any web interface to cups on the server-side. But thanks for the tip, I'll try it with the kdeprint interface.
 
Old 04-07-2007, 11:54 AM   #14
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:

camorri wrote:
Quote:
Go back and re-read post number two, you don't have the IPP set up correctly.

Do you mean the setup on the Client, or the setup on the server?
The client.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba works with one windows computer, but not the other? MiniMe001 Linux - Networking 1 09-16-2006 05:39 PM
Samba (printing from linux to a windows printer) gingins Linux - Networking 1 04-26-2005 11:05 PM
Problems sharing the printer on Linux via Samba to Windows computers melao SUSE / openSUSE 25 03-22-2005 09:37 AM
Samba Works, Windows can access Linux Side but ............ srikz Red Hat 10 12-02-2003 09:24 AM
printer works fine in windows but is slow under linux nef Linux - Hardware 4 09-28-2003 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:27 PM.

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