Sunday, August 30, 2009

Cloud server Plesk Ubuntu 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


chmod +x file
sudo ./file

follow instructions

make sure that postfix is installed as the MTA

sudo apt-get install postgrey
netstat -lpn | grep 60000
joe /etc/postfix/ (add check_policy_service inet:,) before reject_unauth_destination
/etc/init.d/postfix restart
tail -f /var/log/

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

** spamassassin
sudo apt-get install spamassassin spamc

** install backports
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -t hardy-backports spamassassin

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

** alter crontab
sudo crontab -e
17 3 * * 3 apt-get update; apt-get upgrade -sy
17 4 * * 5 /usr/local/bin/mysqltuner

other helpful software
sudo apt-get install ifstat rcconf

ssh-keygen -rsa
ssh-copy-id -i......

No comments: