Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

New systems generate new problems.


computers / alt.os.linux.slackware / Networking problem trying to set up CUPS

SubjectAuthor
* Networking problem trying to set up CUPSMike Spencer
+* Networking problem trying to set up CUPSRich
|`* Networking problem trying to set up CUPSPeter 'Shaggy' Haywood
| `- Networking problem trying to set up CUPSRich
+* Networking problem trying to set up CUPSHenrik Carlqvist
|`* Ping Henrik Re: Networking problem trying to set up CUPSMike Spencer
| `* Ping Henrik Re: Networking problem trying to set up CUPSHenrik Carlqvist
|  `* Tnx Re: Ping Henrik Re: Networking problem trying to set up CUPSMike Spencer
|   `* Tnx Re: Ping Henrik Re: Networking problem trying to set upHenrik Carlqvist
|    `* Latex Re: Tnx Re: Ping Henrik Re: Networking problem...Mike Spencer
|     +- Latex Re: Tnx Re: Ping Henrik Re: Networking problem...Martin Schöön
|     +* Latex Re: Tnx Re: Ping Henrik Re: Networking problem...Henrik Carlqvist
|     |`* Latex Re: Tnx Re: Ping Henrik Re: Networking problem...maus
|     | `* LatexJavier
|     |  +- Latexmaus
|     |  +* LatexHenrik Carlqvist
|     |  |+* LatexJavier
|     |  ||+- LatexJavier
|     |  ||`* LatexMartin Schöön
|     |  || `* LatexJavier
|     |  ||  `- LatexMartin Schöön
|     |  |`* LatexJim Diamond
|     |  | `* LatexHenrik Carlqvist
|     |  |  `- LatexJim Diamond
|     |  `- LatexMike Spencer
|     +- Latex Re: Tnx Re: Ping Henrik Re: Networking problem...Eric Pozharski
|     `- Latex Re: Tnx Re: Ping Henrik Re: Networking problem...Jim Diamond
+- Networking problem trying to set up CUPSJohn Forkosh
+* Networking problem trying to set up CUPSMarco Moock
|`* Networking problem trying to set up CUPSJavier
| `* Sendmaail (WAS: Re: Networking problem trying to set up CUPS)Mike Spencer
|  `- Sendmaail (WAS: Re: Networking problem trying to set up CUPS)Grant Taylor
+- Networking problem trying to set up CUPSJavier
+- Networking problem trying to set up CUPSGiovanni
`- Networking problem trying to set up CUPSPeter 'Shaggy' Haywood

Pages:12
Re: Networking problem trying to set up CUPS

<tt1tfl$njv$1@reader2.panix.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2062&group=alt.os.linux.slackware#2062

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix3.panix.com!not-for-mail
From: forkosh@panix.com (John Forkosh)
Newsgroups: alt.os.linux.slackware
Subject: Re: Networking problem trying to set up CUPS
Date: Tue, 21 Feb 2023 07:56:37 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <tt1tfl$njv$1@reader2.panix.com>
References: <878rgr530q.fsf@bogus.nodomain.nowhere>
Injection-Date: Tue, 21 Feb 2023 07:56:37 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="panix3.panix.com:166.84.1.3";
logging-data="24191"; mail-complaints-to="abuse@panix.com"
User-Agent: tin/2.6.0-20210823 ("Coleburn") (NetBSD/9.3 (amd64))
 by: John Forkosh - Tue, 21 Feb 2023 07:56 UTC

Mike Spencer <mds@bogus.nodomain.nowhere> wrote:
> Now venturing to migrate from lprng to CUPS.
> Before I've even read how to start, there seems to be something I
> don't understand about inetd and LAN networking.
> Cups man page says:
> WHERE DO I BEGIN?
> The easiest way to start is by using the web interface to
> configure your printer. Go to "http://localhost:631" and choose
> the Administration tab at the top of the page.
> Okay, but I want to access that (on enoch, the new 15 install box)
> from bogus, my current 14.2 main machine. Try http://enoch:631.
> The connection was refused when attempting to contact enoch:631
> I haven't started ip_tables yet so no firewall.
> cupsd is running:
> enoch% pgrep cupsd
> 1055
> I've tried changing /etc/cups/cupsd.conf and /etc/inetd.conf in
> various ways (and restarting inetd or cupsd after any change) with no
> improvements.
> cupsd.conf:
> # Only listen for connections from the local machine.
> Listen localhost:631
> Listen /var/run/cups/cups.sock
> # mds -- Also listen for conns from bogus;
> Listen 192.168.0.15:631
> Using any of ip address (above), hostname (bogus) or * gives same
> non-result. Moreover, the cupsd.conf directive to listen doesn't show
> up in lsof:
> enoch-root$ lsof -i:631 -sTCP:LISTEN
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> cupsd 1055 root 5u IPv6 32275 0t0 TCP localhost:ipp (LISTEN)
> cupsd 1055 root 6u IPv4 32276 0t0 TCP localhost:ipp (LISTEN)
> What about inetd? Adding to /etc/inetd.conf a line like:
> ipp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/cupsd
> doesn't make any difference.
> It seems I'm trying to do something that can't be done. Or that needs
> a magic incantation I don't know about. Can I access cupsd:631 on
> enoch from bogus over the LAN? Or not?
> TIA for any help.

Can't offer any explicit advice, but what kind of printer do you have???
I have several Brother printer models, and the brother homepage has
linux install scripts for all of them that work flawlessly with cups.
Just make sure /etc/rc.d/rc.cups has start'ed, turn on your printer
and make sure it's connected (presumably by wifi nowadays), and then
run the script. The necessary /etc/cups/, /usr/share/cups/, etc gets
automatically edited as needed, and the printers "just work" afterwards.
Not sure what similar linux install scripts other printer manufacturers
provide. But I'd suggest googling around for that first.
--
John Forkosh ( mailto: j@f.com where j=john and f=forkosh )

Re: Networking problem trying to set up CUPS

<tt2i0t$14gm4$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2063&group=alt.os.linux.slackware#2063

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo01@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.slackware
Subject: Re: Networking problem trying to set up CUPS
Date: Tue, 21 Feb 2023 14:47:09 +0100
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <tt2i0t$14gm4$1@dont-email.me>
References: <878rgr530q.fsf@bogus.nodomain.nowhere>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 21 Feb 2023 13:47:09 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="f046a0707050a90252a073277096177f";
logging-data="1196740"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18D6PDvPCWtv1eKDXag7Vku"
Cancel-Lock: sha1:M9CFYZqRwjmXh8J+7z+eIBybUQ4=
 by: Marco Moock - Tue, 21 Feb 2023 13:47 UTC

Am 20.02.2023 schrieb Mike Spencer <mds@bogus.nodomain.nowhere>:

> I gave up on postfix and reverted with complete success to sendmail.

:-)

> cupsd.conf:
>
> # Only listen for connections from the local machine.
> Listen localhost:631
> Listen /var/run/cups/cups.sock
>
> # mds -- Also listen for conns from bogus;
> Listen 192.168.0.15:631
>
>
> Using any of ip address (above), hostname (bogus) or * gives same
> non-result. Moreover, the cupsd.conf directive to listen doesn't show
> up in lsof:
>
> enoch-root$ lsof -i:631 -sTCP:LISTEN
>
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> cupsd 1055 root 5u IPv6 32275 0t0 TCP localhost:ipp
> (LISTEN) cupsd 1055 root 6u IPv4 32276 0t0 TCP
> localhost:ipp (LISTEN)
>
> What about inetd? Adding to /etc/inetd.conf a line like:
>
> ipp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/cupsd
>
> doesn't make any difference.

Use either cups itself OR inetd - not both at the same time.

I recommend using CUPS directly if possible.
Please configure and restart the service and run "ss -lutn"

Re: Networking problem trying to set up CUPS

<yZCcnSXSlK_sqGj-nZ2dnZfqn_GdnZ2d@brightview.co.uk>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2064&group=alt.os.linux.slackware#2064

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 21 Feb 2023 21:19:45 +0000
From: invalid@invalid.invalid (Javier)
Subject: Re: Networking problem trying to set up CUPS
Newsgroups: alt.os.linux.slackware
References: <878rgr530q.fsf@bogus.nodomain.nowhere>
Message-ID: <yZCcnSXSlK_sqGj-nZ2dnZfqn_GdnZ2d@brightview.co.uk>
Date: Tue, 21 Feb 2023 21:19:45 +0000
Lines: 27
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-HVW/uC0StL0RId6WwdEDQQYeuij7522BVJNWWo/9EiMZnteNrcX3HFsur+OirsikQkjE2BraQ+SfRLy!bC8HVk8MTGsNchMq+yZ+0PM7dz4qZYdqv3dLBSN/q50/FRwZw3pKhSQ9Xi1Znfcj/464KGP/wSb+!e+Jn6HPvK5Dj+K9O3ynh/jBHrQ8=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Javier - Tue, 21 Feb 2023 21:19 UTC

Mike Spencer <mds@bogus.nodomain.nowhere> wrote:
> cupsd.conf:
>
> # Only listen for connections from the local machine.
> Listen localhost:631
> Listen /var/run/cups/cups.sock
>
> # mds -- Also listen for conns from bogus;
> Listen 192.168.0.15:631
>
>
> Using any of ip address (above), hostname (bogus) or * gives same
> non-result. Moreover, the cupsd.conf directive to listen doesn't show
> up in lsof:
>

man cupsd.conf

From cupsd.conf(5):

The Listen directive is similar to the Port directive but
allows you to restrict access to specific interfaces or networks.

So I would use the Port directive instead, and delete all the Listen directives.

Port 631

Re: Networking problem trying to set up CUPS

<G2ydnex85tc9qmj-nZ2dnZfqnPadnZ2d@brightview.co.uk>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2065&group=alt.os.linux.slackware#2065

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 21 Feb 2023 21:29:04 +0000
From: invalid@invalid.invalid (Javier)
Subject: Re: Networking problem trying to set up CUPS
Newsgroups: alt.os.linux.slackware
References: <878rgr530q.fsf@bogus.nodomain.nowhere> <tt2i0t$14gm4$1@dont-email.me>
Message-ID: <G2ydnex85tc9qmj-nZ2dnZfqnPadnZ2d@brightview.co.uk>
Date: Tue, 21 Feb 2023 21:29:04 +0000
Lines: 15
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-3rdyGyhCUVHnuYdfrsSJVxR8gFbRt6DYbrw060hSG5sJirE5U72UbxMYcnkiZpjCxyIBYXU8gzmLHUu!VaoEcq/k3SIlRDVR6ocmBD6AK+Qou6t5NNOKr8xkqt6kLQLWE49aFtqsmiZgRAAE6DHQRsi92ilJ!jXUeNYiSLiHXseK/qofuolM84Nk=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Javier - Tue, 21 Feb 2023 21:29 UTC

Marco Moock <mo01@posteo.de> wrote:
> Am 20.02.2023 schrieb Mike Spencer <mds@bogus.nodomain.nowhere>:
>
>> I gave up on postfix and reverted with complete success to sendmail.
>
> :-)

I wonder whether the OP wants to run a mail server himself or he
relies on an external SMTP server. Running an mailserver nowadays is
not so easy nowadays, as many mailservers (especially those controlled
by MS like Yahoo or corporate Exchange servers) will drop the received
messages without warning for the silliest reason.

If he relies on an external SMTP server an userland based solution like
ssmtp should be easier

Sendmaail (WAS: Re: Networking problem trying to set up CUPS)

<87zg9637dv.fsf_-_@bogus.nodomain.nowhere>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2066&group=alt.os.linux.slackware#2066

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mds@bogus.nodomain.nowhere (Mike Spencer)
Newsgroups: alt.os.linux.slackware
Subject: Sendmaail (WAS: Re: Networking problem trying to set up CUPS)
Date: 21 Feb 2023 19:50:52 -0400
Organization: Bridgewater Institute for Advanced Study - Blacksmith Shop
Lines: 65
Message-ID: <87zg9637dv.fsf_-_@bogus.nodomain.nowhere>
References: <878rgr530q.fsf@bogus.nodomain.nowhere> <tt2i0t$14gm4$1@dont-email.me> <G2ydnex85tc9qmj-nZ2dnZfqnPadnZ2d@brightview.co.uk>
Injection-Info: reader01.eternal-september.org; posting-host="20bf5647a9ded8aa0f79bf48ea8154f4";
logging-data="1339180"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VUbAtHvXE8GqrdIqD80M406LFRxYX2xI="
Cancel-Lock: sha1:lm8udrNqiBBL9xfXFpVJlndkZpE=
X-Newsreader: Gnus v5.7/Emacs 20.7
X-Clacks-Overhead: 4GH GNU Terry Pratchett
 by: Mike Spencer - Tue, 21 Feb 2023 23:50 UTC

Javier <invalid@invalid.invalid> writes:

> Marco Moock <mo01@posteo.de> wrote:
>
> > Am 20.02.2023 schrieb Mike Spencer <mds@bogus.nodomain.nowhere>:
>>
>>> I gave up on postfix and reverted with complete success to sendmail.
>>
>> :-)
>
> I wonder whether the OP wants to run a mail server himself or he
> relies on an external SMTP server. Running an mailserver nowadays is
> not so easy nowadays, as many mailservers (especially those controlled
> by MS like Yahoo or corporate Exchange servers) will drop the received
> messages without warning for the silliest reason.

No, no, I don't want to run a mail server.

Just nattering, for the record, if anyone is interested...

I only need three things from sendmail:

1. Hand outgoing mail to a smarthost that requires AUTH (the
deafult)

2. Occasionally hand outgoing mail to a different smarthost that
doesn't require AUTH.

3. Deliver mail from the kernel to root to a mailbox on localhost.

I get 1. & 2. by having 2 sets of files for /etc/mail/*, one
configured for 1., the other configured for 2. If the the server for
1. is down, I can swap those files and restart sendmail.

3. seems to happen automatically without my having to do anything.

Setting up smarthosting, long ago, was so easy that I just manually
edited sendmail.cf before I knew you weren't supposed to do that.
Enabling AUTH was harder but I had earlier invested in the great, fat
O'Reilly Bat Book and could figure it out, use m4.

So sendmail is a Winnebago with all the dealer options, a Zodiac on
the roof, dirt bike strapped to the back and a 2-door Hyundai in tow.
And the config is written in cuneiform that you need a Rosetta stone
(m4) to deal with it.

Postfix is supposed to be better and easier. My take is that it's
also A Winnebago, but without the dealer options or Zodiac. To
stretch the metaphor, the config is written in Chaucerian English so
you only need hours of study, not a Rosetta stone, to sort out and
disable all the details and features meant for a full-on SMTP server
and get just the simple behavior above.

Worse, documentation is in numerous files. And there's no Bat Book.

> If he relies on an external SMTP server an userland based solution like
> ssmtp should be easier

Maybe. More bother? Sendmail is doing what I want in 15.0.

(Back to my problem with CUPS later, in another post.)

--
Mike Spencer Nova Scotia, Canada

Re: Sendmaail (WAS: Re: Networking problem trying to set up CUPS)

<tt45iq$pr3$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2067&group=alt.os.linux.slackware#2067

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: alt.os.linux.slackware
Subject: Re: Sendmaail (WAS: Re: Networking problem trying to set up CUPS)
Date: Tue, 21 Feb 2023 21:27:04 -0700
Organization: TNet Consulting
Message-ID: <tt45iq$pr3$1@tncsrv09.home.tnetconsulting.net>
References: <878rgr530q.fsf@bogus.nodomain.nowhere>
<tt2i0t$14gm4$1@dont-email.me>
<G2ydnex85tc9qmj-nZ2dnZfqnPadnZ2d@brightview.co.uk>
<87zg9637dv.fsf_-_@bogus.nodomain.nowhere>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 22 Feb 2023 04:27:06 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="26467"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <87zg9637dv.fsf_-_@bogus.nodomain.nowhere>
Content-Language: en-US
 by: Grant Taylor - Wed, 22 Feb 2023 04:27 UTC

On 2/21/23 4:50 PM, Mike Spencer wrote:
> 1. Hand outgoing mail to a smarthost that requires AUTH (the deafult)

This may become more of a problem as more and more providers are
disabling traditional authentication methods, including SMTP Auth that
you're talking about, in favor of OAUTH.

I'm not aware of any MTA supporting this on smart hosts. Perhaps they
do and I'm just ignorant of it.

--
Grant. . . .
unix || die

Re: Networking problem trying to set up CUPS

<tt502r$uge$1@milena.home.net.it>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2068&group=alt.os.linux.slackware#2068

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: lsodgf0@home.net.it (Giovanni)
Newsgroups: alt.os.linux.slackware
Subject: Re: Networking problem trying to set up CUPS
Date: Wed, 22 Feb 2023 12:59:23 +0100
Organization: G. Falzoni Home Network
Lines: 47
Message-ID: <tt502r$uge$1@milena.home.net.it>
References: <878rgr530q.fsf@bogus.nodomain.nowhere>
Reply-To: gfalzoni@inwind.it
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="d403a0bdd8836b61a6702da78e9aed16";
logging-data="1597363"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/F15cM9IZlVtFxlHE73/RPy7KbrpX+Ycv3TcYupAwARw=="
Cancel-Lock: sha1:8rN7WUIs1XVtwyXk4fB3iwlPlZA=
 by: Giovanni - Wed, 22 Feb 2023 11:59 UTC

On 2/21/23 00:29, Mike Spencer wrote:

> It seems I'm trying to do something that can't be done. Or that needs
> a magic incantation I don't know about. Can I access cupsd:631 on
> enoch from bogus over the LAN? Or not?
>

Yes, you can, although if you do not have a browser that runs on enoch
it may be a nightmare.

Best way is to start http://localhost:631 on enoch and follow the
instructions to configure the printer leaving as required step to check
'Allow remote administration' and 'Share printers connected to this
system' on the main 'Administration' page. After that the printer will
be 'http://enoch:631/' from any machine on LAN.

I have a server without X services (it does non even have a display,
only ssh access). With older versions of cups I could use lynx but now
cups uses java scripts and the only method is the command line interface
and a few tweaks to the configuration file to insert the the server name.

If you cannot use a browser you need to use same method using command
line interface. Involved are 'lpadmin' and 'lpoptions' and their
options. Remember that encryption does not work in latest version (at
least on my machines).

## Create default printer
lpadmin -p ml1210 -v "http://milena.home.net.it:631/printers/raw" -D
"Samsung ML-1210 Laser Printer" -L "Local at MONICA" -P
"/etc/cups/Samsung-ML-1210-gdi.ppd"
lpadmin -p ml1210 -o printer-is-shared=false
lpadmin -d ml1210

## Set as user default
lpoptions -d ml1210
lpoptions -p ml1210 -o media=A4

This is an example to create a printer 'ml1210' that prints to a remote
queue 'raw' a pass-thru queue accessible from LAN. You have to modify
the arguments to your needs

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
< https://giovanni.homelinux.net/ >

Re: Networking problem trying to set up CUPS

<fi9gcj-tm1.ln1@jefferson.foo>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2069&group=alt.os.linux.slackware#2069

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: phaywood@alphalink.com.au (Peter 'Shaggy' Haywood)
Newsgroups: alt.os.linux.slackware
Subject: Re: Networking problem trying to set up CUPS
Date: Wed, 22 Feb 2023 13:00:14 +1100
Organization: A noiseless patient Spider
Lines: 94
Message-ID: <fi9gcj-tm1.ln1@jefferson.foo>
References: <878rgr530q.fsf@bogus.nodomain.nowhere>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Injection-Info: reader01.eternal-september.org; posting-host="27c4b6b6a2fc9c114b05343d7acd3c20";
logging-data="1612374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KenZBZIn8EPUpSoVkoC/c9tyh8uaht+Y="
User-Agent: KNode/0.10.9
Cancel-Lock: sha1:n+CNjCKlnubJuZwqlQmUeIO2u6A=
 by: Peter 'Shaggy&# - Wed, 22 Feb 2023 02:00 UTC

Groovy hepcat Mike Spencer was jivin' in alt.os.linux.slackware on Tue,
21 Feb 2023 10:29 am. It's a cool scene! Dig it.

> Cups man page says:
>
> WHERE DO I BEGIN?
>
> The easiest way to start is by using the web interface to
> configure your printer. Go to "http://localhost:631" and choose
> the Administration tab at the top of the page.
>
> Okay, but I want to access that (on enoch, the new 15 install box)
> from bogus, my current 14.2 main machine. Try http://enoch:631.

And can you ping enoch? You don't need a FQDN (enoch.private or
enoch.mynet or something like that)?

> The connection was refused when attempting to contact enoch:631
>
> I haven't started ip_tables yet so no firewall.
>
> cupsd is running:
>
> enoch% pgrep cupsd
> 1055
>
> I've tried changing /etc/cups/cupsd.conf and /etc/inetd.conf in
> various ways (and restarting inetd or cupsd after any change) with no
> improvements.
>
> cupsd.conf:
>
> # Only listen for connections from the local machine.
> Listen localhost:631
> Listen /var/run/cups/cups.sock
>
> # mds -- Also listen for conns from bogus;
> Listen 192.168.0.15:631

The only Listen line my cupsd.conf has is the cups.sock one. It also
has a Port line:

Port 631

Does yours have that?

> Using any of ip address (above), hostname (bogus) or * gives same
> non-result. Moreover, the cupsd.conf directive to listen doesn't show
> up in lsof:
>
> enoch-root$ lsof -i:631 -sTCP:LISTEN
>
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> cupsd 1055 root 5u IPv6 32275 0t0 TCP localhost:ipp
> (LISTEN)
> cupsd 1055 root 6u IPv4 32276 0t0 TCP localhost:ipp
> (LISTEN)
>
> What about inetd? Adding to /etc/inetd.conf a line like:
>
> ipp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/cupsd

I don't have any reference to cups or printing at all in my
inetd.conf.

> doesn't make any difference.
>
> It seems I'm trying to do something that can't be done. Or that needs
> a magic incantation I don't know about. Can I access cupsd:631 on
> enoch from bogus over the LAN? Or not?

Sure you can. I find cups a bit persnickety, though, especially about
network hostnames. When I try to print using my server's hostname in
the client setup, it often doesn't work. But if I use the IP address,
it has a much higher chance of success.
Yes, I know, you haven't even got to that stage yet. You're still
trying to configure the server itself. But anyhow...
Still, just now, for a test, I tried accessing my cups server by
hostname with firefox, and it failed with "Bad request". So I tried
again using the IP address instead, and it worked perfectly.

> I have to go make ginger chicken.

Who's this Ginger? If I see him/her running in terror, I'll know you
were successful.

--

----- Dig the NEW and IMPROVED news sig!! -----

-------------- Shaggy was here! ---------------
Ain't I'm a dawg!!

Re: Networking problem trying to set up CUPS

<qt7gcj-3k1.ln1@jefferson.foo>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2070&group=alt.os.linux.slackware#2070

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: phaywood@alphalink.com.au (Peter 'Shaggy' Haywood)
Newsgroups: alt.os.linux.slackware
Subject: Re: Networking problem trying to set up CUPS
Date: Wed, 22 Feb 2023 12:32:10 +1100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <qt7gcj-3k1.ln1@jefferson.foo>
References: <878rgr530q.fsf@bogus.nodomain.nowhere> <tt1brm$1108l$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Injection-Info: reader01.eternal-september.org; posting-host="27c4b6b6a2fc9c114b05343d7acd3c20";
logging-data="1612374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18K98nqdkzit52CLe8Vpp9jfq316kz7LmQ="
User-Agent: KNode/0.10.9
Cancel-Lock: sha1:DcjdUvPCdiHLSGtbbai9zlVQe2M=
 by: Peter 'Shaggy&# - Wed, 22 Feb 2023 01:32 UTC

Groovy hepcat Rich was jivin' in alt.os.linux.slackware on Tue, 21 Feb
2023 01:55 pm. It's a cool scene! Dig it.

> ethernet interface as well. And, what is the IP address you have on
> the second Listen? The IP that goes there would need to be the IP of
> the machine the cupsd was running on, not the IP the connections would
> be coming from.

Technically, it's the IP address of the /interface/, not the whole
machine. The computer doesn't have an address; the network interface
does.

--

----- Dig the NEW and IMPROVED news sig!! -----

-------------- Shaggy was here! ---------------
Ain't I'm a dawg!!

Re: Networking problem trying to set up CUPS

<tt5591$1h9pu$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2071&group=alt.os.linux.slackware#2071

  copy link   Newsgroups: alt.os.linux.slackware
Path: rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: alt.os.linux.slackware
Subject: Re: Networking problem trying to set up CUPS
Date: Wed, 22 Feb 2023 13:28:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <tt5591$1h9pu$1@dont-email.me>
References: <878rgr530q.fsf@bogus.nodomain.nowhere> <tt1brm$1108l$1@dont-email.me> <qt7gcj-3k1.ln1@jefferson.foo>
Injection-Date: Wed, 22 Feb 2023 13:28:02 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="a411ae5f5ece72b9b2901e430edc4628";
logging-data="1615678"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eNUx8a7xQBUy33yuxuD34"
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.10.17 (x86_64))
Cancel-Lock: sha1:kSllj7s51/1Pja3VqGStDKZvnHA=
 by: Rich - Wed, 22 Feb 2023 13:28 UTC

Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> wrote:
> Groovy hepcat Rich was jivin' in alt.os.linux.slackware on Tue, 21 Feb
> 2023 01:55 pm. It's a cool scene! Dig it.
>
>> ethernet interface as well. And, what is the IP address you have on
>> the second Listen? The IP that goes there would need to be the IP of
>> the machine the cupsd was running on, not the IP the connections would
>> be coming from.
>
> Technically, it's the IP address of the /interface/, not the whole
> machine. The computer doesn't have an address; the network interface
> does.

While true, I doubt the OP has a multi-interface machine such that the
distinction would have done any good besides add to his confusion.


computers / alt.os.linux.slackware / Networking problem trying to set up CUPS

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor