http:///https:///api.php?action=feedcontributions&user=Bapabooiee&feedformat=atomSambaWiki - User contributions [en]2024-03-29T05:33:09ZUser contributionsMediaWiki 1.39.5https://wiki.samba.org/index.php?title=Setting_up_Samba_as_a_Print_Server&diff=5551Setting up Samba as a Print Server2010-09-20T11:17:34Z<p>Bapabooiee: Couple typo fixes</p>
<hr />
<div>==Using printers connected to the Samba server==<br />
In most of the cases you want to use printers which are directly connected to the samba server. A printer can be connected via various hardware devices (i.e. parallel port, usb, scsi and so forth). But thats not all, you have to take care about the fact that two users can request a print job at the same time. To serve this, you need a software which controls the printer. <br />
===CUPS===<br />
CUPS is currently the most widely used spool system in Unix environments. Samba has built in support and defaults to CUPS if the develepment package (aka header files and libraries) could be found at compile time. The home of CUPS is [[http://www.cups.org]]. Basically all sorts of files can be printed with CUPS, but using a Postscript printer driver will give you the most benefit and the client can control the settings for the printers. A multi-purpose printer driver for Windows can be found at the Adobe site, see [[http://www.adobe.com/products/printerdrivers/main.html]]. The very big advantage of using Postscript as the printing language is that it doesn't matter whether your job has to be printed on a cheap inkjet or a big laser.<br />
<br />
===LPD===<br />
This is the first widely used printing system. It is very simple and doesnt use Postscript. But it is binary clean, so you can print to it directly via client side installed printer drivers. <br />
==Providing Printer Drivers to Windows clients with the [print$] share==<br />
===Uploading a printer driver===<br />
===Directory structure in drivers directory===<br />
The normal directory structure for your printer drivers looks like<br />
<pre>drwxr-xr-x 2 root root 96 Feb 24 20:02 COLOR<br />
drwxr-xr-x 2 root root 48 Feb 24 20:02 IA64<br />
drwxr-xr-x 2 root root 48 Feb 24 20:02 W32ALPHA<br />
drwxr-xr-x 2 root root 48 Feb 24 20:02 W32MIPS<br />
drwxr-xr-x 2 root root 48 Feb 24 20:02 W32PPC<br />
drwxr-xr-x 3 root root 72 Feb 24 20:02 W32X86<br />
drwxr-xr-x 2 root root 48 Feb 24 20:02 WIN40<br />
drwxr-xr-x 2 root root 48 Feb 24 20:02 x64<br />
</pre><br />
You have to create it yourself. Here is a command line which does it. You only have to change the value of BASEDIR:<br />
<pre>BASEDIR=/var/lib/samba/drivers;<br />
for X in COLOR IA64 W32ALPHA W32MIPS W32PPC W32X86 WIN40 x64; do <br />
mkdir -p $BASEDIR/$X;<br />
done</pre><br />
<br />
==how to configure printer admin==<br />
<br />
since samba 3.0.20 the parameter is depricated and in the actuall version it isn't working anymore.<br />
<br />
so what is the commandline to get a printer admin?<br />
<br />
do the following command and the user or group will be printer admin:<br />
<br />
net rpc rights grant "<domain|hostname\<user|group>" SePrintOperatorPrivilege -U <hostname>/root<br />
<br />
example:<br />
net rpc rights grant "cake\support" SePrintOperatorPrivilege -U cake/root<br />
<br />
this mean the user support on machine is printeradmin by the user root on the hostname "cake"<br />
<br />
==Special settings on printer and faxes==<br />
===Enabling new papersizes===<br />
Only standardsizes of formulars are known. You have to add the neccessary sizes by hand.<br />
<br />
# connect to the server \\<SambaServer>> <br />
# printer -> Server Propertes -> Forms<br />
# Create new form<br />
::[[Image:SambaFormA0.png]]<br />
:: A0 With 84,10 cm Height 118,90 cm<br />
::[[Image:SambaFormA1.png]]<br />
:: A1 With 59,40 cm cm Height 84,10 cm<br />
# After this steps the large papersizes a shown in the different dialogs <br />
<br />
The Size of the formulars depends on the ppds<br />
<br />
==Using printers connected to another Samba or Windows server==<br />
===Using a printer connected to another Samba server===<br />
It is most likely that the other server is running CUPS to. So you only have to forward the print jobs to the other CUPS service. This is a simple to do in CUPS.<br />
<br />
===Using a printer connected to a Windows server===<br />
You also can use CUPS for it. CUPS has the special backend smb://<server>/<printer>. This in turn calls the smbspool program which is part of the samba suite. So if you set up a printer connected to a Windows server, you set up a normal printer with a special PrinterURI.<br />
<br />
Note: the full form of that URI is: smb://[''<username>''[:''<password>'']@][''domain''/]''<server>''/''<printer>''<br />
<br />
----<br />
--[[User:Rcsu|rcsu]] 15:34, 15 April 2006 (CDT)<br />
[[Category:Category Configuration]]</div>Bapabooiee