LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Accessing scanner on Slackware from Windows 7 system (http://www.linuxquestions.org/questions/slackware-14/accessing-scanner-on-slackware-from-windows-7-system-4175431015/)

wufo 10-07-2012 06:11 PM

Accessing scanner on Slackware from Windows 7 system
 
Is it possible to access a scanner (Brother DCP-7040 printer-scanner-copier) hooked to my Slackware from a Windows 7 system? I find plenty about sharing the printer.

tj

dive 10-07-2012 06:21 PM

To share a scanner with sane you need to edit the following:

/etc/sane.d/net.conf
/etc/sane.d/saned.conf
/etc/sane.d/dll.conf
/etc/inetd.conf
/etc/services

my net.conf:
localhost # also allows access from same machine

my saned.conf:
data_portrange = 10100 - 10110 # ports to use (also need setting in firewall etc)
192.168.1.0/24 # ip address range to allow access from

my dll.conf:
net # network driver
hpaio # actual scanner driver (change to whatever your brother is using)

my inetd.conf:
sane-port stream tcp nowait saned.saned /usr/sbin/saned saned

my services:
sane-port 6566/tcp # SANE network scanner daemon

Then restart /etc/rc.d/rc.inetd and it ought to work (I've no clue on the windows end though).

chrisretusn 10-07-2012 10:18 PM

Follow dive's advice.

All of my installs are Linux, makes this a whole lot easier. I do have have one installation with Windows, my laptop, I dual boot to it. Don't use it much, but I found that connecting to the saned is problematic from Windows. One program does that job though. SaneTwain

mostlyharmless 10-08-2012 04:08 PM

Agree with the above; note that if you want to access the scanner directly from a Windows program such as MS Word, using Alt I-P-S, that will not work. You have to import the images with SaneTwain, then import them into whatever program you want. The SANE advice above is only for the scanner part.

The printer part can be served up with samba, and will be recognized as a network printer by Windows. Make sure you are not using "Home Groups" or whatever Windows 7 calls them, use "Workgroups", which is the older Windows network sharing used by XP. There is extensive documentation for using samba everywhere, but I can post what I do if you want.


All times are GMT -5. The time now is 12:25 AM.