/ #virtualbox #vm 

Xenial Headless

Initial xenial headless setup inside virtualbox.

# global
# preferences -> network -> host only : vboxnet0
# VM -> network -> adapter 2 -> host only : vboxnet0

$ ifconfig -a
# enp0s8

$ sudo nano /etc/network/interfaces

# auto enp0s8
# iface enp0s8 inet static
# address 192.168.56.70
# netmask 255.255.255.0
# network 192.168.56.0
# broadcast 192.168.56.255

$ sudo ifup -a
$ hostname -I

$ ssh tel@192.168.56.70

$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.ori
$ sudo sed -i 's/http:\/\/us.archive.ubuntu.com\/ubuntu\//http:\/\/kambing.ui.ac.id\/ubuntu\//' /etc/apt/sources.list

$ sudo apt update && sudo apt upgrade