Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
sudo add-apt-repository -y ppa:apt-fast/stable
sudo add-apt-repository -y ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get -y install apt-fast
# prompts
sudo apt-fast -y upgrade
sudo apt-fast install -y python3-pip ubuntu-drivers-common libvorbis-dev libflac-dev libsndfile-dev cmake build-essential libgflags-dev libgoogle-glog-dev libgtest-dev google-mock zlib1g-dev libeigen3-dev libboost-all-dev libasound2-dev libogg-dev libtool libfftw3-dev libbz2-dev liblzma-dev libgoogle-glog0v5 gcc-6 gfortran-6 g++-6 doxygen graphviz libsox-fmt-all parallel exuberant-ctags vim-nox python-powerline python3-pip ack lsyncd
sudo apt-fast install -y tigervnc-standalone-server firefox mesa-common-dev
cat << 'EOF' >> ~/.ssh/config
Host *
ServerAliveInterval 60
StrictHostKeyChecking no
User git
Port 22
TCPKeepAlive yes
IdentitiesOnly yes
chmod 600 ~/.ssh/config
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> ~/.bashrc
source ~/.bashrc
echo ".cfg" >> .gitignore
git clone --bare .cfg/
config checkout
config config --local status.showUntrackedFiles no
git clone ~/.vim/bundle/Vundle.vim
pip3 install powerline-status
ubuntu-drivers devices
sudo apt-fast install -y nvidia-driver-430
sudo modprobe nvidia
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 40 --slave /usr/bin/g++ g++ /usr/bin/g++-6 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-7 --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-7
mkdir download
cd download/
bash Anaconda3-*.sh -b
conda init
source ~/.bashrc
cd download
chmod u+x cuda_1*_linux*
#./cuda_1*_linux* --extract=`pwd`
#sudo ./NVIDIA-*.run -q
sudo ./cuda_* --silent --toolkit --driver
echo /usr/local/cuda/lib64 | sudo tee -a /etc/
sudo ldconfig
echo 'export PATH=/usr/local/cuda/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
cd ~/download
tar xf cudnn-10*.tgz
sudo cp cuda/include/cudnn.h /usr/local/cuda/include
sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
sudo ldconfig
mkdir git
cd ~/git
git clone &
git clone &
git clone &
git clone
sudo snap install hub --classic
cat << 'EOF' >> ~/.bashrc
alias git=hub
alias gpr='git pull-request -m "$(git log -1 --pretty=%B)"'
clonefork() {
hub clone "$1"
cd "${1##*/}"
hub fork
source ~/.bashrc
conda install -c pytorch -c fastai fastai pytorch
# This section is just if you want to run fastai & fastprogress from master
cd ~/git
conda uninstall -y fastai fastprogress
cd fastai
pip install -e .
cd ../fastprogress
pip install -e .
jupyter notebook --generate-config
cat << 'EOF' >> ~/.jupyter/
c.NotebookApp.open_browser = False
#c.NotebookApp.token = ''
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextension enable collapsible_headings/main
mkdir ~/.jupyter/custom
echo '.container { width: 99% !important; }' > ~/.jupyter/custom/custom.css
# swift stuff below
cd ~/download/
sudo apt-fast -y install git cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config libblocksruntime-dev libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync
tar xf swift-tensorflow-DEVELOPMENT-cuda10.0-cudnn7-ubuntu18.04.tar.gz
mkdir swift
cd swift
mv ~/download/usr ./
echo 'export PATH=~/swift/usr/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
cd ~/git
git clone
cd swift-jupyter
python --sys-prefix --swift-python-use-conda --use-conda-shared-libs --swift-toolchain ~/swift
cd ~/git/course-v3
jupyter notebook

This comment has been minimized.

Copy link

johndpope commented Jul 12, 2019

fyi - You can use miniconda (~ 40mb) instead of anaconda (600mb) to manage conda environments

line 47 - wget

Should consider using zsh / oh-my-osh to keep on top of environments (as well as git branches)
Screen Shot 2019-07-13 at 6 04 17 am

lastly line 73 mkdir git - this is a terrible name / should be reserved - consider using mkdir gitWorkspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.