I have a network scanner. Every time I start xsane, it thinks a bit, then prompts me for the root password, then finally the xsane windows come up and I can scan.
Is there any magic I can do to avoid that root prompt? I can't imagine I have to be root to connect to a network device.
On 10/30/21 12:58, Tom Horsley wrote:
I have a network scanner. Every time I start xsane, it thinks a bit, then prompts me for the root password, then finally the xsane windows come up and I can scan.
Is there any magic I can do to avoid that root prompt? I can't imagine I have to be root to connect to a network device.
Hi Tom,
Not what you asked, BUT WHEN DOES THAT STOP ME!!!
I stopped using xsane years ago becasue it is so awkward. I have been using Simple Scan. It is a gazillions times easier to use.
# dnf install simple-scan
Here is how to get it to work on a network:
https://forums.linuxmint.com/viewtopic.php?t=196697 https://forums.linuxmint.com/viewtopic.php?f=42&t=143325
-T
My request for an new name for sane, following the CUPS convention:
Common Unix Scanning System.
CUSS for short.
What ???
On 31/10/2021 03:58, Tom Horsley wrote:
I have a network scanner. Every time I start xsane, it thinks a bit, then prompts me for the root password, then finally the xsane windows come up and I can scan.
Is there any magic I can do to avoid that root prompt? I can't imagine I have to be root to connect to a network device.
What type of scanner do you have and how is it networked?
-- On Facebook it is called Vaguebooking.
On Sun, 31 Oct 2021 13:57:33 +0800 Ed Greshko wrote:
Is there any magic I can do to avoid that root prompt? I can't imagine I have to be root to connect to a network device.
What type of scanner do you have and how is it networked?
It is an old Epson Artisan 725 which can't print any longer, but can still scan. I'm using the wifi built in to it.
On 31/10/2021 20:07, Tom Horsley wrote:
On Sun, 31 Oct 2021 13:57:33 +0800 Ed Greshko wrote:
Is there any magic I can do to avoid that root prompt? I can't imagine I have to be root to connect to a network device.
What type of scanner do you have and how is it networked?
It is an old Epson Artisan 725 which can't print any longer, but can still scan. I'm using the wifi built in to it.
OK, I thought maybe it was a USB scanner being connected via CUPS.
If you give the root pw, scan, and then quit xsane and then restart xsane does it ask for the root pw again?
-- On Facebook it is called Vaguebooking.
On Sun, 31 Oct 2021 22:08:33 +0800 Ed Greshko wrote:
If you give the root pw, scan, and then quit xsane and then restart xsane does it ask for the root pw again?
Yep, asks every time. I did find some ancient entries down in ~/.sane for many older scanners I used once upon a time, so I deleted them since maybe it is trying to see if one of them still exists, but it still asks for the root password every time.
On Sat, 30 Oct 2021 16:50:23 -0700 ToddAndMargo via users wrote:
# dnf install simple-scan
Here is how to get it to work on a network:
https://forums.linuxmint.com/viewtopic.php?t=196697 https://forums.linuxmint.com/viewtopic.php?f=42&t=143325
It works, but is exactly like xsane, it asks for the root password before finding the scanner :-(.
On the other hand, if I hit "cancel" instead of giving the password, it is still able to scan, so something strange is going on behind the scenes.
On Sun, 31 Oct 2021 10:25:45 -0400 Tom Horsley wrote:
It works, but is exactly like xsane, it asks for the root password before finding the scanner :-(.
On the other hand, if I hit "cancel" instead of giving the password, it is still able to scan, so something strange is going on behind the scenes.
Found it! https://bbs.archlinux.org/viewtopic.php?id=263182
I no longer have an hp scanner or printer, so I removed libsane-hpaio and hplip and no longer get the $@!# root prompt in xsane or simple-scan
On 10/31/21 07:48, Tom Horsley wrote:
On Sun, 31 Oct 2021 10:25:45 -0400 Tom Horsley wrote:
It works, but is exactly like xsane, it asks for the root password before finding the scanner :-(.
On the other hand, if I hit "cancel" instead of giving the password, it is still able to scan, so something strange is going on behind the scenes.
Found it! https://bbs.archlinux.org/viewtopic.php?id=263182
I no longer have an hp scanner or printer, so I removed libsane-hpaio and hplip and no longer get the $@!# root prompt in xsane or simple-scan
Awesome troubleshooting! :-)
On Sun, 31 Oct 2021 10:48:12 -0400 Tom Horsley wrote:
Found it! https://bbs.archlinux.org/viewtopic.php?id=263182
I no longer have an hp scanner or printer, so I removed libsane-hpaio and hplip and no longer get the $@!# root prompt in xsane or simple-scan
AARGH! Apparently my brother printer needs something in hplip to work, so I reinstalled and changed my after-dfn-hooks script to add: "rm -f /etc/sane.d/dll.d/hpaio" to remove the annoying file when it gets recreated by some update.
DNF hooks described here:
On 2021-11-01 07:41, Tom Horsley wrote:
On Sun, 31 Oct 2021 10:48:12 -0400 Tom Horsley wrote:
Found it! https://bbs.archlinux.org/viewtopic.php?id=263182
I no longer have an hp scanner or printer, so I removed libsane-hpaio and hplip and no longer get the $@!# root prompt in xsane or simple-scan
AARGH! Apparently my brother printer needs something in hplip to work, so I reinstalled and changed my after-dfn-hooks script to add: "rm -f /etc/sane.d/dll.d/hpaio" to remove the annoying file when it gets recreated by some update.
That doesn't make sense. Which drivers are you using?
On Mon, 1 Nov 2021 13:17:11 -0700 Samuel Sieb wrote:
That doesn't make sense. Which drivers are you using?
Whatever I found when I first installed it years ago :-). Looking in printers.conf I see this:
MakeModel Brother HL-2040 Foomatic/hpijs-pcl5e
Or maybe that's what the brother installer or cups itself decided to use.
Anyway I guess that explains why it needs hplip.
On 2021-11-01 14:00, Tom Horsley wrote:
On Mon, 1 Nov 2021 13:17:11 -0700 Samuel Sieb wrote:
That doesn't make sense. Which drivers are you using?
Whatever I found when I first installed it years ago :-). Looking in printers.conf I see this:
MakeModel Brother HL-2040 Foomatic/hpijs-pcl5e
Or maybe that's what the brother installer or cups itself decided to use.
Anyway I guess that explains why it needs hplip.
That would explain it. You might want to look into using the actual Brother drivers instead.