Phase 1: Ubuntu server installation
Ubuntu 18 server is not supported !
1. Get Ubuntu 16.04.6 LTS ISO:
http://tw.archive.ubuntu.com/ubuntu-cd/16.04/ubuntu-16.04.6-server-amd64.iso
2. Create bootable installation media from iso, CD or USB, boot server from it.
3. Ubuntu installation steps:
> Option: Install Ubuntu Server
> Language: English
> Location: United States
> Configure keyboard: No
> Configure keyboard: English (US)
> Keyboard layout: English (US)
> if your server is connected to LAN with DHCP, the all will continues automatically, if not please setup IP/mask/GW and DNS IPs manually
> hostname: eve-ng
> Domain name (if you don't have, make it example.com)
> fullname of user: user (example, this will be used first time login in to Ubuntu)
> username of your account: user
> password: enter password, confirm enter password again
> use weak password: YES
> Encrypt your home directory: NO
> Configure Clock: YES, if your DNS IP is set right or server got it from your DHCP, time zone will sets automatically
> Partition disks: use entire disk and setup LVM
> Partition disks: Choose your main HDD were ubuntu will be installed. Usually it will be single HDD, if your raid is set right.
> Write changes to disk and create LVM: YES
> Amount of volume: leave all offered size
> Force UEFI Installation: YES
> Write changes to disk: YES
> http proxy: NO, if you have such, please configure it for internet reachability
> Configuring task: NO
> Software selection: IMPORTANT: select Open SSH server (mark with spacebar)
> Install GRUB boot loader: YES
> remove from your server Ubuntu install media and reboot server
Phase 2: EVE network and settings before installation
Once the installation of Ubuntu server is done, follow the steps below in order to setup network interfaces.
2.1. Login with your user as root:
sudo su
2.2. Change root password:
This password change option is only for how to purposes, of course you can choose your own root password, but don't forget it!
sudo passwd root
root@eve-ng:~# sudo passwd root
Enter new UNIX password: eve
Retype new UNIX password: eve
passwd: password updated successfully
2.3. For convenience to use EVE, install NANO editor application. The new Ubuntu distro already has installed NANO application.
apt-get install nano
2.4. If you didn’t setup hostname during Ubuntu installation, change it and hostname file to look as bellow, for save settings do (ctrl+o, "Enter" for save and ctrl+x for quit):
nano /etc/hostname
eve-ng
2.5. Change hosts file to look as bellow, for save settings do (ctrl+o, "Enter" for save and ctrl+x for quit):
nano /etc/hosts
127.0.0.1 localhost
127.0.1.1 eve-ng.example.com eve-ng
2.6. Allow access to use root user ssh, edit line below:
nano /etc/ssh/sshd_config
PermitRootLogin prohibit-password
to
PermitRootLogin yes
2.7. Save settings (ctrl+o, "Enter" for save and ctrl+x for quit) and do restart ssh server:
sudo service ssh restart
2.8. Open NEW SSH session and login as root:
2.9. VERY IMPORTANT!!! You need to edit the file below to reflect your desired settings. This example shows the settings for DHCP but you can also configure static IP settings (follow the Linux Ubuntu HowTo for this).
!!! Warning !!! after GRUB update interface names will be changed to ethX and original interface name after reboot will not work !!!!! YOU MUST EDIT first interface name below !!!
Change your original interface name to eth0. Corrected output below.
nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
2.10. Save settings (ctrl+o, "Enter" for save and ctrl+x for quit) :
2.11. Copy/Paste bellow one by one into your terminal:
1: sed -i -e 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 noquiet"/' /etc/default/grub
2: update-grub
2.12. Reboot EVE
reboot
Phase 3: EVE installation (Two Options EVE Community or EVE Professional)
EVE installation (Two options), If you plan to install EVE Community free version follow section 3.1. For EVE Professional continue to section 3.2.
3.1. EVE Community free version
3.1.1. EVE Community installation
wget -O - http://www.eve-ng.net/repo/install-eve.sh | bash -i
3.1.2. Reboot EVE:
reboot
3.1.3. EVE Community management IP setup
http://www.eve-ng.net/index.php/documentation/howto-s/65-howto-configure-eve-during-first-boot
and continue to Section 4
3.2. EVE Professional version
3.2.1. EVE Professional installation
wget -O - http://www.eve-ng.net/repo/install-eve-pro.sh | bash -i
reboot
3.2.3. EVE Professional management IP setup
http://www.eve-ng.net/index.php/documentation/howto-s/65-howto-configure-eve-during-first-boot
3.2.4. EVE Professional Dockers installation. NOTE: It will take some time to install and download all docker stations into your EVE Professional. Be patience.
WARNING! DO NOT Install docker support on EVE Community version! It is for EVE Professional only.
apt update
apt install eve-ng-dockers
reboot
If for some reason dockers install command wont download packages from official Ubuntu repo, you can use
apt install eve-ng-dockers-alt
When dockers are properly installed, your EVE CLI output must show:
If you still see some docker line with <none> please use reinstall dockers command
apt install --reinstall eve-ng-dockers
or
apt install --reinstall eve-ng-dockers-alt
4. Update and upgrade your EVE to the latest version:
apt-get update
apt-get upgrade