Installation Ubuntu

Version 15 by Stephane Carrez

User creation

useradd -m username
usermod --groups admin username
usermod --groups admin,libvirt username
usermod -s /bin/bash username

LVM setup

If /home is mounted on a device that we want to use for LVM.

cd /home && tar cf /tmp/bkp.tar.gz .
umount /home
cd /home && tar xf /tmp/bkp.tar.gz
jed /etc/fstab && remove /home mount
reboot

Setup:

sudo pvcreate /dev/md126
sudo vgcreate vg01 /dev/md126
sudo lvcreate -L 100G -Z n -n home vg01
sudo mkfs -t ext4 /dev/vg01/home
jed /etc/fstab
mount -a
cd /home && tar xf /tmp/bkp.tar.gz

Ubuntu post Installation

sudo apt-get install jed postfix openvpn apache2 postfix dovecot-core dovecot-pop3d
sudo apt-get install qemu-kvm virt-manager qemu virt-viewer
sudo apt-get install docker.io
sudo apt-get install mariadb-server postgresql sqlite
sudo apt-get install smartmontools lm-sensors daemon xauth
sudo apt-get install rspamd
sudo apt-get install imagemagick
sudo apt-get install bacula-fd
sudo apt-get install libmariadb3
sudo apt-get install net-tools

Remove Ubuntu Cloud-init

sudo apt purge cloud-init -y
sudo apt purge cloud-initramfs-copymods cloud-initramfs-dyn-netconf -y

Remove Ubuntu snap

sudo apt autoremove --purge snapd

Restore verbose boot mode

Edit /etc/default/grub and change GRUB_CMDLINE_LINUX_DEFAULT to remove the quiet splash:

GRUB_CMDLINE_LINUX_DEFAULT=""

Then, run the sudo update-grub command.

Uacme installation

  cd src
  git clone https://github.com/ndilieto/uacme
  cd uacme
  sudo apt-get install pkg-config
  sudo apt-get install libcurl4-openssl-dev
  sudo apt-get install libgnutls28-dev
  sudo apt-get install libssl-dev
  ./configure --with-openssl --disable-docs
  make
  sudo make install

Installation for Ada development

sudo apt-get install gnat gprbuild make gcc git autoconf jed emacs

AWA Build Installation

sudo apt-get install libsqlite3-dev sqlite3 mariadb-server mariadb-client curl autoconf unzip
sudo apt-get install libssl-dev libcurl4-openssl-dev

Debian Package Creation setup

sudo apt-get install debhelper reprepro dh-ada-library

JSduck Installation

Javascript Documentation support: https://github.com/senchalabs/jsduck

sudo gem install jsduck

Pulse Audio echo canceller