Sysadmin/Add virtual machine: Difference between revisions
No edit summary |
|||
| Line 14: | Line 14: | ||
# change machine fqdn | # change machine fqdn | ||
sed -i -e s/template-jaunty/FOOBAR/ /etc/hostname /etc/postfix/main.cf | |||
# activate new IP and hostname | # activate new IP and hostname | ||
| Line 27: | Line 26: | ||
ssh-keygen -q -N '' -f /etc/ssh/ssh_host_rsa_key -t rsa | ssh-keygen -q -N '' -f /etc/ssh/ssh_host_rsa_key -t rsa | ||
ssh-keygen -q -N '' -f /etc/ssh/ssh_host_dsa_key -t dsa | ssh-keygen -q -N '' -f /etc/ssh/ssh_host_dsa_key -t dsa | ||
ssh-keygen -q -N '' | ssh-keygen -q -N '' -f /root/.ssh/id_rsa -t rsa | ||
# setup backups (remember to install root's key on backup host) | # setup backups (remember to install root's key on backup host) | ||