Skip to content

Instantly share code, notes, and snippets.

@jgwill
Last active November 22, 2020 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgwill/979fc1e9823a29202334d3239f1a58ad to your computer and use it in GitHub Desktop.
Save jgwill/979fc1e9823a29202334d3239f1a58ad to your computer and use it in GitHub Desktop.
Linux platform build by steps (Matching Docker images)
#!/bin/env bash
pip3 install IPython
pip3 install matplotlib
#!/bin/env bash
#https://github.com/GuillaumeAI/sci-dev/blob/main/Dockerfile
#docker pull jgwill/sci-dev
conda config --set auto_activate_base false
conda install pytorch torchvision cpuonly -c pytorch
################ scikit-image ######################
conda install -y scikit-image
##################### INSTALLING US Prereq ##############################
sudo apt-get install -y build-essential cmake libgtk2.0-dev pkg-config
sudo apt-get install -y python3-numpy python3-dev
# New approach from : https://linuxize.com/post/how-to-install-opencv-on-ubuntu-20-04/
sudo apt-get install -y libopencv-dev python3-opencv
conda update -y anaconda-navigator
conda update -y navigator-updater
# Now following https://stackoverflow.com/questions/19876079/cannot-find-module-cv2-when-using-opencv
sudo pip3 install opencv-python
#!/bin/env bash
#https://github.com/jgwill/ubunpy/blob/main/Dockerfile
#docker pull jgwill/ubunpy
# Anacronda prereq
sudo apt-get install -y libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
curl -O https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh
bash Anaconda3-2020.07-Linux-x86_64.sh -b
rm Anaconda3-2020.07-Linux-x86_64.sh
# Set path to conda
export HOMEDIR=/home/jgi
cp $HOMEDIR/.bashrc $HOMEDIR/.bashrc.backup
echo 'export PATH=$PATH:$HOMEDIR/anaconda3/bin' >> $HOMEDIR/.bashrc
#ENV PATH /home/ubuntu/anaconda3/bin:$PATH
# Updating Anaconda packages
conda update -y conda
conda config --set auto_activate_base false
#!/bin/env bash
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y python3 && sudo ln -sf /usr/bin/python3 /usr/bin/python
sudo apt install python3-venv python3-pip
sudo apt-get install -y curl
sudo apt-get install -y emacs
# Adding wget and bzip2
sudo apt-get install -y wget bzip2
sudo apt-get -y install vim
sudo apt-get install -y git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment