RE: [gentoo-user] Re: Re: Home Network Printing

2005-12-01 Thread Michael Kintzios


 -Original Message-
 From: John Jolet [mailto:[EMAIL PROTECTED] 
 Sent: 30 November 2005 20:14
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Re: Re: Home Network Printing
 
 one way you can do this is use the features of cups...for instance,  
 my macintosh has a laser printer attached: the cupsd.conf sys this:  
 Port 631, Listen /private/var/run/cupsd, BrowseAddress @LOCAL,  
 BrowseShortNames No, BrowseAllow @LOCAL, BrowseDeny ALL  and later
 Location /
 Order Deny,Allow
 Deny From All
 Allow From @LOCAL
 Allow from 192.168.1.51
 /Location
 
 all this allows all machines on the same subnet as my mac 
 (@LOCAL) to  
 browse the list of printers and allows all from the local subnet to  
 print, well, i've also explicitly allowed my laptop access.
 
 on the laptop, I also have Port 631, and not much else. I have NO  
 printers configured in my laptop...default gentoo install.  when i'm  
 on the net, it gets the broadcast from the mac and I can 
 print...when  
 i'm not, i have no printers at all.

Thanks John,

Let me understand this right:  Have you installed cups on the laptop?
Any printer drivers?  When you run localhost:631 in a browser on your
laptop, what do you see under printers when the laptop is connected to
the mac and what when it's not?  (assuming you restart cupsd on each
case to refresh its status).

PS. An OT question - I am really curious what is the default mac
firewall settings.  Can you please post the output of: # iptables -L -v
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: RE: Home Network Printing

2005-12-01 Thread Mick
Richard Fish wrote:

 First, let me say that I don't have this setup, but based on
 /usr/share/doc/cups-1.1.23-r4/html/ipp.pdf, you should have something
 like:
 
 ipp://192.168.0.3/printers/Compaq-HP

Wey-hey! It WORKS! :-D

Thanks Richard, thank you all.  The mistake was with me missing out
the /printers/ part of the address.  Hmm, perhaps the Example given on the
gui needs improving?

Last question and then I'll be good to print until I run out of money to pay
for the *extremely expensive* HP ink ;-)

What rule should I add to the firewall on the server to allow it to accept
cups requests from the client.  I don't want to open a great big hole for
all traffic, just the cups requests only.  With the firewall working the
client logs show:

 Network host '192.168.0.3' is busy; will retry in 30 seconds...


Also, if I were to tweak the cupsd.conf file with security in mind what
would be your recommendations for a good set up?
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Re: Home Network Printing

2005-11-30 Thread brettholcomb
Are you running cups?

 
 From: Mick [EMAIL PROTECTED]
 Date: 2005/11/30 Wed PM 02:31:16 EST
 To: gentoo-user@lists.gentoo.org
 Subject: [gentoo-user]  Re: Re: Home Network Printing
 
 Guys, this is ridiculous! Every time I want to print something from my main
 Linux machine I have to physically disconnect the printer from the second
 box and connect it to this one.  The way this is going I will soon need to
 buy another parallel port connector because the pins will wear out!
 
 Surely, it can't be that difficult.  I mean, it obviously is for me, but a
 lot of people have cracked it.  It should be straight forward printing from
 one Linux box to the other. Please ask if you need more info from config
 files etc.
 
 In hope that some advice will soon arrive  ;-)
 
 Cheers,
 
 Michael Kintzios wrote:
 
  
  From:: Oliver Friedrich [EMAIL PROTECTED]
  To: gentoo-user@lists.gentoo.org
  Subject: Re: [gentoo-user] Home Network Printing
  Date: Fri, 25 Nov 2005 11:58:27 +0100
  
  Michael Kintzios wrote:
  
   I created a new printer on hostname1 and also named it Compaq-HP. I
   set the ipp address to ipp://hostname2.STUDY/ipp but I kept
   getting errors telling me it can't resolve the address.
  
  AFAIR the IPP-Adress has to be: ipp://[Host]/[PrinterName]
  in your case this would mean: ipp://hostname2.STUDY/Compaq-HP
  
  I'm afraid I had no success.  I tried using the address as you suggested
  above but it says unknown host . . . perhaps I should add it in my
  hostname file, but my netgear router which acts as the nameserver should
  know where to go?
  
  In any case, when I changed it to the IP address of hostname2 box
  (192.168.0.3) I got this: 
  I [25/Nov/2005:20:23:13 +] [Job 56] Connecting to 192.168.0.3 on port
  631... I [25/Nov/2005:20:23:13 +] [Job 56] Connected to 192.168.0.3...
  D [25/Nov/2005:20:23:13 +] [Job 56] Getting supported attributes...
  E [25/Nov/2005:20:23:13 +] [Job 56] Destination printer does not
  exist! E [25/Nov/2005:20:23:14 +] PID 13299 stopped with status 1!
  
  
  Anything else I should try?
 
 -- 
 Regards,
 Mick
 
 -- 
 gentoo-user@gentoo.org mailing list
 
 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Re: Home Network Printing

2005-11-30 Thread John Jolet


On Nov 30, 2005, at 1:31 PM, Mick wrote:

Guys, this is ridiculous! Every time I want to print something from  
my main
Linux machine I have to physically disconnect the printer from the  
second
box and connect it to this one.  The way this is going I will soon  
need to

buy another parallel port connector because the pins will wear out!

Surely, it can't be that difficult.  I mean, it obviously is for  
me, but a
lot of people have cracked it.  It should be straight forward  
printing from
one Linux box to the other. Please ask if you need more info from  
config

files etc.

In hope that some advice will soon arrive  ;-)

Cheers,

one way you can do this is use the features of cups...for instance,  
my macintosh has a laser printer attached: the cupsd.conf sys this:  
Port 631, Listen /private/var/run/cupsd, BrowseAddress @LOCAL,  
BrowseShortNames No, BrowseAllow @LOCAL, BrowseDeny ALL  and later

Location /
Order Deny,Allow
Deny From All
Allow From @LOCAL
Allow from 192.168.1.51
/Location

all this allows all machines on the same subnet as my mac (@LOCAL) to  
browse the list of printers and allows all from the local subnet to  
print, well, i've also explicitly allowed my laptop access.


on the laptop, I also have Port 631, and not much else. I have NO  
printers configured in my laptop...default gentoo install.  when i'm  
on the net, it gets the broadcast from the mac and I can print...when  
i'm not, i have no printers at all.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Re: Home Network Printing

2005-11-30 Thread Richard Fish
On 11/30/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Are you running cups?

And if so, post the output of:

grep -v ^# /etc/cups/cupsd.conf | grep -v ^$

for both systems.

-Richard

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: Re: Home Network Printing

2005-11-26 Thread Mick
Hlp!

Michael Kintzios wrote:

 
 From:: Oliver Friedrich [EMAIL PROTECTED]
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] Home Network Printing
 Date: Fri, 25 Nov 2005 11:58:27 +0100
 
 Michael Kintzios wrote:
 
  I created a new printer on hostname1 and also named it Compaq-HP. I
  set the ipp address to ipp://hostname2.STUDY/ipp but I kept
  getting errors telling me it can't resolve the address.
 
 AFAIR the IPP-Adress has to be: ipp://[Host]/[PrinterName]
 in your case this would mean: ipp://hostname2.STUDY/Compaq-HP
 
 I'm afraid I had no success.  I tried using the address as you suggested
 above but it says unknown host . . . perhaps I should add it in my
 hostname file, but my netgear router which acts as the nameserver should
 know where to go?
 
 In any case, when I changed it to the IP address of hostname2 box
 (192.168.0.3) I got this: 
 I [25/Nov/2005:20:23:13 +] [Job 56] Connecting to 192.168.0.3 on port
 631... I [25/Nov/2005:20:23:13 +] [Job 56] Connected to 192.168.0.3...
 D [25/Nov/2005:20:23:13 +] [Job 56] Getting supported attributes...
 E [25/Nov/2005:20:23:13 +] [Job 56] Destination printer does not
 exist! E [25/Nov/2005:20:23:14 +] PID 13299 stopped with status 1!
 
 
 Anything else I should try?

-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Re: Home Network Printing

2005-11-26 Thread Kevin Hanson

Mick wrote:


Hlp!

Michael Kintzios wrote:

 


From:: Oliver Friedrich [EMAIL PROTECTED]
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Home Network Printing
Date: Fri, 25 Nov 2005 11:58:27 +0100
 


Michael Kintzios wrote:

 


I created a new printer on hostname1 and also named it Compaq-HP. I
set the ipp address to ipp://hostname2.STUDY/ipp but I kept
getting errors telling me it can't resolve the address.
   


AFAIR the IPP-Adress has to be: ipp://[Host]/[PrinterName]
in your case this would mean: ipp://hostname2.STUDY/Compaq-HP
 


I'm afraid I had no success.  I tried using the address as you suggested
above but it says unknown host . . . perhaps I should add it in my
hostname file, but my netgear router which acts as the nameserver should
know where to go?

In any case, when I changed it to the IP address of hostname2 box
(192.168.0.3) I got this: 
I [25/Nov/2005:20:23:13 +] [Job 56] Connecting to 192.168.0.3 on port
631... I [25/Nov/2005:20:23:13 +] [Job 56] Connected to 192.168.0.3...
D [25/Nov/2005:20:23:13 +] [Job 56] Getting supported attributes...
E [25/Nov/2005:20:23:13 +] [Job 56] Destination printer does not
exist! E [25/Nov/2005:20:23:14 +] PID 13299 stopped with status 1!


Anything else I should try?
   



 

Just a shot in the dark.  Are you using cups?  If so, you may have to 
edit the cupsd.conf on the printer host to allow connections to cupsd 
from other hosts.  There is a whole section in cupsd.conf that deals 
with access.  Very similar to the apache config file.


Cheers,
Kevin


--
gentoo-user@gentoo.org mailing list