Karl E. Jorgensen wrote: > In general, if you're changing host name, *ALL* references to the old > name should be tweaked. > > I would recommend: > > # sed --in-place=.bak -e 's/localhost-01/yournewname/g' $(grep -lr > localhost-01 /etc)
Good intention but that will corrupt many binary files. Beware! Here are some interesting binary ones that I would not edit in place from my system. /etc/.etckeeper /etc/.git/index /etc/aliases.db /etc/emacs23/site-start.d/00debian-vars.elc /etc/htdig/english.0 /etc/lvm/archive/t4_00000-1479803495.vg /etc/lvm/archive/v1_00024-177866804.vg /etc/lvm/backup/t4 /etc/lvm/backup/v1 /etc/postfix/sasl_passwd.db /etc/ssl/certs/java/cacerts Every system would be different depending upon what is installed. Plus the english.0 just happens to hit upon the word since my system name is a word in the word list. So it is an example of a file that should not be changed. But hopefully won't hit on localhost-01 either. Bob
signature.asc
Description: Digital signature