Linux/Scan Server: Difference between revisions

From Wiki
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
* scanbutton.d with ScanSnap S1500
== Fujitsu ScanSnap S1500 scan server with Raspberry Pi ==
* general
<blockquote>
<blockquote>
<pre>
<pre>
scanimage --resolution 300 --device-name $2 --mode Color --source "ADF Front" --page-width 210 --page-height 297 -x 210 -y 297 |
apt-get install sane
pnmflip -r180 |
pnmtops -width 8.263 -height 11.69 -imagewidth 8.263 -imageheight 11.69 > $TMPFILE_PS
ps2pdf $TMPFILE_PS $TMPFILE_PDF
</pre>
</pre>
</blockquote>
</blockquote>


 
* scanbd (daemon for checking the scanner button)
* scanbd
<blockquote>
<blockquote>
<pre>
<pre>
apt-get install sane
apt-get install build-essential
apt-get install build-essential
apt-get install libconfuse-dev libusb-dev libudev-dev libdbus-1-dev dbus libsane-dev
apt-get install libconfuse-dev libusb-dev libudev-dev libdbus-1-dev dbus libsane-dev
Line 39: Line 35:
</blockquote>
</blockquote>


* /srv/scanner/udev_connect.sh
 
* udev (actions when plugging/unplugging scanner)
:* /etc/udev/rules.d/scansnap.rules
<blockquote>
<pre>
ACTION==""
</pre>
</blockquote>
 
:* /srv/scanner/udev_connect.sh
<blockquote>
<blockquote>
<pre>
<pre>
Line 46: Line 51:
</blockquote>
</blockquote>


* /srv/scanner/udev_disconnect.sh
:* /srv/scanner/udev_disconnect.sh
<blockquote>
<blockquote>
<pre>
<pre>
Line 52: Line 57:
</pre>
</pre>
</blockquote>
</blockquote>
* owncloud
* old stuff
<blockquote>
<pre>
scanimage --resolution 300 --device-name $2 --mode Color --source "ADF Front" --page-width 210 --page-height 297 -x 210 -y 297 |
pnmflip -r180 |
pnmtops -width 8.263 -height 11.69 -imagewidth 8.263 -imageheight 11.69 > $TMPFILE_PS
ps2pdf $TMPFILE_PS $TMPFILE_PDF
</pre>
</blockquote>
[[Category:Linux/Services]]
[[Category:Linux]]

Latest revision as of 13:57, 1 April 2017

Fujitsu ScanSnap S1500 scan server with Raspberry Pi

  • general
apt-get install sane
  • scanbd (daemon for checking the scanner button)
apt-get install build-essential
apt-get install libconfuse-dev libusb-dev libudev-dev libdbus-1-dev dbus libsane-dev
wget scanbd...
...unpack...
./configure
make
make install
cp -R /etc/sane.d /usr/local/etc/scanbd
edit /usr/local/etc/scanbd/scanbd.conf
copy scanbd dbusfile
copy scanbd init file
update-rc.d scanbd disable


  • udev (actions when plugging/unplugging scanner)
  • /etc/udev/rules.d/scansnap.rules
ACTION==""
  • /srv/scanner/udev_connect.sh
sudo /etc/init.d/scanbd restart
  • /srv/scanner/udev_disconnect.sh
sudo /etc/init.d/scanbd stop


  • owncloud


  • old stuff
scanimage --resolution 300 --device-name $2 --mode Color --source "ADF Front" --page-width 210 --page-height 297 -x 210 -y 297 | 
pnmflip -r180 | 
pnmtops -width 8.263 -height 11.69 -imagewidth 8.263 -imageheight 11.69 > $TMPFILE_PS
ps2pdf $TMPFILE_PS $TMPFILE_PDF