[SOLVED] Trying to share printer between 2 Linux machines
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
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.
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?
Last edited by norm.h; 01-08-2011 at 04:36 AM.
Reason: After thought
..."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?
Within the webinterface: http://localhost:631 in "Administration" or in "Printer" (don't know exactly) you'll find that.
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. .
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
Hi,
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'.
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?
Last edited by norm.h; 01-13-2011 at 05:24 AM.
Reason: typo
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
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
and use the command
Code:
/path_to_the_daemon/cupsd restart
but this may vary from distribution to distribution. Probably on your system
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.