You are not logged in.

#1 2013-06-14 18:53:06

xanb
Member
Registered: 2012-07-24
Posts: 419

[Solved] Pass from deb ppd file to ppd file only

Hi,

I buy a HL-3150CDW printer. Brother says that they provide ppd drivers for that printer, but they only provide really a deb or rpm package containing that [http://welcome.solutions.brother.com/bs … HL-3150CDW]. How can I extract ppd file from that?

Thanks,
Xan.

Last edited by xanb (2013-06-17 19:04:36)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#2 2013-06-14 18:57:25

xanb
Member
Registered: 2012-07-24
Posts: 419

Re: [Solved] Pass from deb ppd file to ppd file only

This [http://www.faqforge.com/linux/how-to-do … ian-linux/] with an existing debian system could be the solution. But I should have a debian system installed.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#3 2013-06-14 18:59:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,094

Re: [Solved] Pass from deb ppd file to ppd file only

You write a PKGBUILD for it. makepkg will already extract the deb or rpm file for you.

Offline

#4 2013-06-15 16:23:45

xanb
Member
Registered: 2012-07-24
Posts: 419

Re: [Solved] Pass from deb ppd file to ppd file only

Can you be more verbose, please? What commands should I have to run?


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#5 2013-06-16 12:13:01

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: [Solved] Pass from deb ppd file to ppd file only


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2013-06-16 18:59:40

Max-P
Member
Registered: 2011-06-11
Posts: 164

Re: [Solved] Pass from deb ppd file to ppd file only

A quick google search would show you that debian and redhat packages are just regular compressed files.

For debian packages, just extract them with ar, which gives you 3 files, and then you extract the data.tar.gz file:

max-p@max-p-arch76 ~/Bureau % ar vx hp-ppd_0.9ubuntu2+really-0.2_all.deb 
x - debian-binary
x - control.tar.gz
x - data.tar.gz
max-p@max-p-arch76 ~/Bureau % tar -xvf data.tar.gz 
./
./usr/
./usr/share/
./usr/share/ppd/
./usr/share/ppd/hp-ppd/
./usr/share/ppd/hp-ppd/HP/
./usr/share/ppd/hp-ppd/HP/HP_DeskJet_600C_Photo_Series.ppd
./usr/share/ppd/hp-ppd/HP/HP_DeskJet_800C_Series.ppd
./usr/share/ppd/hp-ppd/HP/HP_LaserJet_5P.ppd
./usr/share/ppd/hp-ppd/HP/HP_LaserJet_5.ppd
./usr/share/ppd/hp-ppd/HP/HP_ColorLaserJet_5-5M.ppd
./usr/share/ppd/hp-ppd/HP/HP_DeskJet_350C.ppd
./usr/share/ppd/hp-ppd/HP/HP_LaserJet_5000_Series.ppd
./usr/share/ppd/hp-ppd/HP/HP_DeskJet_900C_Series.ppd
./usr/share/ppd/hp-ppd/HP/HP_LaserJet_3200M.ppd
./usr/share/ppd/hp-ppd/HP/HP_LaserJet_6P.ppd
./usr/share/ppd/hp-ppd/HP/HP_Business_Inkjet_2500C_Series.ppd
./usr/share/ppd/hp-ppd/HP/HP_DeskJet_600C_Series.ppd
./usr/share/ppd/hp-ppd/HP/HP_DeskJet_630C.ppd
./usr/share/ppd/hp-ppd/HP/HP_DeskJet_990C.ppd
./usr/share/cups/
./usr/share/cups/model/
./usr/share/doc/
./usr/share/doc/hp-ppd/
./usr/share/doc/hp-ppd/copyright
./usr/share/doc/hp-ppd/README.Debian
./usr/share/doc/hp-ppd/changelog.Debian.gz

Graphical archive managers will open that correctly for you too. I just had to double-click on the .deb on my desktop to open it.

Source: First result on Google

Offline

#7 2013-06-17 19:09:53

xanb
Member
Registered: 2012-07-24
Posts: 419

Re: [Solved] Pass from deb ppd file to ppd file only

Thanks a lot, both. This issue is solved. Now I have to fight with knowing where I have to put the files: I have three files:

brcupsconfpt1
brother_hl3150cdw_printer_en.ppd
cupswrapperhl3150cdw

Basing me in brother packages, I think I have to copy

- cupswrapperhl3150cdw to /usr/lib/cups/filterbrlpdwrapperHL3150cdw
- in /usr/share/ create directory /brother and put:

[root@negre brother]# ls -R
.:
cupswrapper  inf

./cupswrapper:
brcupsconfig

./inf:
brPrintList

the brPrintList file only contains "HL3150CDW",
- and put the ppd file in /usr/share/cups/model/brother/ as HL3150cdw.ppd

Is it correct?

With that, I have the drivers in cups, and I only have to add printer. Is this correct?

Thanks,
Xan.

Last edited by xanb (2013-06-17 19:10:28)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

Board footer

Powered by FluxBB