public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Home Network Printing
@ 2005-11-25 10:14 Michael Kintzios
  2005-11-25 10:44 ` Martins Steinbergs
  2005-11-25 10:58 ` Oliver Friedrich
  0 siblings, 2 replies; 18+ messages in thread
From: Michael Kintzios @ 2005-11-25 10:14 UTC (permalink / raw
  To: gentoo-user

Hi All,

I am sure that this is an easy thing to achieve, but for some reason I
seem to fail to get it going.  Probably because I do not completely
understand the logic.  The setup is as follows:

I have two boxen, hostname1.STUDY and hostname2.STUDY. hostname2 has the
printer connected to it via parallel port. The printer's name is
Compaq-HP.  Hostname2 can print locally without a hitch.

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. So I changed it to the LAN ip
address (ipp://192.163.0.3/ipp)and it seems that it can now connect, but
it cannot find the printer:
=========================================	
I [21/Nov/2005:21:55:47 +0000] [Job 44] Connecting to 192.168.0.3 on
port 631... 
I [21/Nov/2005:21:55:47 +0000] [Job 44] Connected to 192.168.0.3... 
D [21/Nov/2005:21:55:47 +0000] [Job 44] Getting supported attributes... 
E [21/Nov/2005:21:55:47 +0000] [Job 44] Destination printer does not
exist! 
E [21/Nov/2005:21:55:49 +0000] PID 15530 stopped with status 1!
=========================================

lpstats shows both printers (local and remote):
=========================================	
$ lpstat -t 
scheduler is running 
system default destination: Compaq-HP 
device for Compaq-HP: ipp://192.168.0.3/ipp 
device for DeskJet-930C: parallel:/dev/lp0 
Compaq-HP accepting requests since Jan 01 00:00 
DeskJet-930C accepting requests since Jan 01 00:00 
printer Compaq-HP is idle.  enabled since Jan 01 00:00 
printer DeskJet-930C disabled since Jan 01 00:00 - 
        Paused
=========================================

Would you know why it can't resolve hostname2.STUDY?  Am I meant to add
the printer name on the ipp://192.168.0.3/ipp?

Regards,
-- 
Mick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Home Network Printing
  2005-11-25 10:14 [gentoo-user] " Michael Kintzios
@ 2005-11-25 10:44 ` Martins Steinbergs
  2005-11-25 10:58 ` Oliver Friedrich
  1 sibling, 0 replies; 18+ messages in thread
From: Martins Steinbergs @ 2005-11-25 10:44 UTC (permalink / raw
  To: gentoo-user

On Friday 25 November 2005 12:14, Michael Kintzios wrote:
> Hi All,
>
> I am sure that this is an easy thing to achieve, but for some reason I
> seem to fail to get it going.  Probably because I do not completely
> understand the logic.  The setup is as follows:
>
> I have two boxen, hostname1.STUDY and hostname2.STUDY. hostname2 has the
> printer connected to it via parallel port. The printer's name is
> Compaq-HP.  Hostname2 can print locally without a hitch.
>
> 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. So I changed it to the LAN ip
> address (ipp://192.163.0.3/ipp)and it seems that it can now connect, but
> it cannot find the printer:
> =========================================
> I [21/Nov/2005:21:55:47 +0000] [Job 44] Connecting to 192.168.0.3 on
> port 631...
> I [21/Nov/2005:21:55:47 +0000] [Job 44] Connected to 192.168.0.3...
> D [21/Nov/2005:21:55:47 +0000] [Job 44] Getting supported attributes...
> E [21/Nov/2005:21:55:47 +0000] [Job 44] Destination printer does not
> exist!
> E [21/Nov/2005:21:55:49 +0000] PID 15530 stopped with status 1!
> =========================================
>
> lpstats shows both printers (local and remote):
> =========================================
> $ lpstat -t
> scheduler is running
> system default destination: Compaq-HP
> device for Compaq-HP: ipp://192.168.0.3/ipp
> device for DeskJet-930C: parallel:/dev/lp0
> Compaq-HP accepting requests since Jan 01 00:00
> DeskJet-930C accepting requests since Jan 01 00:00
> printer Compaq-HP is idle.  enabled since Jan 01 00:00
> printer DeskJet-930C disabled since Jan 01 00:00 -
>         Paused
> =========================================
>
> Would you know why it can't resolve hostname2.STUDY?  Am I meant to add
> the printer name on the ipp://192.168.0.3/ipp?
>
> Regards,
> --
> Mick

maybe adding "192.168.0.3 hostname2.STUDY" to /etc/hosts would help

just guessing, planning to put old ibm pentium (200Mhz) to do the firewall, 
router and printer server job

martins
-- 
Linux 2.6.15-rc2 AMD Athlon(tm) 64 Processor 3200+
 12:33:12 up  4:23,  4 users,  load average: 0.00, 0.00, 0.00
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Home Network Printing
  2005-11-25 10:14 [gentoo-user] " Michael Kintzios
  2005-11-25 10:44 ` Martins Steinbergs
@ 2005-11-25 10:58 ` Oliver Friedrich
  2005-11-25 12:18   ` Michael Kintzios
  1 sibling, 1 reply; 18+ messages in thread
From: Oliver Friedrich @ 2005-11-25 10:58 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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"

>
> Would you know why it can't resolve hostname2.STUDY? Am I meant to
> add the printer name on the ipp://192.168.0.3/ipp?

So... yes... :-)

greets BeowulfOF

- --
Oliver "Beowulf" Friedrich

Quote the Raven Nevermore!
- - E.A. Poe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDhu5TcZpid1GuHxcRAnISAKDc7s/pA5P/K5knza7WBeDVOxaWbwCfTN4O
zCRipnOF5/I2iu9xsTyMM2U=
=M0hC
-----END PGP SIGNATURE-----

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: [gentoo-user] Home Network Printing
  2005-11-25 10:58 ` Oliver Friedrich
@ 2005-11-25 12:18   ` Michael Kintzios
  0 siblings, 0 replies; 18+ messages in thread
From: Michael Kintzios @ 2005-11-25 12:18 UTC (permalink / raw
  To: gentoo-user


> -----Original Message-----
> From: Oliver Friedrich [mailto:beowulfwork@gmx.de] 
> Sent: 25 November 2005 10:58
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Home Network Printing
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 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"
> 
> >
> > Would you know why it can't resolve hostname2.STUDY? Am I meant to
> > add the printer name on the ipp://192.168.0.3/ipp?
> 
> So... yes... :-)
> 
> greets BeowulfOF

Thanks, I'll give it another go when I get home!

Regards,
-- 
Mick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user]  Re: Re: Home Network Printing
@ 2005-11-30 20:08 brettholcomb
  2005-11-30 20:25 ` Richard Fish
  0 siblings, 1 reply; 18+ messages in thread
From: brettholcomb @ 2005-11-30 20:08 UTC (permalink / raw
  To: gentoo-user

Are you running cups?

> 
> From: Mick <michaelkintzios@lycos.co.uk>
> 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 <beowulfwork@gmx.de>
> >> 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 +0000] [Job 56] Connecting to 192.168.0.3 on port
> > 631... I [25/Nov/2005:20:23:13 +0000] [Job 56] Connected to 192.168.0.3...
> > D [25/Nov/2005:20:23:13 +0000] [Job 56] Getting supported attributes...
> > E [25/Nov/2005:20:23:13 +0000] [Job 56] Destination printer does not
> > exist! E [25/Nov/2005:20:23:14 +0000] 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



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Re: Re: Home Network Printing
  2005-11-30 20:08 [gentoo-user] Re: Re: Home Network Printing brettholcomb
@ 2005-11-30 20:25 ` Richard Fish
  2005-11-30 23:01   ` [gentoo-user] " Mick
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Fish @ 2005-11-30 20:25 UTC (permalink / raw
  To: gentoo-user

On 11/30/05, brettholcomb@bellsouth.net <brettholcomb@bellsouth.net> 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



^ permalink raw reply	[flat|nested] 18+ messages in thread

* [gentoo-user]  Re: Re: Re: Home Network Printing
  2005-11-30 20:25 ` Richard Fish
@ 2005-11-30 23:01   ` Mick
  2005-11-30 23:32     ` Richard Fish
  2005-12-01 13:32     ` Holly Bostick
  0 siblings, 2 replies; 18+ messages in thread
From: Mick @ 2005-11-30 23:01 UTC (permalink / raw
  To: gentoo-user

Richard Fish wrote:

> On 11/30/05, brettholcomb@bellsouth.net <brettholcomb@bellsouth.net>
> wrote:
>> Are you running cups?
> 
> And if so, post the output of:
> 
> grep -v "^#" /etc/cups/cupsd.conf | grep -v "^$"
> 
> for both systems.

Thanks Richard, this is what I get from box 1 (this is the client):
=========================
# grep -v "^#" /etc/cups/cupsd.conf | grep v "^$"
DocumentRoot /usr/share/cups/docs
LogLevel debug2 
MaxCopies 10
MaxJobs 70
MaxJobsPerPrinter 30
MaxJobsPerUser 30
User lp
Group lp
Listen 127.0.0.1:631
MaxClients 10
Browsing Off
SystemGroup lp
<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>
=========================

This is what I get from host 2 (the server):
=========================
# grep -v "^#" /etc/cups/cupsd.conf | grep -v "^$"
DocumentRoot /usr/share/cups/docs
LogLevel info
User lp
Group lp
Port 631
SystemGroup lp
     IfRequested  - Use encryption if the server requests it
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.0.2
</Location>
<Location /printers>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.0.2
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
=========================

Any wrong entries?
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Re: Re: Re: Home Network Printing
  2005-11-30 23:01   ` [gentoo-user] " Mick
@ 2005-11-30 23:32     ` Richard Fish
  2005-12-01 10:17       ` Michael Kintzios
  2005-12-01 13:32     ` Holly Bostick
  1 sibling, 1 reply; 18+ messages in thread
From: Richard Fish @ 2005-11-30 23:32 UTC (permalink / raw
  To: gentoo-user

On 11/30/05, Mick <michaelkintzios@lycos.co.uk> wrote:
> This is what I get from host 2 (the server):
...
>      IfRequested  - Use encryption if the server requests it

Shouldn't this line be commented out??

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: [gentoo-user] Re: Re: Re: Home Network Printing
  2005-11-30 23:32     ` Richard Fish
@ 2005-12-01 10:17       ` Michael Kintzios
  0 siblings, 0 replies; 18+ messages in thread
From: Michael Kintzios @ 2005-12-01 10:17 UTC (permalink / raw
  To: gentoo-user



> -----Original Message-----
> From: richard.j.fish@gmail.com 
> [mailto:richard.j.fish@gmail.com] On Behalf Of Richard Fish
> Sent: 30 November 2005 23:33
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Re: Re: Re: Home Network Printing
> 
> 
> On 11/30/05, Mick <michaelkintzios@lycos.co.uk> wrote:
> > This is what I get from host 2 (the server):
> ...
> >      IfRequested  - Use encryption if the server requests it
> 
> Shouldn't this line be commented out??

Quite possibly so, I'll try it when I get home.  Thank you.
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user]  Re: Re: Re: Home Network Printing
  2005-11-30 23:01   ` [gentoo-user] " Mick
  2005-11-30 23:32     ` Richard Fish
@ 2005-12-01 13:32     ` Holly Bostick
  2005-12-01 14:34       ` [gentoo-user] " Michael Kintzios
  1 sibling, 1 reply; 18+ messages in thread
From: Holly Bostick @ 2005-12-01 13:32 UTC (permalink / raw
  To: gentoo-user

Mick schreef:
> Richard Fish wrote:
> 
> 
>> On 11/30/05, brettholcomb@bellsouth.net 
>> <brettholcomb@bellsouth.net> wrote:
>> 
>>> Are you running cups?
>> 
>> And if so, post the output of:
>> 
>> grep -v "^#" /etc/cups/cupsd.conf | grep -v "^$"
>> 
>> for both systems.
> 
> 
> Thanks Richard, this is what I get from box 1 (this is the client): 
> =========================
<snip>
> Order Deny,Allow

> Deny From All Allow

> From 127.0.0.1

<snip>

> Allow From 127.0.0.1

</Location>

 =========================

> 


> This is what I get from host 2 (the server):

> =========================

<snip>

> Order Deny,Allow

> Deny From All

> Allow From 127.0.0.1

> Allow From 192.168.0.2

> </Location>

> <Location /printers>

> Order Deny,Allow

> Deny From All

> Allow From 127.0.0.1

> Allow From 192.168.0.2

<snip>

> Any wrong entries?

What I see is:

I assume the printer is connected to the server--- but the server only
allows connections from localhost (itself), and 192.168.0.2.

If 192.168.0.2 is not the network IP address of the client (host 1),
then the connection is denied.

If the printer is connected to host 1... well, that only allows
connections from localhost (itself). Connections from everywhere else
are refused.

So what I would suggest is that the server allow connections from the
network as a whole, or the specific network IPs of the various networked
clients.

According to the well-commented cupsd.conf file:

# Allow: allows access from the specified hostname, domain, IP address,
# network, or interface.
#
# Deny: denies access from the specified hostname, domain, IP address,
# network, or interface.
#
# Both "Allow" and "Deny" accept the following notations for addresses:
#
#     All
#     None
#     *.domain.com
#     .domain.com
#     host.domain.com
#     nnn.*
#     nnn.nnn.*
#     nnn.nnn.nnn.*
#     nnn.nnn.nnn.nnn
#     nnn.nnn.nnn.nnn/mm
#     nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
#     @LOCAL
#     @IF(name)
#
# The host and domain address require that you enable hostname lookups
# with "HostNameLookups On" above.
#
# The @LOCAL address allows or denies from all non point-to-point
# interfaces.  For example, if you have a LAN and a dial-up link,
# @LOCAL could allow connections from the LAN but not from the dial-up
# link.  Similarly, the @IF(name) address allows or denies from the
# named network interface, e.g. @IF(eth0) under Linux.  Interfaces are
# refreshed automatically (no more than once every 60 seconds), so
# they can be used on dynamically-configured interfaces, e.g. PPP,
# 802.11, etc.
#

So if you have more than one machine on the network, you might consider
changing the "Allow From" statements to read something like


 Allow From 192.168.0.*

(assuming that your network mask is 192.168.0. , which it may not be).
Modify for your actual network configuration.

Sorry, I use Samba to connect to the network printer, as it's connected
to a Windows box, so I can't help much more. Hope this is helpful though.

Holly



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: [gentoo-user]  Home Network Printing
  2005-12-01 13:32     ` Holly Bostick
@ 2005-12-01 14:34       ` Michael Kintzios
  2005-12-01 14:48         ` John Jolet
  0 siblings, 1 reply; 18+ messages in thread
From: Michael Kintzios @ 2005-12-01 14:34 UTC (permalink / raw
  To: gentoo-user

Thank you Holly,

> -----Original Message-----
> From: Holly Bostick [mailto:motub@planet.nl] 
> Sent: 01 December 2005 13:33
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Re: Re: Re: Home Network Printing
> 
[snip] 
> 
> What I see is:
> 
> I assume the printer is connected to the server--- but the server only
> allows connections from localhost (itself), and 192.168.0.2.

Yes on all counts.

> If 192.168.0.2 is not the network IP address of the client (host 1),
> then the connection is denied.

192.168.0.2 is the LAN address of the client (host 1).
 
> If the printer is connected to host 1... well, that only allows
> connections from localhost (itself). Connections from everywhere else
> are refused.

The printer is physically connected to host 2 which acts as the server
with IP address 102.168.0.3

> So what I would suggest is that the server allow connections from the
> network as a whole, or the specific network IPs of the 
> various networked
> clients.
> 
[snip]
> 
> So if you have more than one machine on the network, you 
> might consider
> changing the "Allow From" statements to read something like 
> 
>  Allow From 192.168.0.*

Each machine has only one NIC which connects them to the
router/LAN/Internet.  The router (netgear ADSL thingy) is 192.168.0.1
and acts both as the Internet gateway and the DNS for the machines on
the LAN.  I would rather allow access to explicit IP addresses, in this
case 192.168.0.2 which is the client.

Thanks for the heads up on the "HostNameLookups On".  I'll try it
tonight - although setting the IP address would remove one more thing
for me to get wrong.  ;-)
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user]  Home Network Printing
  2005-12-01 14:34       ` [gentoo-user] " Michael Kintzios
@ 2005-12-01 14:48         ` John Jolet
  2005-12-01 17:07           ` Michael Kintzios
  0 siblings, 1 reply; 18+ messages in thread
From: John Jolet @ 2005-12-01 14:48 UTC (permalink / raw
  To: gentoo-user

silly question, but...any firewalling on the host?
or client for that matter?
On Dec 1, 2005, at 8:34 AM, Michael Kintzios wrote:

> Thank you Holly,
>
>> -----Original Message-----
>> From: Holly Bostick [mailto:motub@planet.nl]
>> Sent: 01 December 2005 13:33
>> To: gentoo-user@lists.gentoo.org
>> Subject: Re: [gentoo-user] Re: Re: Re: Home Network Printing
>>
> [snip]
>>
>> What I see is:
>>
>> I assume the printer is connected to the server--- but the server  
>> only
>> allows connections from localhost (itself), and 192.168.0.2.
>
> Yes on all counts.
>
>> If 192.168.0.2 is not the network IP address of the client (host 1),
>> then the connection is denied.
>
> 192.168.0.2 is the LAN address of the client (host 1).
>
>> If the printer is connected to host 1... well, that only allows
>> connections from localhost (itself). Connections from everywhere else
>> are refused.
>
> The printer is physically connected to host 2 which acts as the server
> with IP address 102.168.0.3
>
>> So what I would suggest is that the server allow connections from the
>> network as a whole, or the specific network IPs of the
>> various networked
>> clients.
>>
> [snip]
>>
>> So if you have more than one machine on the network, you
>> might consider
>> changing the "Allow From" statements to read something like
>>
>>  Allow From 192.168.0.*
>
> Each machine has only one NIC which connects them to the
> router/LAN/Internet.  The router (netgear ADSL thingy) is 192.168.0.1
> and acts both as the Internet gateway and the DNS for the machines on
> the LAN.  I would rather allow access to explicit IP addresses, in  
> this
> case 192.168.0.2 which is the client.
>
> Thanks for the heads up on the "HostNameLookups On".  I'll try it
> tonight - although setting the IP address would remove one more thing
> for me to get wrong.  ;-)
> -- 
> Regards,
> Mick
>
> -- 
> gentoo-user@gentoo.org mailing list
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: [gentoo-user]  Home Network Printing
  2005-12-01 14:48         ` John Jolet
@ 2005-12-01 17:07           ` Michael Kintzios
  2005-12-01 21:12             ` [gentoo-user] " Mick
  0 siblings, 1 reply; 18+ messages in thread
From: Michael Kintzios @ 2005-12-01 17:07 UTC (permalink / raw
  To: gentoo-user

Not silly at all.  Yes, I have firewall on both - but the first thing I
did was to shut down the firewalls, just in case.
-- 
Regards,
Mick

> -----Original Message-----
> From: John Jolet [mailto:john@jolet.net] 
> Sent: 01 December 2005 14:48
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] Home Network Printing
> 
> 
> silly question, but...any firewalling on the host?
> or client for that matter?
> On Dec 1, 2005, at 8:34 AM, Michael Kintzios wrote:
> 
> > Thank you Holly,
> >
> >> -----Original Message-----
> >> From: Holly Bostick [mailto:motub@planet.nl]
> >> Sent: 01 December 2005 13:33
> >> To: gentoo-user@lists.gentoo.org
> >> Subject: Re: [gentoo-user] Re: Re: Re: Home Network Printing
> >>
> > [snip]
> >>
> >> What I see is:
> >>
> >> I assume the printer is connected to the server--- but the server  
> >> only
> >> allows connections from localhost (itself), and 192.168.0.2.
> >
> > Yes on all counts.
> >
> >> If 192.168.0.2 is not the network IP address of the client 
> (host 1),
> >> then the connection is denied.
> >
> > 192.168.0.2 is the LAN address of the client (host 1).
> >
> >> If the printer is connected to host 1... well, that only allows
> >> connections from localhost (itself). Connections from 
> everywhere else
> >> are refused.
> >
> > The printer is physically connected to host 2 which acts as 
> the server
> > with IP address 102.168.0.3
> >
> >> So what I would suggest is that the server allow 
> connections from the
> >> network as a whole, or the specific network IPs of the
> >> various networked
> >> clients.
> >>
> > [snip]
> >>
> >> So if you have more than one machine on the network, you
> >> might consider
> >> changing the "Allow From" statements to read something like
> >>
> >>  Allow From 192.168.0.*
> >
> > Each machine has only one NIC which connects them to the
> > router/LAN/Internet.  The router (netgear ADSL thingy) is 
> 192.168.0.1
> > and acts both as the Internet gateway and the DNS for the 
> machines on
> > the LAN.  I would rather allow access to explicit IP addresses, in  
> > this
> > case 192.168.0.2 which is the client.
> >
> > Thanks for the heads up on the "HostNameLookups On".  I'll try it
> > tonight - although setting the IP address would remove one 
> more thing
> > for me to get wrong.  ;-)
> > -- 
> > Regards,
> > Mick
> >
> > -- 
> > gentoo-user@gentoo.org mailing list
> >
> 
> -- 
> gentoo-user@gentoo.org mailing list
> 
> 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* [gentoo-user]  RE: Home Network Printing
  2005-12-01 17:07           ` Michael Kintzios
@ 2005-12-01 21:12             ` Mick
  2005-12-01 22:19               ` Richard Fish
  0 siblings, 1 reply; 18+ messages in thread
From: Mick @ 2005-12-01 21:12 UTC (permalink / raw
  To: gentoo-user

Michael Kintzios wrote:

> Not silly at all.  Yes, I have firewall on both - but the first thing I
> did was to shut down the firewalls, just in case.

OK, I may be getting somewhere.  I removed the "IfRequested  - Use
encryption if the server requests it" - although I would have thought that
some pop up would appear asking for user name/passwd?

The gui interface on the client shows the printer URL as follows:

Device URI: http://192.168.0.3:631/Compaq-HP

Checking the server's cups error log I get:
===========================
get_printer_attrs: resource name '/Compaq-HP' no good!
===========================

The client gives the same old printer does not exist error:
===========================
I [01/Dec/2005:20:13:20 +0000] [Job 67] Connecting to 192.168.0.3 on port
631...
I [01/Dec/2005:20:13:20 +0000] [Job 67] Connected to 192.168.0.3...
D [01/Dec/2005:20:13:20 +0000] [Job 67] Getting supported attributes...
E [01/Dec/2005:20:13:20 +0000] [Job 67] Destination printer does not exist!
E [01/Dec/2005:20:13:22 +0000] PID 22860 stopped with status 1!
===========================

The above makes me think that there's something wrong in the way I specify
the ipp address for the remote printer.  Why is the "/" separator
interpreted as part of the name of the printer?

What is the correct syntax?  The gui gives the following examples when
adding a printer:
===========================
Examples: 

    file:/path/to/filename.prn
    http://hostname:631/ipp/
    http://hostname:631/ipp/port1
    ipp://hostname/ipp/
    ipp://hostname/ipp/port1
    lpd://hostname/queue
    socket://hostname
    socket://hostname:9100
===========================
Anyawy, I've tried all possible ipp combinations to no avail.  :-(
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] RE: Home Network Printing
  2005-12-01 21:12             ` [gentoo-user] " Mick
@ 2005-12-01 22:19               ` Richard Fish
  2005-12-01 23:02                 ` [gentoo-user] " Mick
  0 siblings, 1 reply; 18+ messages in thread
From: Richard Fish @ 2005-12-01 22:19 UTC (permalink / raw
  To: gentoo-user

On 12/1/05, Mick <michaelkintzios@lycos.co.uk> wrote:
> The gui interface on the client shows the printer URL as follows:
>
> Device URI: http://192.168.0.3:631/Compaq-HP
>
> Checking the server's cups error log I get:
> ===========================
> get_printer_attrs: resource name '/Compaq-HP' no good!

<snip>

> What is the correct syntax?  The gui gives the following examples when
> adding a printer:
> ===========================
> Examples:
>
>     file:/path/to/filename.prn
>     http://hostname:631/ipp/
>     http://hostname:631/ipp/port1
>     ipp://hostname/ipp/
>     ipp://hostname/ipp/port1
>     lpd://hostname/queue

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

You should also be able to do some browing on the cups server:

http://192.168.0.3:631/admin/
http://192.168.0.3:631/printers/

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* [gentoo-user]  Re: RE: Home Network Printing
  2005-12-01 22:19               ` Richard Fish
@ 2005-12-01 23:02                 ` Mick
  2005-12-01 23:12                   ` John Jolet
  2005-12-01 23:28                   ` Nick Rout
  0 siblings, 2 replies; 18+ messages in thread
From: Mick @ 2005-12-01 23:02 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user]  Re: RE: Home Network Printing
  2005-12-01 23:02                 ` [gentoo-user] " Mick
@ 2005-12-01 23:12                   ` John Jolet
  2005-12-01 23:28                   ` Nick Rout
  1 sibling, 0 replies; 18+ messages in thread
From: John Jolet @ 2005-12-01 23:12 UTC (permalink / raw
  To: gentoo-user

allow port 631....tcp and udp.
On Dec 1, 2005, at 5:02 PM, Mick wrote:

> 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
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user]  Re: RE: Home Network Printing
  2005-12-01 23:02                 ` [gentoo-user] " Mick
  2005-12-01 23:12                   ` John Jolet
@ 2005-12-01 23:28                   ` Nick Rout
  1 sibling, 0 replies; 18+ messages in thread
From: Nick Rout @ 2005-12-01 23:28 UTC (permalink / raw
  To: gentoo-user

Mick, this page http://clug.net.nz/index.php/WinCupsNoSamba is not 100%
on topic, but it deals with basic steps and the URL to connect to a
printer.


On Thu, 01 Dec 2005 23:02:51 +0000
Mick wrote:

> 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

-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-12-01 23:33 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-30 20:08 [gentoo-user] Re: Re: Home Network Printing brettholcomb
2005-11-30 20:25 ` Richard Fish
2005-11-30 23:01   ` [gentoo-user] " Mick
2005-11-30 23:32     ` Richard Fish
2005-12-01 10:17       ` Michael Kintzios
2005-12-01 13:32     ` Holly Bostick
2005-12-01 14:34       ` [gentoo-user] " Michael Kintzios
2005-12-01 14:48         ` John Jolet
2005-12-01 17:07           ` Michael Kintzios
2005-12-01 21:12             ` [gentoo-user] " Mick
2005-12-01 22:19               ` Richard Fish
2005-12-01 23:02                 ` [gentoo-user] " Mick
2005-12-01 23:12                   ` John Jolet
2005-12-01 23:28                   ` Nick Rout
  -- strict thread matches above, loose matches on Subject: below --
2005-11-25 10:14 [gentoo-user] " Michael Kintzios
2005-11-25 10:44 ` Martins Steinbergs
2005-11-25 10:58 ` Oliver Friedrich
2005-11-25 12:18   ` Michael Kintzios

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox