Page 1 of 1

Cups web interface disabled

Posted: Sat Feb 17, 2024 10:47 pm
by Derek B

I'm trying to setup my hp envy 6452e printer in EasyOS 5.7 Kirkstone. I have been a user on and off of puppy linux since puppy 431. Usually Cups works out of the box with any flavour of puppy I have tried, even StudioPuppy lol.
When I choose Cups out of the setup/hardware, then choosing Cups Printer Management, and clicking "no" on the dialog asking if I'm setting up a new printer since I've already read it 3x, I'm faced with a browser window which reads: Web Interface is Disabled
The web interface is currently disabled. Run "cupsctl WebInterface=yes" to enable it.
Well, upon running the above instructions in a sakura terminal via copy and shift-ctrl-v to paste it there, it reports
cupsctl: Not Found, which is different than the standard 'bash: lov: command not found' (lov is a non-command I used to illustrate the point and has bearing on my question)
Many thanks to anyone who has a good idea of what to do or investigate, please help!


Re: Cups web interface disabled

Posted: Sun Feb 18, 2024 2:39 am
by Flash

Maybe "cupsctl" is something in cups, not a terminal?


Re: Cups web interface disabled

Posted: Sun Feb 18, 2024 3:04 pm
by FeodorF

@Derek B

Go to /etc/cups/cupsd.conf and add WebInterface Yes to it.

Code: Select all

LogLevel info
SystemGroup lpadmin
# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Disable printer sharing.
Browsing Off
BrowseOrder allow,deny
BrowseAllow all
DefaultAuthType Basic
WebInterface Yes

It'll be better to do this:

Go to /mnt/.easy_ro/easy_sfs/etc/cups and copy cupsd.conf to /etc/cups

Code: Select all

#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info

# Administrator user group...
# playdayz advised these two... 110827 pemasu...
# SystemGroup root
SystemGroup lpadmin

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all

# Default authentication type, when authentication is required...
DefaultAuthType Basic

#20201001 BK seems that we now need this, as default is web-interface disabled...
WebInterface Yes

# Restrict access to the server... 110827 pemasu comment-out...
#<Location />
#  Order deny,allow
#</Location>

# Restrict access to the admin pages... 110827 pemasu comment-out...
#<Location /admin>
#  Order deny,allow
#</Location>

# Restrict access to configuration files... 110827 pemasu comment-out Require user...
<Location /admin/conf>
  AuthType None
  #Require user @SYSTEM
  Order deny,allow
</Location>

# Set the default printer/job policies...
<Policy default>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#