Skip to content

Instantly share code, notes, and snippets.

@bragaru-i
Last active January 10, 2021 20:08
Show Gist options
  • Save bragaru-i/e705f7a1587eecc9c46c1c6d4b82cb4f to your computer and use it in GitHub Desktop.
Save bragaru-i/e705f7a1587eecc9c46c1c6d4b82cb4f to your computer and use it in GitHub Desktop.
Install Ubuntu 20.04 and software for a MERN stack dev
  • Ubuntu installation for a webdev

  1. Download *iso from official server

  2. Do a bootable USB (on windows with Rufus, Ubuntu - Startup Disk Creator https://ubuntu.com/tutorials/create-a-usb-stick-on-ubuntu#1-overview)

Create 3 partition of ext4 file journal system (logical) / - root swap /home

  1. Update software center and install Dolphin

  2. Install CURL && GiT

sudo apt-get install git
  1. Install OZH ( first zsh)

sudo apt install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  • Powerlevel10k theme for ZSH
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
  • After installation rerrun and configure it ($ zsh)
  1. Install node:

Node.js v15.x:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs

or look here: https://linuxize.com/post/how-to-install-node-js-on-ubuntu-18.04/

  1. Install VSCode:

a) SNAP store: sudo snap install --classic code

or code-insiders

b) from official site download and install *deb file

sudo apt install ./<file>.deb
# If you're on an older Linux distribution, you will need to run this instead:
# sudo dpkg -i <file>.deb
# sudo apt-get install -f # Install dependencies
  • Add extensions to VSCODE:
  • Bracked Pair Colorized, Docker, Eslint, Prettier, LiveServer, Markdown All in One, Visual Studio IntelliCode, ES& React/Redux ..snippets, Auto Rename Tag, One Monokai Theme
  1. Install docker:

  • Uninstall old versions:

sudo apt-get remove docker docker-engine docker.io containerd runc
  • Install using the repository

  1. Set up repository
sudo apt-get update

sudo apt-get install \
  apt-transport-https \
  ca-certificates \
  curl \
  gnupg-agent \
  software-properties-common
  1. Add Docker’s official GPG key
 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.

sudo apt-key fingerprint 0EBFCD88


pub   rsa4096 2017-02-22 [SCEA]
   9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid           [ unknown] Docker Release (CE deb) <[email protected]>
sub   rsa4096 2017-02-22 [S]
  1. Use the following command to set up the stable repository.
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
  • Install Docker Engine

 sudo apt-get update
 sudo apt-get install docker-ce docker-ce-cli containerd.io

Verify:

sudo docker run hello-world
  • Manage Docker as a non-root user

    1. Create the docker group.
    sudo groupadd docker
    
    1. Add your user to the docker group.
     sudo usermod -aG docker $USER
    

    On Linux, you can also run the following command to activate the changes to groups:

    newgrp docker 
    
    1. Verify that you can run docker commands without sudo.
    docker run hello-world
    
  1. Install docker-compose

  • Download the Latest Docker Version
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  • Change File Permission
sudo chmod +x /usr/local/bin/docker-compose
  • Check Docker Compose Version
docker–compose –version
  • output must be:

    docker-compose version 1.26.2, build eefe0d31
    
    

Install python2 (node-sass)

sudo apt install python2-minimal
  1. Install Oracle VM Virtual Box:
  2. Add windows 10 to virtual box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment