Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.71 KB | None | 0 0
  1. ## High Level Requirements List for Compmem Lab Deb Install
  2.  
  3. ### Switch to 'testing' branch, if not already there
  4.  
  5. sources=/etc/apt/sources.list
  6. echo 'deb http://ftp.us.debian.org/debian testing main' >> $sources
  7. echo 'deb-src http://security.debian.org/debian testing main' >> $sources
  8. echo 'deb http://security.debian.org/debian-security testing/updates main' >> $sources
  9. echo 'deb-src http://security.debian.org/debian-security testing/updates main' >> $sources
  10.  
  11. ### add necessary ppas, like non-free
  12.  
  13. #### contrib non-free
  14. echo $'\n#contrib non-free' >> $sources
  15. echo 'deb http://deb.debian.org/debian testing main contrib non-free' >> $sources
  16. echo 'deb-src http://deb.debian.org/debian testing main contrib non-free' >> $sources
  17. echo 'deb http://deb.debian.org/debian testing-updates main contrib non-free' >> $sources
  18. echo 'deb-src http://deb.debian.org/debian testing-updates main contrib non-free' >> $sources
  19. echo 'deb http://security.debian.org/ testing/updates main contrib non-free' >> $sources
  20. echo 'deb-src http://security.debian.org/ testing/updates main contrib non-free' >> $sources
  21.  
  22. #### nvidia drivers
  23. echo $'\n#nvidia drivers' >> $sources
  24. echo 'deb http://httpredir.debian.org/debian/ testing main contrib non-free' >> $sources
  25.  
  26. #### sublime text ppa
  27. echo $'\n#sublime text editor' >> $sources
  28. add-apt-repository ppa:webupd8team/sublime-text-3
  29.  
  30. ### update and upgrade
  31. apt-get update -y
  32. apt-get upgrade -y
  33.  
  34. #### install headers for nvidia drivers
  35. apt install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//') nvidia-driver
  36.  
  37.  
  38. ### install packages through apt
  39. apt-get install -y --install-suggests \
  40. ssh \
  41. education-laptop# \
  42. #kde-plasma-desktop \
  43. #texlive-full
  44.  
  45. ### install regular packages --install-suggests
  46. apt-get install -y --install-suggests \
  47. gcc \
  48. g++ \
  49. sudo \
  50. vim \
  51. #texlive-math-extra \
  52. #texlive-science \
  53. texstudio \
  54. chromium \
  55. vlc \
  56. wine \
  57. inkscape \
  58. filezilla \
  59. pandoc \
  60. pandoc-citeproc \
  61. pandoc-data \
  62. pandoc-pandocfilters \
  63. sublime-text-installer \
  64. git \
  65. zotero-standalone \
  66. emacs \
  67. gparted \
  68. qemu-kvm \
  69. r-base \
  70. r-base-dev
  71.  
  72. #### CUDA
  73. wget -O ./packages/cuda.deb \
  74. https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
  75. dpkg -i ./packages/cuda.deb
  76. wget -O ./packages/cuda_patch.deb \
  77. 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
  78. dpkg -i ./packages/cuda_patch.deb
  79.  
  80. #### CUDNN
  81. wget -O ./packages/cudnn.tgz \
  82. https://developer.nvidia.com/compute/machine-learning/cudnn/secure/v5.1/prod_20161129/8.0/cudnn-8.0-linux-x64-v5.1-tgz
  83. tar xvzf ./packages/cudnn.tgz
  84. cd ./packages
  85. cp -P cuda/include/cudnn.h /usr/local/cuda/include
  86. cp -P cuda/lib64/libcudnn* /usr/local/cuda/lib64
  87. chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
  88. apt-get install -y --install-suggests nvidia-cuda-toolkit
  89. cd ..
  90.  
  91. #### docker
  92. wget -O ./packages/docker.sh https://get.docker.com
  93. bash ./packages/docker.sh
  94.  
  95. #### atom
  96. wget -O ./packages/atom.deb https://atom.io/download/deb
  97. dpkg -i ./packages/atom.deb
  98.  
  99. #### visual studio code
  100. wget -O ./packages/vscode.deb https://go.microsoft.com/fwlink/?LinkID=760868
  101. dpkg -i ./packages/vscode.deb
  102.  
  103. #### conda
  104. wget -O ./packages/conda.sh https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
  105. bash ./packages/conda.sh -b -p $HOME/anaconda
  106.  
  107. #### fix dependencies
  108. apt-get install -f
  109.  
  110.  
  111. ### configure packages
  112.  
  113. conda update conda
  114.  
  115. #### pip install:
  116. pip install tensorflow-gpu
  117. pip install tensorflow
  118. pip install keras
  119. pip install kivy
  120. pip install numba
  121. pip install pandoc-fignos
  122. pip install pandoc-eqnos
  123. pip install pandoc-tablenos
  124. pip install jupyter_contrib_nbextensions
  125.  
  126. #### create virtualenv for python 2:
  127. conda create -n python2 python=2.7 anaconda
  128.  
  129. #### optional "--tyler" parameter for themes
  130. if [[ $1 == "--tyler" ]]; then
  131.  
  132.     ### jupyter dark theme
  133.     mkdir ~/.jupyter/custom
  134.     wget -O ~/.jupyter/custom/custom.css https://raw.githubusercontent.com/powerpak/jupyter-dark-theme/master/custom.css
  135.  
  136.     ### install themes
  137.  
  138.     #### install kvantum graphic backend
  139.     apt-get install -y --install-recommends \
  140.     libx11-dev \
  141.     libxext-dev \
  142.     qtbase5-dev \
  143.     libqt5svg5-dev \
  144.     libqt5x11extras5-dev \
  145.     qttools5-dev-tools
  146.  
  147.        
  148.  
  149.     #### install papirus theme
  150.     sudo add-apt-repository ppa:papirus/papirus
  151.     sudo apt-get update
  152.     sudo apt-get install -y --install-recommends arc-kde
  153.     #### install papirus icon theme
  154.     sudo apt-get install -y --install-recommends papirus-icon-theme
  155.  
  156. fi
  157.  
  158. 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