Debian: CUPS wil geen printer aanmaken

Pagina: 1
Acties:

  • DumbAss
  • Registratie: April 2002
  • Laatst online: 16-08-2025
Hallo,

Ik heb vorige week een Brother HL-2030 aangeschaft. Op Internet kwam deze goed naar voren omdat de linux ondersteuning erg goed zou zijn.

Ik heb dat ding aangesloten, en ik kreeg eerst steeds deze foutmeldingen in /var/log/cups/error_log:
code:
1
[CGI] CUPS-Get-Printers request failed - client-error-forbidden (401)


Dit heb ik uiteindelijk weten op te lossen, door deze cupsd.conf te maken:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ServerName 192.168.0.1
FileDevice No
HostNameLookups Off
Port 631
Browsing On
BrowseProtocols cups
BrowseAllow 192.168.0.*
LogLevel debug

<Location />
AuthClass Anonymous
AuthType None
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

<Location /printers/DeskJet>
AuthType None
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>


Maar nu krijg ik steeds deze errors:
code:
1
client-error-not-authorized

Als ik probeer een printer toe te voegen. Zowel via de commandline als via de webinterface op :631

Extra informatie:
ik draai Debian Sarge Stable. En heb deze cups packages geïnstalleerd:
code:
1
cups-pdf cupsys-bsd cupsys-client cupsys-driver-gimpprint cupsys-driver-gimpprint-data cupsys-pt libgtk1.2 libgtk1.2-common libxi6 libcupsys2

Het heeft vast iets te maken met de rechten. Maar hoe of wat weet ik niet.
Ik heb ook al meerdere malen geprobeerd een printer aan te maken met de standaard cupsd.conf configuratie-bestand. Maar dit mocht niet baten.

Vanutsteen.nl => nerds only | iRacing


  • igmar
  • Registratie: April 2000
  • Laatst online: 31-01 23:50

igmar

ISO20022

Toegang is nu alleen toegestaan vanaf 127.0.0.1, en da's vast niet de bedoeling.

code:
1
2
Order Allow, Deny
Allow from All


zou de oplossing moeten zijn.

  • DumbAss
  • Registratie: April 2002
  • Laatst online: 16-08-2025
Ik heb er tot nu toe ook alleen via localhost geconnect, maar om alle mogelijk oorzaken uit te bannen heb ik cupsd.conf aangepast tot dit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ServerName 192.168.0.1
FileDevice No
HostNameLookups Off
Port 631
Browsing On
BrowseProtocols cups
BrowseAllow 192.168.0.*
LogLevel debug

<Location />
AuthClass Anonymous
AuthType None
Order Allow, Deny
Allow from All
</Location>

<Location /printers/DeskJet>
AuthType None
Order Allow, Deny
Allow from All
</Location>

<Location /admin>
AuthType Basic
AuthClass System
Order Allow, Deny
Allow from All
</Location>

Maar ik krijg nog steeds:
code:
1
lpadmin: add-printer (enable) failed: client-error-not-authorized

Vanutsteen.nl => nerds only | iRacing