Operating System - Linux
1819814 Members
2752 Online
109607 Solutions
New Discussion юеВ

Copying Linux Configurations - Suggestions

 
SOLVED
Go to solution
Jeff Ohlhausen
Frequent Advisor

Copying Linux Configurations - Suggestions

Hi all,
Here's my situation. I have two linux boxes in a cluster. I would like to keep them as similar as possible in terms of printer configurations and users. Is there an easy and safe way to copy printer configurations and user setups and passwords from one linux system to another?

Here is my configuration:
SuSE Linux 8.1

Regards,
Jeff
Do or do not - there is no try.
8 REPLIES 8
Rick Garland
Honored Contributor
Solution

Re: Copying Linux Configurations - Suggestions

For printers, copy the /etc/printcap file from systemA to systemB

For users, you will want to copy the /etc/passwd, /etc/shadow, /etc/group, and the home dirs.
Ivan Ferreira
Honored Contributor

Re: Copying Linux Configurations - Suggestions

To maintain the user accounts, use a directory server, like LDAP, NIS+ or NIS.

Configure one as mater and the other as replica/slave.

For printers, depends if you are using LPRng or CUPS. You need to copy the configuration files, /etc/printcap, /etc/cups and the spool directories for the printers.

Use rsync to copy the configuration files.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jeff Ohlhausen
Frequent Advisor

Re: Copying Linux Configurations - Suggestions

Hi,
I am using cups. Do I need to copy the whole /etc/cups?

Jeff
Do or do not - there is no try.
Ivan Ferreira
Honored Contributor

Re: Copying Linux Configurations - Suggestions

For simplicity, I will say YES.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jeff Ohlhausen
Frequent Advisor

Re: Copying Linux Configurations - Suggestions

Hi,
It seems to work from the lp perspective. However, when I go to:
yast2 -> printers
Then when I look at the configuration I see many printers iwth the status:
Name Type Ready
correct_name -not yast2- unknown

Any thoughts?
Jeff
Do or do not - there is no try.
Steven E. Protter
Exalted Contributor

Re: Copying Linux Configurations - Suggestions

I vote for LDAP authentication after normalizing the configuration files above.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunvijai_4
Honored Contributor

Re: Copying Linux Configurations - Suggestions

Hi,

It's better to keep all user authentication using LDAP or NIS.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
dirk dierickx
Honored Contributor

Re: Copying Linux Configurations - Suggestions

you can use several things to keep systems in sync. above mentioned several things for user management and printers.
but for configurations you can use things like cfengine or more simple when executing commands, use ssh remotely and execute them on the 2 host simultaniously.