Ubuntu Server

HOWTO Root User - Enable
Linux Terminal:-$ sudo su sudo passwd root

You will prompted to enter and confirm the password for 'root'. After which you will be able to log in the root user and have full privileges without having to type 'sudo' at the beginning of each line.

HOWTO IP Address - Setting Static
Linux Terminal:~$ nano /etc/network/interfaces

Edit the file to read (this example uses 192.168.0.100 for the system and Google's DNS servers):

auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 8.8.8.8 8.8.4.4
 * 1) The loopback network interface
 * 1) The primary network interface

Save and close the file, then restart the network:

Linux Terminal:~$ /etc/init.d/networking restart

Edit the 'hosts' file:

Linux Terminal:~$ nano /etc/hosts

Edit the file to read (server2 used for this example):

127.0.0.1      localhost.localdomain   localhost 192.168.0.100  server2.example.com     server2 ::1    ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
 * 1) The following lines are desirable for IPv6 capable hosts

Then run:

Linux Terminal:~$ echo server1.example.com > /etc/hostname /etc/init.d/hostname restart

Check the configuration:

Linux Terminal:~$ hostname hostname -f

Both of the above commands should return:

server2.example.com

HOWTO Startup Services - List
initctl list |sort service --status-all ll /etc/rc*

HOWTO Control-Alt-Delete - Change The Behaviour
Edit the /etc/init/control-alt-delete.conf file. The line beginning "exec" is what upstart will run when this key combination is pressed.

To not do anything when Control-Alt-Delete is pressed, you can simply delete this file.

Note that this only affects the behaviour of Control-Alt-Delete when at a text console. In a desktop environment, this key combination is handled by the desktop itself and must be reconfigured there.

HOWTO getty Terminals - Reduce The Number Of
In /etc/init there is a file named ttyN.conf for each getty that will be started, where N is numbered 1 to 6. Remove any that you do not want.

This will not take immediate effect, however you can run "stop ttyN" to stop one that is running.

If your system has Upstart 0.6.7 or later, (first included in Ubuntu 11.04). you will be able to disable the automatic start of these without removing them by running

echo manual >> /etc/init/ttyN.conf

https://help.ubuntu.com/community/UpstartHowto

HOWTO Disable whoopsie
Whoopsie is Ubuntu's Error Reporting daemon, to disable it:

Linux Terminal:~$ nano /etc/default/whoopsie

Change the report_crashes parameter from:

report_crashes=true

to:

report_crashes=false

Save and close the file, then test the change:

Linux Terminal:~$ sudo service whoopsie stop update-rc.d -f whoopsie remove

HOWTO Disable console-kit-daemon
http://askubuntu.com/questions/237005/how-to-disable-console-kit-daemon-in-xubuntu-12-10

HOWTO Enable CPU Stepping
sudo -i apt-get install cpufrequtils update-rc.d cpufrequtils defaults cpufreq-info grep 'MHz' /proc/cpuinfo

HOWTO Enable Temperature Sensor Monitoring
sudo -i apt-get install lm-sensors sensors-detect service kmod start update-rc.d kmod defaults sensors coretemp-isa-0000 Adapter: ISA adapter Core 0:      +41.0°C  (high = +80.0°C, crit = +100.0°C) Core 1:      +41.0°C  (high = +80.0°C, crit = +100.0°C) smsc47b397-isa-0480 Adapter: ISA adapter fan1:       1037 RPM fan2:          0 RPM fan3:          0 RPM fan4:       1017 RPM temp1:       +50.0°C temp2:       +37.0°C temp3:       +21.0°C temp4:      -128.0°C

Suggested Swap File Sizes

 * 1) Systems with 4GB of ram or less require a minimum of 2GB of swap space
 * 2) Systems with 4GB to 16GB of ram require a minimum of 4GB of swap space
 * 3) Systems with 16GB to 64GB of ram require a minimum of 8GB of swap space
 * 4) Systems with 64GB to 256GB of ram require a minimum of 16GB of swap space

See here.