Saturday, December 26, 2009 server install

Notes from a recent installation of Ubuntu server on a UK2 cloud server.

login as root@

sudo apt-get install joe
joe /etc/apt/sources.list
apt-get update
apt-get upgrade
adduser username
usermod -G admin username

joe /etc/ssh/sshd_config (permitrootlogin no)
/etc/init.d/ssh restart


ssh-copy-id -i .ssh/ username@host.domain.tld

ssh username@host


mv parallels_installer.... /tmp/
chmod +x file
sudo ./file

follow the instructions

log into the Plesk frontend

setup master user details

-> updates
- -> prefs -> Check for updates upon administrator's login to control panel [Y]

-> Settings
- -> Spam Filter Settings -> Switch on server-wide greylisting spam protection [Y]

-> Control Panel Interface
- -> Interface Management

apt-get install munin-node
joe /etc/munin/munin-node.conf

# Example config-file for munin-node

log_level 4
log_file /var/log/munin/munin-node.log
port 4949
pid_file /var/run/munin/
background 1
setseid 1

# Which port to bind to;
host *
user root
group root
setsid yes

# Regexps for files to ignore

ignore_file ~$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$

# Set this if the client doesn't report the correct hostname when
# telnetting to localhost, port 4949
#host_name localhost.localdomain
host_name []

# A list of addresses that are allowed to connect. This must be a
# regular expression, due to brain damage in Net::Server, which
# doesn't understand CIDR-style network notation. You may repeat
# the allow line as many times as you'd like

allow ^127\.0\.0\.1$
allow ^80\.2\.73\.137$

[monitoring server]
joe /etc/munin/munin.conf

use_node_name yes


** install mysqltuner
chmod +x
sudo mv /usr/local/bin/mysqltuner

** alter crontab
** allows a weekly email to test for upgrade and mysql tuning options
sudo crontab -e
17 3 * * 3 apt-get update; apt-get upgrade -sy
17 4 * * 5 /usr/local/bin/mysqltuner