I am developing a print server for a client, and I need to make the ability to add and configure print servers as simple as possible. So far, cups and samba are top notch, but there are two problems I have. One, I need to restart the samba service every time I add a printer. Two, I need to log in via console or SSH to run cupsaddsmb, and I need to then authenticate. I was wondering if there was a way that I could streamline this a bit so they'd never have to do any of that. Also, not killing samba would be nice, as there will be up to 200 people per print server. Thanks! /\/\/\/\/\/\ Nothing is foolproof to a talented fool. /\/\/\/\/\/\ coreyfro@coreyfro.com http://www.coreyfro.com/ http://stats.distributed.net/rc5-64/psummary.php3?id=196879 ICQ : 3168059 -----BEGIN GEEK CODE BLOCK----- GCS d--(+) s: a-- C++++$ UBL++>++++ P+ L+ E W+++$ N+ o? K? w++++$>+++++$ O---- !M--- V- PS+++ PE++(--) Y+ PGP- t--- 5(+) !X- R(+) !tv b-(+) Dl++(++++) D++ G+ e>+++ h++(---) r++>+$ y++*>$ H++++ n---(----) p? !au w+ v- 3+>++ j- G'''' B--- u+++*** f* Quake++++>+++++$ ------END GEEK CODE BLOCK------ Home of Geek Code - http://www.geekcode.com/ The Geek Code Decoder Page - http://www.ebb.org/ungeek//
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Corey McGuire wrote: | I am developing a print server for a client, and I need to make the ability | to add and configure print servers as simple as possible. So far, cups and | samba are top notch, but there are two problems I have. users declared as printer admin can upload drivers on the server, which is what you want; IIRC it can be done through the NT/2K printer setup interface, and drivers go into the designated share. It is mentined in a couple of howtos around; a bit of googleing wouldn't hurt. try "printer driver automation samba" you're not supposed to restart samba every time; wouldn't a killall -HUP ~ smbd do the job? I remember seeing somewhere that the config file was re-read at regular intervals anyway(to be confirmed). | One, I need to restart the samba service every time I add a printer. | Two, I need to log in via console or SSH to run cupsaddsmb, and I need to | then authenticate. | | I was wondering if there was a way that I could streamline this a bit so | they'd never have to do any of that. Also, not killing samba would be | nice, as there will be up to 200 people per print server. | | Thanks! | | | | | /\/\/\/\/\/\ Nothing is foolproof to a talented fool. /\/\/\/\/\/\ | | coreyfro@coreyfro.com | http://www.coreyfro.com/ | http://stats.distributed.net/rc5-64/psummary.php3?id=196879 | ICQ : 3168059 | | -----BEGIN GEEK CODE BLOCK----- | GCS d--(+) s: a-- C++++$ UBL++>++++ P+ L+ E W+++$ N+ o? K? w++++$>+++++$ | O---- !M--- V- PS+++ PE++(--) Y+ PGP- t--- 5(+) !X- R(+) !tv b-(+) | Dl++(++++) D++ G+ e>+++ h++(---) r++>+$ y++*>$ H++++ n---(----) p? !au w+ | v- 3+>++ j- G'''' B--- u+++*** f* Quake++++>+++++$ | ------END GEEK CODE BLOCK------ | | Home of Geek Code - http://www.geekcode.com/ | The Geek Code Decoder Page - http://www.ebb.org/ungeek// | - -- *********************************************** david.morel@amakuru.net OpenPGP public key: http://www.amakuru.net/dmorel.asc 28192ef126bc871757cb7d97f4a44536 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+kmtPqr7QF98duCMRAk8sAKCJ1oh5W8oq4fx9zbVuGkgZCAWUowCgnVaZ xAMhMEd6YoJtg7c3K2IWsIA=m+5d -----END PGP SIGNATURE-----
Gerald (Jerry) Carter
2003-Apr-09 15:32 UTC
[Samba] Automating cupsaddsmb or some alternative
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 7 Apr 2003, Corey McGuire wrote:> I am developing a print server for a client, and I need to make the ability > to add and configure print servers as simple as possible. So far, cups and > samba are top notch, but there are two problems I have. > > One, I need to restart the samba service every time I add a printer.A solution to this has been suggested. We need to implement a printcap cache time and reload printers periodically when "printing = cups" I just haven't had time to do it.> Two, I need to log in via console or SSH to run cupsaddsmb, and I need to > then authenticate.There are several ways to automate smbclient and rpcclient (which cupsmbadd uses IIRC). I didn't think it had to be local. If so, the would be a cupsmbadd issue since [smb|rpc]client has no problems installing drivers on remote servers. cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE+lDz2IR7qMdg1EfYRAuY2AKDhszOB47zQAIXS/gnqxTH3yqWxqgCg3yw7 dRCYT96uU1rHJ8YMLDOdiMo=pb5R -----END PGP SIGNATURE-----
Gerald (Jerry) Carter jerry at samba.org wrote on Samba-Digest:> Wed Apr 9 10:32:06 GMT 2003 > > > On Mon, 7 Apr 2003, Corey McGuire wrote: > >> I am developing a print server for a client,Do you need remote administration? Web-based adding of new printers? Or what are the requirements?>> and I need to make the ability >> to add and configure print servers as simple as possible. So far, cups and >> samba are top notch, but there are two problems I have. >> >> One, I need to restart the samba service every time I add a printer. > > A solution to this has been suggested. We need to implement a printcap > cache time and reload printers periodically when "printing = cups" > I just haven't had time to do it. > >> Two, I need to log in via console or SSH to run cupsaddsmb,From where do you log in? From Unix or from Windows?>> and I need to >> then authenticate.Isn't this what you *want*? Anyway, you can probably avoid the typing of the password by using a "-U username:password" notation in the cupsaddsmb command.> There are several ways to automate smbclient and rpcclient > (which cupsmbadd uses IIRC). I didn't think it had to be local. > If so, the would be a cupsmbadd issue since [smb|rpc]client has no > problems installing drivers on remote servers.You can use "cupsaddsmb" remotely, no problem: user@localhost:/> cupsaddsmb -H sambaserver -U sambauser -h cupsserver -v printername On localhost you just need to have CUPS and Samba client sides installed (cupsaddsmb, smbclient, rpcclient...). On sambaserver you need to have Samba installed (compiled against libcups). On cupsserver you need to have CUPS installed (and, of course, the printer "printername", plus the [Adobe or CUPS] PostScript Driver files as recommended by "man cupsaddsmb"). I'll probably demonstrate it on the SambaXP conference... Of course, sambaserver and cupsserver may be the same host.> cheers, jerryCheers, Kurt