Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## High Level Requirements List for Compmem Lab Deb Install
- ### Switch to 'testing' branch, if not already there
- sources=/etc/apt/sources.list
- echo 'deb http://ftp.us.debian.org/debian testing main' >> $sources
- echo 'deb-src http://security.debian.org/debian testing main' >> $sources
- echo 'deb http://security.debian.org/debian-security testing/updates main' >> $sources
- echo 'deb-src http://security.debian.org/debian-security testing/updates main' >> $sources
- ### add necessary ppas, like non-free
- #### contrib non-free
- echo $'\n#contrib non-free' >> $sources
- echo 'deb http://deb.debian.org/debian testing main contrib non-free' >> $sources
- echo 'deb-src http://deb.debian.org/debian testing main contrib non-free' >> $sources
- echo 'deb http://deb.debian.org/debian testing-updates main contrib non-free' >> $sources
- echo 'deb-src http://deb.debian.org/debian testing-updates main contrib non-free' >> $sources
- echo 'deb http://security.debian.org/ testing/updates main contrib non-free' >> $sources
- echo 'deb-src http://security.debian.org/ testing/updates main contrib non-free' >> $sources
- #### nvidia drivers
- echo $'\n#nvidia drivers' >> $sources
- echo 'deb http://httpredir.debian.org/debian/ testing main contrib non-free' >> $sources
- #### sublime text ppa
- echo $'\n#sublime text editor' >> $sources
- add-apt-repository ppa:webupd8team/sublime-text-3
- ### update and upgrade
- apt-get update -y
- apt-get upgrade -y
- #### install headers for nvidia drivers
- apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver
- ### install packages through apt
- apt-get install -y --install-suggests \
- ssh \
- education-laptop# \
- #kde-plasma-desktop \
- #texlive-full
- ### install regular packages --install-suggests
- apt-get install -y --install-suggests \
- gcc \
- g++ \
- sudo \
- vim \
- #texlive-math-extra \
- #texlive-science \
- texstudio \
- chromium \
- vlc \
- wine \
- inkscape \
- filezilla \
- pandoc \
- pandoc-citeproc \
- pandoc-data \
- pandoc-pandocfilters \
- sublime-text-installer \
- git \
- zotero-standalone \
- emacs \
- gparted \
- qemu-kvm \
- r-base \
- r-base-dev
- #### CUDA
- wget -O ./packages/cuda.deb \
- https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
- dpkg -i ./packages/cuda.deb
- wget -O ./packages/cuda_patch.deb \
- https://developer.nvidia.com/compute/cuda/8.0/Prod2/patches/2/cuda-repo-ubuntu1604-8-0-local-cublas-performance-update_8.0.61-1_amd64-deb
- dpkg -i ./packages/cuda_patch.deb
- #### CUDNN
- wget -O ./packages/cudnn.tgz \
- https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v5.1/prod_20161129/8.0/cudnn-8.0-linux-x64-v5.1-tgz
- tar xvzf ./packages/cudnn.tgz
- cd ./packages
- cp -P cuda/include/cudnn.h /usr/local/cuda/include
- cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64
- chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
- apt-get install -y --install-suggests nvidia-cuda-toolkit
- cd ..
- #### docker
- wget -O ./packages/docker.sh https://get.docker.com
- bash ./packages/docker.sh
- #### atom
- wget -O ./packages/atom.deb https://atom.io/download/deb
- dpkg -i ./packages/atom.deb
- #### visual studio code
- wget -O ./packages/vscode.deb https://go.microsoft.com/fwlink/?LinkID=760868
- dpkg -i ./packages/vscode.deb
- #### conda
- wget -O ./packages/conda.sh https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
- bash ./packages/conda.sh -b -p $HOME/anaconda
- #### fix dependencies
- apt-get install -f
- ### configure packages
- conda update conda
- #### pip install:
- pip install tensorflow-gpu
- pip install tensorflow
- pip install keras
- pip install kivy
- pip install numba
- pip install pandoc-fignos
- pip install pandoc-eqnos
- pip install pandoc-tablenos
- pip install jupyter_contrib_nbextensions
- #### create virtualenv for python 2:
- conda create -n python2 python=2.7 anaconda
- #### optional "--tyler" parameter for themes
- if [[ $1 == "--tyler" ]]; then
- ### jupyter dark theme
- mkdir ~/.jupyter/custom
- wget -O ~/.jupyter/custom/custom.css https://raw.githubusercontent.com/powerpak/jupyter-dark-theme/master/custom.css
- ### install themes
- #### install kvantum graphic backend
- apt-get install -y --install-recommends \
- libx11-dev \
- libxext-dev \
- qtbase5-dev \
- libqt5svg5-dev \
- libqt5x11extras5-dev \
- qttools5-dev-tools
- #### install papirus theme
- sudo add-apt-repository ppa:papirus/papirus
- sudo apt-get update
- sudo apt-get install -y --install-recommends arc-kde
- #### install papirus icon theme
- sudo apt-get install -y --install-recommends papirus-icon-theme
- fi
- echo $'********Make sure to add your name to the sudoers file*********\n askubuntu.com/questions/884494/is-not-in-the-sudoers-file-this-incident-will-be-reported'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement