LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-05-2012, 08:11 PM   #1
enine
Member
 
Registered: Nov 2003
Distribution: Slackware 14.1
Posts: 800
Blog Entries: 3

Rep: Reputation: 90
Replace one Slackware "server" with another


I keep a couple old laptops around the house, gives me a spare should we ever have a failure, loaner, etc. I use one Dell latitude for my home file/print server. Have another that is similar but a little faster so I wiped it and installed Slackware 14. My thought was to copy config files over then swap the IP and name between the two and reboot so the new system replaces the old.
What all do I need to copy over. I have Samba shares so the /etc files for that. Can I just copy over /etc/passwd to get all my user accounts? All the home folders and shared folders are on external drives so I just mount those under /home and /shares so I should be able to just plug those into the new and mount as before.
Anything else I missed?
 
Old 10-06-2012, 08:08 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,075

Rep: Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777
I kind of do a similar thing to what you're doing -- I mount /home, /usr/local, /spares, /opt, /var/lib/mysql, /var/lib/psql and /var/lib/virtual on all my machines. Before installing, I copy /etc to /spares then do a clean install (formatting the root partition but not the others during setup). That way, I don't lose the content of any of those mounted partitions.

After it's up and running, I selectively copy configuration files from /spares/etc along with /spares/etc/passwd, /spares/etc/group and, important!, /spares/etc/shadow to the new /etc. Other things are in /spares/etc/profile.d and /spares/etc/fonts (all my add-on fonts are in /usr/local/share/fonts and the local.conf files is in /etc/fonts). Then there's always httpd.conf, my.cnf to deal with but with everything in /spares/etc it's not too much trouble.

The only sorta trick part is the system name and address (I use fixed IP on all machines); during the installation, I set the machine name, address, gateway and all that to what I want it to be. Now my "main" machine is always named fubar and it's address is always 192.168.1.10 and the other machines are snafu and pita (and a couple of others) and their addresses are 192.1681.20 and 192.168.1.30 and so on. Retiring the old fubar to snafu when I buy a new box means doing a similar install on the old machine giving it a new name and address (I do keep all machines at Slackware stable, so they all get updated). Not real tricky but it can leave a gap for, oh, an hour maybe.

I can't comment about samba, don't use it, but I can't imagine that it would be much different from the above; get your existing set up copied somewhere then carefully bring the configuration files over.

So anyway, it's not difficult but just be sure you've got all your configuration stuff copied off somewhere easy to get at, eh?

Hope this helps some.

Last edited by tronayne; 10-06-2012 at 08:12 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to replace "ö" to "p" in shell scripting with "sed" meninmech Programming 5 06-22-2012 02:58 PM
[SOLVED] Replace a string @CURRANGE("***","***") to @CURRANGE("xxx","xxx") in a file mavadikarmayur Linux - Newbie 3 03-26-2012 08:32 AM
Shouldn't "Slackware64" Become just "Slackware" and 32-bit Become "Slackware32"? foodown Slackware 6 06-23-2009 01:24 PM
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 09:00 AM


All times are GMT -5. The time now is 07:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration