LinuxQuestions.org
Visit Jeremy's Blog.
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 10-04-2010, 07:06 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
Question Share My Home Printer?


I recently acquired a Epson CX8400 & would like to connect it to my Arch Linux server in my office via USB. Both my wife and I use our laptops on the same network as the Arch Linux server and we use it as a file server (NFS & CIFS) so I really would like us to both be able to print to the Epson from both our laptops without having to directly connect it to our machines via USB.

Does anyone have any recommendations on how I can achieve what I am looking to do?

Thanks!
 
Old 10-04-2010, 08:24 PM   #2
travisray2004
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Rep: Reputation: 0
Have you tried CUPS?
 
Old 10-04-2010, 10:24 PM   #3
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 648

Rep: Reputation: 78
you will need Samba installed on your server

sudo pacman -S samba
 
Old 12-02-2010, 01:50 AM   #4
m.collingwood
LQ Newbie
 
Registered: Aug 2010
Location: Brisbane
Distribution: Debian/Lenny & Debian/Squeeze
Posts: 9

Rep: Reputation: 5
Wink I have tried CUPS

Quote:
Originally Posted by travisray2004 View Post
Have you tried CUPS?
I did try CUPS on my Debian/Lenny print server. I can print fine from the server itself - the test page pops out quite happily.

However trying to get any other machine to print to this printer (just a plain old HP DeskJet 810C - nothing particularly special) is like a nightmare. A got a nice friendly error message: "client-error-not-found" but I'm not really sure what it means? I guess it means I didn't get an error - well that's downright friendly of CUPS to tell me that.

I can install and configure web servers, SQL databases, samba to access my Vista machine (yep - no trouble at all), I even got Skype working with my logitech headset and ringing the PC speakers. I even managed to get Ekiga to handle my VOIP calls. I got backups working, IDE, php, and Putty. But do you think I can get CUPS to share a little of DeskJet.

I should be patient though - I mean this is all relatively new technology, we've only had the DeskJets around for 10-12 years, and people have only been printing from computers for 20-30 years, and Linux itself is only a trifling 30 years old - I can understand that I probably need to wait for these applications to mature to become more stable and robust. Probably best if I just get out my old typewriter and stop wasting so much paper. Better for the environment too.

Cheers
mc
 
Old 12-02-2010, 07:12 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,768

Rep: Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719
Do you have a printers section in your smb.conf file? I assume that samba server is installed and running. samba will automatically create shares for all printers. Install the drivers on the windows PCs and use the wizard to add the printer.

You might need to configure the cups.conf to allow other linux computers access. Once this is accomplished then your other computers (with cups running) will automatically add the servers printers.
 
Old 12-02-2010, 08:22 AM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,378

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
If the laptops are running Linux, then setup the CUPS server on your Arch Linux server to allow printer sharing. http://localhost:631/help/sharing.ht...#SERVER_CONFIG
If you are running a firewall on your server, you will need to allow both TCP and UDP traffic on the default CUPS port 631.

If the laptops are running Windows, then you will also need Samba. http://www.samba.org/samba/docs/man/...lprinting.html
 
Old 12-02-2010, 03:42 PM   #7
m.collingwood
LQ Newbie
 
Registered: Aug 2010
Location: Brisbane
Distribution: Debian/Lenny & Debian/Squeeze
Posts: 9

Rep: Reputation: 5
Okay - the message isn't getting through - you guys are all far too literal....

CUPS is not supporting the configuration of printer sharing adequately. If CUPS is purporting to manage printers it should handle all of the configuration necessary otherwise it's a waste of time piece of software doing a half baked job. I'm guessing since the client in this case is a Vista machine there was probably some Samba config necessary. My point is CUPS should be asking if the client is a Windows machine (or a Mac or an iPhone or whatever) and then check to see all of the necessary configuration is in place.

Similarly CUPS should understand special printer requirements also... there was one website I found where somebody had installed HPLIP in order to get their printer sharing and working. Again CUPS didn't tell me anything about this.

I'm sure CUPS is a good piece of software for doing what it's doing. But if it wants to be great it has to start being intelligent and consider other applications that may or may not be required.

Please don't try and fix my problem - I'm going to save myself hours and buy one of those network printer sharing boxes so that all of my computers can print directly to the printer without any sharing required.

Cheers
mc
 
Old 12-02-2010, 04:14 PM   #8
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,441
Blog Entries: 3

Rep: Reputation: 182Reputation: 182
Quote:
I'm sure CUPS is a good piece of software for doing what it's doing. But if it wants to be great it has to start being intelligent and consider other applications that may or may not be required.
I guess since it is open source you can do what ever you want to do with it I wish you luck.
The world would be better with out Microsoft.
 
Old 12-02-2010, 04:25 PM   #9
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,378

Rep: Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824Reputation: 824
My Murray, aren't we the sarcastic one! A pity that wit cannot be used to understand the problem instead.
Your problem is not with CUPS but with Samba. I have had Windows machines being able to add network printers using the Add Printer wizard for years. It does take some effort to configure CUPS and Samba to work together though.
The process is explained in full detail in the Samba documentation that I linked.
 
Old 12-02-2010, 04:32 PM   #10
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,062

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
another option i've used is a cups only option

if you have CUPS running on your computer you should be able to point your web browser (on the machine with the printer attached) at http://localhost:631/admin

check 'Share printers connected to this system' then 'Allow printing from the Internet', when asked type in your admin password

then click on 'printers', and then click on the printer you want to share
(eg: http://localhost:631/printers/Hewlet...aserJet-4-Plus)

then create a network printer with that address in windows, yes I have done that and make sure the driver is installed

edit: i noticed the cups option was partially mentioned earlier but no you don't need samba for this method

Last edited by frieza; 12-02-2010 at 04:34 PM.
 
Old 12-02-2010, 11:17 PM   #11
m.collingwood
LQ Newbie
 
Registered: Aug 2010
Location: Brisbane
Distribution: Debian/Lenny & Debian/Squeeze
Posts: 9

Rep: Reputation: 5
Hi Frieza

This was exactly what I thought too, and I did everything you suggested, then I got that really cool error message: "client-error-not-found" Don't you just love that one!

To everyone who is still reading...

I've spared no expense to purchase a D-Link DP-311P - a wireless print server that will plug directly into the printer and share it on the TCP/IP network - $20 on ebay. It comes with all the instructions to network with Windows but none for Linux - I think I can probably get it working though. So... my problem with sharing printers to Windows machines is now solved!!!

I would like to take this opportunity to thank you for reading my posts and I hope they made you laugh, even just a little.

Cheers
mc
 
Old 12-02-2010, 11:53 PM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,524
Blog Entries: 27

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Quote:
Originally Posted by m.collingwood View Post
I can install and configure web servers, SQL databases, samba to access my Vista machine (yep - no trouble at all), I even got Skype working with my logitech headset and ringing the PC speakers. I even managed to get Ekiga to handle my VOIP calls. I got backups working, IDE, php, and Putty. But do you think I can get CUPS to share a little of DeskJet.
I concur and have given up trying to print on a WXP-attached printer via Samba because it was taking too long to justify the desired benefit.

Last edited by catkin; 12-02-2010 at 11:56 PM. Reason: potential -> desired
 
Old 12-02-2010, 11:55 PM   #13
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,524
Blog Entries: 27

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Quote:
Originally Posted by m.collingwood View Post
CUPS should ...
It would be nice if it did but it doesn't; like it or not we start from the current situation and it is open to all of us (as already pointed out) to change it ...
 
  


Reply

Tags
cups, networking, printer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Could two distros share the same /home? Cultist Linux - General 13 08-05-2011 08:41 PM
CUPS printer will not share to windows client - printer does not have correct drivers Hotchips Linux - Server 2 07-22-2007 02:56 AM
share home boombastic Linux - Newbie 3 08-22-2004 10:04 AM
how do i share a printer, then connect to that printer? darklordzim Linux - Newbie 5 05-01-2004 08:38 AM
Share home directory cruella Linux - Newbie 4 01-22-2002 01:17 AM


All times are GMT -5. The time now is 08:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration