Post instalacion Ubuntu Server

Crear usuario

adduser snicoper
passwd snicoper

sudo adduser snicoper sudo

hostname

hostnamectl --static set-hostname fqdn.host.name

Timezone

timedatectl set-timezone Europe/Madrid

Cambiar Keyboard Layout (keymap)

locale-gen es_ES.UTF-8

localectl list-locales | grep es

Para cambiar a es

localectl set-keymap es_ES.utf8

Instalar Vim.

sudo apt -y install vim

Cambiar editor.

sudo update-alternatives --config editor

Recordar ultima posición.

vim /etc/vim/vimrc

# Descomentar lineas, 29, 30 y 31
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif

Habilitar ufw (firewall)

sudo ufw allow 22
sudo ufw enable

Actualizar

Cambiar a servers Francia.

sudo vim /etc/apt/sources.list

Actualizar

sudo apt update && sudo apt dist-upgrade

Paquetes básicos

sudo apt install -y \
    build-essential \
    git \
    curl \
    wget \
    ssh \
    htop \
    nmap \
    tree