Nethence NEWDOC OLDDOC Lab Webmail Your IP BBDock  

Setting up Ubuntu Server

Post-installation

Note. OVH vps specific,

    userdel -r ubuntu

Finish network config,

vi /etc/hostname (short name is fine unless you're running an smtp server on the host itself
hostname HOSTNAME
vi /etc/hosts (long name + short name)
cp /etc/network/interfaces /etc/network/interfaces.dist
vi /etc/network/interfaces
    #cd /etc/network/interfaces.d/
    #cp 50-cloud-init.cfg 50-cloud-init.cfg.dist
    #vi 50-cloud-init.cfg
    dns-search EXAMPLE.local EXAMPLE2.local
    service networking restart
    #service resolvconf restart
cat /etc/resolv.conf

(optional) Check that the locale is UTF-8,

echo $LANG
#locale-gen
dpkg-reconfigure locales

Tweak the SSH daemon,

groupadd -g 11 wheel
usermod -a -G wheel root
cd /etc/ssh/
cp sshd_config sshd_config.dist

vi sshd_config
allowgroups wheel

service ssh restart

Update/upgrade the system,

apt update
apt install apt-utils
apt full-upgrade
apt autoremove
dpkg -l | grep ^rc | awk '{print $2}' | xargs dpkg --purge
do-release-upgrade
apt full-upgrade

Install a few more packages,

#only on Docker host
apt install \
    screen \
            xfsprogs \
            xfsdump

#shared with Dockerfile for containers
apt install \
    apt-transport-https \
    lsb-release \
    nmap \
    unzip \
    curl \
    dnsutils \
    dos2unix \
    iputils-ping \
    ksh \
    less \
    lftp \
    lynx \
    man-db \
    mc \
    mlocate \
    net-tools \
    netcat \
    pwgen \
    telnet \
    software-properties-common \
    vim-nox \
    wget
    #inetutils-ping
apt install \
        postfix bsd-mailx rsyslog

Tweak your environment

Setup GNU/Screen

Eventually install Docker

Eventually run an Apache reverse-proxy Apache on Ubuntu instead of Centos.