Buchan Milne
2003-Jun-19 10:25 UTC
[Samba] 'Little' problems with Samba v2.2.3a-12.3 (Debian Woody) and PRINTERS !!)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> Message: 1 > Date: Wed, 18 Jun 2003 14:16:57 +0200 > From: Farget Vincent <farget@olfac.univ-lyon1.fr> > Subject: [Samba] 'Little' problems with Samba v2.2.3a-12.3 (Debian > Woody) and PRINTERS !! > To: samba@lists.samba.org > Message-ID: <20030618121659.0AC117D4F@olfac.univ-lyon1.fr> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > > I am using Samba (v2.2.3a-12.3 on stable Debian Woody) on a bi-cpu server > (named MYSRV) acting as a primary domain controller. All works wellexcept> for printers where I have severals little problems. I use LPRng(v3.8.10-1.2> on stable Debian Woody) as my linux lpd spooler on my server. I have 2 > printers : one HP LaserJet 4000N (named nss.1er) and one HP LaserJet4050N> (named nss.rdc). I have configured the 2 printers on the server using > 'printtool'. I choosed the 'Remote Unix (lpd) Queue'. As both HP4000N and > HP4050N can understand postcript documents, I choose '*auto* -Postscript' as> my input filter for the two printers. All works well (samba : PDC,printers)> except that I have problems with uploading and downloading printersdriver on> my samba server.You need to upload printer drivers from a Windows (NT/2k/XP) machine as a user who is a member of "printer admin", and has write access to the directories. This is covered in the samba-howto-collection, which your distribution should provide you with. Also, note that many changes have been made in the printing code since 2.2.3a, you may want to consider not running an ancient release of samba (but I have had this working in 2.2.2). Regards, Buchan - -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+8Y+CrJK6UGDSBKcRAghXAJ4/R+HcSUH2FKbD3WJgq7haNUXjPwCgwUCK Bj1jcHWK+cULTu5lRvd/pOk=88rO -----END PGP SIGNATURE----- ****************************************************************** Please click on http://www.cae.co.za/disclaimer.htm to read our e-mail disclaimer or send an e-mail to info@cae.co.za for a copy. ******************************************************************
Farget Vincent
2003-Jun-20 13:14 UTC
[Samba] 'Little' problems with Samba v2.2.3a-12.3 (Debian Woody) and PRINTERS !!
Le Jeudi 19 Juin 2003 17:15, vous avez ?crit :> > But you have not read the samba-howto-collection.pdf, which has a > chapter on this, which tells you *exactly* not to do this.I have read the 6th chapter of theSamba-HOWTO-Collection paper and above all the 6.2.2th chapter named 'Setting Drivers for Existing Printers'. First of all, I remove all the files which was under my : '\\MYSRV\print$\W32X86' directory and also do : MYSRV:~# rpcclient MYSRV -U root%ROOTPASSWD -c "setdriver nss.rdc NULL" After that I start to follow the 6.2.2th chapter process : 1.)>From a Windows 2000 Pro, trying to view the 'nss.rdc' properties throught the'Network Neighborhood', result in an error message : 'Device settings cannot be displayed. The driver for the specified printer is not installed, only spooler properties will be displayed. Do you want to install the driver now ?' 2.) I answered 'No' to this question. The 'Printer properties window' appeared. 3.) I clicked on the 'Advanced' tab and on the 'New driver...' button. 4.) I gave the axact directory where is the 'HP4050PS.INF' which correspond to the driver I want to upload to the server. All worked well. No other errors appeared. I looked at my server to see if the driver's files were well upload. And as I can see a new directory ('2') in the '\\MYSRV\print$\W32X86' with all the driver's files I can say that all was well done. But when I use the rpcclient's command, I can see that there were something always missing. MYSRV:~# rpcclient MYSRV -U root%ROOTPASSWD -c "enumdrivers" gave me an empty answer. And there is nothing else in the Samba-HOWTO-Collection !!!! MYSRV:~# rpcclient MYSRV -U root%ROOTPASSWD -c "enumprinters" gave me the following answer : INFO: Debug class all level = 1 (pid 23218 from pid 23218) session setup ok Domain=[MYDOM] OS=[Unix] Server=[Samba 2.2.3a-12.3 for Debian] cmd = enumprinters enumprinters flags:[0x800000] name:[\\MYSRV\nss.rdc] description:[MYSRV\\MYSRV\nss.rdc,HP LaserJet 4050 Series PS,Partage imprimante HP4050N (1er etage)] comment:[Partage imprimante HP4050N (1er etage)] flags:[0x800000] name:[\\MYSRV\nss.1er] description:[MYSRV\\MYSRV\nss.1er,HP LaserJet 4000 Series PCL 6,Partage imprimante HP4000N (2eme etage)] comment:[Partage imprimante HP4000N (2eme etage)]> I have screenshots of the right method, but haven't had the time to get > them together properly. > > Well, since the files are there, you should now be able to set the > driver with rpclient, but if you do it the right way, you don't need to > do anything.Are you talking about the setdriver rpcclient'c command ? Or are you talking of another rpcclient's command ?> You should not need this, well, at least I have never needed it, but we > use CUPS on all our print servers.Yes, but I think the problem is a samba problem, not an LPRng or CUPS problem.....> You are spending too much time working around problems, instead of > reading the documentation.Yes, but I have readen the Samba-HOWTO-Collection documentation and there is no solution for my little problem. In fact, I don't really know if it is a problem, as all works well : UPLOADING drivers to the server, DOWNLOADING driver from the server but there are some things that don't work as it do. Thanks. Best regards. -- Mr FARGET Vincent Universite Claude Bernard LYON 1 CNRS - UMR 5020 Laboratoire des Neurosciences et Systemes Sensoriels 50, avenue Tony Garnier 69366 LYON Cedex 07