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.
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:
pingmon
. Find it in mikel source dir,
follow INSTALL.txt
instructions.drvwymon
system, you'll want to go into
the firewall, advanced, and allow ICMP echo return. You can then
include this system in pingmon list for testing.File and Printer Sharing (Echo Request - ICMPv4-In)
/usr/local/lib/perl5/site_perl/VN*
into place.VNNums.install
to set
up DB. Go to any webpage that uses VNNums or try running the test
script vintners.net/html/cgi-bin/nums.pl
and if
necessary, edit the code and comment in the DB dump at the end.cpan install HTTP::Date
(needed by my backup script)cpan install Net::FTP::Throttle
(needed by my backup script)cpan install MP3::Info
(needed by kenwiley script)cpan install Config::Simple
(needed by backup script)cpan install DBD::mysql
(needed by PV sched script)pkg install streamripper
(needed by kenwiley script)/usr/bin
. I'm fixing this by just
hacking a symbolic link pointing the new Perl location
of /usr/local/bin
.
Merge crontab
files for each account.
mikelemp
- kenwileymikel
- PMI, misc remindersroot
- log scriptsmdkir /backup
chmod 770 /backup
Bring over /boot/loader.conf
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"
Then do: [20200319] (old news - skip this)
/etc/rc.d/sendmail status
/etc/rc.d/sendmail restart
Then do: [20200319] new news - now use 'service'
service sendmail status
service sendmail start
Then:
more /var/log/maillog
, look for and fix any problems.
Note that the previous two commands can be covered by the 'sendmail-restart' script.