[HOW TO] Scanning with porteus

Post tutorials, HOWTO's and other useful resources here.

[HOW TO] Scanning with porteus

Postby francois » 01 Jul 2012, 17: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/downloadlist.aspx?c=ca&lang=en&prod=mfc7860dw_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/productsearch.aspx?c=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/downloadlist.aspx?c=ca&lang=en&prod=mfc7860dw_all&os=128

Specifically for my printer the brscan4 is the appropriate scanner driver:
http://support.brother.com/g/s/id/linux/en/download_scn.html#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/brother-dcp-7065dn-receiving-data-but-not-printing/
http://www.linuxquestions.org/questions/blog/trillobyte-335971/installing-a-brother-mfc-j220-printer-in-slackware-3-1-32bit-3626/

1) Usb install. This will install the scanner driver:
-32 bit:
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)
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:
root@porteus:~/Desktop# brsaneconfig4 -a name=scanner model=MFC-7860DW ip=192.168.0.107
root@porteus:~/Desktop# brsaneconfig4 -q | grep scanner

Note: This same procedure could be used to install from a normal (guest) account). Just open a console and type the following to be root:
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:~# brsaneconfig4 -a name=scanner model=MFC-7860DW ip=192.168.0.107
root@porteus:~# brsaneconfig4 -q | grep scanner
  0 scanner             "MFC-7860DW"        I:10.0.0.7
root@porteus:/opt/brother/scanner/brscan4#


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.107
"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/18403/howto-install-a-scanner-for-a-brother-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:
http://forum.porteus.org/viewtopic.php? ... can#p12229
- 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, 23:16, edited 36 times in total.
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: Scanning with porteus

Postby wread » 01 Jul 2012, 19: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
wread
Module Guard
Module Guard
 
Posts: 1051
Joined: 09 Jan 2011, 19:48
Location: Santo Domingo
Distribution: Porteus v3.2.5-kde5-64 bits

Re: Scanning with porteus: installing a brother printer

Postby francois » 18 Aug 2012, 13: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:
[HOW TO] Universal printer solution: gutenprint-ghostscript
(HOW TO) CUPS: adding lpr and cupswrapper drivers
generic or PCL print drivers: a case the brother MFC-7860dw

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:
[HOW TO] Universal printer solution: gutenprint-ghostscript

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.
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: [HOW TO] Scanning with porteus

Postby francois » 20 Jul 2013, 12:49

Useful thread for me.

I am bumping it. :)
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: [HOW TO] Scanning with porteus

Postby francois » 24 Aug 2013, 21:59

The first post has been revised to take into account the installation of brother scanner on the 64bit architecture. :)
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: [HOW TO] Scanning with porteus

Postby francois » 20 Sep 2013, 18:06

Added some links on porteus related to scanning.
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: [HOW TO] Scanning with porteus

Postby francois » 30 Mar 2014, 23: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/02/functionalizing-scan-to-key-of-brother.html
http://griechenzicken.blogspot.ca/2011/03/using-adf-via-scan-to-keys-of-brother.html

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

I will try to adapt this info for other MFC printers to my MFC -7860DW and maybe to other models hopefully.
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: [HOW TO] Scanning with porteus

Postby francois » 21 Jun 2014, 13:31

Updated for porteus 3.0.
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: [HOW TO] Scanning with porteus

Postby Rava » 22 Jun 2014, 14: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
Rava
Contributor
Contributor
 
Posts: 1280
Joined: 11 Jan 2011, 03:46
Location: Germany
Distribution: Porteus 3.1.0 x86-64 XFCe

Re: [HOW TO] Scanning with porteus

Postby francois » 26 Jun 2014, 03:48

Is it plugged thru a usb port?
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: [HOW TO] Scanning with porteus

Postby Rava » 26 Jun 2014, 04: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
Rava
Contributor
Contributor
 
Posts: 1280
Joined: 11 Jan 2011, 03:46
Location: Germany
Distribution: Porteus 3.1.0 x86-64 XFCe

Re: [HOW TO] Scanning with porteus

Postby francois » 26 Jun 2014, 11: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.
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: [HOW TO] Scanning with porteus

Postby Rava » 26 Jun 2014, 15: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
Rava
Contributor
Contributor
 
Posts: 1280
Joined: 11 Jan 2011, 03:46
Location: Germany
Distribution: Porteus 3.1.0 x86-64 XFCe

Re: [HOW TO] Scanning with porteus

Postby francois » 27 Jun 2014, 17: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 ;)
Voltaire: Le mieux est l'ennemi du bien.
User avatar
francois
Contributor
Contributor
 
Posts: 4718
Joined: 28 Dec 2010, 15:25
Location: C'est l'autome, en forêt les arbres d'ici nous en mettent plein la vue: les rouges, jaunes ...
Distribution: kde xfce porteus manjaro kubun

Re: [HOW TO] Scanning with porteus

Postby Rava » 27 Jun 2014, 18: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
User avatar
Rava
Contributor
Contributor
 
Posts: 1280
Joined: 11 Jan 2011, 03:46
Location: Germany
Distribution: Porteus 3.1.0 x86-64 XFCe

Next

Return to Tutorials



Who is online

Users browsing this forum: No registered users and 1 guest