Koozali.org: home of the SME Server

howto install windows printer drivers on SME?

ksc133

howto install windows printer drivers on SME?
« on: June 17, 2006, 06:13:06 PM »
hi folks,

howto install windows printer drivers on SME?

i've read on this howto but it is for SME 4, i've tested but it fails.

http://no.longer.valid/phpwiki/index.php/How%20to%20store%20printer%20drivers%20on%20your%20server%20using%20Samba%202.2.1a

please advice

thanks

Offline dsemuk

  • ****
  • 269
  • +0/-0
howto install windows printer drivers on SME?
« Reply #1 on: June 17, 2006, 06:48:11 PM »
You cannot install Windows printer drivers on a Linux server.

You can however store them on an iBay so when you need to install a printer on a client machine the drivers are at hand.

What I believe you are asking is can I put the drivers on my SMEServer and the client automatically locate and use them when I want to install a printer on a client machine... this was discussed on the forums a few weeks ago, but I don't recall a solution being put forward.

Dave
--
Esmith/Mitel/SME server  :-D...

ksc133

howto install windows printer drivers on SME?
« Reply #2 on: June 18, 2006, 03:50:34 PM »
hi

i found out a way to do it by editing the custom-templates of smb.conf /50printers

    $OUT = <<HERE;
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
HERE
    $OUT .= "use client driver = no ";
    $OUT .= $smb{UseClientDriver} || "no";
================================================

smb.conf 61printerdrivershare

# added to support printer drivers download
# This share is writable according to Unix file permissions (admin:admin)

    my $u_c_d = $smb{UseClientDriver} || "no";;
    my $writable = ($u_c_d eq "yes") ? "no" : "yes";

    $OUT = <<HERE;
[print\$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = yes
browseable = yes
use client driver = $u_c_d
writable = $writable
HERE

}

does anybody knows know to edit the correct values in RED?
i try to change it but they won't take effect

ksc133

howto install windows printer drivers on SME?
« Reply #3 on: June 18, 2006, 04:22:48 PM »
hi

i manually edit the /etc/samba/smb.conf

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
use client driver = no

 [print$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = yes
browseable = yes
use client driver = no
writable = yes

and i can upload windows XP drivers into SME server.
my winXP clients are able to auto download and install the printers

now question is how to make use of custom-templates to make the changes permemant?

thanks :-D

Robert

howto install windows printer drivers on SME?
« Reply #4 on: June 18, 2006, 08:36:37 PM »
Quote from: "ksc133"
hi

i manually edit the /etc/samba/smb.conf

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
use client driver = no

 [print$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = yes
browseable = yes
use client driver = no
writable = yes

and i can upload windows XP drivers into SME server.
my winXP clients are able to auto download and install the printers

now question is how to make use of custom-templates to make the changes permemant?

thanks :-D

You don't need custom templates for this, because there is a database property that controls the relevant settings. What you do is:

# db configuration setprop smb UseClientDriver no
# expand-template /etc/samba/smb.conf
# service smb restart

ksc133

thanks
« Reply #5 on: June 19, 2006, 11:55:52 AM »
thanks a lot it works

ksc133

howto install windows printer drivers on SME?
« Reply #6 on: June 24, 2006, 05:35:14 AM »
how to enable guest printing on SME7?

i've done the following... it just didn't wok

db configuration setprop smb GuestOk yes
expand-template /etc/samba/smb.conf
service smb restart
 :roll:

Robert

howto install windows printer drivers on SME?
« Reply #7 on: June 26, 2006, 01:48:01 AM »
You cannot simply add properties to database keys and expect them to automagically have an effect in the templates. If you look at the template for the [printers] section for smb.conf, you'll notice a difference between how the "use client driver" parameter is set (with a variable) and how the "guest ok" parameter is set (with a fixed value). The last two lines before the closing bracket in the template expand to "use client driver = no" if the property "UseClientDriver" for the database key "smb" in /home/e-smith/db/configuration (that's what $smb{$UseClientDriver} means) is set to "no"; they expand to "use client driver = yes" if the property is set to "yes" or if the property is unset. In contrast to this variable line, the line "guest ok = no" is fixed in the template. The easiest way to set this parameter to "guest ok = yes" is to simply copy the file /etc/e-smith/templates/etc/smb.conf/50printers to /etc/e-smith/templates-custom/etc/smb.conf/ , then change the line "guest ok = no" to "guest ok = yes", expand template and restart samba.

{
    $OUT = <<HERE;
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
HERE
    $OUT .= "use client driver = ";
    $OUT .= $smb{UseClientDriver} || "yes";
}

ksc133

howto install windows printer drivers on SME?
« Reply #8 on: June 26, 2006, 02:47:59 PM »
thanks Roger that  :-D

Offline robwellesley

  • *
  • 92
  • +0/-0
howto install windows printer drivers on SME?
« Reply #9 on: September 24, 2006, 01:03:43 AM »
Actually you just change the UseClientDriver to no...

[root@server ~]# config setprop smb UseClientDriver no

and fragment /etc/e-smith/templates/etc/smb.conf/61printerdriversshare

does the rest.

so just

[root@server ~]# expand-template /etc/samba/smb.conf

and restart the service

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: howto install windows printer drivers on SME?
« Reply #10 on: June 27, 2008, 05:10:51 PM »
and how to grant permissions to a group admin the printers.
Let´s say a group of admins is created, named "domain.admins" with description "Domain Admins" do get permissions to join computers to domain.
Would be nice to allow those domain.admins to upload drivers to server.

As far I know the smb.conf file would be changed to include
printer admin = @domain.admins
write list =@domain.admins

in the printer$ section.

What db command should I create or should I modify templates?

Jáder
...

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: howto install windows printer drivers on SME?
« Reply #11 on: June 27, 2008, 05:26:19 PM »
Hi

I think you have to create a custom template for this

btw, you should also post to bugzilla a nfr for this functionality

HTH
ciao

Stefano

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: howto install windows printer drivers on SME?
« Reply #12 on: June 27, 2008, 07:41:03 PM »
NFR created as requested: http://bugs.contribs.org/show_bug.cgi?id=4431
Follow discuss on bugzilla.

Thanks

Jáder

...