Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What post-install steps do you find yourself taking every time you install a new Linux server or VM ? I'm interested in things that could apply regardless of what use the server is to be put to, especially those that can save time down the line, and ways to automate each step.

Here is my set of initial tasks; note that I nearly always use Fedora.

  1. Enable network startup at boot time
  2. Add myself to the sudoers file
  3. Add my SSH keypair to ~/.ssh/authorized_keys to avoid having to log in with a password
  4. Add the new server to ~/.ssh/config on my client machine(s) so I can log in with "ssh newserver"
  5. Check out my customized .bashrc and .bash_profile from source control
  6. If on the internal network, set selinux enforcing to permissive
  7. If on the external network, install / configure blockhosts to stop the script kiddies
  8. Install / configure NRPE daemon for Nagios monitoring
  9. Install / configure NX server for remote GUI access
share|improve this question

2 Answers 2

up vote 9 down vote accepted

The way we do this is to use a kickstart/preseed file to install & configure Puppet on our servers during the OS install. Then as long as you've preconfigured your Puppet manifest to do all your initial tasks, it'll happen automatically.

share|improve this answer
    
Thanks - time to take a look at Puppet ! –  gareth_bowles Dec 16 '09 at 18:25
    
Yep, puppet is the thing. –  Aaron Brown Dec 16 '09 at 19:42

I've got about 5,000 lines worth of Puppet manifest that do what I need. A bit much to be listing in a ServerFault answer.

share|improve this answer
    
bit image the upvotes you will get! –  user2659 Dec 16 '09 at 21:03
    
/me glances at his rep... no, I don't think I'll bother this time. –  womble Dec 17 '09 at 1:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.