Trying to share printer between 2 Linux machines
Two machines, each running Ubuntu 10.10.
Desktop is wired to the router, and laptop is wireless. Printer is an HP Photosmart C4400 All in One series, and is connected to the desktop via USB.Prints OK from desktop. I have CUPS set up on both machines, and the laptop can see the printer. Desktop firewall allows CUPS in on port 631. Printer properties are set to enabled and shared Desktop is set to publish printers, and laptop is set to show printers from other systems. Fine until I try to print from laptop, when print job is shown as sent, but printer remains idle. Another thing is that on the laptop, the "enabled" setting drops off. I think this must be a configuration issue, but cannot find an answer anywhere. File sharing set up using Nautilus works fine. |
Port 631 is the CUPS management port. It responds to http requests. Try this in your web browser.
Code:
http://localhost:631 Code:
http://localhost:631/help/network.html Code:
http://www.cups.org/documentation.php/network.html |
Hello,
Quote:
Markus |
Many thanks to markrush and stress junkie.
I'll have have a play with your suggestions, but it's not easy to get unrestricted access to both PC's at the same time, so may not be till after the weekend. Please bear with me. "Did you add the user to the persons who are allowed to print (on the laptop)?" I'm running both machines with full permissions. Where would I do that? |
Quote:
Markus |
Do you mean the bit about Classes?
|
No, this has nothing to do with classes, I'll check it out when I'm at home.
Markus |
1 Attachment(s)
Here a screenshot, the button for the allowed users is on the righthand side near the bottom.
Markus |
Thanks for that, but when I go to that page, it only shows the printer details and none of the other options are there.
Also, my page isn't coloured, and I notice that my Cups version is 1.4.4.6, whereas yours is 1.3.11. I can't find the options yours shows, on any page in my Cups EDIT: Good news, it works. The only thing I did was set the firewall on the laptop to allow port 631 in and out. I'd already allowed 631 "in" on the desktop (server) Thanks for the interest and help SECOND EDIT: It's not right, so I'll have to do more head scratching. THIRD EDIT: Now OK, printed two test pages and two pages from Open Office, but please don't ask what I did. Beyond the above, I just had several go's at adding the printer. . |
Quote:
You're using the newer version of CUPS which can be quite confusing at first because of the differences. Go to: Administration -> Manage Printers -> Click your printer -> Administration DROPBOX -> Set Allowed Users Provide the user(s) for which you want to allow printing. All the other options are there as well, in the menu when clicking on the Administration 'button'. Kind regards, Eric |
Many thanks for that.
I didn't have to do anything like that to get it to work (see previous post), but the information is very useful, and |I'll reference it for the future N |
Only one thing doesn't seem quite right.
There's a time lag of up to 4 minutes between switching on, and the laptop "seeing" the printer. After that, everything works OK. Is this a CUPS thing, or a Ubuntu issue, and can it be improved? If so, how? |
I think you'll have to restart the cupsd-daemon on the laptop, then it will instantly recognized the printer.
Markus |
By the time I'd faffed around trying various commands, the laptop had found the printer.
What is the correct command, and would I have to do that every time? N |
Hello,
the cupsd daemon "looks" for new printers in the network in periodic intervals of time. I don't know if one can change this intervals to very short (which means that cupsd finds the new printer almost instanly). I think you'll have to read the documentation. In order to restart the daemon, you'll have to locate the program Code:
whereis cupsd Code:
/path_to_the_daemon/cupsd restart Code:
/etc/init.d/cupsd restart |
All times are GMT -5. The time now is 10:59 AM. |