Results 1 to 15 of 195

Thread: [HowTo] Sane Scanner-Server with XSane Frontend

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Location
    Germany, Bonn
    Posts
    374

    Lightbulb [HowTo] Sane Scanner-Server with XSane Frontend

    Here you find the german translation of this How-To.


    -------------------------------------------------------------------------
    News around the How-To:

    2010-10-15:
    Added section "4. Known problems with some printers"
    Therefor I need your support. So please post your experiences!
    The How-To is updated.

    2010-07-08:
    I compiled hplip 3.9.2-1. HP-Scanners sould now be well supported!!!
    The How-To is updated.

    2009-10-26 ipkg package from optware server:
    Since I am official Maintainer of the sane-backends optware package, you can use the optware package of sane-backends now.
    I will update the package with every revision.
    The HowTo is updated for use with the optware package

    -------------------------------------------------------------------------


    Hi everybody,

    after months of working, I finally succeeded in setting up a Sane Scanner-Server on my Asus Wl500gP. I so often found help in this forum, so I decided to give something back and write this Tutorial. There are some Threads about this topic, sadly the Threads are not that helpfull. Thats why I decided to compile the latest stable version of sane-backends for our routers. It works fine!!


    About Sane:

    A Scanner-Server makes it possible, to share a scanner, that is connected to your router, to every person who has access to your network. Like you know it from networkprinters. Unlike printservers (like they are used in printers) scanner-servers are not that popular and they are also very expensive. With the help of the Sane scanner-server your asus router is a adequate scanner-server.
    To control your scanner from a PC, I use the XSane frontend. If you like to know, how the frontend looks like, take a look at the attached image.

    For further information on Sane and XSane, take a look at the following links.
    Sane-Project
    Xsane

    First of all, you have to check if your scanner/multifunction printer is supported by the Sane-server. Status should be at least "basic". If everything is fine, you can go on.


    Parts of the How-To:

    1. Firmware-Update (you need the newest router firmware, otherwise your router isn't able to talk to many printers).

    2. Installation and configuration of the Sane scanner-server on your asus router.

    3. Installation and configuration of the Xsane frontend.


    Basic requirement is, that your router is installed on wengi's HowTo.
    Thanks to wengi!


    So lets start!


    1. Firmware-Update

    Here you get the latest firmware for your router.
    For those of you, who do not know the project yet, its a further development of the oleg firmware. It has the same functionality like Oleg's firmware, but its build on a newer kernel.
    If you wanna learn more about the project, look here.
    Please note: You can try it with your current firmware (e.g. oleg's 1.9.2.7-10) but it will not work with many printers. Especially many Canon and HP printers will not be supported.


    2. Installation of the Sane scanner-server

    Attention: If you worked with sane-backends before, you have to remove all older versions of the sane-backends on your mashine.
    So to be sure:
    Code:
    ipkg remove sane-backends
    ipkg remove sane-backends-wl500

    2.1 Install some libraries

    The Sane Scanner-Server needs some additional libraries.
    Code:
    ipkg install libusb
    ipkg install libtiff
    ipkg install libjpeg
    ipkg install libieee1284

    2.2 Install the package from optware

    Just do a:
    Code:
    ipkg update
    ipkg install sane-backends

    2.3 Edit the config-file

    After installing the Sane server, you can start with the configuration.
    Therefor, open the Sane config file:
    Code:
    vi /opt/etc/sane.d/saned.conf
    Customize the following line at the end of the file, so it fits to your network:
    Code:
    192.168.1.0/24 #grant access to scanner from network 192.168.1.x

    2.4 Edit the xinetd-script

    You have to change the user and group in the xinetd-script to your root-user.
    My root-user is "admin".
    Code:
    vi /opt/etc/xinetd.d/saned
    Code:
    service saned
    {
    socket_type = stream
    server = /opt/sbin/saned
    protocol = tcp
    user = admin
    group = root
    wait = no
    disable = no
    }

    2.5 Restart the router and check if the server is running

    Reboot:
    Code:
    flashfs save && flashfs commit && flashfs enable && reboot
    The following command checks, if the scanner was found:
    Code:
    sane-find-scanner
    That has to be the output:
    Code:
    found USB scanner (vendor=0x04a9 [Canon], product=0x1713 [MP830]) at libusb:003:004
    Now the following command:
    Code:
    scanimage -L
    That has to be the output now.
    Code:
    device `pixma:04A91713_19E40D' is a CANON Canon PIXMA MP830 multi-function peripheral
    If both outputs are correct, your Sane-server is working fine


    3. HPLIP

    Most HP-Scanner uses hplip. I compiled a working ipkg-package.
    Take a look at this post.


    4. Known issues with some printers

    4.1 HP PhotoSmart c5283

    Refer to the following post. Thanks to electropanda!


    5. Installation and configuration of XSane on Windows

    5.1 Download the software

    Here you get the latest version of XSane.


    5.2 Installation of XSane

    There is not that much to "install".
    Extract the archiv and copy the folder "sane" to C:\
    Attention: The storage position is important, otherwise the software will not work.


    5.3 Configuration of XSane

    The coniguration is also not that difficult. You only have to edit the following file:
    Code:
    C:\sane\etc\sane.d\net.conf
    At the end of the file, you have to paste your router ip-adress. That's how my config file looks like:
    Code:
    # This is the net config file.  Each line names a host to attach to.
    # If you list "localhost" then your backends can be accessed either
    # directly or through the net backend.  Going through the net backend
    # may be necessary to access devices that need special privileges.
    # localhost
    192.168.1.1 #Thats my router-ip
    5.4 Starting XSane

    You can start the program by executing the following file:
    Code:
    C:\sane\bin\xsane.exe
    Now you can scan images with XSane

    There are some more frontends available, look here for an overview.


    For all Linux users:

    There is also a linux version of XSane available. For more information look at the XSane-homepage.


    If you have any problems during installation/configuration post in this thread.
    If you like the How-To and your Sane scanner-server works, please also make a short post

    Regards
    Oliver
    Attached Files Attached Files
    Last edited by carterb; 15-10-2010 at 13:19.
    Regards / Grüße,
    Oliver

    [How-To] Sane Scanner-Server mit XSane Frontend "german"
    [How-To] Sane Scanner-Server with XSane Frontend "english"

    Router: Wl500gP v1 nach Wengi's HowTo mit FW 1.9.2.7-d-r599
    Speicher: Trekstor DataStation maxi 1 Tb
    Clients: Kathrein UFS910 FullHD Sat Receiver, PS3, PCs, Canon MP830 an Sane Scanner-Server, Kyocera-Mita FS1020D über Printserver

Similar Threads

  1. Replies: 24
    Last Post: 05-05-2015, 07:42
  2. SANE (Scanner server) - Any chance for WL-500g?
    By Dante_ in forum WL-500g Custom Development
    Replies: 107
    Last Post: 31-08-2012, 10:41
  3. [HowTo] Sane Scanner-Server mit XSane Frontend
    By carterb in forum German Discussion - Deutsch (DE)
    Replies: 9
    Last Post: 30-08-2012, 19:01
  4. HowTo install OpenVPN server
    By Tamadite in forum WL-500g/WL-500gx Tutorials
    Replies: 41
    Last Post: 31-05-2012, 20:41
  5. HowTo secure FTP server (SSL/TLS)
    By Tamadite in forum WL-500gP Tutorials
    Replies: 12
    Last Post: 14-10-2008, 19:38

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •