LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-27-2005, 08:16 PM   #1
eJavier
LQ Newbie
 
Registered: Sep 2004
Posts: 8

Rep: Reputation: 0
Connect Linux to printer on Another Linux


Hi

In short, I want to share a printer between 2 Debian computers.

I have a USB printer attached to my Debian PC and I have a notebook with Debian as well. I can connect those 2 computers in a LAN through a mini Router (D-Link). In the PC with the printer I have CUPS installed and working. I have also installed CUPS in the laptop

I want to print from my laptop to the USB printer without having to plug/unplug the USB cable. That is, I want to keep my printer connected to the PC, and from the laptop send a print job to the printer. Ideally this would mean 2 linux computers sharing a printer.


I that possible? I tried using CUPS but it didn't worked. Do I need to install SAMBA to do this??

Thanks in advance and best regards
Javier
 
Old 03-27-2005, 09:39 PM   #2
rocketo2000
LQ Newbie
 
Registered: Mar 2005
Location: Minnesota
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
you don't need samba. you just need to get cups configured correctly.

this is how i have mine setup:

The client cupsd.conf file is as follows:
LogLevel debug
Port 631

Browsing On
BrowseProtocols cups
BrowsePort 631

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>



The server cupsd.conf file is as follows:
LogLevel info
Port 631

Browsing On
BrowseProtocols cups
BrowseAddress @LOCAL
BrowsePort 631

<Location />
Order Deny,Allow
Deny From All
Allow From @LOCAL
</Location>

<Location /printers>
AuthClass Anonymous
AuthType None
Order Allow,Deny
Deny From All
Allow From @Local
</Location>

<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
 
Old 03-28-2005, 08:31 AM   #3
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
There is no need to install samba for that. Just login to the machine to which the printer is attached and try giving the print command. The .conf file provided above should work.

-Prasanta
 
Old 03-30-2005, 03:47 AM   #4
eJavier
LQ Newbie
 
Registered: Sep 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks a lot, I;m going to try what you said.
 
Old 03-30-2005, 03:48 AM   #5
eJavier
LQ Newbie
 
Registered: Sep 2004
Posts: 8

Original Poster
Rep: Reputation: 0
One more question, how do I add (in CUPS ) the printer in the client?
Which protocol should I use?
 
Old 03-30-2005, 09:04 AM   #6
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Go to your CUPS administration. Type

http://localhost:631/admin

which will ask for your root login and password. From there go to the Admin page wherein you can add your network printer. Hope the port number is right. By default it uses this port number.

-Prasanta

Last edited by prasanta; 03-30-2005 at 09:08 AM.
 
Old 03-30-2005, 10:42 PM   #7
eJavier
LQ Newbie
 
Registered: Sep 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Yes, I know how to access that on CUPS, I mean, which protocol should I choose for the printer? I guess I should choose LPR/LPD host or printer
 
  


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
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
deskject 3820 Printer on Windows machine not able to connect to from linux RedHat 9.0 bmfmyth Linux - Networking 10 07-04-2004 12:06 AM
Linux (Cups) printer visible to windows, invisible to linux boxes ? johnvoisey Linux - Networking 2 02-27-2004 02:57 AM
Asimple way to connect Windows XP Shared printer to Linux ikw38 Linux - Networking 3 06-21-2003 10:12 PM
Linux unable to connect to another Linux machine via Samba (SMB) Please help shassouneh Linux - Networking 4 03-11-2002 02:26 AM

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

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