[sane-devel] No devices available
Mon, 13 Jan 2003 07:40:29 +0100
The device you try to connect to should be accessible by the user who run=
scanimage, xscanimage, xsane, etc...
ls -al /dev/scanner
ls -al /dev/sg1
to check that "other users" are allowed to read and write the device. If =
chmod 766 /dev/sg1
chmod 766 /dev/scanner
to grant read-write access to all users to those devices.
The other problem (connecting to display: :0.0) looks like a permissionin=
issue under X.=20
You could change the DISPLAY environment variable before trying to run=20
xscanimage with root to set it to another display ?
Le Lundi 13 Janvier 2003 05:05, Barry Kirsten a =E9crit :
> Hi Henning,
> On Mon, 13 Jan 2003 08:15, Henning Meier-Geinitz wrote:
> > Well, what does happen when you try to scan? Try scanimage >image.pnm=
> > If that doesn't work, set the debug variable. Do the same for xsane.
> > Do you use both xsane and scanimage as the same user? Otherwise there
> > may be permission problems. I only one version of SANE installed?
> > Otherwise xsane may use the other one.
> scanimage works, but only when run as root. When I try scanimage as a
> normal user I get the message: scanimage: no SANE devices found. This i=
> similar to when I try to start xsane from KDE as normal user: xsane: no
> devices found.
> Note...sane and xsane are set up for anyone to execute, so not a permis=
> There is certainly only one copy of xsane running. To be certain I trie=
> removing it with apt-get remove twice, (and also for sane on its own) a=
> got nothing.
> I think this is part of the problem...when I try to start xsane as root=
> debian:/home/barry# xsane
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> Gtk-WARNING **: cannot open display: :0.0
> I'm out of my depth here. Is this a problem with permissions/access
> somewhere in X? (Don't forget, I was root when starting xsane from
> terminal.) Also the version of xsane I'm using is 0.84-2 from the Debia=
> stable CDs.
> Many thanks for your help,
> Sane-devel mailing list