LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Two PC's, One Printer or How to Share (https://www.linuxquestions.org/questions/slackware-14/two-pcs-one-printer-or-how-to-share-208386/)

s1102879 07-22-2004 02:02 PM

Two PC's, One Printer or How to Share
 
I have two pc's running slackware 10.0. The printer (HP DeskJet 970Cxi) is connected to pc "B" via usb cable (and is able to print). Pc "A" is connected to B via crossover cable (I can ping one from the other). How do I go about getting PC "A" to print on the DeskJet. I have tried many of the settings in "print manager" w/ no luck. I'm assuming there is an easy way that I'm just ignorant of.

Thanks in advance for any help.

keefaz 07-22-2004 02:07 PM

Use one PC as printserver, configure cupsd in both machines but on the second, point it to first pc ip adress.

s1102879 07-22-2004 02:12 PM

^^ I'll give that a shot today and let you know how things turn out (have never configured cupsd). Thanks!

s1102879 07-28-2004 10:33 AM

Well, I thought I had it. It looked sooo easy....right.

Here's what I get when I try to print: FORBIDDEN you don't have permission to access the resource on this server.

I'm logged in a root on both machines.

I have the pc not connected directly to the printer setup like this. http://192.168.0.61:631/printers/hp970cxi (the ip being that of the other machine that is directly connected.

Help!

Cedrik 07-28-2004 10:54 AM

It may help if you have any experience with configure httpd.conf from apache server because the cupsd.conf has similar syntax.

Edit /etc/cups/cupsd.conf and change :
Code:

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

to :
Code:

<Location />
Order Deny,Allow
Deny From All
Allow From 192.168.0.61/24
</Location>

Note that is just for try, you may want to fine tune your cupsd.conf after that, say allow access for just a printer (and not /), look at commented examples in cupsd.conf.

PS: the / for cupsd is not the same as / for your filesystem

s1102879 07-28-2004 01:23 PM

I did that ^^ and then started looking through the graphical interface for CUPS. I can see where those changes took place and a lot of other things I can set.

Once I got it set up on "B" correctly the printer showed up on "A" in the CUPS "setup" screen (i forget the exact name).

I think it's working now. They are going to print something while they are in thier "normal operating mode" and call me. I'll post my victory or defeat.

s1102879 07-29-2004 01:43 PM

YAHOOOO!!!! It's alive, aliiiiiiiiiivvvvvvvvvveeee!

Thanks for all your sugestions.

johnwr 08-23-2004 08:18 PM

Sharing one printer between 2 PC's
 
Assuning that you only want to share the printer, and not files, try a Belkin 2POS Auto Switch, it needs appropriate cables (DB 25MM); the whole thing cost me $60 total. Switch sits between the 2 PC's and effectively allows each to send a print command to the printer. I had to mail order the Switch but it only took several days to arrive and was up and running in minutes.

Good luck!


All times are GMT -5. The time now is 09:32 AM.