MikeL's FreeBSD new machine HowTo

30-Mar-2014

This is a list of tasks I went through to move my entire world from an old FreeBSD-7 machine to a much newer machine running a new install of FreeBSD release-10.


Merge old stuff by hand. Start an xterm on each machine side-by-side on your screen and transfer trivial changes by hand. For large changed files, on the old machine copy the file to "file.hostname", ftp over the .hostname file to the new machine, then use 'diff -cw'.

Personal home directory: .cshrc
.emacs
bin/
other?

Same as above for /root user directory. Watch out for suidperl scripts and or setuid file permissions.

directories from your user and root accounts where you have made custom scripts, etc.

Merge special case accounts e.g:
/etc/passwd
/etc/group.

Bring over or install any special libraries:
/usr/local/lib/perl5/site_perl
(PHP?)
cpan install HTTP::Date

cpan install Google::Voice

Merge crontab files for each account.

Set up backup script and it's config, don't forget to add to crontab.
mdkir /backup chmod 770 /backup

sendmail:
On old machine, copy aliases to aliases.oldmachinename
Bring over old machine's .mc file, this should already be named oldmachinename.mc
Bring over all extra files, I needed:
access
aliases.oldmachinename
aliases.customer
aliases.mailman
aliases.mikel
local-host-names
trusted-users
virtusertable
mv oldmachinename.mc newmachine.mc
diff -cw freebsd.mc newmachine.mc, merge any changes.
make newmachine.cf
diff -cw newmachine.cf sendmail.cf, check for anything unexpected.
diff -cw aliases.oldmachinename alias, merge any changes.
make
Edit /etc/rc.conf and add:
sendmail_enable="YES"
/etc/rc.d/sendmail status
/etc/rc.d/sendmail restart
more /var/log/maillog, look for and fix any problems.


Copyright © 1995-2017 Mike Lempriere