LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-29-2004, 06:53 AM   #1
Jeffmrg
Member
 
Registered: Apr 2004
Distribution: kubuntu
Posts: 50

Rep: Reputation: 15
Using xsane as a user


I believe there must be a very simple solution to a problem using xsane but I have not been able to find it in the posts after some fairly extensive searching.

As a user, I get a 'no devices found' error on launch. When I (su -) I get a 'Gtk warning cannot open display'. When I (su), the program launches as I would expect it to and I can work normally. But all my scans created this way have restricted viewing privileges, requiring that I modify permissions to view them.

Scanning appears to be the (near) last frontier in my 100% migration to Linux. Can someone describe what is going here and provide or point me to a consolidated solution?

Thx.
 
Old 08-29-2004, 08:59 AM   #2
Jeffmrg
Member
 
Registered: Apr 2004
Distribution: kubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
I've been able to make this work by issuing the following command:

chmod 0666 /proc/bus/usb/001/003

where the 001 and 003 are the results of scanimage -L.

How can I make these changes persist across reboots?
 
Old 08-29-2004, 01:15 PM   #3
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
As a quick fix, you can add the "chmod" line to /etc/rc.d/rc.local. That should change the permissions at bootup, but you'll run into problems if you unplug/replug your scanner. The 001/003 filenames change to a different name and the "chmod" line obviously won't work.

The recommended way is to use a hotplug script, and for that you need to enable hotplugging.

Look in /home/dir/sane-backends-1.0.14/tools/hotplug/ (depends on your version of sane). There's also a readme file which basically tells you to copy the libsane.usermap and libusbscanner files from that directory to /etc/hotplug/usb/ and make them executable.

That supposedly takes care of the problem. I say "supposedly" because it hasn't worked for me, but I do know that it has worked for others. Maybe you'll be one of the lucky ones
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xsane DaveyB Linux - Newbie 1 08-16-2004 10:03 AM
need help with xsane and sane jbzy3000 Linux - Software 11 08-09-2004 11:11 PM
Can't start xsane d1l2w3 Linux - Software 1 07-08-2004 02:19 PM
xsane demmylls Linux - General 1 11-18-2003 03:40 AM
xsane for the user joesbox Slackware 1 06-24-2003 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration