| Puppy This forum is for the discussion of Puppy Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-23-2008, 09:27 PM
|
#1
|
|
Member
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32
Rep:
|
How do I convert deb files for Puppy?
Hi,
I am unable to get my Puppy 4.1 to print anything at all - and have searched the Puppy sites without much success. Where I thought there was a solution - the processes described were way too complex for me. Best I could find was the possible use of printer drivers available as deb files.
I have a Canon Pixma i4500 printer that I have managed to make work acceptably in Ubuntu Hardy using the following deb files:
1) cnijfilter-common_2.80-1_i386.deb
2) cnijfilter-ip4500series_2.80-1_i386.deb
I have also managed to get acceptable printing from my Fedora 9 using the rpm versions of the above files.
I would appreciate any help on how I can convert these files into something that can be used as printer drivers for Puppy 4.1 in CUPS.
Thanks
murthy
|
|
|
|
11-23-2008, 09:53 PM
|
#2
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
|
|
|
|
11-23-2008, 10:24 PM
|
#3
|
|
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732
Rep:
|
You can unpack those files and decide for yourself what to do with all the files.
For example:
cd
mkdir printer_files
cd printer_files
mkdir common
cd common
ar x /path/to/cnijfilter-common_2.80-1_i386.deb
That should produce the files:
debian-binary
control.tar.gz
data.tar.gz
tar xvf control.tar.gz
Should produce:
md5sums
postinst
preinst
prerm
postrm
conffiles
control
The 'preinst' and 'postinst' are scripts which do some setup operations before and after installing
If you unpack data.tar.gz you should get a directory heirarchy containing the executables, libraries, man pages, and so on. You can rummage through that to get an idea of what files are there and what you should do with them.
One important thing if you have executables is to check all dependencies and make sure they will be met; otherwise you will be wasting your time doing all this unpacking and copying.
|
|
|
|
11-23-2008, 10:52 PM
|
#4
|
|
Member
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32
Original Poster
Rep:
|
Thanks. I had previously obtained the deb / rpm / source files from the same site you referred. I used the deb files for Ubuntu and the rpm files for Fedora.
I am clueless as to what to do with the source file. I am afraid I have no programming knowledge - and unless I have specific instructions on what to do, I will be lost.
This is asking too much, I know - unless someone has already done something like this before and has references handy.
murthy
|
|
|
|
11-23-2008, 11:09 PM
|
#5
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Guessing a little here (as in I am not going to try it out).
Download the source (looks like you can skip that). Lets say they are in /usr/src
go to the source (cd /usr/src)
unpack the tarball (tar xvf cnijfilter-common-2.80-1.tar.gz)
cd cnijfilter-common-2.80
faff around for a while wondering why there are no documents to read. Finally decide to look in ./ppd (cups uses ppd's as definition files)
Read INSTALL
follow the instructions (here I'm just replicating what they say)
./autogen.sh --prefix=/usr --program-suffix=ip4500
sudo make install
I'm now assuming you should be able to install the printer using CUPS, and tell cups to use the newly generated ppd file (I guess it's in /usr somewhere - try "find / -type f -name '*.ppd')
Last edited by billymayday; 11-23-2008 at 11:12 PM.
|
|
|
|
11-24-2008, 12:45 AM
|
#6
|
|
Member
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32
Original Poster
Rep:
|
pinniped, did you mean open out the deb file (cnijfilter-common_2.80-1_i386.deb)?
I opened up the source file (cnijfilter-common-2.80-1.tar.gz.gz) and found lots and lots of folders / files. I know I will get hopelessly lost if I try working on these!!
Will try and to check out what is installed under my Ubuntu printer files if possible - and maybe I can try and learn something.
|
|
|
|
11-24-2008, 12:58 AM
|
#7
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Slightly simplified version then
go to the source (cd /usr/src)
unpack the tarball
Code:
tar xvf cnijfilter-common-2.80-1.tar.gz
go to the ppd directory
Code:
cd cnijfilter-common-2.80/ppd
Build it
Code:
./autogen.sh --prefix=/usr --program-suffix=ip4500
sudo make install
find the ppd
Code:
find / -type f -name '*.ppd'
I assume it's called cnijfilter.ppd or sililar
Fire up CUPS and when selecting the printer type, use the option to specify the ppd (see location in previous step)
|
|
|
|
11-24-2008, 04:18 AM
|
#8
|
|
Member
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32
Original Poster
Rep:
|
Thanks for all the help. But right now I have a different problem I think - my printer not is being detected at all. All my other usb devices seem to be detected (inc a scanner which is not Linux compliant)- but the printer doesn't show up at all - despite switching usb ports around.
Fedora/Ubuntu at least used to print out blank sheets of paper until I got the correct drivers installed!!
Going thru process of uninstalling CUPS and re-installing and checking for connectivity before I attempt what has been suggested.
murthy
|
|
|
|
11-24-2008, 05:21 AM
|
#9
|
|
LQ Newbie
Registered: Jul 2008
Posts: 28
Rep:
|
Before you waste more time fiddling with CUPS etc. - does 'lsusb' list your printer? If not check cables and the printer on a different machine.
|
|
|
|
11-24-2008, 06:50 AM
|
#10
|
|
Member
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32
Original Poster
Rep:
|
Didn't have 'lsusb' - but installed 'usbview' , and that's when I realized my printer was not listed. However, my printer works fine with the other OS - Ubuntu/Fedora/XP
But after I uninstalled / reinstalled CUPS etc, re-booted - I now have major problems - I seem to have lost everything I had. Desktop, some programs etc. But now I can see the printer in usbview!!
Looks like I have to re-install puppy from the original Live CD and start all over. Yuks!!
murthy
|
|
|
|
11-25-2008, 02:38 AM
|
#11
|
|
Member
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32
Original Poster
Rep:
|
Update - have reinstalled Puppy, and usb printer detected and able to print blank sheets!
Unpacked the tarball cnijfilter-common-2.80-1.tar.gz.gz, and have a ppd for the iP4500. Unfortunately couldn't build it with:
"./autogen.sh --prefix=/usr --program-suffix=ip4500 sudo make install" as suggested.
Error says I don't have 'autoconf' and 'automake' and get from ftp://ftp.gnu.org/pub. But there are lots of 'automake' and 'autoconf' files there - not certain which is the right one or if any will do.
Downloaded and installed Cups 1.3.3 - and this seemed to have the option to specify a ppd file. But there is a lot wrong with the new Cups - cannot print test page etc, and no ouputs. So back to square 1.
Will give this a little bit of rest for the moment!!
murthy
|
|
|
|
11-25-2008, 02:47 AM
|
#12
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
yum install automake
should install it for you.
(you may need to install autoconf too)
Last edited by billymayday; 11-25-2008 at 02:52 AM.
|
|
|
|
11-25-2008, 10:00 AM
|
#13
|
|
Member
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32
Original Poster
Rep:
|
Will try, but have a bit more work to do. What I thought was the iP4500 ppd from the tarball extract appears to be a pretty small file (14KB) and viewing as text it suggests its an add-on.
The Canon.ppd file that is provided in Puppy is an 85KB file. This ppd driver seems to be effective whatever Canon model printer is chosen selected in Cups. I checked my Ubuntu files, and the iP4500 file is a full 87KB - this is closer to the 85KB Canon.ppd file in Puppy.
I opened up the deb files as suggested by pinniped - and he was right. There is a whole bunch of files in data.tar.gz. I can only assume that apt-get builds the iP4500.ppd in some fashion from the deb files, and distributes the others to the right places in the system.
All this is way over my head - a good point to give up!!
Thanks for all the help!!
murthy
|
|
|
|
11-25-2008, 10:00 AM
|
#14
|
|
Member
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32
Original Poster
Rep:
|
Will try, but have a bit more work to do. What I thought was the iP4500 ppd from the tarball extract appears to be a pretty small file (14KB) and viewing as text it suggests its an add-on.
The Canon.ppd file that is provided in Puppy is an 85KB file. This ppd driver seems to be effective whatever Canon model printer is chosen selected in Cups. I checked my Ubuntu files, and the iP4500 file is a full 87KB - this is closer to the 85KB Canon.ppd file in Puppy.
I opened up the deb files as suggested by pinniped - and he was right. There is a whole bunch of files in data.tar.gz. I can only assume that apt-get builds the iP4500.ppd in some fashion from the deb files, and distributes the others to the right places in the system.
All this is way over my head - a good point to give up!!
Thanks for all the help!!
murthy
|
|
|
|
11-26-2008, 10:17 PM
|
#15
|
|
Member
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32
Original Poster
Rep:
|
I thought I would give it one more go!!
Took the two deb files I used in Ubuntu (mentioned in my first post) extracted the directories, and generally followed procedures in
http://puppylinux.com/development/createpet.htm
and created two pet files that I installed using PET Package Manager, and saw that the driver was actually listed in the selections available.
Unfortunately I must have messed up something somewhere, and I couldn't actually install and give an 'client-error' code. For that matter I couldn't actually install even the previous drivers available, with the same error code.
No paw prints on my printer yet!! Bad dog!!
murthy
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:56 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|