Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: ksc133 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
-
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
-
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
-
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
-
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
-
thanks a lot it works
-
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:
-
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";
}
-
thanks Roger that :-D
-
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
-
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
-
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
-
NFR created as requested: http://bugs.contribs.org/show_bug.cgi?id=4431
Follow discuss on bugzilla.
Thanks
Jáder