Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-print/hplib for user account.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Sat Mar 16, 2024 4:25 pm    Post subject: net-print/hplib for user account. Reply with quote

Currently integrating lowend hp AIO device.

When non root login:
hp-setup[qt5] gui fails to detect.
xsane fails on splash detection.

user in lpadmin group doesn't seems to help.

Any idea how to fix.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2064
Location: San Jose, CA

PostPosted: Sat Mar 16, 2024 4:40 pm    Post subject: Re: net-print/hplib for user account. Reply with quote

CaptainBlood wrote:
Currently integrating lowend hp AIO device.

When non root login:
hp-setup[qt5] gui fails to detect.
xsane fails on splash detection.

user in lpadmin group doesn't seems to help.

Any idea how to fix.

Thks 4 ur attention, interest & support.


Try adding group 'lp'

Although you probably already have that one.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Sat Mar 16, 2024 6:27 pm    Post subject: Re: net-print/hplib for user account. Reply with quote

RayDude wrote:
Try adding group 'lp'

Although you probably already have that one.

Indeed,
Just got:
Code:
Mar 16 21:27:09 localhost hp-setup[6341]: hp-setup[6341]: warning: Fax setup disabled - Python 2.3+ required.
Mar 16 21:27:12 localhost hp-setup[6341]: io/hpmud/musb.c 2100: Invalid usb_open: Permission denied
Mar 16 21:27:12 localhost hp-setup[6341]: io/hpmud/musb.c 2100: Invalid usb_open: Permission denied
Mar 16 21:27:12 localhost hp-setup[6341]: io/hpmud/musb.c 2100: Invalid usb_open: Permission denied
Mar 16 21:27:12 localhost hp-setup[6341]: io/hpmud/musb.c 2100: Invalid usb_open: Permission denied
Mar 16 21:27:12 localhost hp-setup[6341]: io/hpmud/musb.c 2100: Invalid usb_open: Permission denied
Mar 16 21:27:12 localhost hp-setup[6341]: io/hpmud/musb.c 2100: Invalid usb_open: Permission denied
Mar 16 21:27:12 localhost hp-setup[6341]: hp-setup[6341]: error: No devices found on bus: usb
Thks 4 ur attention, interest & support.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 812

PostPosted: Sat Mar 16, 2024 6:40 pm    Post subject: Reply with quote

What are your permissions on /dev/bus/usb/* ? That's what hplip tries to access.
On my system it's owner root and group usb, group usb might be missing on your user.
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Sat Mar 16, 2024 7:20 pm    Post subject: Reply with quote

pa4wdh wrote:
What are your permissions on /dev/bus/usb/* ? That's what hplip tries to access.
On my system it's owner root and group usb, group usb might be missing on your user.
I recall you're right usb group is empty.
Only followed wiki up to now...

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Sun Mar 17, 2024 7:38 am    Post subject: Reply with quote

both lp & usb had to be manually updated indeed.

There may be a better way, I dunno.

It so happens this AIO also have wifi.
I may soon try to set that up.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 812

PostPosted: Sun Mar 17, 2024 8:26 am    Post subject: Reply with quote

Good to hear that worked.

Quote:
There may be a better way, I dunno.

Adding your user to the usb group gave it raw access to all USB devices which might not be what you want.
A more secure option would be (assuming you use some kind of udev) to write a udev rule that assigns a new group only to your scanner, and assign that group to your user. In that way you only give it access to your scanner, not to other USB devices.

The wiki seems to assume the sane daemon runs as root, that would solve the permission issues too ;)
_________________
The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world

My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3628

PostPosted: Sun Mar 17, 2024 12:37 pm    Post subject: Reply with quote

Here is installed:
Quote:
user@localhost ~ $ cat /lib/udev/rules.d/56-hpmud.rules
# HPLIP udev rules file. Notify console user if plugin support is required for this device.

ACTION!="add", GOTO="hpmud_rules_end"
SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hpmud_usb_rules"
GOTO="hpmud_rules_end"

LABEL="hpmud_usb_rules"

ENV{ID_USB_INTERFACES}=="", IMPORT{builtin}="usb_id"

# ENV{ID_HPLIP}="1" is for Ubuntu udev-acl
ATTR{idVendor}=="03f0", ENV{ID_USB_INTERFACES}=="*:0701??:*|*:ffcc00:", OWNER="root", GROUP="lp", MODE="0664", ENV{libsane_matched}="yes", ENV{hp_test}="yes", ENV{ID_HPLIP}="1"

LABEL="hpmud_rules_end"
Code:
No experience reading, understanding nor writing .rules files.
openrc+without-systemd repository here.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum