How to Print with CUPS using Pup2.00, Pup2.01, or Pup2.02
Posted: Thu 15 Jun 2006, 17:27
Hi Pups:
/////EDITED on 8/4/2006
I would like to recommend the following thread to anyone looking for a solution to their printing challanges .....
http://www.murga.org/~puppy/viewtopic.php?t=9876
pakt (Paul) from Sweden has done a lot of work on this and is requesting that people test his efforts ...
dewdrop
/////EDITED on 7-29-2006.
The following was done with Puppy 2.02 installed from a CD - my normal method of using Puppy. Those that have Hard Disk installs, or other types of installs may have different results...... BE CAREFUL.
I just downloaded Puppy 2.02, and after saving my pup_200.3fs and pup_save.3fs files to a secure location, I upgraded to Puppy 2.02 by putting in the new CD and requesting a re-boot.
After completing the upgrade, everything worked, printing, international keyboard and sound.
I then rebooted to remove the items saved in the tmp folder as explained by BarryK during the upgrade, and printing, international keyboard, and sound continued working. I believe that I have lost nothing during this upgrade.
I then tried a pristine install and cannot get Puppy 2.02 to find my DSL modem - it was automatically recognized during the upgrade. So, I will have to wait to see if I can get printing, international keyboard and sound to work after I find a working modem module.
From my upgrading experience, I would expect that the printing would work if you try a pristine install of Puppy 2.02.
BE SURE TO SAVE YOUR pup_200.3fs AND pup_save.3fs FILES TO A SECURE LOCATION BEFORE DOING THE UPGRADE.
Good Luck.
dewdrop
///////EDITED to add Puppy 2.01 using the following steps
dewdrop
Since I really don't know how to use the command line to perform some of the following steps, I shall do the step by step of opening directories (folders is Windows-speak), and dragging the items from one directory to another with the mouse - expect where noted, where the Command Line (CL) is used.
Step 1 - Download Rarsa's
a. cups-install.tar.gz
b. perl-5.8.6-install.sh
from here: http://www.murga.org/~puppy/viewtopic.p ... 49&start=0
This thread is called the CUPS (Finally here!!!) thread. The files are on page 1, September 3rd entry. Download both of them - they should download to your my-documents directory (documents folder), but you can have them saved into any directory that you select just before they are downloaded.
(Click on the HOME icon on the desktop to find the my-documents directory)
Open the Console (the easiest way to do this is to open the directory where you put the cups-install.tar.gz file and the perl-5.8.6-install.sh file. Put your mouse over the open directory and right click on the mouse).
This opens a selection window. Select XTERM HERE from the list
(Note: the CL will open and you will see a # (we use all kinds of names for this sign - Tic-Tac-Toe sign, Pound sign, etc.)
CL ----- in the console type: tar -xvzf cups-install.tar.gz
NOTE: This is called "unpacking an archive" or "untarring an archive".
So, your first line will look like this: # tar -xvzf cups-install.tar.gz (no capital letters)
This has the effect of placing 3 files in the same area as the cups-install.tar.gz and perl-5.8.6-install.sh files is located.
It will look like nothing has happened, but pass your mouse over the open directory and the following 4 new items will appear along with the cups-install.tar.gz and perl-5.8.6-install.sh files:
a. type: sh cups-install.sh
It will look like: #sh cups-install.sh
b. cupsconf.tar.gz (you can ignore this file, but do not remove it)
c. type: sh espgs-install.sh
It will look like: #sh espgs-install.sh
d. type: sh hpijs-install.sh
It will look like: #sh hpijs-install.sh
e. type: sh perl-5.8.6-install.sh
It will look like: #sh perl-5.8.6-install.sh
Step 2 - Download your printers PPD file from here:
http://www.linuxprinting.org/printer_list.cgi
Put the printers PPD file into the /usr/share/cups/model file.
Note: If you try to do this step first, you will discover that the usr/share/cups/model directory does not exist. It is one of the things that is created when you do step 1 first.
How do you find the /usr/share/cups/model directory?
Left Click to open the HOME icon on the desktop. This in effect opens the ROOT directory ---
There is a small triangle shaped icon in the top left area of the open directory. If you hold your mouse over that triangle you will see the words - change to parent directory. Left click on that triangle icon and a new window will open and one of the directories you see will be named usr. Left click on the usr directory. Then left click on the share directory. Then left click on the cups directory. Then left click on on the model directory.
Left clicking on a directory icon has the effect of opening a new directory. Left clicking on the small triangle at the top of the opened directory has the effect of taking you backwards to the old directory.
DRAG AND DROP - your printers PPD file that you downloaded previously into the model directory that you opened.
NOTE: You will have to have 2 directories opened at the same time on your desktop. The directory where the PPD file is located, and the directory named model.
Step 3. This step requires a change to a file located at /etc/rc.d/rc.local
How do you find the /etc/rc.d/rc.local file?
Left Click the HOME icon to open the ROOT directory. Left click on the small triangle at the top of the directory - this time left click on the directory named etc. Left click on the rc.d directory and one of the files is named rc.local. It is a file, not a directory, so the icon looks like a wheel. In order to open it, you have to hold your mouse over the icon and RIGHT click. This brings up a menu and you should select open as text . A new screen will open and you will see the following information:
#this file called from rc.local0
#you can edit this file
#When firewall is installed, will append lines to this file...
if [ -x /etc/rc.d/rc.firewall ]; then
/etc/rc.d/rc.firewall start
fi
# Load the module for usb printers
modprobe printer
# Start cups
/etc/rc.d/rc.cups start
you must change the word printer to usblp - if you are using a printer connected to your computer via usb. (In my case, I had to change that word to usblp). If you are using a printer connected to your machine with another type of connection, do not change the wording of the file, simply make sure that nothing follows the words modprobe printer on the name line - like this:
modprobe printer #xxxxxx.
If there is something following modprobe printer, erase it, and save the file.
Once you have made any changes. Go to the FILE menu, click on save, close the window. Close the other open directories.
Step 4 - Re-boot the computer.
Step 5 - Open your browser and go to http://localhost:631
a. Do the installation steps to install your printer.
b. Print a test page.
A couple of comments:::::
The information above is really a compilation of information that has appeared in Rarsa's thread - CUPS (finally here!!); some contributed by Rarsa, and some from Duke and Kal. THANKS GUYS!!!
If interested, read the first page, and pages 13 and 14 of Rarsa's thread, to get a sense of what is being attempted.
I was surprised to learn that by downloading and installing the perl-5.8.6-install.sh file, instead of the much larger pup_200.3fs file, my printer would print. I know that BarryK knows that there is a conflict with the perl files in Puppy2, and the pup_200.3fs file, so the information about downloading/using these files might change when newer versions of Puppy2 arrive.
I will be placing this information in a new thread since it deals specifically with getting a printer to work with Puppy2. I will also place it in Rarsa's CUPS (Finally here!!) thread.
I would think that these instructions would work on any of the various Puppy2 versions, but if your experience is different and you are able to do printing with your setup, let us know by adding your experience/experiments to this thread or Rarsa's.
Good luck.
dewdrop
/////EDIT: This is a short edit just to indicate that I was able to use this proceedure to add printing to the Puppy2 Opera version as well.
/////EDITED on 8/4/2006
I would like to recommend the following thread to anyone looking for a solution to their printing challanges .....
http://www.murga.org/~puppy/viewtopic.php?t=9876
pakt (Paul) from Sweden has done a lot of work on this and is requesting that people test his efforts ...
dewdrop
/////EDITED on 7-29-2006.
The following was done with Puppy 2.02 installed from a CD - my normal method of using Puppy. Those that have Hard Disk installs, or other types of installs may have different results...... BE CAREFUL.
I just downloaded Puppy 2.02, and after saving my pup_200.3fs and pup_save.3fs files to a secure location, I upgraded to Puppy 2.02 by putting in the new CD and requesting a re-boot.
After completing the upgrade, everything worked, printing, international keyboard and sound.
I then rebooted to remove the items saved in the tmp folder as explained by BarryK during the upgrade, and printing, international keyboard, and sound continued working. I believe that I have lost nothing during this upgrade.
I then tried a pristine install and cannot get Puppy 2.02 to find my DSL modem - it was automatically recognized during the upgrade. So, I will have to wait to see if I can get printing, international keyboard and sound to work after I find a working modem module.
From my upgrading experience, I would expect that the printing would work if you try a pristine install of Puppy 2.02.
BE SURE TO SAVE YOUR pup_200.3fs AND pup_save.3fs FILES TO A SECURE LOCATION BEFORE DOING THE UPGRADE.
Good Luck.
dewdrop
///////EDITED to add Puppy 2.01 using the following steps
dewdrop
Since I really don't know how to use the command line to perform some of the following steps, I shall do the step by step of opening directories (folders is Windows-speak), and dragging the items from one directory to another with the mouse - expect where noted, where the Command Line (CL) is used.
Step 1 - Download Rarsa's
a. cups-install.tar.gz
b. perl-5.8.6-install.sh
from here: http://www.murga.org/~puppy/viewtopic.p ... 49&start=0
This thread is called the CUPS (Finally here!!!) thread. The files are on page 1, September 3rd entry. Download both of them - they should download to your my-documents directory (documents folder), but you can have them saved into any directory that you select just before they are downloaded.
(Click on the HOME icon on the desktop to find the my-documents directory)
Open the Console (the easiest way to do this is to open the directory where you put the cups-install.tar.gz file and the perl-5.8.6-install.sh file. Put your mouse over the open directory and right click on the mouse).
This opens a selection window. Select XTERM HERE from the list
(Note: the CL will open and you will see a # (we use all kinds of names for this sign - Tic-Tac-Toe sign, Pound sign, etc.)
CL ----- in the console type: tar -xvzf cups-install.tar.gz
NOTE: This is called "unpacking an archive" or "untarring an archive".
So, your first line will look like this: # tar -xvzf cups-install.tar.gz (no capital letters)
This has the effect of placing 3 files in the same area as the cups-install.tar.gz and perl-5.8.6-install.sh files is located.
It will look like nothing has happened, but pass your mouse over the open directory and the following 4 new items will appear along with the cups-install.tar.gz and perl-5.8.6-install.sh files:
a. type: sh cups-install.sh
It will look like: #sh cups-install.sh
b. cupsconf.tar.gz (you can ignore this file, but do not remove it)
c. type: sh espgs-install.sh
It will look like: #sh espgs-install.sh
d. type: sh hpijs-install.sh
It will look like: #sh hpijs-install.sh
e. type: sh perl-5.8.6-install.sh
It will look like: #sh perl-5.8.6-install.sh
Step 2 - Download your printers PPD file from here:
http://www.linuxprinting.org/printer_list.cgi
Put the printers PPD file into the /usr/share/cups/model file.
Note: If you try to do this step first, you will discover that the usr/share/cups/model directory does not exist. It is one of the things that is created when you do step 1 first.
How do you find the /usr/share/cups/model directory?
Left Click to open the HOME icon on the desktop. This in effect opens the ROOT directory ---
There is a small triangle shaped icon in the top left area of the open directory. If you hold your mouse over that triangle you will see the words - change to parent directory. Left click on that triangle icon and a new window will open and one of the directories you see will be named usr. Left click on the usr directory. Then left click on the share directory. Then left click on the cups directory. Then left click on on the model directory.
Left clicking on a directory icon has the effect of opening a new directory. Left clicking on the small triangle at the top of the opened directory has the effect of taking you backwards to the old directory.
DRAG AND DROP - your printers PPD file that you downloaded previously into the model directory that you opened.
NOTE: You will have to have 2 directories opened at the same time on your desktop. The directory where the PPD file is located, and the directory named model.
Step 3. This step requires a change to a file located at /etc/rc.d/rc.local
How do you find the /etc/rc.d/rc.local file?
Left Click the HOME icon to open the ROOT directory. Left click on the small triangle at the top of the directory - this time left click on the directory named etc. Left click on the rc.d directory and one of the files is named rc.local. It is a file, not a directory, so the icon looks like a wheel. In order to open it, you have to hold your mouse over the icon and RIGHT click. This brings up a menu and you should select open as text . A new screen will open and you will see the following information:
#this file called from rc.local0
#you can edit this file
#When firewall is installed, will append lines to this file...
if [ -x /etc/rc.d/rc.firewall ]; then
/etc/rc.d/rc.firewall start
fi
# Load the module for usb printers
modprobe printer
# Start cups
/etc/rc.d/rc.cups start
you must change the word printer to usblp - if you are using a printer connected to your computer via usb. (In my case, I had to change that word to usblp). If you are using a printer connected to your machine with another type of connection, do not change the wording of the file, simply make sure that nothing follows the words modprobe printer on the name line - like this:
modprobe printer #xxxxxx.
If there is something following modprobe printer, erase it, and save the file.
Once you have made any changes. Go to the FILE menu, click on save, close the window. Close the other open directories.
Step 4 - Re-boot the computer.
Step 5 - Open your browser and go to http://localhost:631
a. Do the installation steps to install your printer.
b. Print a test page.
A couple of comments:::::
The information above is really a compilation of information that has appeared in Rarsa's thread - CUPS (finally here!!); some contributed by Rarsa, and some from Duke and Kal. THANKS GUYS!!!
If interested, read the first page, and pages 13 and 14 of Rarsa's thread, to get a sense of what is being attempted.
I was surprised to learn that by downloading and installing the perl-5.8.6-install.sh file, instead of the much larger pup_200.3fs file, my printer would print. I know that BarryK knows that there is a conflict with the perl files in Puppy2, and the pup_200.3fs file, so the information about downloading/using these files might change when newer versions of Puppy2 arrive.
I will be placing this information in a new thread since it deals specifically with getting a printer to work with Puppy2. I will also place it in Rarsa's CUPS (Finally here!!) thread.
I would think that these instructions would work on any of the various Puppy2 versions, but if your experience is different and you are able to do printing with your setup, let us know by adding your experience/experiments to this thread or Rarsa's.
Good luck.
dewdrop
/////EDIT: This is a short edit just to indicate that I was able to use this proceedure to add printing to the Puppy2 Opera version as well.