-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I like to move a Samba Printserver to a different machine. I would like to copy the printerdriver from the old to the new machine and not reinstall all drivers/printers again. When I only copy the files from /var/lib/samba/drivers to the new machine, there are no drivers listed on the new machine. How do I get the drivers listed on the new machine? Thanks Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) iEYEARECAAYFAlRPuRcACgkQ2JOGcNAHDTZiKACgyMDZpgDXGykCAQGKTkOCHWso qvYAn2n5Uy7XDwUmIgCY8v7kTE3Tm8YM =xkIE -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Stefan Am 28.10.2014 um 16:41 schrieb Stefan Kania:> I like to move a Samba Printserver to a different machine. I would > like to copy the printerdriver from the old to the new machine and > not reinstall all drivers/printers again. When I only copy the > files from /var/lib/samba/drivers to the new machine, there are no > drivers listed on the new machine. How do I get the drivers listed > on the new machine?First, of course, you have to configure Samba on the new host as a Print Server (see Wiki for documentation). Then move the content of the [print$] share - it contains the driver for Point'n'Print. And then you need the 'registry.tdb'. It contains the registry values of the preconfigured drivers. If you don't have any other stuff in there (e. g. registry-based share configuration, etc.), you can copy this file. If you have other configs in the Samba registry, then you can try to export/import it via RegEdit from a Windows PC (never tried. But maybe it works). Regards, Marc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUT8wCAAoJEFNERvHO3m51FXkIAK6sXEFedAwnDgxKogkKTtle 98bHiL/1TA6r4xls0NJdE5EZcDYIokvMSvJGZ3s5NRSUquG2TPZxAJHjcwT/IbIV GyKIhh3BOca0zn3I4ryRZuhwGVynYZ0KUhrl4HP6s2U5Jp3hlasomeEyGcLVROR+ 9ywL1tFpTGeMqt+8dXqQz6V3D50SP1vSvO8aPHVRkedvu0O8CRoL+XamrFJBI5zo 87WfHhpbf6TbQvxXnaL/VwUU+qTnYo3pyBLe+l7w0vFyhEUOS87mJeVo6QMcdiRf Kj3oZs4oImho3uf0oktZs9idEkdE6E1Bao6kr3//55gqR1/PxQmhlqlqqKlDai4=yfNC -----END PGP SIGNATURE-----
Hi Stefan, On Tue, 28 Oct 2014 16:41:11 +0100, Stefan Kania wrote:> I like to move a Samba Printserver to a different machine. I would > like to copy the printerdriver from the old to the new machine and not > reinstall all drivers/printers again. When I only copy the files from > /var/lib/samba/drivers to the new machine, there are no drivers listed > on the new machine. How do I get the drivers listed on the new machine?Drivers are also tracked in the printer database. If you're using a recent version of Samba (>= 3.6), then the printer database is registry.tdb. If you have the same printer share names, then you could try moving the database to your new server. Otherwise, I'd suggest adding them again. This can be done via Windows or with Samba's rpcclient binary (see the adddriver command). Cheers, David