(HOW TO) CUPS: adding lpr and cupswrapper drivers
Posted: 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
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