Nethence NEWDOC OLDDOC Lab Webmail Your IP BBDock  

Setting up Ubuntu Server


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
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

Install a few more packages,

apt -y update
apt -y full-upgrade
apt -y autoremove
apt -y install \
    curl \
    dos2unix \
    ksh \
    lftp \
    lynx \
    mc \
    screen \
apt -y install \
    xfsprogs \

Tweak your environment

Setup GNU/Screen

Eventually install Docker

Eventually run a reverse-proxy Apache on Ubuntu instead of Centos,

apt install apache2 openssl libapache2-mod-gnutls