Re: [Samba] installing printer in a logon script

2004-11-09 Thread Tarjei Huse
Hi,
 But it seems to me that Windows is simply ignoring /if /f flags, 
 because it doesn't print any error (even with no /q) when I put some 
 nonsense instead of the location of the ini file.
 
 Well here we just have :
 
 rundll32 printui.dll,PrintUIEntry /in /n \\server\printer
 
 in a script called from the login script. It seems to work fine for 
 us except for the nice feature in XP SP1 that disables users from 
 installing printers - we haven't got round to pushing out a registry 
 hack to fix that yet, but before SP1 went on it worked.

Hi, would you mind posting the .reg file?
Tarjei

 
 As for adding print drivers to the server, we use cupsaddsmb (as per 
 the Samba howtos).
 
 So, we add a printer to cups, select the right PPD and put it in 
 /etc/cups/ppd, then run cupsaddsmb to install the drivers. Add the 
 rundll ... line to the login scripts, and next time a user logs in 
 they get the printer installed (subject to the point and print policy 
 in place).
 
 This is with samba 2.2.8a-224 and cups 1.1.15-170 (current versions 
 for Suse Linux Openexchange server).
 
 Simon
 
 -- 
 Simon Hobson MA MIEE, Technology Specialist
 Colony Gift Corporation Limited
 Lindal in Furness, Ulverston, Cumbria, LA12 0LD
 Tel 01229 461100, Fax 01229 461101
 
 Registered in England No. 1499611
 Regd. Office : 100 New Bridge Street, London, EC4V 6JA.
-- 
Tarjei Huse [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-09 Thread Simon Hobson
Tarjei Huse wrote:
  except for the nice feature in XP SP1 that disables users from
  installing printers - we haven't got round to pushing out a registry
 hack to fix that yet, but before SP1 went on it worked.
Hi, would you mind posting the .reg file?
I haven't built one yet, on my list of things to 'get around to'. 
Details can be found at :

http://support.microsoft.com/?kbid=319939
I have to say I was 'mildly surprised' to find a description of the 
registry entries, since everything else I've ever tried to find has 
been covered by see insert name group policy.

Simon
--
Simon Hobson MA MIEE, Technology Specialist
Colony Gift Corporation Limited
Lindal in Furness, Ulverston, Cumbria, LA12 0LD
Tel 01229 461100, Fax 01229 461101
Registered in England No. 1499611
Regd. Office : 100 New Bridge Street, London, EC4V 6JA.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-08 Thread Tomasz Chmielewski
Paul Gienger wrote:

It really sounds like you're not understanding what we're telling you.  
You need to store the printer driver on the samba server so that when 
you issue the rundll command, with the /in switch, your client knows 
what you're talking about.  To do this, go to a windows machine that is 
already on your network, try your personal station, seems to work well 
for me.  Follow through the part that I sent the address to.  Really.  
When you are done, you should be able to run (from your server)
rpcclient servername
and then once logged in do an enumdrivers and see them listed.  You 
should also be able to do an enumprinters and see more interesting 
information.  If these commands don't work, stop and re-examine your 
setup.  Any number of things could be wrong so perhaps tell us what you 
get from those commands.

When you are done, you should be able to walk over to any machine, issue 
your rundll command from the command line and all that will happen is 
that a box will come up saying that it is installing the printer name 
from host (or possibly the ip depending on your version of samba) and 
it should just go away.  Now if you're using 3.0.7 (I believe) there is 
a known bug in these routines that will cause some issue with your 
naming.  You'll have to play around with your rundll command and the 
printer names to get it right.  If you get here, post your enumprinters 
and enumdrivers output from above and maybe a valid statement can be 
made for you.
No, sorry, this won't work for me.
My printer-install have to fulfil the following assumptions:
1) printer is installed *fully* automatically - no end-user user 
interaction,
2) as admin can reach Samba and only Samba remotely (and only remotely), 
there can be no walking to a workstation and adding a printer from there.

To sum up:
a) admin knows what printer do they have in these remote offices,
b) admin copies drivers to samba remotely, changes some logon scripts - 
and users of that remote office have printer drivers installed.

It seems I could do it with rundll32 printui.dll,PrintUIEntry ... - 
but I can construct a valid command to point to the drivers.
I tried it like that:

rundll32 printui.dll,PrintUIEntry /q /y /ga /if /f 
\\server\shared\HP_2000C\hp_2x00c.inf /in /n \\server\HP_2000C

But it seems to me that Windows is simply ignoring /if /f flags, because 
it doesn't print any error (even with no /q) when I put some nonsense 
instead of the location of the ini file.

Tomek





--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-08 Thread Simon Hobson
Tomasz Chmielewski wrote:
My printer-install have to fulfil the following assumptions:
1) printer is installed *fully* automatically - no end-user user interaction,
2) as admin can reach Samba and only Samba remotely (and only 
remotely), there can be no walking to a workstation and adding a 
printer from there.

To sum up:
a) admin knows what printer do they have in these remote offices,
b) admin copies drivers to samba remotely, changes some logon 
scripts - and users of that remote office have printer drivers 
installed.

It seems I could do it with rundll32 printui.dll,PrintUIEntry ... 
- but I can construct a valid command to point to the drivers.
I tried it like that:

rundll32 printui.dll,PrintUIEntry /q /y /ga /if /f 
\\server\shared\HP_2000C\hp_2x00c.inf /in /n \\server\HP_2000C

But it seems to me that Windows is simply ignoring /if /f flags, 
because it doesn't print any error (even with no /q) when I put some 
nonsense instead of the location of the ini file.
Well here we just have :
rundll32 printui.dll,PrintUIEntry /in /n \\server\printer
in a script called from the login script. It seems to work fine for 
us except for the nice feature in XP SP1 that disables users from 
installing printers - we haven't got round to pushing out a registry 
hack to fix that yet, but before SP1 went on it worked.

As for adding print drivers to the server, we use cupsaddsmb (as per 
the Samba howtos).

So, we add a printer to cups, select the right PPD and put it in 
/etc/cups/ppd, then run cupsaddsmb to install the drivers. Add the 
rundll ... line to the login scripts, and next time a user logs in 
they get the printer installed (subject to the point and print policy 
in place).

This is with samba 2.2.8a-224 and cups 1.1.15-170 (current versions 
for Suse Linux Openexchange server).

Simon
--
Simon Hobson MA MIEE, Technology Specialist
Colony Gift Corporation Limited
Lindal in Furness, Ulverston, Cumbria, LA12 0LD
Tel 01229 461100, Fax 01229 461101
Registered in England No. 1499611
Regd. Office : 100 New Bridge Street, London, EC4V 6JA.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-08 Thread Paul Gienger

1) printer is installed *fully* automatically - no end-user user 
interaction,
2) as admin can reach Samba and only Samba remotely (and only 
remotely), there can be no walking to a workstation and adding a 
printer from there.

To sum up:
a) admin knows what printer do they have in these remote offices,
b) admin copies drivers to samba remotely, changes some logon scripts 
- and users of that remote office have printer drivers installed.

I'm going to reiterate one more time that it doesn't appear that you're 
doing this properly, and then shoot myself.

You need to, as admin, *install* the printer on the samba server by the 
methods that have been listed in this thread several times.  DO NOT 
simply copy the drivers to some random share on the server and then 
point the client to them.  Here is my login script snippet that works 
fine on every workstation I've ever seen that has the printer drivers 
installed properly on the server.  Some newish versions of samba require 
me to put the ip, hopefully that will be fixed.  The first one sets the 
driver, the second sets the default printer.

rundll32 printui.dll,PrintUIEntry /in /n \\10.2.0.2\hplj /r 
\\10.2.0.2\hplj /m HP LaserJet 5000 Series PS 
rundll32 printui.dll,PrintUIEntry /y /z /n \\10.2.0.2\hplj

I quit.
--
--
Paul GiengerOffice: 701-281-1884
Applied Engineering Inc.
Systems Architect   Fax:701-281-1322
URL: www.ae-solutions.com   mailto: [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-08 Thread Tomasz Chmielewski
Kristyan Osborne wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
Just use Kixtart. The syntax is really easy and it just works.
addprinterconnection(\\sambaserver\printername)
setdefaultprinter(\\sambaserver\printername)
really easy.
Maybe it's easy, but it doesn't add any printer, so it's of no use:
kixprint.kix:
addprinterconnection(\\server\HP_2000C)
setdefaultprinter(\\server\HP_2000C)
C:\KiX c:\kixprint.kix
17972
C:\KiX
and this is all it does.
how can you specify printer drivers to KiX? I didn't find it in manual - 
in fact - I found only these two above commands (addprinterconnection 
and setdefaultprinter) concernig printing (and one more to remove printer).

Tomek
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] installing printer in a logon script

2004-11-08 Thread Kristyan Osborne
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 -Original Message-
 From: Tomasz Chmielewski [mailto:[EMAIL PROTECTED]
 Sent: 08 November 2004 14:40
 To: Kristyan Osborne
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Samba] installing printer in a logon script
 
 
 Kristyan Osborne wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  Hi,
  
  Just use Kixtart. The syntax is really easy and it just works.
  
  addprinterconnection(\\sambaserver\printername)
  setdefaultprinter(\\sambaserver\printername)
  
  really easy.
 
 Maybe it's easy, but it doesn't add any printer, so it's of no use:
 
 kixprint.kix:
 
 addprinterconnection(\\server\HP_2000C)
 setdefaultprinter(\\server\HP_2000C)
 
 
 C:\KiX c:\kixprint.kix
 17972
 C:\KiX
 
 and this is all it does.
 how can you specify printer drivers to KiX? I didn't find it 
 in manual - 
 in fact - I found only these two above commands (addprinterconnection 
 and setdefaultprinter) concernig printing (and one more to 
 remove printer).
 
You don't. As long as the drivers have been installed on the Samba server via 
the method mentioned in the Samba HOW-TO docs and in this list on numerous 
occasions. The numbers you go after the script has ran are error codes. I 
suggest you look these up in the Kixtart manual and see whats going wrong.

This is the setup i'm using at my site. I have a print server with about 15 
printers attached and over 450 workstations map to this server everyday using 
the method above. It works great!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBj4egqrr+KdRYU5gRAoyJAJ0UXx2zmePLvmvqoavAifzESaxK/ACdE4Eq
Yx3Fzq9jrTP1BNLG3k97nN4=
=5WtY
-END PGP SIGNATURE-

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-08 Thread Tomasz Chmielewski
Paul Gienger wrote:

1) printer is installed *fully* automatically - no end-user user 
interaction,
2) as admin can reach Samba and only Samba remotely (and only 
remotely), there can be no walking to a workstation and adding a 
printer from there.

To sum up:
a) admin knows what printer do they have in these remote offices,
b) admin copies drivers to samba remotely, changes some logon scripts 
- and users of that remote office have printer drivers installed.

I'm going to reiterate one more time that it doesn't appear that you're 
doing this properly, and then shoot myself.
Don't! :)

You need to, as admin, *install* the printer on the samba server by the 
methods that have been listed in this thread several times.  DO NOT 
simply copy the drivers to some random share on the server and then 
point the client to them.  Here is my login script snippet that works 
fine on every workstation I've ever seen that has the printer drivers 
installed properly on the server.  Some newish versions of samba require 
me to put the ip, hopefully that will be fixed.  The first one sets the 
driver, the second sets the default printer.

rundll32 printui.dll,PrintUIEntry /in /n \\10.2.0.2\hplj /r 
\\10.2.0.2\hplj /m HP LaserJet 5000 Series PS 
rundll32 printui.dll,PrintUIEntry /y /z /n \\10.2.0.2\hplj
OK, this is partially my fault, as installing printer drivers on Samba 
manually (not using Windows GUI) is so complicated and unintuitive that 
I think it's even more complicated than configuring IPSec on two 
machines with dynamic IP, one behind NAT!
I just imagined adding 10 different printer drivers to Samba (in 14 
different locations) and it was I who thought of shooting myself.

rundll printui.dll,PrintUIEntry has already a switch to use a given inf 
file for a chosen printer - and as win2k already *has* these printer 
drivers, I feel no need to copy them from Samba. Doing it from a slow 
dial-up can be unpleasant experience for an end-user, each time he/she 
logs in.

The hard part for me is to make rundll printui.dll,PrintUIEntry use 
this given inf file, not downloading it from Samba.

Tomek
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-08 Thread Simon Hobson
Tomasz Chmielewski wrote:
OK, this is partially my fault, as installing printer drivers on 
Samba manually (not using Windows GUI) is so complicated and 
unintuitive that I think it's even more complicated than configuring 
IPSec on two machines with dynamic IP, one behind NAT!
If you stick to using the AdobePS driver on the desktops then it 
isn't hard - just follow the howto.

rundll printui.dll,PrintUIEntry has already a switch to use a given 
inf file for a chosen printer - and as win2k already *has* these 
printer drivers, I feel no need to copy them from Samba. Doing it 
from a slow dial-up can be unpleasant experience for an end-user, 
each time he/she logs in.
It doesn't download it each time. It appears to download it the first 
time, and after that it goes through the motions but doesn't actually 
download drivers it already has. I'm sure someone with the knowledge 
will be able to say what tests are applied for it to download a 
changed driver.

Simon
--
Simon Hobson MA MIEE, Technology Specialist
Colony Gift Corporation Limited
Lindal in Furness, Ulverston, Cumbria, LA12 0LD
Tel 01229 461100, Fax 01229 461101
Registered in England No. 1499611
Regd. Office : 100 New Bridge Street, London, EC4V 6JA.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-08 Thread Paul Gienger

OK, this is partially my fault, as installing printer drivers on Samba 
manually (not using Windows GUI) is so complicated and unintuitive 
that I think it's even more complicated than configuring IPSec on two 
machines with dynamic IP, one behind NAT!
With or without control of the firewall/nat box?
rundll printui.dll,PrintUIEntry has already a switch to use a given 
inf file for a chosen printer - and as win2k already *has* these 
printer drivers, I feel no need to copy them from Samba. Doing it from 
a slow dial-up can be unpleasant experience for an end-user, each time 
he/she logs in.
Isn't your desired line, which you earier stated was:
rundll32 printui.dll,PrintUIEntry /q /y /ga /if /f 
\\server\shared\HP_2000C\hp_2x00c.inf /in /n \\server\HP_2000C
doing the same thing? 

--
--
Paul GiengerOffice: 701-281-1884
Applied Engineering Inc.
Systems Architect   Fax:701-281-1322
URL: www.ae-solutions.com   mailto: [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-08 Thread Tomasz Chmielewski
Kristyan Osborne wrote:
Just use Kixtart. The syntax is really easy and it just works.
addprinterconnection(\\sambaserver\printername)
setdefaultprinter(\\sambaserver\printername)
really easy.
Maybe it's easy, but it doesn't add any printer, so it's of no use:
kixprint.kix:
addprinterconnection(\\server\HP_2000C)
setdefaultprinter(\\server\HP_2000C)
C:\KiX c:\kixprint.kix
17972
C:\KiX
and this is all it does.
how can you specify printer drivers to KiX? I didn't find it 
in manual - 
in fact - I found only these two above commands (addprinterconnection 
and setdefaultprinter) concernig printing (and one more to 
remove printer).


Are you sure that the printer drivers are installed properly on the samba server. NT error code 1797 is something like printer driver not found or not installed properly.
No, drivers are not installed on Samba server.
In fact, I don't want to install them there at all.
Windows 2000 already has these drivers bundled with the system, so I'd 
rather use these than download these drivers from Samba server (doing so 
for a dial-up laptoper who has this install printer script over a slow 
dial-up connection would force him/her into downloading several 
megabytes of drivers that are already on the laptop, wouldn't it?).

Tomek
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-08 Thread Tomasz Chmielewski
Paul Gienger wrote:

OK, this is partially my fault, as installing printer drivers on Samba 
manually (not using Windows GUI) is so complicated and unintuitive 
that I think it's even more complicated than configuring IPSec on two 
machines with dynamic IP, one behind NAT!

With or without control of the firewall/nat box?
With would be easier.
Without you have to place IPSec tunnel into another tunnel I think, but 
that's out of the scope of this group.


rundll printui.dll,PrintUIEntry has already a switch to use a given 
inf file for a chosen printer - and as win2k already *has* these 
printer drivers, I feel no need to copy them from Samba. Doing it from 
a slow dial-up can be unpleasant experience for an end-user, each time 
he/she logs in.

Isn't your desired line, which you earier stated was:
rundll32 printui.dll,PrintUIEntry /q /y /ga /if /f 
\\server\shared\HP_2000C\hp_2x00c.inf /in /n \\server\HP_2000C
doing the same thing?
OK, it was just an example (for some non-mobile users).
It doesn't matter what I type after /if /f - it can be:
rundll32 printui.dll,PrintUIEntry /q /y /ga /if /f \\bull\shit /in /n 
\\server\HP_2000C

and it doesn't give me an error that there is nothing like \\bull\shit.
If I type there c:\non-existing\printerdriver.inf, it doesn't even say 
that there is no such location, and I get a prompt no drivers on the 
server (which is right, as they are not there), but when I point it to 
c:\real-driver.inf, I have the same no drivers on the server (but I 
want them to be installed from the local workstation, as they are 
already there!).

Tomek
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-05 Thread Tomasz Chmielewski
Manuel Capinha wrote:
Connect to the server and enter the Printers and Faxes folder.
Right click, choose Server Properties.
Go into the Drivers tab and add the driver, just like as if it was a
Windows server.
Afterwards, select the printer and set it up to use your newly setup driver.
All of this is explained in the manual in much more depth, off course :)
hint: look at the subject (installing printer in a script).
it has to be done *fully* automatically, there is no place for going 
there and clicking here.

this is done on a freshly installed machine, which didn't even join the 
domain.

any more ideas?
Tomek
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-05 Thread Paul Gienger
Reorganizing the posts for sanity:
Tomasz Chmielewski wrote:
Manuel Capinha wrote:
Connect to the server and enter the Printers and Faxes folder.
Right click, choose Server Properties.
Go into the Drivers tab and add the driver, just like as if it was a
Windows server.
hint: look at the subject (installing printer in a script).
it has to be done *fully* automatically, there is no place for going 
there and clicking here.
You need to do this to install the server copy of the printer driver.  
When you run your rundll command with the /in flag, it looks for the 
driver as it has been installed using (more or less) the procedure 
above.  This is how it's done, not with what you said about 'putting the 
driver in /blah/X32HP200C'.  When you do the install command from a 
login script there is no 'going there and clicking here', just a status 
box that disappears all by itself.

You should probably grab yourself a copy of '...By Example' by whatever 
means you like and bone up on the printing sections.  You can start here 
if you don't know where to find it.
http://us3.samba.org/samba/docs/man/Samba-Guide/happy.html#id2541726

this is done on a freshly installed machine, which didn't even join 
the domain.
If you didn't join the domain then how exactly is the login script being 
run?!?!?

--
--
Paul GiengerOffice: 701-281-1884
Applied Engineering Inc.
Systems Architect   Fax:701-281-1322
URL: www.ae-solutions.com   mailto: [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-05 Thread Tomasz Chmielewski
Paul Gienger wrote:
Reorganizing the posts for sanity:
Tomasz Chmielewski wrote:
Manuel Capinha wrote:
Connect to the server and enter the Printers and Faxes folder.
Right click, choose Server Properties.
Go into the Drivers tab and add the driver, just like as if it was a
Windows server.

hint: look at the subject (installing printer in a script).
it has to be done *fully* automatically, there is no place for going 
there and clicking here.

You need to do this to install the server copy of the printer driver.  
When you run your rundll command with the /in flag, it looks for the 
driver as it has been installed using (more or less) the procedure 
above.  This is how it's done, not with what you said about 'putting the 
driver in /blah/X32HP200C'.  When you do the install command from a 
login script there is no 'going there and clicking here', just a status 
box that disappears all by itself.
No, it doesn't disappear by itself, even if I'm logged into a domain.
I agree, if the driver was installed *before* - now Windows knows that 
it has it.
But if it's installed for the *first* time, I have this window prompt.


You should probably grab yourself a copy of '...By Example' by whatever 
means you like and bone up on the printing sections.  You can start here 
if you don't know where to find it.
http://us3.samba.org/samba/docs/man/Samba-Guide/happy.html#id2541726
Yeah I read this, but it didn't say how to install printer drivers 
without user interaction.


this is done on a freshly installed machine, which didn't even join 
the domain.

If you didn't join the domain then how exactly is the login script being 
run?!?!?

Actually, it's Unattended script (see unattended.sf.net) - a Windows 
deployment system - in other words, an unattended installation of 
Windows (handy if you have to install Windows on a large number of 
machines).

You insert a CD to a blank PC (can be done over a network without a CD 
if mainboard supports it, too), choose a name for a computer - and there 
you go - it installs Windows, all desired software, joins the domain 
etc. without any need to click or type anything (well, you have to 
prepare a script that does that all before of course).

As the Windows is installed and the software is being installed, it is 
all done as Administrator (*that* computer Administrator) - and we're 
not logged into a domain (yet).

I can do everything automatically, apart of this printer driver :(
Tomek
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-05 Thread Paul Gienger

Connect to the server and enter the Printers and Faxes folder.
Right click, choose Server Properties.
Go into the Drivers tab and add the driver, just like as if it was a
Windows server.

hint: look at the subject (installing printer in a script).
it has to be done *fully* automatically, there is no place for going 
there and clicking here.

You need to do this to install the server copy of the printer 
driver.  When you run your rundll command with the /in flag, it looks 
for the driver as it has been installed using (more or less) the 
procedure above.  This is how it's done, not with what you said about 
'putting the driver in /blah/X32HP200C'.  When you do the install 
command from a login script there is no 'going there and clicking 
here', just a status box that disappears all by itself.

No, it doesn't disappear by itself, even if I'm logged into a domain.
I agree, if the driver was installed *before* - now Windows knows that 
it has it.
But if it's installed for the *first* time, I have this window prompt.
It really sounds like you're not understanding what we're telling you.  
You need to store the printer driver on the samba server so that when 
you issue the rundll command, with the /in switch, your client knows 
what you're talking about.  To do this, go to a windows machine that is 
already on your network, try your personal station, seems to work well 
for me.  Follow through the part that I sent the address to.  Really.  
When you are done, you should be able to run (from your server)
rpcclient servername
and then once logged in do an enumdrivers and see them listed.  You 
should also be able to do an enumprinters and see more interesting 
information.  If these commands don't work, stop and re-examine your 
setup.  Any number of things could be wrong so perhaps tell us what you 
get from those commands.

When you are done, you should be able to walk over to any machine, issue 
your rundll command from the command line and all that will happen is 
that a box will come up saying that it is installing the printer name 
from host (or possibly the ip depending on your version of samba) and 
it should just go away.  Now if you're using 3.0.7 (I believe) there is 
a known bug in these routines that will cause some issue with your 
naming.  You'll have to play around with your rundll command and the 
printer names to get it right.  If you get here, post your enumprinters 
and enumdrivers output from above and maybe a valid statement can be 
made for you.

--
--
Paul GiengerOffice: 701-281-1884
Applied Engineering Inc.
Systems Architect   Fax:701-281-1322
URL: www.ae-solutions.com   mailto: [EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-05 Thread Tomasz Chmielewski
Paul Gienger wrote:
You need to do this to install the server copy of the printer 
driver.  When you run your rundll command with the /in flag, it looks 
for the driver as it has been installed using (more or less) the 
procedure above.  This is how it's done, not with what you said about 
'putting the driver in /blah/X32HP200C'.  When you do the install 
command from a login script there is no 'going there and clicking 
here', just a status box that disappears all by itself.

No, it doesn't disappear by itself, even if I'm logged into a domain.
I agree, if the driver was installed *before* - now Windows knows that 
it has it.
But if it's installed for the *first* time, I have this window prompt.

It really sounds like you're not understanding what we're telling you.  
You need to store the printer driver on the samba server so that when 
you issue the rundll command, with the /in switch, your client knows 
what you're talking about.  To do this, go to a windows machine that is 
already on your network, try your personal station, seems to work well 
for me.  Follow through the part that I sent the address to.  Really.  
When you are done, you should be able to run (from your server)
OK, sorry for misunderstanding.
Will try that on Manday.
Tomek
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-04 Thread Misty Stanley-Jones
On Thursday 04 November 2004 10:32, Tomasz Chmielewski wrote:
 Unfortunately, this doesn't work so well: win2k complains that server,
 on which the printer is installed, has no matching drivers. Then I can
 choose OK, which means that drivers will be installed from the local
 machine. So when I choose OK, win2k uses local drivers and from now on I
 can print from that win2k.

 Is it possible to get rid of that question, so that printer installation
 would be automatic? Either by using default win2k drivers, or these
 which are on Samba server.

Make a [print$] share on your server and store all printer drivers there.

By the way, Kixtart (login script interpreter / language) makes it incredibly 
to automatically add printers.

Misty

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] installing printer in a logon script

2004-11-04 Thread Tomasz Chmielewski
On Thursday 04 November 2004 10:32, Tomasz Chmielewski wrote:
Unfortunately, this doesn't work so well: win2k complains that server,
on which the printer is installed, has no matching drivers. Then I can
choose OK, which means that drivers will be installed from the local
machine. So when I choose OK, win2k uses local drivers and from now on I
can print from that win2k.
Is it possible to get rid of that question, so that printer installation
would be automatic? Either by using default win2k drivers, or these
which are on Samba server.
Make a [print$] share on your server and store all printer drivers there.
OK, so I did that share, put drivers to /var/lib/samba/drivers/W32X86, 
put them to /var/lib/samba/drivers/W32X86/HP2000C too, but despite of 
it, effect is still the same - win2k claims that there is no driver.

Any more steps I should do?
Tomek
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba