LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2010, 06:06 AM   #1
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
Sharing printer between 2 Linux boxes


I have a printer connected to one PC running slackware. The printer is set up to be shared through Samba and I can print to it from my Windows laptop.
I would however like to use that printer from another Linux machine (running Ubuntu).

Do I need to go through Samba to do this or is there a better way with it being linux-linux?

Everything I've found on google relates to going from Linux to Windows unfortunately.
 
Old 11-09-2010, 08:26 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
Quote:
Do I need to go through Samba to do this or is there a better way with it being linux-linux?
There is a better way. On the second machine ( client ) install cups. In cups add the printer. On my network, linux boxes find the cups share, I don't have to do anything. Could not be easier.

I believe you need the print driver on the client though.
 
Old 11-09-2010, 12:13 PM   #3
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Original Poster
Rep: Reputation: 120Reputation: 120
Do I have to do anything special in the setup on the machine which has the printer installed on it?
 
Old 11-09-2010, 12:20 PM   #4
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
No, as long as the printer prints locally, you are good to go. Like any network program, I would suggest you have an updated /etc/hosts file. But beyond that, nothing. Just in case you are not familiar with /etc/hosts file, here is a sample.

Quote:
cat /etc/hosts
# generated by drakhosts
127.0.0.1 duelie localhost
192.168.1.22 Presto presto
192.168.1.23 snail snail
You list each systems IP address, followed by the hostname, and alias host name. If you are using samba, it will work much better with this up to date as well.
 
Old 11-09-2010, 08:28 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I found an article on the Arch wiki that describes how to share a printer on a Linux host to another Linux printer.
 
Old 11-09-2010, 08:40 PM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You'd usually set up a printer (any printer) using CUPS on the Linux side. And, since CUPS is network-aware, you probably don't need to do anything more to share two printers Linux::Linux:

http://www.ehow.com/how_5107960_add-...ter-linux.html

STRONG SUGGESTION:

Try CUPS first.

But don't hesitate to fall back on CUPS::Samba if you need to. And feel free to go back and try CUPS-only once you get CUPS::Samba working.

Because (as you've already noticed), it's the more common scenario. Consequently, you're likelier to get help with the CUPS::Samba scenario than with CUPS::CUPS.


PS:
Do they still have 4,000 holes in Blackburn, Lancashire ?

Last edited by paulsm4; 11-09-2010 at 10:38 PM.
 
  


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
Sharing DVD between 2 Linux boxes vesperatus Linux - Networking 2 12-16-2008 12:17 PM
SAMBA on Slackware 12.1 sharing a CUPS printer to XP boxes: Help please? skelter42 Linux - Server 1 05-15-2008 04:59 PM
sharing a printer for windows boxes neronas Linux - Networking 1 01-18-2006 10:01 AM
Sharing Folders between Linux Boxes JCScoobyRS Linux - Networking 2 03-25-2004 02:41 PM
Printer Sharing RH9 Boxes Not Working geogecko Linux - Networking 1 12-18-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:18 AM.

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