Changes

From Amahi Wiki
Jump to: navigation, search
901 bytes added ,  02:03, 18 November 2010
m
Reverted edits by Acecydoxose (Talk) to last revision by Khelmar
[[Category:Apps]]
This page is about making Amahi run as a Scanner Server.
 
''Your scanner must be supported by SANE for this to work.'' You can check compatibility here:
http://www.sane-project.org/sane-mfgs.html
Due to the variety of scanners available in the market (standalone, as part of a printer or fax or multifunction systems), some may experience trouble with permissions.
== Preventing permissions issues ==
 
You MUST have your scanner plugged in to the server before installing the app!
After installing the app, there will be a file called install_pt2.sh in the app directory (by default, /var/hda/web-apps/scanner).
To run it, use the following commands after plugging in your scanner:
 
su -
(enter root password)
cd /var/hda/web-apps/scanner
./install_pt2.sh
 
Afterward, you can delete install_pt2.sh.
The basic steps the script takes are below. If the script doesn't detect your server, or it detects the wrong one, you may need to take the steps below.
 
== Older instructions ==
We want to make the scanner RW for a scanner group, that Apache is a member of and has access to. To do this, start by making a new group:<BR>
exit
fi
 
groupadd -r scanner
usermod -a -G scanner apache
usermod -a -G scanner root
lsusb
read product_ID
echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\""$vend_ID"\",ATTR{idProduct}==\""$product_ID'", ACTION="add",NAME="bus/usb/$env{BUSNUM}/$env\{DEVNUM\}", GROUP="scanner",OPTIONS+="last_rule"' > /etc/udev/rules.d/22_scanner.rules
echo "Rules created! Please unplug and replug your scanner to finish."
 
Basically, this makes sure the script is running as root (and becomes root if not), lists the currently attached USB devices, and asks for the vendor and product IDs. It then pastes those into a rule that will work.
Trusted, Bots, Bureaucrats, emailconfirmed, Administrators
3,789

edits