Skip to content

Instantly share code, notes, and snippets.

@ezy
Forked from paneru-rajan/installation.md
Created April 19, 2020 20:52
Show Gist options
  • Save ezy/c7f3911d0f6a65bbda5c9df568ebfd46 to your computer and use it in GitHub Desktop.
Save ezy/c7f3911d0f6a65bbda5c9df568ebfd46 to your computer and use it in GitHub Desktop.
[Installing different packges in Ubuntu 18.04] Everything I Installed in Ubuntu 18.04 #ubuntu18.04 #ubuntu #installation #docker-compose #nodejs #npm #docker #elastic-search

List of Different application installation method

  1. Docker Link

    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
    sudo groupadd docker
    sudo usermod -aG docker $USER
    

    Always examine scripts downloaded from the internet before running them locally.

    Removing of sudo privilege will work after reboot!

  2. Docker-Compose

    Pip seems way more easier wich get's latest release as well

    sudo pip install docker-compose
    docker-compose --version
    

    or

    Use the latest Compose release number in the download command. Github

    sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    docker-compose --version
    
  3. Docker-Machine

    Change to latest release Link

    base=https://github.com/docker/machine/releases/download/v0.15.0 &&
    curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine &&
    sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
    
    docker-machine --version 
    
  4. Optionally, install command completion for the bash and zsh shell. Link

    For oh-my-zsh you can add in plugins! File: ~/.zshrc

    plugins=(
      git,
      docker,
      docker-compose,
      docker-machine,
      django
    )    
    
  5. Java

    sudo apt install default-jdk -y
    
  6. Elastic Search

    docker pull docker.elastic.co/elasticsearch/elasticsearch:6.2.4
    docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.2.4
    
    
  7. NodeJs

    curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
    sudo apt-get install -y nodejs
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment