Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-14 Thread Helmut Jarausch

Many thanks to all who helped me.

For cupsd.conf on the server machine
It turned out that I needed

Listen localhost:631

in addition to

Port 631
Listen /run/cups/cups.sock

Furthermore, on the client machine I had typo

DeviceURI ipp:://MyServer/printers/duploc_usb

(note the double colon)

Unfortunately, CUPS doesn't seem to check the syntax of DeviceURI
or it doesn't report this.
One simply gets "printer could not be located" when one tries to use it.

I didn't want to use enter the SERVER name into /etc/cups/client.conf  
on the client machine,
since I want "double spooling', i.e. the client machine should accept  
the print job even if the SERVER

machine is down.

---

Yes, I still have an old printer which only has a USB-connection and an  
Ethernet connection.

Unfortunately, the Ethernet connection broke down recently.
I don't think that WiFi is the best solution since - at least me - have  
only 60 Mbits/seccon on the WiFi
but 1 Gbits/second on the wired Ethernet - and some files to be printed  
are quite large.


Thanks again,
Helmut.



On 09/12/2018 02:50:36 PM, Helmut Jarausch wrote:

Hi,
I'd like to install a very simple configuration but fail (CUPS is my  
most hated software)


I have two machines on a local network (i.e., I don't need any fancy  
security mechanisms)


On one machine - called SERVER - I have a USB printer which works  
just fine with CUPS.

I've tried to make it "shared". This printer has the name USB_printer.

On the other machine, which has no physical printer itself, I just  
want to add a remote printer which

uses  USB_printer on the SERVER.

If I try to configure this remote printer, my first problem is its  
name (URL)
I've tried  ipp://SERVER:631/printers/USB_printer  but when I try to  
print to it,

I always get "printer cannot be located"

Would anybody be so kind to share (the relevant parts) of his/her  
cupsd.conf on the server as well as

on the client?





Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-14 Thread sh2d000w
Hello!

I could not connect through the cups web interface.
In the end, I connected the printer with the command on the client computer:

lpadmin -p  -E -v
ipp:///printers/ -m
+drv:///hp/hpcups.drv/.ppd

You can see  with the command:

lpinfo -m

--
With respect, Pautov Aleksandr


ср, 12 сент. 2018 г. в 20:51, Helmut Jarausch :

> Hi,
> I'd like to install a very simple configuration but fail (CUPS is my
> most hated software)
>
> I have two machines on a local network (i.e., I don't need any fancy
> security mechanisms)
>
> On one machine - called SERVER - I have a USB printer which works just
> fine with CUPS.
> I've tried to make it "shared". This printer has the name USB_printer.
>
> On the other machine, which has no physical printer itself, I just want
> to add a remote printer which
> uses  USB_printer on the SERVER.
>
> If I try to configure this remote printer, my first problem is its name
> (URL)
> I've tried  ipp://SERVER:631/printers/USB_printer  but when I try to
> print to it,
> I always get "printer cannot be located"
>
> Would anybody be so kind to share (the relevant parts) of his/her
> cupsd.conf on the server as well as
> on the client?
>
> Any hints are more than welcome,
> Helmut
>
>
>


Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-13 Thread Heiko Baums
Am Thu, 13 Sep 2018 14:59:03 +
schrieb "J. Roeleveld" :

> I select them on having a wired network port.

But what about the price? Well, I guess it depends on the use case. I
guess if I would need it on business I would consider this, too.

> Wifi is slower than wired.
> I prefer not to have to wait because of the network.

Well, yes, but not so much. Depends on how much you have to print and
how often. For these few pages I print every now and then it doesn't
matter. Wifi is fast enough for those cases.

Heiko



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-13 Thread J. Roeleveld
On September 13, 2018 1:55:02 PM UTC, Wol's lists  
wrote:
>On 13/09/2018 12:57, Heiko Baums wrote:
>>> Wifi isn't the most reliable option.
>
>> I didn't have a problem yet with printing or scanning over Wifi.
>
>You're lucky !!!
>
>Okay, my main problem is the broadband connection that takes out the 
>router, but my house is NOT wi-fi friendly, and that's pretty typical.
>
>I will now ALWAYS pick wired over wi-fi if possible. If (as I hope to
>do 
>in the not-too-distant future) I get the chance to design or do up a 
>house, I would make sure I had hidden wiring in pretty much every room!
>
>Cheers,
>Wol

Wifi is a shared medium. Which means that if you have other people living 
nearby, your wifi connection will suffer.

I managed to pull network cabling through the pipes containing phone and coax 
cables. This allowed me to wire up the study, living room and server room.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-13 Thread J. Roeleveld
On September 13, 2018 11:57:24 AM UTC, Heiko Baums  
wrote:
>Am Thu, 13 Sep 2018 03:13:45 +
>schrieb "J. Roeleveld" :
>
>> Or simply via a network cable.
>
>Most printers don't have an ethernet port anymore these days.

I select them on having a wired network port.

>> Wifi isn't the most reliable option.
>
>I didn't have a problem yet with printing or scanning over Wifi.

Wifi is slower than wired.
I prefer not to have to wait because of the network.

--
Joost


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-13 Thread Wol's lists

On 13/09/2018 12:57, Heiko Baums wrote:

Wifi isn't the most reliable option.



I didn't have a problem yet with printing or scanning over Wifi.


You're lucky !!!

Okay, my main problem is the broadband connection that takes out the 
router, but my house is NOT wi-fi friendly, and that's pretty typical.


I will now ALWAYS pick wired over wi-fi if possible. If (as I hope to do 
in the not-too-distant future) I get the chance to design or do up a 
house, I would make sure I had hidden wiring in pretty much every room!


Cheers,
Wol



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-13 Thread Heiko Baums
Am Thu, 13 Sep 2018 03:13:45 +
schrieb "J. Roeleveld" :

> Or simply via a network cable.

Most printers don't have an ethernet port anymore these days.

> Wifi isn't the most reliable option.

I didn't have a problem yet with printing or scanning over Wifi.

Heiko



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-12 Thread J. Roeleveld
On September 12, 2018 6:24:44 PM UTC, Heiko Baums  wrote:
>Am Wed, 12 Sep 2018 14:50:36 +0200
>schrieb Helmut Jarausch :
>
>> On one machine - called SERVER - I have a USB printer which works
>> just fine with CUPS.
>
>Just one maybe stupid question. Does this printer have Wifi support?
>
>Then it would be a lot easier. If you would disconnect this printer
>from the one PC and connect it to your network over Wifi then you
>probably would only need to configure your firewall.
>
>The printer would then be found automatically by CUPS.
>
>Heiko

Or simply via a network cable.
Wifi isn't the most reliable option.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-12 Thread T ed Ozolins

On 18-09-12 06:50 AM, Helmut Jarausch wrote:

Hi,
I'd like to install a very simple configuration but fail (CUPS is my 
most hated software)


I have two machines on a local network (i.e., I don't need any fancy 
security mechanisms)


On one machine - called SERVER - I have a USB printer which works just 
fine with CUPS.

I've tried to make it "shared". This printer has the name USB_printer.

On the other machine, which has no physical printer itself, I just 
want to add a remote printer which

uses  USB_printer on the SERVER.

If I try to configure this remote printer, my first problem is its 
name (URL)
I've tried  ipp://SERVER:631/printers/USB_printer  but when I try to 
print to it,

I always get "printer cannot be located"

Would anybody be so kind to share (the relevant parts) of his/her 
cupsd.conf on the server as well as

on the client?

Any hints are more than welcome,
Helmut



This is what I have on the server side. My second computer is in another 
room via wifi and the third a raspberry-pi 2 on wifi. I used web 
interface to configure both.


--
Ted Ozolins
Cranbrook, BC

LogLevel warn
MaxLogSize 1m
# Allow remote access
Port 631
# Share local printers on the local network.
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes

  # Allow shared printing...
  Order allow,deny
  Allow all




  AuthType Default
  Require user @SYSTEM


  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  
Order deny,allow
  
  
Require user @OWNER @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
Require user @OWNER @SYSTEM
Order deny,allow
  
  
Order deny,allow
  


  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  
AuthType Default
Order deny,allow
  
  
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @SYSTEM
Order deny,allow
  
  
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
  
  
Order deny,allow
  



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-12 Thread Heiko Baums
Am Wed, 12 Sep 2018 14:50:36 +0200
schrieb Helmut Jarausch :

> On one machine - called SERVER - I have a USB printer which works
> just fine with CUPS.

Just one maybe stupid question. Does this printer have Wifi support?

Then it would be a lot easier. If you would disconnect this printer
from the one PC and connect it to your network over Wifi then you
probably would only need to configure your firewall.

The printer would then be found automatically by CUPS.

Heiko



Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-12 Thread Mick
On Wednesday, 12 September 2018 16:21:14 BST Helmut Jarausch wrote:
> On 09/12/2018 03:55:16 PM, Neil Bothwick wrote:
> > On Wed, 12 Sep 2018 14:50:36 +0200, Helmut Jarausch wrote:
> > > On one machine - called SERVER - I have a USB printer which works
> > > just fine with CUPS.
> > > I've tried to make it "shared". This printer has the name
> > > USB_printer.
> > 
> > > On the other machine, which has no physical printer itself, I just
> > > want to add a remote printer which
> > > uses  USB_printer on the SERVER.
> > > 
> > > If I try to configure this remote printer, my first problem is its
> > > name (URL)
> > > I've tried  ipp://SERVER:631/printers/USB_printer  but when I try to
> > > print to it,
> > > I always get "printer cannot be located"

If the SERVER is a domain name, rather than an IP address, your client will 
have to be able to resolve it.  So, add it in your /etc/hosts, or use the 
server's IP address.


> > > Would anybody be so kind to share (the relevant parts) of his/her
> > > cupsd.conf on the server as well as
> > > on the client?

I used to have such a set up running here, but this was the best part of 10 
years ago and my memory is not what it used to be!  ;-)


> > Have you allowed access to the server from the local network?
> > Something
> > like this in cupsd.conf
> > 
> > # Restrict access to the server...
> > 
> > 
> >   Order allow,deny
> >   Allow localhost
> >   Allow 192.168.1.*
> > 
> > 
> 
> Thanks Neil,
> 
> do I need this on the client machine, as well?
> (I do have it on the server machine)
> 
> Helmut

No, you only need this on the server, BUT there's more you will have to set 
up.

1. Set the server in cupsd.conf to be listening for connections on the IP 
address which will be used by the client.  The default is to only listen to 
connections from localhost.

2. As Neil suggested make sure you allow PC(s) from your LAN subnet to access 
the cups server.

3. Check your firewall on the server allows connections over the corresponding 
protocol (port 631).

4. Use telnet/netcat/nmap to see if the client can access an open port 631 on 
the server.

This should get you talking to the server.

Should you still have problems printing, you can thereafter troubleshoot it in 
more detail by checking the server's cupsd logs.

Beyond simple printing you can allow access to the server's admin pages, logs 
and what have your from the client, but you may not wish to do this for 
security reasons.
-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-12 Thread Neil Bothwick
On Wed, 12 Sep 2018 17:21:14 +0200, Helmut Jarausch wrote:

> On 09/12/2018 03:55:16 PM, Neil Bothwick wrote:
> > On Wed, 12 Sep 2018 14:50:36 +0200, Helmut Jarausch wrote:
> >   
> > > On one machine - called SERVER - I have a USB printer which
> > > works
> > just  
> > > fine with CUPS.
> > > I've tried to make it "shared". This printer has the name
> > USB_printer.  
> > >
> > > On the other machine, which has no physical printer itself, I just
> > > want to add a remote printer which
> > > uses  USB_printer on the SERVER.
> > >
> > > If I try to configure this remote printer, my first problem is its
> > > name (URL)
> > > I've tried  ipp://SERVER:631/printers/USB_printer  but when I try to
> > > print to it,
> > > I always get "printer cannot be located"
> > >
> > > Would anybody be so kind to share (the relevant parts) of his/her
> > > cupsd.conf on the server as well as
> > > on the client?  
> > 
> > Have you allowed access to the server from the local network?  
> > Something
> > like this in cupsd.conf
> > 
> > # Restrict access to the server...
> > 
> >   Order allow,deny
> >   Allow localhost
> >   Allow 192.168.1.*
> > 
> >   
> 
> Thanks Neil,
> 
> do I need this on the client machine, as well?
> (I do have it on the server machine)

All I have on the clients in "ServerName hostnameofserver"
in /etc/cups/client.conf


-- 
Neil Bothwick

The road to HAL is paved with good intentions.


pgpTeMhmIXI7d.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-12 Thread Helmut Jarausch

On 09/12/2018 03:55:16 PM, Neil Bothwick wrote:

On Wed, 12 Sep 2018 14:50:36 +0200, Helmut Jarausch wrote:

> On one machine - called SERVER - I have a USB printer which works  
just

> fine with CUPS.
> I've tried to make it "shared". This printer has the name  
USB_printer.

>
> On the other machine, which has no physical printer itself, I just
> want to add a remote printer which
> uses  USB_printer on the SERVER.
>
> If I try to configure this remote printer, my first problem is its
> name (URL)
> I've tried  ipp://SERVER:631/printers/USB_printer  but when I try to
> print to it,
> I always get "printer cannot be located"
>
> Would anybody be so kind to share (the relevant parts) of his/her
> cupsd.conf on the server as well as
> on the client?

Have you allowed access to the server from the local network?  
Something

like this in cupsd.conf

# Restrict access to the server...

  Order allow,deny
  Allow localhost
  Allow 192.168.1.*




Thanks Neil,

do I need this on the client machine, as well?
(I do have it on the server machine)

Helmut




Re: [gentoo-user] CUPS remote printing drives me crazy

2018-09-12 Thread Neil Bothwick
On Wed, 12 Sep 2018 14:50:36 +0200, Helmut Jarausch wrote:

> On one machine - called SERVER - I have a USB printer which works just  
> fine with CUPS.
> I've tried to make it "shared". This printer has the name USB_printer.
> 
> On the other machine, which has no physical printer itself, I just
> want to add a remote printer which
> uses  USB_printer on the SERVER.
> 
> If I try to configure this remote printer, my first problem is its
> name (URL)
> I've tried  ipp://SERVER:631/printers/USB_printer  but when I try to  
> print to it,
> I always get "printer cannot be located"
> 
> Would anybody be so kind to share (the relevant parts) of his/her  
> cupsd.conf on the server as well as
> on the client?

Have you allowed access to the server from the local network? Something
like this in cupsd.conf

# Restrict access to the server...

  Order allow,deny
  Allow localhost
  Allow 192.168.1.*



-- 
Neil Bothwick

Why marry a virgin? If she wasn't good enough for the rest of them, then
she isn't good enough for you.


pgpqhCocoKM8N.pgp
Description: OpenPGP digital signature