New Linux Server Program Installation

Okay, I know this contains nothing new for many of you but I need it from time to time and I am always searching for this. It is simply a list of tools I need after a new Linux server installation (used with Ubuntu server) as well as some further hints for the installation process. So, after the initial installation the following steps can be done:

Updates & Tools

Update the repository packages and do an upgrade of all default installed packages as well as the kernel:

Install a few commonly used tools for network troubleshooting and other stuff:

Configure the NTP servers inside the ntp.conf file: sudo nano /etc/ntp.conf. Just add a few NTP servers, e.g., from the NTP Pool Project. This would look like:

 

IP Addresses

Configure the correct IP addresses (v4 and v6) for the server in the file: sudo nano /etc/network/interfaces and add/adjust the following lines (the Google public DNS servers are used below):

 

Shell Coloring

Make the shell prompt colored (I like that) by uncommenting the following line in the .bashrc file: nano ~/.bashrc

 

No Hibernation

I sometimes use old notebooks for my servers. They are fast enough, quite, and require not that much power. One task to not forget is to disable the hibernation when closing the cover/lid. That is, the lid switch must be disabled such as shown here:

 

Auto Updates

For *some* servers I am using auto updates for security patches and even auto reboot. Figure out what the best solution for your server is. More information shown here. I am using for example the following settings:

Now in this file uncomment and adjust the settings you want, e.g.:

Good luck. 😉 As always it is a trade-off between security (install them fast) and availability (maybe something could break).

2 thoughts on “New Linux Server Program Installation

  1. Hello I have a new Linux server from GoDaddy and the sudo commands did not work for me in this article

    1. Yes, ok, I should have mentioned that all my “sudo” commands are for Debian Linux distributions (and therefore also for Ubuntu), but NOT for other Linux. And GoDaddy uses CentOS which is not Debian based.
      –> You must run many of these commands with the superuser account. However, the “apt-get” commands wont work for you either, since CentOS uses YUM instead of APT. I am sorry…

Leave a Reply

Your email address will not be published. Required fields are marked *