LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2011, 12:55 PM   #1
norm.h
Member
 
Registered: Aug 2008
Location: Oxfordshire UK
Posts: 66

Rep: Reputation: 15
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.
 
Old 01-07-2011, 05:00 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Port 631 is the CUPS management port. It responds to http requests. Try this in your web browser.
Code:
http://localhost:631
Once you have done that then check this in your web browser.
Code:
http://localhost:631/help/network.html
If that doesn't work then try this in your web browser.
Code:
http://www.cups.org/documentation.php/network.html
According to that manual page the printer access port should be 9100.

Last edited by stress_junkie; 01-07-2011 at 05:03 PM.
 
Old 01-07-2011, 05:23 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello,
Quote:
Originally Posted by norm.h View Post
...until I try to print from laptop, when print job is shown as sent, but printer remains idle...
Did you add the user to the persons who are allowed to print (on the laptop)?

Markus
 
Old 01-08-2011, 04:33 AM   #4
norm.h
Member
 
Registered: Aug 2008
Location: Oxfordshire UK
Posts: 66

Original Poster
Rep: Reputation: 15
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
 
Old 01-08-2011, 04:55 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by norm.h View Post
..."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.

Markus
 
Old 01-08-2011, 10:11 AM   #6
norm.h
Member
 
Registered: Aug 2008
Location: Oxfordshire UK
Posts: 66

Original Poster
Rep: Reputation: 15
Do you mean the bit about Classes?
 
Old 01-08-2011, 10:48 AM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
No, this has nothing to do with classes, I'll check it out when I'm at home.

Markus
 
Old 01-08-2011, 03:12 PM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Here a screenshot, the button for the allowed users is on the righthand side near the bottom.

Markus
Attached Thumbnails
Click image for larger version

Name:	cups.jpg
Views:	15
Size:	206.5 KB
ID:	5794  
 
Old 01-09-2011, 04:49 AM   #9
norm.h
Member
 
Registered: Aug 2008
Location: Oxfordshire UK
Posts: 66

Original Poster
Rep: Reputation: 15
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. .

Last edited by norm.h; 01-09-2011 at 05:56 AM.
 
Old 01-09-2011, 05:01 AM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by norm.h View Post
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'.

Kind regards,

Eric
 
Old 01-09-2011, 07:36 AM   #11
norm.h
Member
 
Registered: Aug 2008
Location: Oxfordshire UK
Posts: 66

Original Poster
Rep: Reputation: 15
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
 
Old 01-13-2011, 05:23 AM   #12
norm.h
Member
 
Registered: Aug 2008
Location: Oxfordshire UK
Posts: 66

Original Poster
Rep: Reputation: 15
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
 
Old 01-13-2011, 05:45 AM   #13
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
I think you'll have to restart the cupsd-daemon on the laptop, then it will instantly recognized the printer.

Markus
 
Old 01-13-2011, 10:16 AM   #14
norm.h
Member
 
Registered: Aug 2008
Location: Oxfordshire UK
Posts: 66

Original Poster
Rep: Reputation: 15
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
 
Old 01-13-2011, 10:28 AM   #15
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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
and use the command
Code:
/path_to_the_daemon/cupsd restart
but this may vary from distribution to distribution. Probably on your system
Code:
/etc/init.d/cupsd restart
Markus
 
  


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
how do i share a printer that is connected to my machine with other machines baronobeefdip Linux - Hardware 6 09-22-2009 06:12 PM
trying to share a printer between 2 windoze machines? asif2k General 1 07-22-2006 02:29 AM
How can I share my printer with Windows machines? unzari Fedora 1 07-21-2005 05:18 PM
how to share files between two linux machines mchitrakar Linux - Newbie 4 08-12-2004 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:41 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