CUPS printing - installation script - update 13SEP06
Posted: Fri 04 Aug 2006, 08:19
Installing CUPS and a parallel port or USB printer in Puppy 1.xx or 2.xx
5DEC06 - USE THIS NEW DOTPUP INSTEAD: cups-install-v0.3.pup for even easier CUPS and printer installation !
* * * * * * * * * * * * * * * * * * * * * * * * * *
UPDATE 13SEP06: Installation script v0.1f. Changes from script v0.1c:
- verifies any *.ppd file in cups-install dir with 'cupstestppd'
- added 'network' to choice of printer types
- starts default browser with CUPS web interface from script
- checks for missing perl modules only in Puppy 2.01/2.02 (perl 5.8.6).
(Puppy 2.10, using perl 5.8.8, has the missing modules)
- checks that cupsd is running before starting browser
- backs up original /etc/rc.d/rc.local to /etc/rc.d/rc.local_cups
- changed to high-capacity download server ftp://slackware.cs.utah.edu
* Background
Barry K has, through his Puppy Printer Wizard, put printer support in Puppy for a number of Canon, Epson, HP and Lexmark printers. This is good news for those having one of the supported printers. Unfortunately, my Brother HL-1030 parallel port printer is not one of them. To make matters worse, in order to share it in my home network, I had it connected to my D-Link DI-713P Wireless Gateway's printer port. This required a special driver from D-Link to get to work in XP.
When rarsa announced his breakthrough CUPS solution for Puppy some time ago, I used his scripts and the files that were downloaded to get the Brother printer to work in Puppy 1.07. It was easier to set up in Puppy than it was in XP - no special driver was neccessary! I must confess that I did have to search the net for the right 'Device' and 'Device URI' syntax for this unusual configuration. It turned out to be 'Device': 'LPD/LPR Host or Printer' and 'Device URI': lpd://192.168.0.1/lp' for my network. I've been printing happily ever since. The ability to print from Puppy was the one thing that had kept me from running Puppy as my main OS instead of Kanotix.
* The CUPS installation script
I have been following the CUPS threads on the Puppy forum and the great work dewdrop has been doing helping others. However, I found rarsa's instructions awkward, having to execute separate scripts to install the CUPS files. They also needed updating for Puppy 2.xx. So I decided to re-write the scripts into a single script, update the CUPS files from Slackware 10.1 to 10.2 and add the CUPS 'gimp-print' file containing numerous additional printer drivers.
The script will now ask for the type of printer to be installed (parallel, USB or network) and install the correct modules for either Puppy 1.xx or 2.xx (the module names have changed between kernel versions).
Please note that in Puppy 2.00/2.01/2.02, the perl installation is missing some perl modules needed to run CUPS. The missing files are in perl_missing.tar.gz, attached to this post. See the instructions further down on how to install this file.
* Instructions for using the script
Installing the CUPS files (Note - you need to be online so the script can download the necessary files)
1. Download the attached file (cups-install.tar.gz) and copy it to /root/
Then, in a console, do the following:
2. Change to your root directory
# cd /root
3. Unpack the file:
# tar -xzf cups-install.tar.gz
4. Change to the installation directory
# cd cups-install
5. Run the script. This will download and install the four CUPS files. If the files have been previously downloaded, the script will use the these files instead of downloading them again. Just make sure they are in the same directory as the CUPS install script.
# sh cups-install.sh
Adding and configuring your printer
1. After the CUPS files are installed, the script will automatically start up your default browser with the CUPS web interface where you add and configure your printer. The terminal with this script will remain open with instructions to help you add and configure your printer. Once configured, a test page can be printed to check the setup. No re-booting of the PC is neccessary.
If you should want to read the instructions again, they are in the file 'cups-conf.txt'. Open the file with an editor to read it.
Note that you may not need to download a .ppd file for your printer before running this script. It may already be listed on the 'Make' and 'Model' pages of the CUPS web interface. If it is not listed, download a suitable .ppd file from www.linuxprinting.org , copy it to the same directory as this script and then run the script again. It will automatically install the .ppd file. The 'Make' and 'Model' should now be present when you try to add the printer in the CUPS web interface.
Tip: If you have an HP printer, you can check which 'Model' name to use in the CUPS web interface by looking up the 'Printer Class' for your printer on HP's 'All Supported Devices' page: http://hplip.sourceforge.net/supported_ ... bined.html
Example: HP PSC1410 'All in one' printer - use 'DJ3320'
2. Finish by deleting the temporary directory (if you don't want to save the downloaded files).
# cd ..
# rm -R cups-install
* Adding the missing perl modules for Puppy 2.00/2.01/2.02
1. Download the attached file (perl-add-missing.tar.gz) and copy it to /root/
Then, in a console, do the following:
2. Change to your root directory
# cd /root
3. Unpack the file. This will create temporary directory perl-add-missing
# tar -xzf perl-add-missing.tar.gz
4. Change to directory perl-add-missing
# cd perl-add-missing
5. Run the script.
# sh perl-add-missing.sh
6. Finish by deleting the temporary directory
# cd ..
# rm -R perl-add-missing
* Feedback
Please report in this thread if you are successful or if you have problems installing a printer using the script and these instructions.
Good luck!
Paul
5DEC06 - USE THIS NEW DOTPUP INSTEAD: cups-install-v0.3.pup for even easier CUPS and printer installation !
* * * * * * * * * * * * * * * * * * * * * * * * * *
UPDATE 13SEP06: Installation script v0.1f. Changes from script v0.1c:
- verifies any *.ppd file in cups-install dir with 'cupstestppd'
- added 'network' to choice of printer types
- starts default browser with CUPS web interface from script
- checks for missing perl modules only in Puppy 2.01/2.02 (perl 5.8.6).
(Puppy 2.10, using perl 5.8.8, has the missing modules)
- checks that cupsd is running before starting browser
- backs up original /etc/rc.d/rc.local to /etc/rc.d/rc.local_cups
- changed to high-capacity download server ftp://slackware.cs.utah.edu
* Background
Barry K has, through his Puppy Printer Wizard, put printer support in Puppy for a number of Canon, Epson, HP and Lexmark printers. This is good news for those having one of the supported printers. Unfortunately, my Brother HL-1030 parallel port printer is not one of them. To make matters worse, in order to share it in my home network, I had it connected to my D-Link DI-713P Wireless Gateway's printer port. This required a special driver from D-Link to get to work in XP.
When rarsa announced his breakthrough CUPS solution for Puppy some time ago, I used his scripts and the files that were downloaded to get the Brother printer to work in Puppy 1.07. It was easier to set up in Puppy than it was in XP - no special driver was neccessary! I must confess that I did have to search the net for the right 'Device' and 'Device URI' syntax for this unusual configuration. It turned out to be 'Device': 'LPD/LPR Host or Printer' and 'Device URI': lpd://192.168.0.1/lp' for my network. I've been printing happily ever since. The ability to print from Puppy was the one thing that had kept me from running Puppy as my main OS instead of Kanotix.
* The CUPS installation script
I have been following the CUPS threads on the Puppy forum and the great work dewdrop has been doing helping others. However, I found rarsa's instructions awkward, having to execute separate scripts to install the CUPS files. They also needed updating for Puppy 2.xx. So I decided to re-write the scripts into a single script, update the CUPS files from Slackware 10.1 to 10.2 and add the CUPS 'gimp-print' file containing numerous additional printer drivers.
The script will now ask for the type of printer to be installed (parallel, USB or network) and install the correct modules for either Puppy 1.xx or 2.xx (the module names have changed between kernel versions).
Please note that in Puppy 2.00/2.01/2.02, the perl installation is missing some perl modules needed to run CUPS. The missing files are in perl_missing.tar.gz, attached to this post. See the instructions further down on how to install this file.
* Instructions for using the script
Installing the CUPS files (Note - you need to be online so the script can download the necessary files)
1. Download the attached file (cups-install.tar.gz) and copy it to /root/
Then, in a console, do the following:
2. Change to your root directory
# cd /root
3. Unpack the file:
# tar -xzf cups-install.tar.gz
4. Change to the installation directory
# cd cups-install
5. Run the script. This will download and install the four CUPS files. If the files have been previously downloaded, the script will use the these files instead of downloading them again. Just make sure they are in the same directory as the CUPS install script.
# sh cups-install.sh
Adding and configuring your printer
1. After the CUPS files are installed, the script will automatically start up your default browser with the CUPS web interface where you add and configure your printer. The terminal with this script will remain open with instructions to help you add and configure your printer. Once configured, a test page can be printed to check the setup. No re-booting of the PC is neccessary.
If you should want to read the instructions again, they are in the file 'cups-conf.txt'. Open the file with an editor to read it.
Note that you may not need to download a .ppd file for your printer before running this script. It may already be listed on the 'Make' and 'Model' pages of the CUPS web interface. If it is not listed, download a suitable .ppd file from www.linuxprinting.org , copy it to the same directory as this script and then run the script again. It will automatically install the .ppd file. The 'Make' and 'Model' should now be present when you try to add the printer in the CUPS web interface.
Tip: If you have an HP printer, you can check which 'Model' name to use in the CUPS web interface by looking up the 'Printer Class' for your printer on HP's 'All Supported Devices' page: http://hplip.sourceforge.net/supported_ ... bined.html
Example: HP PSC1410 'All in one' printer - use 'DJ3320'
2. Finish by deleting the temporary directory (if you don't want to save the downloaded files).
# cd ..
# rm -R cups-install
* Adding the missing perl modules for Puppy 2.00/2.01/2.02
1. Download the attached file (perl-add-missing.tar.gz) and copy it to /root/
Then, in a console, do the following:
2. Change to your root directory
# cd /root
3. Unpack the file. This will create temporary directory perl-add-missing
# tar -xzf perl-add-missing.tar.gz
4. Change to directory perl-add-missing
# cd perl-add-missing
5. Run the script.
# sh perl-add-missing.sh
6. Finish by deleting the temporary directory
# cd ..
# rm -R perl-add-missing
* Feedback
Please report in this thread if you are successful or if you have problems installing a printer using the script and these instructions.
Good luck!
Paul