[HOW TO] Scanning with porteus

Post tutorials, HOWTO's and other useful resources here.
User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

[HOW TO] Scanning with porteus

Post#1 by francois » 01 Jul 2012, 16:07

Here is how you can get your brother printer to scan under porteus. This is an example for my brother MFC-7860DW. Your brother printer should work thru the same procedure.

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
-64 bit:
. 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# 
..DCP-7020 (needs brscan2)
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.
Here the MFC-7860DW printer was already assigned to 192.168.0.10, and would not accept 192.168.0.107:

Code: Select all

root@porteus:~# brsaneconfig4 -q | grep scanner
  0 scanner             "MFC-7860DW"        I:192.168.0.107
All you have to do is to remove /opt/brother/scanner/brscan4/brsanenetdevice4.cfg and then reassign the wright printer ip address to the printer scanner.

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
OTHER USEFUL LINKS ON PORTEUS AND ON THE NET ABOUT SCANNING:
- 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.
Last edited by francois on 18 Dec 2014, 22:16, edited 36 times in total.
Prendre son temps, profiter de celui qui passe.

User avatar
wread
Module Guard
Module Guard
Posts: 1255
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v5.0-kde-64 bits
Location: Santo Domingo
Contact:

Re: Scanning with porteus

Post#2 by wread » 01 Jul 2012, 18:39

If you install my HPPrinter package, you get automatically xsane working under >applications>graphics>xsane.

Try it, it works for me!

Regards!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Scanning with porteus: installing a brother printer

Post#3 by francois » 18 Aug 2012, 12:48

Thanks wread. I will try it for sure. However, I would have like to find the solution for xsane independant of hplip as it is a complement to these printing solutions on which I have been working already: gutenprint and cupswrapper printer installations, see:
http://porteus.org/forum/viewtopic.php?f=39&t=822
http://porteus.org/forum/viewtopic.php? ... +LPR#p7510
http://porteus.org/forum/viewtopic.php?f=61&t=967

It took me quite some time to get at the solution. I finally built xsane from source as the available xsane pakages would miss an infinite number of dependencies.

Nonetheless, you might be interested to know that I mention your hplip package at the end of this first post of mine on printing with gutenprint in the first post of thread:
http://porteus.org/forum/viewtopic.php? ... 6289#p6289

The first post of this thread has been edited to provide an hyperlink to the xzm modules that I use to get xsane working in porteus.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: [HOW TO] Scanning with porteus

Post#4 by francois » 20 Jul 2013, 11:49

Useful thread for me.

I am bumping it. :)
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: [HOW TO] Scanning with porteus

Post#5 by francois » 24 Aug 2013, 20:59

The first post has been revised to take into account the installation of brother scanner on the 64bit architecture. :)
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: [HOW TO] Scanning with porteus

Post#6 by francois » 20 Sep 2013, 17:06

Added some links on porteus related to scanning.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: [HOW TO] Scanning with porteus

Post#7 by francois » 30 Mar 2014, 22:44

Additional information is presented in the following links about scanning with some brother printers with the scanning button located on the printer. This is an advantage as you can print automatic document feeder (ADF) :
http://griechenzicken.blogspot.ca/2011/ ... other.html
http://griechenzicken.blogspot.ca/2011/ ... other.html

And in german (we will use the translator):
http://www.dennis-dominguez.de/ojo/MFC- ... dex-e.html

I will try to adapt this info for other MFC printers to my MFC -7860DW and maybe to other models hopefully.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: [HOW TO] Scanning with porteus

Post#8 by francois » 21 Jun 2014, 12:31

Updated for porteus 3.0.
Prendre son temps, profiter de celui qui passe.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [HOW TO] Scanning with porteus

Post#9 by Rava » 22 Jun 2014, 13:21

francois wrote: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:

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.
I don't have a scanner/printer combo but just a plain scanner - an Epson.

Do I still find the scanner driver in the printing.xzm module?
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: [HOW TO] Scanning with porteus

Post#10 by francois » 26 Jun 2014, 02:48

Is it plugged thru a usb port?
Prendre son temps, profiter de celui qui passe.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [HOW TO] Scanning with porteus

Post#11 by Rava » 26 Jun 2014, 03:37

Yes, it's an USB 2.0 scanner.

It's exact name is:
Epson Perfection V500 Photo...

Also has the ability to have an (extra to be bought) auto feeder. see through scanning, scan photo negatives and jazz...
But for now, plain scans from plain paper would be a neat start! :)
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: [HOW TO] Scanning with porteus

Post#12 by francois » 26 Jun 2014, 10:49

I never worked with epson hardware. However, within printing.xzm there are simple scan and xsane functional softwares under porteus. Try the procedure in the first post under:
B. INSTALLING THE SCANNER FOR THE NORMAL USER ACCOUNT

I would be surprised that it would not work. The same procedure works under root account if you prefer.
Prendre son temps, profiter de celui qui passe.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [HOW TO] Scanning with porteus

Post#13 by Rava » 26 Jun 2014, 14:29

francois wrote:However, within printing.xzm there are simple scan and xsane functional softwares under porteus. Try the procedure in the first post under:
B. INSTALLING THE SCANNER FOR THE NORMAL USER ACCOUNT
So, just activate the printing.xzm for 3.0 x86-64 Porteus and set up the stuff?

Is setup done via http interface? Or with a GUI?
Cheers!
Yours Rava

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: [HOW TO] Scanning with porteus

Post#14 by francois » 27 Jun 2014, 16:17

Setup is done via command line.

After activating printing.xzm, from command line:

INSTALLING THE SCANNER

1) Your printer (scanner) has to be plugged with its usb cable. Find your scanner bus address (in the following example my device is brother, yours should be epson):

Code: Select all

root@porteus:/# lsusb
Bus 004 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor
...
...
Bus 001 Device 004: ID 04f9:024f Brother Industries, Ltd
2) 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

root@porteus:/#  chmod a+w /dev/bus/usb/001/004
3) start the SimpleScan or xsane from:
kde menu > applications > graphic > SimpleScan or xsane

or from command line with: simple-scan or xsane.

Note: It happens sometime that in simple scan the wrong usb device is selected. If this is your case, once simplescan is opened, select the appropriate device thru:
Document > preferences > scan source > your-device.

I hope this will work ;)
Prendre son temps, profiter de celui qui passe.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Re: [HOW TO] Scanning with porteus

Post#15 by Rava » 27 Jun 2014, 17:43

francois wrote:Setup is done via command line.
probably I am thinking about some script that automatizes the stuff... :)
francois wrote:Setup is done via command line.
3) start the SimpleScan or xsane from:
kde menu > applications > graphic > SimpleScan or xsane
It also works in / as
XFCe menu > Graphics > SimpleScan or xsane
me thinks?
Cheers!
Yours Rava

Post Reply