Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 08:16
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Printing with CUPS: Almost here ! (Finally HERE!)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 16 [229 Posts]   Goto page: 1, 2, 3, ..., 14, 15, 16 Next
Author Message
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Fri 02 Sep 2005, 16:47    Post subject:  Printing with CUPS: Almost here ! (Finally HERE!)  

*****Update Sept 12, 2005 *****
After a long thread, we can finally claim success with CUPS.
The DotPup is on its way.
If you cannot wait for the DotPup, Just follow the simple instructions located later under this posts.
Here---> http://www.murga.org/~puppy/viewtopic.php?p=12248&sid=37d8b68cae4e54eb63eaa22e883fe3c4#12248
****************

Hi!

I am almost there readying CUPS for puppy.

Right now the only thing I cannot do is printing from puppy applications to the printer connected to the puppy computer.

I get the purple lprshell screen and nothing happens.

How can I avoid the lprshell interception?

After installing CUPS, the /usr/bin/lp, lpr, etc poing to the corresponding cups files.

This is the current status:

- I've installed CUPS 1.1.23 under puppy 1.0.5 alpha
- I've configured cupsd.conf in a way that puppy likes it.
- I've assigned the appropriate access rights
- I've installed cups drivers for my printer.
- I've installed ESP Gohstscript 7.07.1 as my printer requires it.
- I can add, remove and otherwise manage printers using the CUPS web interface.
- I can print the CUPS test page on a printer connected to the puppy computer.
- I can print from any application on my Fedora computer to the printer connected to the puppy computer.


I feel I'm really close. Hopefully my question has a simple answer.

In the meantime. I'll keep investigating.

Last edited by rarsa on Sat 15 Oct 2005, 11:26; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Fri 02 Sep 2005, 18:26    Post subject: Done!  

Done! I am able to print from puppy using CUPS!

After playing around I found that it had nothing to do with the lprshell.

Now I just have to figure out what I did.

After I retrace my steps I will try to do a clean install in puppy 1.0.4 in a pristine pup001 file.

I'll keep you posted.
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Fri 02 Sep 2005, 22:36    Post subject:  

SUCCESS!!

I've retraced my steps and I am able to do a successfull installation on pupy 1.0.4 with a pristine pup001. !!

I only stress the 'pristine' part because I want to make sure I don't miss anything.

I can:
- Print from a puppy computer to a local printer
- Print from a fedora computer to a puppy printer
- Print from Puppy to a fedora computer printer

It does not need samba or anything like that, just CUPS
Of course I have only tested with my printer so still a lot of testing needs to be done with other drivers

...Only after all this work I am questioning: Is there real interest in CUPS for puppy?

Last edited by rarsa on Fri 02 Sep 2005, 22:45; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
dewdrop


Joined: 29 Aug 2005
Posts: 298
Location: Texas USA

PostPosted: Fri 02 Sep 2005, 22:44    Post subject: CUPS: Almost here !  

Quote:
..Only after all this work I am questioning: Is there real interest in CUPS for puppy?


Rarsa,

I have Chubby Puppy installed...I just took OpenOffice off and installed Abiword and Gnumeric. The installation is to a 512MB Cruzer Memory Stick.

I have a HP Deskjet 3320, and an HP Deskjet 6540 ready for testing whenever I have the CUPS you have just completed on my installation. How do you get it to me?

Dewdrop
Back to top
View user's profile Send private message 
dvw86


Joined: 04 May 2005
Posts: 636
Location: Washington State

PostPosted: Fri 02 Sep 2005, 22:50    Post subject:  

rarsa wrote:
SUCCESS!!
...Only after all this work I am questioning: Is there real interest in CUPS for puppy?


I would use it for sure.
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Fri 02 Sep 2005, 22:54    Post subject:  

I need to prepare a DotPup installer.

I am writing down the step by step instructions. Those will be the same steps as the DotPup will have to perform.

The fastest way for you to start printing is to test the step by step instructions that way you will help me check if I am missing something.

It's well known on the development world that Developers aren't good testers, sometimes we do some steps unconciously. It is always better to have a third party tester.

The next post will have the step by step instructions.
Back to top
View user's profile Send private message Visit poster's website 
dewdrop


Joined: 29 Aug 2005
Posts: 298
Location: Texas USA

PostPosted: Fri 02 Sep 2005, 23:16    Post subject: CUPS  

Quote:
The fastest way for you to start printing is to test the step by step instructions that way you will help me check if I am missing something.


Rarsa,

Thanks for the effort..it will sure make my life easier....new to Puppy, Linux, etc.....Smile....hope I can be of help ... I'm sure I'll learn something with the step by steps. I'll tackle it in the morning.

Dewdrop
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sat 03 Sep 2005, 03:19    Post subject: DONE!  

Well,

Finally here it is. I found that it would take me the same time to write the instructions as to write the scritp. I'd recommend you to read the script to understand what I'm doing and maybe find a better way of doing it.

I still need to package all of this in a DotPup.

Notes:
- I will put new versions of the installer in this post. If you have tried a previous version check the change log before trying again.
- I tested this script booting from a chubby puppy 1.0.4 live CD.
- Currently the each of the install scripts download the required files from a slackware mirror. I'm thinking that's the best option for now.
- The configuration files are already configured to work with puppy.
- The script modifies rc.local to start cups at boot time.
- You need about 25 MB of free space to install all the components
- This instructions include the hpijs printer driver as an example. Before proceeding make sure that you have available CUPS printer drivers for your particular printer. You can google to find out.
For a list of printers supported by hpij go to this page http://www.linuxprinting.org/show_driver.cgi?driver=hpijs

The scripts downloads the required packages to /root/tmp
It extracts them to /tmp . This means the following:
- Installation is faster as /tmp is in RAMDISK
- You need enough ram or enough swap space (about 30 MB)
- All temporary files will be lost when you reboot.

Disclaimer
This script is working for me using a pristine pup001 file.
I highly recommend testing with a pristine pup001 file. Don't test in your regular pup001. I am not responsible if you corrupt your pup001 file. An alternative is to backup your pup001 file to test on an already configured and non pristine pup001.

Instructions:
1. Download the cups-install.tar.gz file
2. Open a console terminal and change folders to the folder where you downloaded the file.
3. Untar the cups-install.tar.gz with "tar -xvzf cups-install.tar.gz". This tar file includes the scripts to install cups. ESP Ghostscript and the hpijs driver.
4. From the console execute "sh cups-install.sh"
5. If you are printing to a remote CUPS server go to step 9, otherwise continue with step 6.
6. If your print drivers require ESP Ghost script, execute ""sh espgs-install.sh". (the hpijs driver needs it).
7. Install the CUPS drivers for the printers connected to your puppy computer according to your driver's instructions. Check in www.linuxprinting.org to find out the drivers required by your printer. These instructions include the hpijs, if your printer is suported just execute "sh hpijs-install.sh".
8. If your driver requires foomatic, you also need to install Perl. Don't use the Perl PupGet as it is a stripped down version. If you are using puppy 1.0.5 or newer download the usr_devx.sfs file. If you are using a puppy version prior to 1.0.5 downlad the attached perl installer, untar it and instal with "sh perl-5.8.6-install.sh"
9. Restart cups with "sh /etc/rc.d/rc.cups restart"
10. Open your browser and go to the following address http://localhost:631
11. Add your printer following the links on that page. If you already have a CUPS server that allow browsing you will see the shared printers there.
12. Print the test page

It's THAT easy. I took dewdrop and my self about 80 hours to get to this point but we are finally here!

The main problems I encountered were the following:
- Understanding what I was doing as I did not have previous CUPS experience.
- Find a version that ran OK under puppy. (this took almost 15 hours)
- Finding the correct access rights combination for the config files.
- Understanding that I needed ESP Ghostscript.
- Learning that the Perl PupGet did not include all the components required by foomatic.

========== Change log ==========
Oct 6, 2005 11:51 pm EST
- Added comment to use usr_devx.sfs in puppy 1.0.5 to access perl.
Sept 12, 2005 11:22 pm EST
- Added Full Perl Installation. Final instructions.
Sept 8, 2005 11:22 pm EST
- Inserted new step to install Perl when the driver requires foomatic.
Sept 4, 2005 8:31 pm EST
- Cleaned up the configuration file cupsd.conf
Sept 3, 2005 2:37 pm EST
- Added the hpijs printer driver which supports hundreds of printers from many brands.
- Created separate scripts for CUPS, ESP Ghostscript and the hpijs driver.
- Packaged all the scripts and configuration files in one download.
- Changed the protocol for the wget from HTTP to FTP. Now the download is faster.
- The scripts now download the packages to /root/tmp so you don't have to redownload them every time.
- The script will continue with a failed download when you re-run it.

Sept 3 ,2005 2:19 am EST
- First post
perl-5.8.6-install.tar.gz
Description  After downloading untar with "tar -xvzf perl-5.8.6-install.tar.gz", and run the installation script with "sh perl-5.8.6-install.sh"
gz

 Download 
Filename  perl-5.8.6-install.tar.gz 
Filesize  304 Bytes 
Downloaded  1615 Time(s) 
cups-install.tar.gz
Description  After downloading this file, untar it using "tar -xvzf cups-install.tar.gz"
gz

 Download 
Filename  cups-install.tar.gz 
Filesize  5.82 KB 
Downloaded  2183 Time(s) 

Last edited by rarsa on Sun 11 Dec 2005, 21:11; edited 17 times in total
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 03 Sep 2005, 04:24    Post subject:  

Cool

Good job - if you intend to test, do follow the instructions and feedback as this will be welcome for the dotpup . . .

Rarsa has become one of the founders of the Puppy Foundation - perhaps you want to get involved too? Check out the wiki

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Rich

Joined: 04 May 2005
Posts: 278
Location: Middlesbrough - UK

PostPosted: Sat 03 Sep 2005, 06:31    Post subject:  

got as far as the


Quote:
From the console execute ./cupsinstall.sh



I get the message './cupsinstall.sh : Permission denied'

Sad
Back to top
View user's profile Send private message 
Guest
Guest


PostPosted: Sat 03 Sep 2005, 06:55    Post subject:  

may not be executable

#chmod 0755 cupsinstall.sh

or you can just try

#sh cupsinstall.sh


One thing any directoires that get created in /var are going to be lost after every reboot nad may need recreating on each reboot.
Back to top
dewdrop


Joined: 29 Aug 2005
Posts: 298
Location: Texas USA

PostPosted: Sat 03 Sep 2005, 11:20    Post subject: CUPS: Almost here !  

Rarsa,


I am in Chubby Puppy live install - pristine pup001 file.

1. I have downloaded both files and put them into their own folder.

2. I untarred cupsinstall.tar.gz using the TkZip Archiver software that is located under the UTILITIES Menu (this was personal preference since I'm used to untarring in this fashion).

3. I initially then executed ./cupsinstall.sh - and got the permission denied response.

4. Then I executed the chmod a+x cupsinstall.sh
Then I executed the ./cupsinstall.sh

This brought up the arrangement that you see in the attached photo.

The operation stopped at this point since the http connection did not apparently complete its mission.

I am stopped at this point....

One additional point. You say to google to find out if I have available the CUPS drivers for the printers I have. How do I do this procedure (my Linux Newbie-ness showing thru here).

Seems to be working great as far as I got.

Dewdrop

Last edited by dewdrop on Sun 04 Sep 2005, 16:44; edited 1 time in total
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sat 03 Sep 2005, 13:04    Post subject:  

Woow, nice response
bladehunter wrote:
One thing any directoires that get created in /var are going to be lost after every reboot nad may need recreating on each reboot
Actually those folders are created by cupsd when it starts so it shouldn't be a problem. One of my tests included rebooting after the installation.
Rich wrote:
I get the message './cupsinstall.sh : Permission denied'
Thank you, I've fixed the instructions.

dewdrop wrote:
I am stopped at this point....
The script downloads the required components from a Slackware mirror. I selected the fastest Mirror at that time. Apparently the mirror is everloaded or something like that. Try again later.

Notes:
- I've added some extra notes to the instructions. If you are using a modem connection Please review them.
- I'm thinking about separating the CUPS and ESP Ghostscript installations. I don't think ESP Ghostscript is required in every situation and it's a quite large download.
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sat 03 Sep 2005, 14:10    Post subject:  

dewdrop wrote:
You say to google to find out if I have available the CUPS drivers


To search for something you go to www.google.com and enter the words you want to search on:

e.g. "HP Deskjet 320 CUPS drivers"

Press enter and youl'll have to browse the returned pages to find out which ones are relevant.

In this case and as an example I found this page
http://www.linuxprinting.org/show_printer.cgi?recnum=HP-DeskJet_3320

You happen to be a very lucky person! HP Printers are the best supported printers under linux. HP Created a driver that works with an impressive number of printers (both HP and other brands). As such I've created an installer for the driver and I will be including it in the instructions page.
Back to top
View user's profile Send private message Visit poster's website 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Sat 03 Sep 2005, 15:09    Post subject:  

I've updated the instructions and repackaged the install.

Please go to the Original post and review the instructions.

I've fixed quite a few things. Here is the change log:

Sept 3, 2005 2:37 pm EST
- Added the hpijs printer driver which supports hundreds of printers from many brands.
- Created separate scripts for CUPS, ESP Ghostscript and the hpijs driver.
- Packaged all the scripts and configuration files in one download.
- Changed the protocol for the wget from HTTP to FTP. Now the download is faster.
- The scripts now download the packages to /root/tmp so you don't have to redownload them every time.
- The script will continue with a failed download when you re-run it.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 16 [229 Posts]   Goto page: 1, 2, 3, ..., 14, 15, 16 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1022s ][ Queries: 13 (0.0069s) ][ GZIP on ]