[SOLVED] Difficulty installing network printer Brother HL-2070N

Forum rules
Before you post please read this
User avatar
jimbobs
Level 3
Level 3
Posts: 114
Joined: Sun Sep 25, 2016 10:50 am
Location: Toronto, Canada

Re: Difficulty installing network printer Brother HL-2070N

Postby jimbobs » Fri Dec 15, 2017 6:08 pm

Success!

I reinstalled CUPS, set up the printer from the CUPS (localhost:631) page and successfully printed a test page.

coffee412, thanks for all of your help and, most of all, patience!
Dell Inspiron 1525 Linux Mint 18.3 Sylvia Cinnamon 3.4.6

User avatar
coffee412
Level 5
Level 5
Posts: 768
Joined: Mon Nov 12, 2012 7:38 pm
Location: Indiana, USA
Contact:

Re: Difficulty installing network printer Brother HL-2070N

Postby coffee412 » Fri Dec 15, 2017 6:53 pm

jimbobs wrote:Success!

I reinstalled CUPS, set up the printer from the CUPS (localhost:631) page and successfully printed a test page.

coffee412, thanks for all of your help and, most of all, patience!


Thats great to hear!

I wonder what the problem with cups was? I think it was something to do with the cupsd.conf file. It probably had a bad setting in it somehow.

Glad to see your off and printing!

coffee
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
IceWarp * Samba AD * Mint 18.1 * RAID 1/5 * OpenVPN * Linux since kernel 2.0.36

pdc_2
Level 7
Level 7
Posts: 1967
Joined: Mon May 11, 2009 1:21 am

Re: [SOLVED] Difficulty installing network printer Brother HL-2070N

Postby pdc_2 » Fri Dec 15, 2017 10:31 pm

good that you can now register a printer;

as you have re-installed CUPS, it would be interesting to see what the contents of /etc/cups/cupsd.conf are now: wondering if one can see any changes from the first printout we got;

I was intrigued at the command

Code: Select all

cat /etc/cups/cupsd.conf
as on our 18.3 I get
cat /etc/cups/cupsd.conf cat: /etc/cups/cupsd.conf: Permission denied
so I would need to use sudo to get access;

I wonder if others reading this thread can also see their cupsd.conf files as users;

so the question would be: how to Enable Regular Users to Add Printers to CUPS

this article https://kernelmastery.com/enable-regula ... s-to-cups/ also says
CUPS and the accompanying web console (http://localhost:631) require the root user to log in in order to configure or add printers. So how can we get around this problem?
and the suggested solution there was to look for
..... the line which says "<Limit CUPS-Add-Modify-Printer...".
in the cupsd.conf file ........then
On the following line, immediately after the text "Require user @SYSTEM" add the desired user whom you would like to allow to configure CUPS.


so where it is
Require user @SYSTEM
for jimbobs one would edit it to
Require user @SYSTEM jimbobs

User avatar
coffee412
Level 5
Level 5
Posts: 768
Joined: Mon Nov 12, 2012 7:38 pm
Location: Indiana, USA
Contact:

Re: [SOLVED] Difficulty installing network printer Brother HL-2070N

Postby coffee412 » Fri Dec 15, 2017 10:44 pm

I would think that you would just have to add the user to the lpadmin group and possibly lp group. But you may be right.

Incidently, My /etc/cups/cupsd.conf file is about 140 lines long (including # comments). I noticed that @jimbobs was considerably less. That caught my eye anyways.

I can read the contents of my cupsd.conf file. But I think its because I finally got lazy and added myself to the 'wheel' group ;)
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
IceWarp * Samba AD * Mint 18.1 * RAID 1/5 * OpenVPN * Linux since kernel 2.0.36

pdc_2
Level 7
Level 7
Posts: 1967
Joined: Mon May 11, 2009 1:21 am

Re: [SOLVED] Difficulty installing network printer Brother HL-2070N

Postby pdc_2 » Fri Dec 15, 2017 11:08 pm

thanks; I remember now I can read the cupsd.conf file using the GUI and navigating to the cups folder in /etc where it can be opened with LibreOffice: I can only assume this is a Mint addition to help us all; the file can only be directly read with

Code: Select all

gksudo gedit /etc/cups/cupsd.conf


........ I was intrigued by the wheel group comment: I must check up on that concept;
Attachments
cups.png


Return to “Printers & Scanners”