LinuxQuestions.org
Visit Jeremy's Blog.
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, 07:06 AM   #1
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 548

Rep: Reputation: 116Reputation: 116
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, 09:26 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,115

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
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, 01:13 PM   #3
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 548

Original Poster
Rep: Reputation: 116Reputation: 116
Do I have to do anything special in the setup on the machine which has the printer installed on it?
 
Old 11-09-2010, 01:20 PM   #4
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,115

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
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, 09:28 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,677
Blog Entries: 12

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
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, 09: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 11:38 PM.
 
  


Reply


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


All times are GMT -5. The time now is 12:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration