LTSP | LTSP4.2 Scanning

Enable saned on terminal

Usage

Alternative to net.conf

If you do not wish to add the host to net.conf (as shown above) then you can run the following:

$ SANE_NET_HOSTS=`echo $DISPLAY | cut -d: -f1`
$ export SANE_NET_HOSTS

This will only work for the life of the terminal window - so you will need to run the application from the command line. Alternatively add this to a script that does the scanning.

Scanning from the command line

Check scanner detected

$ scanimage -L

Scan

$ scanimage -l 0 -t 0 -x 215 -y 297 --mode {Lineart|Gray|Color} --resolution {75..600} --format {pnm|tiff} --brightness {-100..100} --contrast {-100..100} >test.pnm

References

comments powered by Disqus