[SOLVED] (hplip) Can not add printer after BASIC install

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

[SOLVED] (hplip) Can not add printer after BASIC install

Post by zAchAry »

SOLVED by installing hplip

I have installed cups (enabled cups service) and even system-config-printer.

In both I enter Username root and Password ********* and both unauthorized me.

I have not had this problem with other (FULL) installations of Salix.

Note: lsusb detects that device.

When I use Username MY_HOSTNAME and Password *********, system-config-printer freezes.

I really hope this has nothing to do with disabling root user in Salix by default.

EDIT: Running system-config-printer as root would let me to ad a printer, but with incorrect driver.

SOLVED by installing hplip
Last edited by zAchAry on 16. Aug 2015, 03:11, edited 1 time in total.
Image
Help to make Slackware easier Donate to Salix
User avatar
ChuangTzu
Donor
Posts: 388
Joined: 19. May 2015, 23:34

Re: Can not add printer after BASIC install

Post by ChuangTzu »

Hi Zachary,

A few ideas:

On basic install is the user included in "lp" group?

Also did you try the manual method of entering localhost: 631/admin into your browser, then enter username and password of either root or sudo user?

What type of printer are you trying to use, sometimes you have to use the closest driver or a generic one. Example I have a Brother HL-2270DW, the closes drivers that work are HL-2060 and/or the generic PCL Laser.

Hope that helps, and no disabling root would not affect that unless the sudo user is not in the lp group, which it is in a full install. You could also just enable root which I have out of old habit and security blanket effect: http://docs.salixos.org/wiki/How_to_ena ... _root_user
Image
Image
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Can not add printer after BASIC install

Post by zAchAry »

ChuangTzu wrote:On basic install is the user included in "lp" group?
Yes.
ChuangTzu wrote:Also did you try the manual method of entering localhost: 631/admin into your browser, then enter username and password of either root or sudo user?
Yes.
ChuangTzu wrote:What type of printer are you trying to use, sometimes you have to use the closest driver or a generic one. Example I have a Brother HL-2270DW, the closes drivers that work are HL-2060 and/or the generic PCL Laser.
Usually, I select the closest driver because it is listed, but when I executed system-config-printer as root, I have seen entries that I did not see before, and I have selected a generic driver which did no provide the same printing options I am used to.
Image
Help to make Slackware easier Donate to Salix
User avatar
ChuangTzu
Donor
Posts: 388
Joined: 19. May 2015, 23:34

Re: Can not add printer after BASIC install

Post by ChuangTzu »

Hi Zachary,

My recent post might help with this as well: http://forum.salixos.org/viewtopic.php? ... 6fdb2711e8

Also, make sure you are in the "sys" group which gives the permission for cups. If you are in the sys group, then it may be the "plugdev" group as well.

Hope any of this helps.
Image
Image
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Can not add printer after BASIC install

Post by zAchAry »

Adding sudo user to the "sys" group does not provide another result than running a cups program as root.
Image
Help to make Slackware easier Donate to Salix
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Can not add printer after BASIC install

Post by laprjns »

Check your cups configuration file to see if the wheel group is included in the "SystemGroup directive.
See my post http://forum.salixos.org/viewtopic.php? ... 644#p38393
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Can not add printer after BASIC install

Post by zAchAry »

I have this

Code: Select all

# Administrator user group...
SystemGroup sys root
Adding wheel does not make a difference, it seems. I will restart my machine and verify.

This does not solve my problem. For example, Printer Options entry is not available under printer preferences.

It is the same as adding sudo user to the "sys" group, and to running cups program as root.

I will change settings in BIOS and see if that would work.
Image
Help to make Slackware easier Donate to Salix
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Can not add printer after BASIC install

Post by zAchAry »

BASIC install appears to be flawed.

I have the same problems (printer and scanner) with a laptop with Salix OS BASIC install.
Image
Help to make Slackware easier Donate to Salix
User avatar
ChuangTzu
Donor
Posts: 388
Joined: 19. May 2015, 23:34

Re: Can not add printer after BASIC install

Post by ChuangTzu »

I dont think it is a BIOS problem, especially if the full install was fine prior.

The info you provided before showed a permissions problem.
Image
Image
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Can not add printer after BASIC install

Post by laprjns »

I did an install of Salix64 14.1 Xfce Basic. Got connected to the internet via wired etihernet. Update all installed packages vial slapt-get -u && slapt-get --upgrade. After the upgrade was complete i did the following:

1) checked to see if the cups server was running. It was not.
2) started the cup service via sudo service start cups.
3) click on "Manage Printing" in th system menu
4) Clicked on the Administration tab in the cup web interface and attempted to :add a printer and got the authozation dialog box. Added my users name and password and the "unauthorized method and obvioualy would not allow me to add a printer
5) checked the cups configuratio file (/etc/cups/cupsd.conf) and the SystemGroups directive did not have the wheel group.
6) Added the wheel group to the SystemGroups directive
7) restarted the cups service, sudo service restart cups
8) Then again started the Cup printing web page, clicked on "add printer", type in my user name and password and was granted access to adding printer.
9) when on to add my netowrked HP printer, without problem although I did need to install the hplip package.

So in regards to adding printer, I don't think the BASIC install is flawed. I beleive the the recent cups update over wrote the configuration file resulting in the wheel group being dropped out of the SystemGroup directive.
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
Post Reply