---
# System prepended metadata

title: ESTIAM - Linux - 101

---

# ESTIAM - Linux - 101

- virtualbox 

    - [download ubuntu mini server](http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso)
    - create VM with 2 hard drives
    - boot vm
    - command line install
    - use entire disk
    - hostname : ub-min-srv-001
    - user-account : root
    - user-password : ******
    - partition : use entire disk

- setup ubuntu minimal server

    - default partitioning
      - /boot 
        - grub
      - swap 
      - / *system folder*
      - /home 

    - add 2nd disk for /home
        - edit fstab

    - reboot

    - package manager
      - apt 
        - update 
        - upgrade 
        - manage sources # optionnel

        - install 
          - ssh connexion
            - generate keys
            - add keys
            - add group
            - add user

          - samba
            - share public folder

          - minimum docker requirements
            - docker
            - docker-compose
            - enable service

    - create user
    - reboot

    - create boot script

    - connect through ssh to user 

    - networking interfaces

    - ufw


- basic 101 tasks
  - connect through ssh
  - create backup partition
  - fstab mount backup partition
  - 
  - monitor htop
  - system log
  - password root lost
    - edit grub init=/bin/bash
    - passwd unique use
  - rescue mode
  - resize partition
  - rsync
  - dd clone part to img
  - restore img
  - zsh 
    - alias 
    - function
      - create documentation of setup from system information
  - cron
  - boot scripts
  - systemd service manager
  - grub
    - update mkconfig
  - partitioning
    - lvm 
    - luks
    - ext4