A. INSTALLING XSANE AND SIMPLE SCAN
1) From porteus 3.0 there is a printer module printing.xzm. It includes xsane and simplescan. Download the module and activate it. See the download drivers site of brother:
http://support.brother.com/g/b/download ... all&os=128
Select you country or language, you brother printer model, the linux os and the appropriate architecture (32 or 64bit). Personnally, I choose the scanner driver 32 bit .deb package.
B. INSTALLING SCANNER DRIVERS.
To get xsane or simple scan to work you need a functional scanner driver installed. For other brands of printer than brother you will have to follow the procedure of your printer manufacturer.
Example for the brother MFC 7860DW printer and for DCP-7020 (here usb install and 64 bit architecture). Get your linux scanner driver from the brother site:
http://support.brother.com/g/b/products ... ca&lang=en
You have to find your brother printer model, the linux os and the appropriate architecture (32bit or 64bit), thus:
http://support.brother.com/g/b/download ... all&os=128
Specifically for my printer the brscan4 is the appropriate scanner driver:
http://support.brother.com/g/s/id/linux ... ml#brscan4
After converting the .deb or .rmp package into a .xzm module (right click the .deb package, and in contextual menu choose convert .deb to .xzm module), you install and activate it (double click on the module) in the /porteus/modules folder. To get xsane or simple scan utilities fully functional (packages which are part of the printing.xzm porteus module):
http://bleedux.wordpress.com/2011/08/01 ... -printing/
http://www.linuxquestions.org/questions ... 2bit-3626/
1) Usb install. This will install the scanner driver:
-32 bit:
Code: Select all
root@porteus:/usr/local/Brother/sane# cd /opt/brother/scanner/brscan4/
root@porteus:/opt/brother/scanner/brscan4# ls
Brsane4.ini brsanenetdevice4.cfg models4/
brsaneconfig4* doc/ setupSaneScan4*
root@porteus:~/Desktop# ./setupSaneScan4 -i
. MFC 7860DW (needs brscan4)
Code: Select all
root@porteus:/usr/lib64/sane# cd /opt/brother/scanner/brscan4/
root@porteus: ls
Brsane4.ini brsaneconfig4 brsanenetdevice4.cfg doc models4 setupSaneScan4
root@porteus:/opt/brother/scanner/brscan4# ./setupSaneScan4 -i
root@porteus:/usr/local/Brother/sane# brsaneconfig4 -q | grep scanner
root@porteus: /opt/brother/scanner/brscan4#
root@porteus:/home/guest/Downloads# cd /usr/local/Brother/sane/
root@porteus:/usr/local/Brother/sane# ls
Brsane2.ini brsaneconfig2* models2/
GrayCmData/ brsanenetdevice2.cfg setupSaneScan2*
root@porteus:/usr/local/Brother/sane# ./setupSaneScan2 -i
root@porteus:/usr/local/Brother/sane# brsaneconfig2 -q | grep scanner
Note: In my case, simple-scan will work if I select as scan source Brother scanner and not the printer itself (Brother MFC-7860DW). You have to set this manually before being able to scan. Otherwise, there will be a scanner error.
2) Network install. This will make the scanner driver install available thru the network: the following command will respectively setup the scanner network mode and verify its installation. However you need to perform the above usb install procedure first:
Code: Select all
root@porteus:~/Desktop# brsaneconfig4 -a name=scanner model=MFC-7860DW ip=192.168.0.107
root@porteus:~/Desktop# brsaneconfig4 -q | grep scanner
Troubleshooting issue: If you ever get to register the wrong ip address for the brother printer scanner function, you will get an error message if you try to assign the right one:
Code: Select all
root@porteus:~# brsaneconfig4 -a name=scanner model=MFC-7860DW ip=192.168.0.10
"scanner" is already registered.
Code: Select all
root@porteus:~# brsaneconfig4 -q | grep scanner
0 scanner "MFC-7860DW" I:192.168.0.107
B. INSTALLING THE SCANNER FOR THE NORMAL USER ACCOUNT
The maintainer of xsane does not suggest using xsane under root account. You have to do it at your own risk. In my case, I run it root. I did not have any major problem yet.
Under normal user account, you have to make your printer usb port available:
http://crunchbanglinux.org/forums/topic ... mfc7860dw/
1) Your printer has to be plugged with its usb cable. Find your scanner bus address with lsusb and grant the necessary permissions with chmod a+w /dev/bus/usb/$BUS/$DEVICE. Thus in for example for the MFC 7860dw brother printer:
Code: Select all
bash-4.1:~$ lsusb
Bus 004 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 1516:8628 CompUSA Pen Drive
Bus 001 Device 005: ID 046d:c52e Logitech, Inc.
Bus 001 Device 004: ID 04f9:024f Brother Industries, Ltd
Bus 001 Device 003: ID 04f2:b016 Chicony Electronics Co., Ltd VGA 30fps UVC Webcam
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
bash-4.1:~$
Code: Select all
bash-4.1:~$sudo chmod a+w /dev/bus/usb/001/004
2) start the xsane from within porteus menu or with xsane command:
Code: Select all
bash-4.1:~$ xsane
- simple scan:
Scanning and recognition documents
- scanning and recognition of documents:
Scanning and recognition documents
- porteus printer module:
Print and scan module for Porteus 2.1
Modified as of 2014-03-30. Updated for porteus 3.0 2014-06-21.