(HOW TO) CUPS: adding lpr and cupswrapper drivers

Post tutorials, HOWTO's and other useful resources here.
Post Reply
User avatar
francois
Contributor
Contributor
Posts: 5068
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

(HOW TO) CUPS: adding lpr and cupswrapper drivers

Post#1 by francois » 02 Nov 2011, 17:16

Under CUPS, I have added gutenprint and ghostscript packages to provide printing capabilities to porteus 32 bit and 64bit v 1.0 edition:
http://porteus.org/forum/viewtopic.php?f=39&t=822

However, in the case you do not want to install Gutenprint or your printer is not available under CUPS with the gutenprint-postscript solution, one way around would be:
1. to add your vendor specific printer cupswrapper and lpr drivers or
2. to use Foomatic ppd

This post is about providing printing capabilities under porteus by adding lpr and cupswrapper for an individual printer (the minimalist printing solution). In addition, you will need ghostscript, ghostscript-fonts-std packages or modules (these files are available from PPM for the 64bit edition).

ADDING A PRINTER DRIVER (32bit edition only), see in Linuxquestion installing a brother MFC-J220 printer:
http://www.linuxquestions.org/questions ... 2bit-3626/

1. get the appropriate lpr and cupsdriver printer drivers from the printer download company, convert the rpm version from rpm to xzm using the a right click of the mouse. In this post we will use a brother printers as example:
http://welcome.solutions.brother.com/bs ... index.html

2. install the two drivers begining with the lpr driver (thus activate them)
3. create a sym link to allow the stop and restart of the CUPS daemon during driver installation
4. find the cupswrapper driver in the cupswrapper folder located in the /usr/local/PrinterBrand folder and in command line position yourself in that folder
5. start the cupswrapper script for your specific printer
6. follow the instructions in the following link to install usb or network printer:
http://porteus.org/forum/viewtopic.php?f=39&t=822

If you installed the additional drivers over the gutenprint installation, look carefully the individual printer might not be in alphabetical order as it was the case for the brother hl2170w.

Example for the brother HL2170-W from step 3:
bash-4.1# ln -s /etc/rc.d/rc.cups /etc/rc.d/init.d/cups
bash-4.1# cd /usr/local/Brother/cupswrapper (Note: this location varies from printer to printer even for the same brand. You really have to look around. For example, the brother printer MFC7860DW cupswrapper is in /usr/local/Brother/Printer/MFC7860DW/cupswrapper)
bash-4.1# ./cupswrapperHL2170W-2.0.2
cups: restarted scheduler. [ OK ]
bash-4.1#

Some additional folders have to be created and files have to be displaced .

ADDING A PRINTER DRIVER (64bit edition tested), see brother faq installing Linux 64 bit:
http://welcome.solutions.brother.com/bs ... index.html

1. Install the standard C library for 32bit applications or compat32-libraries-1.1.02_13.37-x86_64-1hamza.xzm:
http://porteus.olympe-network.com/repos ... .02_13.37/
and use the xzm2rpm module for 64bit<;
viewtopic.php?f=73&t=824
2. There is no need to create some additional folders
3. Follow steps 1 to 5 for porteus 32bit
4. Copy brlpdwrapperXXX files under /usr/lib/cups/filter/ to /usr/lib64/cups/filter/
5. follow the instructions in the following link to install usb or network printer:
http://porteus.org/forum/viewtopic.php?f=39&t=822

bash-4.1# ln -s /etc/rc.d/rc.cups /etc/rc.d/init.d/cups
bash-4.1# cd /usr/local/Brother/cupswrapper
bash-4.1# ./cupswrapperHL2170W-2.0.2 cups: restarted scheduler. [ OK ]
bash-4.1# cp /usr/lib/cups/filter/brlpdwrapper* /usr/lib64/cups/filter
bash-4.1#

This procedure should be good for other printer brands.

Posted after 3 days 6 hours 1 minute 25 seconds:
Funny. I thought that 64bit edition was working for lpr and cupswrapper drivers. But I only get the print test page going. Impossible to print from openoffice. CUPS reacts as if there was no printer. I had to add gutenprint in addition to both ghostscript packages to be able to print.

FOOMATIC
The foomatic solution for the hl2170w is described in the following thread of archlinux:
https://wiki.archlinux.org/index.php/Brother_HL-2170W
http://distro.ibiblio.org/smeserver/con ... -ppds.html
http://www.linuxfoundation.org/collabor ... umentation

I have begun some testing on foomatic using rpm for the packages. The number of available printers is astonishing. However, I was not able yet able to use it to get my brother printer work. There seems to be some fine adjustment issues and to the many alternatives proper to each individual printer, see:
http://distro.ibiblio.org/smeserver/con ... -ppds.html
Last edited by francois on 12 Jan 2012, 21:53, edited 8 times in total.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: (HOW TO) CUPS: adding lpr and cupswrapper drivers

Post#2 by Hamza » 02 Nov 2011, 20:40

Please use the url bbcode tag to past an URL otherwise, We cannot use it if this one is too long.

To use it

Code: Select all

[url]http://domain.tld/path/to/page[/url]
Thanks
NjVFQzY2Rg==

User avatar
francois
Contributor
Contributor
Posts: 5068
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: (HOW TO) CUPS: adding lpr and cupswrapper drivers

Post#3 by francois » 02 Nov 2011, 23:23

Why are these links not recognised as a link:
viewtopic.php?f=39&t=822
viewtopic.php?f=39&t=822
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: (HOW TO) CUPS: adding lpr and cupswrapper drivers

Post#4 by Hamza » 03 Nov 2011, 17:38

Use the url tag like this example,

Code: Select all

[url]http://porteus.org/forum/viewtopic.php?f=39&t=822[/url]
If you use the first example, you will get this http://porteus.org/forum/viewtopic.php?f=39&t=822

More informations, Here

Sorry for offtopic.
NjVFQzY2Rg==

User avatar
francois
Contributor
Contributor
Posts: 5068
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: (HOW TO) CUPS: adding lpr and cupswrapper drivers

Post#5 by francois » 12 Jan 2012, 22:13

This method of lpr and cupswrapper drivers does not work with mfc-7860dw. Though the print test page will work. Puzzling!! This is a brand new printer. :crazy:

Looking on the net (googling), there is only one good but incomplete reference:
http://littlesvr.ca/linux-stuff/article ... ckware.php

They propose the use the Generic PostScript Printer driver. Looking at the brother site:
http://welcome.solutions.brother.com/BS ... ll&Cat=101

MFC-7860dw is a brother monochrome laser printer/multi-function product that supports PCL5e or PCL6. In CUPS, with the gutenscrip-postscript method when you get at the select make/manufacturer, select generic and then PCL6/PCL XL LF printer.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
francois
Contributor
Contributor
Posts: 5068
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: (HOW TO) CUPS: adding lpr and cupswrapper drivers

Post#6 by francois » 27 Jan 2012, 22:49

Thinking deeply about it :twisted: , maybe it is just a question of the files not being in the right folder. Theses files seems to be set in the right folder for the 64bit systems. I will look into this a little more closely.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: (HOW TO) CUPS: adding lpr and cupswrapper drivers

Post#7 by Hamza » 27 Jan 2012, 23:30

/usr/lib or /usr/lib64 ??
NjVFQzY2Rg==

Post Reply