Fouquet, Errol
2001-Mar-27 20:14 UTC
IMPRINTS: mkprintpkg.pl unable to expand microsoft cab file
Jerry, Perhaps you could help me with a problem building a Samba print package. I've downloaded the drivers files I need from HP. I run the appropriate mkprintpkg.pl command, but it dies with the following output: [root@tux designjet]# /usr/local/imprints/bin/mkprintpkg.pl --name="hp1050c" --version=1.00 --display-name="HP DesignJet 1050c" -d "HP DesignJet 1050C by HP" pl132en.exe Package: hp1050c-1.00.tar.gz Display Name: HP DesignJet 1050c Using archive pl132en.exe for files. Using file OEMSETUP.INF for INF information. Architecture: Windows NT X86 (detected from INF) Manufacturer: HP (detected from INF) Model: HP DesignJet 1050C by HP magic1 = 4643534d /tmp/file4TJ9Cj/hpltcol1.ex_: not a MS-compressed file ERROR: Unable to expand `/tmp/file4TJ9Cj/hpltcol1.ex_' to package. The "magic1 = 4643534d" was some debugging output I added. If I expand pl132.exe to a directory and do a "file hpltcol1.ex_" it appears to be a "Microsoft CAB file". Errol Fouquet - UNIX SysAdmin Minerals Management Service, DOI 1201 Elmwood Park Blvd. New Orleans, LA 70123 Phone: (504) 736-3255 Fax: (504) 736-2464 email: errol.fouquet@mms.gov http://www.gomr.mms.gov -----Original Message----- From: Gerald Carter [mailto:gcarter@valinux.com] Sent: Tuesday, March 27, 2001 9:08 AM To: Fouquet, Errol Cc: 'Jeremy Allison'; 'samba-ntdom'; 'samba' Subject: Re: Samba 2.2 print driver setup On Tue, 27 Mar 2001, Fouquet, Errol wrote:> Will there be any methodology available in 2.2 for installing print > drivers without browsing to the PRINT$ share from a W2K/NT box? I've > got about 180 printers (at least 30 different models) shared and I'm > encountering some difficulties in installing drivers.You can automate print driver installs using smbclient and rpcclient. See http://imprints.sourceforge.net for examples. The installation client here is simply a perl script wrapper for [smb|rpc]client. I'm also planning on working on a setdriver command for rpcclient to set the printer driver for an existing printer (using a previously installed driver). However, as of yet I have not designed an automated way of migrating printers.def into the new setup for 2.2. Cheers, jerry ---------------------------------------------------------------------- /\ Gerald (Jerry) Carter Professional Services \/ http://www.valinux.com/ VA Linux Systems gcarter@valinux.com http://www.samba.org/ SAMBA Team jerry@samba.org http://www.plainjoe.org/ jerry@plainjoe.org "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )
Gerald Carter
2001-Mar-29 14:39 UTC
IMPRINTS: mkprintpkg.pl unable to expand microsoft cab file
On Tue, 27 Mar 2001 14:14:03 "Fouquet, Errol" wrote:> > Perhaps you could help me with a problem building a > Samba print package. I've downloaded the drivers files I > need from HP. I run the appropriate mkprintpkg.pl command, > but it dies with the following output:Can you send me a copy of these drivers?> The "magic1 = 4643534d" was some debugging output I added. > If I expand pl132.exe to a directory and do a "file > hpltcol1.ex_" it appears to be a "Microsoft CAB file".This would be a good guess. btw...I've added a 'setdriver' command to rpcclient so you can add a driver once and then lop over a list to set the driver for installed printers. It's a little rough around the edges right now. I think it corrupts the comment field currently :) You'll need to grab the latest SAMBA_2_2 CVS code. Also see the updated .../docs/htmldocs/printer_driver2.html Cheers, jerry ---------------------------------------------------------------------- /\ Gerald (Jerry) Carter Professional Services \/ http://www.valinux.com/ VA Linux Systems gcarter@valinux.com http://www.samba.org/ SAMBA Team jerry@samba.org http://www.plainjoe.org/ jerry@plainjoe.org "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )
Gerald Carter
2001-Mar-29 16:40 UTC
IMPRINTS: mkprintpkg.pl unable to expand microsoft cab file
On Thu, 29 Mar 2001 10:15:15 "Fouquet, Errol" wrote:> > Here's a copy of the driver file from HP. It's for the > DesignJet series (W2K/NT).Ooopss.. I meant to send it to me personally. Not the list :-) Sorry everyone. Tim, I thought the list would reject large attachments.> Also, the "setdriver" command you mention, is that only > available in the current CVS version?Yes. And there are some memory leaks in rpcclient I need to clean up. But you should be able to use it for testing. Cheers, jerry ---------------------------------------------------------------------- /\ Gerald (Jerry) Carter Professional Services \/ http://www.valinux.com/ VA Linux Systems gcarter@valinux.com http://www.samba.org/ SAMBA Team jerry@samba.org http://www.plainjoe.org/ jerry@plainjoe.org "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 )