initial commit
This commit is contained in:
43
readme.md
Normal file
43
readme.md
Normal file
@@ -0,0 +1,43 @@
|
||||
## Setup
|
||||
|
||||
### Sane
|
||||
|
||||
```bash
|
||||
sudo apt intall sane-utils
|
||||
# add user to scanner group. Logout after this command
|
||||
sudo adduser zero scanner
|
||||
# find scanner ids
|
||||
lsusb
|
||||
# copy and modify udev example file to udev folder
|
||||
sudo cp udev-example/55-libsane.rules /etc/udev/rules.d/
|
||||
# restart udev service, than unplug and replug scanner
|
||||
sudo service udev restart
|
||||
# now this should run without sudo
|
||||
scanimage -L
|
||||
```
|
||||
|
||||
### Scanner button
|
||||
|
||||
```bash
|
||||
sudo apt install scanbd
|
||||
# create script directory
|
||||
sudo mkdir /etc/scanbd/scripts
|
||||
# copy script
|
||||
sudo cp scannerbutton.sh /etc/scanbd/scripts/
|
||||
# backup original plustek config
|
||||
sudo mv /etc/scanbd/scanner.d/plustek.conf /etc/scanbd/scanner.d/plustek.conf.orig
|
||||
# copy modified plustek.conf
|
||||
sudo cp scanner.d/plustek.conf /etc/scanbd/scanner.d/
|
||||
# restart scanbd
|
||||
sudo service scanbd restart
|
||||
```
|
||||
|
||||
## Scanning
|
||||
|
||||
```bash
|
||||
scanimage -x 210 -y 297 --format=png --resolution 150 > /media/miniretek/scanner/scan-`date +%F-%H%M`.png
|
||||
```
|
||||
|
||||
## Acknoledgements
|
||||
|
||||
scannerbutton.sh based on the script found here: https://www.linux.com/news/how-configure-scanners-buttons-linux/
|
||||
Reference in New Issue
Block a user