home » ltsp » ltsp4.2 » ltsp4.2 scanning
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.
$ scanimage -L
$ 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