Ubuntu 16.04 LTS Setup


These are quick steps to setup Ubuntu 16.04. It is more of a reference to me. This post has started on 2014-05-02 for Ubuntu 14.04.

User

Create user and assign root privilege:

# adduser demo
# usermod -aG sudo demo

Force change password for a user

# sudo chage -d0 <user-name>

Run a command without sudo

demo ALL=(ALL:ALL) NOPASSWD: command_path

SSH key

Mac

Mac@Local$ brew install ssh-copy-id
Mac@Local$ ssh-copy-id demo@SERVER_IP_ADDRESS

Manual

Mac@Local$ cat .ssh/id_rsa.pub # copy the result
$ mkdir ~/.ssh
$ chmod 700 ~/.ssh
$ vi ~/.ssh/authorized_keys # paste it here
$ chmod 600 ~/.ssh/authorized_keys

Enable bash completion

sudo apt-get install bash-completion

complete-alias

Change Default Editor

sudo update-alternatives --config editor

Aptitude

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install aptitude

Timezone

$ sudo dpkg-reconfigure tzdata

NTP synchronization

$ sudo apt-get update
$ sudo apt-get install ntp

Network

Opening ports

List services that are listening to ports on each interface

sudo netstat -plunt

ZFS

ZFS has been added since Ubuntu 16.04.

These are good references:

References:

comments powered by Disqus