├── Ubuntu2004 ├── OpenCV-3.4.zip ├── pippackage.list ├── nvidiadriver.sh ├── gendep.sh ├── variety.sh ├── cudnnforcuda11.sh ├── TF.sh ├── pinta.sh ├── slack.sh ├── darkmode.sh ├── emacs.sh ├── microsoftteams.sh ├── chrome.sh ├── sublime.sh ├── teamviewer.sh ├── unitydarktheme.sh ├── aptpackage.list ├── cudnn.sh ├── cudnnforcuda11.sh~ ├── cuda11.sh ├── opencv.sh └── cuda.sh ├── nvidiadriver.sh ├── pippackage.list ├── Ubuntu1804 ├── pippackage.list ├── nvidiadriver.sh ├── variety.sh ├── TF.sh ├── pinta.sh ├── slack.sh ├── chrome.sh ├── emacs.sh ├── sublime.sh ├── teamviewer.sh ├── unitydarktheme.sh ├── aptpackage.list ├── cudnn.sh ├── opencv.sh └── cuda.sh ├── Junk ├── TF.md └── OpenCV.md ├── gendep.sh ├── tf.sh ├── chrome.sh ├── variety.sh ├── pinta.sh ├── mathjaxforgit.md ├── emacs.sh ├── cudnn2.md ├── sublime.sh ├── unitydarktheme.sh ├── teamviewer.sh ├── aptpackage.list ├── cudnn1.sh ├── opencv.sh └── README.md /Ubuntu2004/OpenCV-3.4.zip: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nvidiadriver.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Installing NVIDIA 384 Drivers: Tested and stable for Ubuntu 16.04" 4 | sudo apt install nvidia-384-dev nvidia-384 5 | -------------------------------------------------------------------------------- /pippackage.list: -------------------------------------------------------------------------------- 1 | wheel 2 | numpy 3 | scipy 4 | matplotlib 5 | scikit-image 6 | scikit-learn 7 | ipython 8 | dlib 9 | pypng 10 | opencv-contrib-python==3.4.4.19 11 | -------------------------------------------------------------------------------- /Ubuntu1804/pippackage.list: -------------------------------------------------------------------------------- 1 | wheel 2 | numpy 3 | scipy 4 | matplotlib 5 | scikit-image 6 | scikit-learn 7 | ipython 8 | dlib 9 | pypng 10 | opencv-contrib-python==3.4.4.19 11 | -------------------------------------------------------------------------------- /Ubuntu2004/pippackage.list: -------------------------------------------------------------------------------- 1 | wheel 2 | numpy 3 | scipy 4 | matplotlib 5 | scikit-image 6 | scikit-learn 7 | ipython 8 | dlib 9 | pypng 10 | opencv-contrib-python==3.4.4.19 11 | -------------------------------------------------------------------------------- /Junk/TF.md: -------------------------------------------------------------------------------- 1 | sess = tf.Session(config=tf.ConfigProto(log_device_placement=True)) 2 | 3 | https://stackoverflow.com/questions/38009682/how-to-tell-if-tensorflow-is-using-gpu-acceleration-from-inside-python-shell 4 | -------------------------------------------------------------------------------- /Ubuntu1804/nvidiadriver.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Installing NVIDIA 390 Drivers: Tested and stable for Ubuntu 18.04" 4 | sudo add-apt-repository ppa:graphics-drivers/ppa 5 | sudo apt update 6 | sudo apt install nvidia-390 7 | -------------------------------------------------------------------------------- /Ubuntu2004/nvidiadriver.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Installing NVIDIA 390 Drivers: Tested and stable for Ubuntu 18.04" 4 | sudo add-apt-repository ppa:graphics-drivers/ppa 5 | sudo apt update 6 | sudo apt install nvidia-390 7 | -------------------------------------------------------------------------------- /gendep.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing NVIDIA 384 Drivers: Tested and stable for Ubuntu 16.04 ${NC}" 11 | sudo apt install nvidia-384-dev nvidia-384 12 | -------------------------------------------------------------------------------- /Ubuntu2004/gendep.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing NVIDIA 384 Drivers: Tested and stable for Ubuntu 16.04 ${NC}" 11 | sudo apt install nvidia-384-dev nvidia-384 12 | -------------------------------------------------------------------------------- /tf.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Tensorflow 1.12 for Python 2.7 and 3 ${NC}" 11 | sudo -H pip install tensorflow-gpu==1.12 12 | sudo -H pip3 install tensorflow-gpu==1.12 13 | 14 | -------------------------------------------------------------------------------- /chrome.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Chrome for Ubuntu 16.04 ${NC}" 11 | wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 12 | sudo dpkg -i google-chrome-stable_current_amd64.deb 13 | -------------------------------------------------------------------------------- /variety.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Variety ${NC}" 11 | sudo apt update 12 | sudo apt -y install variety 13 | 14 | # References: 15 | # https://websiteforstudents.com/installing-teamviewer-on-ubuntu-16-04-17-10-18-04/ 16 | -------------------------------------------------------------------------------- /Ubuntu1804/variety.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Variety ${NC}" 11 | sudo apt update 12 | sudo apt -y install variety 13 | 14 | # References: 15 | # https://websiteforstudents.com/installing-teamviewer-on-ubuntu-16-04-17-10-18-04/ 16 | -------------------------------------------------------------------------------- /Ubuntu2004/variety.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Variety ${NC}" 11 | sudo apt update 12 | sudo apt -y install variety 13 | 14 | # References: 15 | # https://websiteforstudents.com/installing-teamviewer-on-ubuntu-16-04-17-10-18-04/ 16 | -------------------------------------------------------------------------------- /Ubuntu2004/cudnnforcuda11.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | # For Cuda 11.0 use, CudNN 8.0.5 11 | wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/libcudnn8-dev_8.0.5.39-1+cuda11.0_amd64.deb 12 | sudo dpkg -i libcudnn8-dev_8.0.5.39-1+cuda11.0_amd64.deb 13 | -------------------------------------------------------------------------------- /pinta.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Pinta ${NC}" 11 | sudo add-apt-repository ppa:pinta-maintainers/pinta-stable 12 | sudo apt update 13 | sudo apt -y install pinta 14 | 15 | # References: 16 | # https://askubuntu.com/questions/447299/how-do-i-install-pinta 17 | -------------------------------------------------------------------------------- /Ubuntu1804/TF.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | # TensorFlow 1.14rc1 11 | # printf "${YELLOW} Installing TensorFlow 1.14rc1 ${NC}" 12 | # sudo -H pip install tensorflow-gpu==1.14.0rc1 13 | 14 | # TensorFlow 1.13 15 | printf "${YELLOW} Installing TensorFlow 1.13 ${NC}" 16 | sudo -H pip install tensorflow-gpu -------------------------------------------------------------------------------- /Ubuntu1804/pinta.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Pinta ${NC}" 11 | sudo add-apt-repository ppa:pinta-maintainers/pinta-stable 12 | sudo apt update 13 | sudo apt -y install pinta 14 | 15 | # References: 16 | # https://askubuntu.com/questions/447299/how-do-i-install-pinta 17 | -------------------------------------------------------------------------------- /Ubuntu2004/TF.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | # TensorFlow 1.14rc1 11 | # printf "${YELLOW} Installing TensorFlow 1.14rc1 ${NC}" 12 | # sudo -H pip install tensorflow-gpu==1.14.0rc1 13 | 14 | # TensorFlow 1.13 15 | printf "${YELLOW} Installing TensorFlow 1.13 ${NC}" 16 | sudo -H pip install tensorflow-gpu -------------------------------------------------------------------------------- /Ubuntu2004/pinta.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Pinta ${NC}" 11 | sudo add-apt-repository ppa:pinta-maintainers/pinta-stable 12 | sudo apt update 13 | sudo apt -y install pinta 14 | 15 | # References: 16 | # https://askubuntu.com/questions/447299/how-do-i-install-pinta 17 | -------------------------------------------------------------------------------- /Ubuntu1804/slack.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Slack ${NC}" 11 | wget https://downloads.slack-edge.com/linux_releases/slack-desktop-3.3.8-amd64.deb 12 | sudo apt install ./slack-desktop-*.deb 13 | 14 | # References: 15 | # https://linuxize.com/post/how-to-install-slack-on-ubuntu-18-04/ 16 | -------------------------------------------------------------------------------- /Ubuntu2004/slack.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Slack ${NC}" 11 | wget https://downloads.slack-edge.com/linux_releases/slack-desktop-3.3.8-amd64.deb 12 | sudo apt install ./slack-desktop-*.deb 13 | 14 | # References: 15 | # https://linuxize.com/post/how-to-install-slack-on-ubuntu-18-04/ 16 | -------------------------------------------------------------------------------- /mathjaxforgit.md: -------------------------------------------------------------------------------- 1 | # MathJax for Github 2 | 3 | Use this plugin to render latex equations in github markdown on Chrome. 4 | - Git clone the current repository to local path using ``git clone https://github.com/orsharir/github-mathjax.git`` 5 | - Open the chrome/chromium extensions page(chrome://extensions), open development mode, and click 'Load unpacked' button to choose the path which configuration file 'manifest.json' is located(path 'github-mathjax' as usual), and the extension is loaded. 6 | -------------------------------------------------------------------------------- /Ubuntu1804/chrome.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Chrome ${NC}" 11 | wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 12 | sudo dpkg -i google-chrome-stable_current_amd64.deb 13 | 14 | # References: 15 | # https://linuxize.com/post/how-to-install-google-chrome-web-browser-on-ubuntu-18-04/ 16 | -------------------------------------------------------------------------------- /Ubuntu2004/darkmode.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Variety ${NC}" 11 | sudo apt install gnome-shell-extensions 12 | sudo apt install gnome-shell-extension-prefs gnome-tweaks 13 | 14 | # References: 15 | # https://linuxhint.com/enable-dark-mode-ubuntu-20-04/ 16 | # https://www.omgubuntu.co.uk/2020/04/enable-full-dark-mode-in-ubuntu-20-04 17 | 18 | -------------------------------------------------------------------------------- /emacs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Emacs 26 ${NC}" 11 | sudo add-apt-repository ppa:kelleyk/emacs 12 | sudo apt update 13 | sudo apt -y install emacs26 14 | 15 | # To remove emacs: 16 | # sudo apt remove --autoremove emacs26 emacs26-nox 17 | 18 | # References: 19 | # http://ubuntuhandbook.org/index.php/2019/02/install-gnu-emacs-26-1-ubuntu-18-04-16-04-18-10/ 20 | -------------------------------------------------------------------------------- /Ubuntu1804/emacs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Emacs 26 ${NC}" 11 | sudo add-apt-repository ppa:kelleyk/emacs 12 | sudo apt update 13 | sudo apt -y install emacs26 14 | 15 | # To remove emacs: 16 | # sudo apt remove --autoremove emacs26 emacs26-nox 17 | 18 | # References: 19 | # http://ubuntuhandbook.org/index.php/2019/02/install-gnu-emacs-26-1-ubuntu-18-04-16-04-18-10/ 20 | -------------------------------------------------------------------------------- /Ubuntu2004/emacs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Emacs 26 ${NC}" 11 | sudo add-apt-repository ppa:kelleyk/emacs 12 | sudo apt update 13 | sudo apt -y install emacs26 14 | 15 | # To remove emacs: 16 | # sudo apt remove --autoremove emacs26 emacs26-nox 17 | 18 | # References: 19 | # http://ubuntuhandbook.org/index.php/2019/02/install-gnu-emacs-26-1-ubuntu-18-04-16-04-18-10/ 20 | -------------------------------------------------------------------------------- /cudnn2.md: -------------------------------------------------------------------------------- 1 | Now run: 2 | ``` 3 | tar -xzvf ${CUDNN_TAR_FILE} 4 | sudo cp -P cuda/include/cudnn.h /usr/local/cuda-9.0/include 5 | sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-9.0/lib64/ 6 | sudo chmod a+r /usr/local/cuda-9.0/lib64/libcudnn* 7 | ``` 8 | 9 | Then copy paste these into your bashrc file: 10 | ``` 11 | sudo gedit ~/.bashrc 12 | # Cuda Paths 13 | export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}} 14 | export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH 15 | export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH 16 | ``` 17 | -------------------------------------------------------------------------------- /Ubuntu2004/microsoftteams.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Sublime Text ${NC}" 11 | curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - 12 | sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main" > /etc/apt/sources.list.d/teams.list' 13 | sudo apt update 14 | sudo snap install teams 15 | 16 | 17 | # References: 18 | # https://docs.microsoft.com/en-us/microsoftteams/get-clients 19 | -------------------------------------------------------------------------------- /Ubuntu2004/chrome.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Chrome ${NC}" 11 | wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 12 | echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list 13 | sudo apt-get update 14 | sudo apt-get install google-chrome-stable 15 | 16 | # References: 17 | # https://askubuntu.com/questions/510056/how-to-install-google-chrome 18 | -------------------------------------------------------------------------------- /sublime.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Sublime Text ${NC}" 11 | wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - 12 | echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list 13 | sudo apt update 14 | sudo apt install sublime-text 15 | 16 | # Remove Sublime 17 | # sudo apt-get remove sublime-text && sudo apt-get autoremove 18 | 19 | # References: 20 | # http://tipsonubuntu.com/2017/05/30/install-sublime-text-3-ubuntu-16-04-official-way/ 21 | -------------------------------------------------------------------------------- /Ubuntu1804/sublime.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Sublime Text ${NC}" 11 | wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - 12 | echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list 13 | sudo apt update 14 | sudo apt install sublime-text 15 | 16 | # Remove Sublime 17 | # sudo apt-get remove sublime-text && sudo apt-get autoremove 18 | 19 | # References: 20 | # http://tipsonubuntu.com/2017/05/30/install-sublime-text-3-ubuntu-16-04-official-way/ 21 | -------------------------------------------------------------------------------- /Ubuntu2004/sublime.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Sublime Text ${NC}" 11 | wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - 12 | echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list 13 | sudo apt update 14 | sudo apt install sublime-text 15 | 16 | # Remove Sublime 17 | # sudo apt-get remove sublime-text && sudo apt-get autoremove 18 | 19 | # References: 20 | # http://tipsonubuntu.com/2017/05/30/install-sublime-text-3-ubuntu-16-04-official-way/ 21 | -------------------------------------------------------------------------------- /unitydarktheme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Unity Dark Theme ${NC}" 11 | sudo add-apt-repository ppa:noobslab/themes 12 | sudo add-apt-repository ppa:noobslab/icons 13 | sudo apt update 14 | sudo apt install arc-theme 15 | sudo apt install arc-icons 16 | sudo apt install unity-tweak-tool 17 | 18 | printf "${YELLOW} Select ARC Theme and Icons in Unity Tweak tool ${NC}" 19 | 20 | # References: 21 | # https://www.noobslab.com/2017/01/arc-theme-light-dark-versions-and-arc.html 22 | # https://askubuntu.com/questions/800730/dark-gtk-theme-for-ubuntu-16-04-unity 23 | -------------------------------------------------------------------------------- /teamviewer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing TeamViewer ${NC}" 11 | wget https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc 12 | sudo apt-key add TeamViewer2017.asc 13 | sudo sh -c 'echo "deb http://linux.teamviewer.com/deb stable main" >> /etc/apt/sources.list.d/teamviewer.list' 14 | sudo sh -c 'echo "deb http://linux.teamviewer.com/deb preview main" >> /etc/apt/sources.list.d/teamviewer.list' 15 | sudo apt update 16 | sudo apt install teamviewer 17 | 18 | # References: 19 | # https://websiteforstudents.com/installing-teamviewer-on-ubuntu-16-04-17-10-18-04/ 20 | -------------------------------------------------------------------------------- /Junk/OpenCV.md: -------------------------------------------------------------------------------- 1 | sudo apt install -y tesseract-ocr libtesseract-dev libleptonica-dev libeigen3-dev 2 | 3 | cmake -D CMAKE_BUILD_TYPE=RELEASE \ 4 | -D CMAKE_INSTALL_PREFIX=/usr/local \ 5 | -D INSTALL_C_EXAMPLES=ON \ 6 | -D INSTALL_PYTHON_EXAMPLES=ON \ 7 | -D WITH_TBB=ON \ 8 | -D WITH_V4L=ON \ 9 | -D OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.5/site-packages \ 10 | -D WITH_QT=ON \ 11 | -D WITH_OPENGL=ON \ 12 | -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \ 13 | -D BUILD_EXAMPLES=ON .. 14 | 15 | sudo -H pip install opencv-contrib-python==3.4.4.19 16 | 17 | 18 | https://www.learnopencv.com/install-opencv-3-4-4-on-ubuntu-16-04/ 19 | -------------------------------------------------------------------------------- /Ubuntu1804/teamviewer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing TeamViewer ${NC}" 11 | wget https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc 12 | sudo apt-key add TeamViewer2017.asc 13 | sudo sh -c 'echo "deb http://linux.teamviewer.com/deb stable main" >> /etc/apt/sources.list.d/teamviewer.list' 14 | sudo sh -c 'echo "deb http://linux.teamviewer.com/deb preview main" >> /etc/apt/sources.list.d/teamviewer.list' 15 | sudo apt update 16 | sudo apt install teamviewer 17 | 18 | # References: 19 | # https://websiteforstudents.com/installing-teamviewer-on-ubuntu-16-04-17-10-18-04/ 20 | -------------------------------------------------------------------------------- /Ubuntu2004/teamviewer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing TeamViewer ${NC}" 11 | wget https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc 12 | sudo apt-key add TeamViewer2017.asc 13 | sudo sh -c 'echo "deb http://linux.teamviewer.com/deb stable main" >> /etc/apt/sources.list.d/teamviewer.list' 14 | sudo sh -c 'echo "deb http://linux.teamviewer.com/deb preview main" >> /etc/apt/sources.list.d/teamviewer.list' 15 | sudo apt update 16 | sudo apt install teamviewer 17 | 18 | # References: 19 | # https://websiteforstudents.com/installing-teamviewer-on-ubuntu-16-04-17-10-18-04/ 20 | -------------------------------------------------------------------------------- /Ubuntu1804/unitydarktheme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Unity Dark Theme ${NC}" 11 | sudo add-apt-repository ppa:noobslab/themes 12 | sudo add-apt-repository ppa:noobslab/icons 13 | sudo apt update 14 | sudo apt install arc-theme 15 | sudo apt install arc-icons 16 | sudo apt-get install notify-osd 17 | sudo apt-get install overlay-scrollbar 18 | sudo apt install unity-tweak-tool 19 | 20 | printf "${YELLOW} Select ARC Theme and Icons in Unity Tweak tool ${NC}" 21 | 22 | # References: 23 | # https://www.noobslab.com/2017/01/arc-theme-light-dark-versions-and-arc.html 24 | # https://askubuntu.com/questions/800730/dark-gtk-theme-for-ubuntu-16-04-unity 25 | -------------------------------------------------------------------------------- /Ubuntu2004/unitydarktheme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing Unity Dark Theme ${NC}" 11 | sudo add-apt-repository ppa:noobslab/themes 12 | sudo add-apt-repository ppa:noobslab/icons 13 | sudo apt update 14 | sudo apt install arc-theme 15 | sudo apt install arc-icons 16 | sudo apt-get install notify-osd 17 | sudo apt-get install overlay-scrollbar 18 | sudo apt install unity-tweak-tool 19 | 20 | printf "${YELLOW} Select ARC Theme and Icons in Unity Tweak tool ${NC}" 21 | 22 | # References: 23 | # https://www.noobslab.com/2017/01/arc-theme-light-dark-versions-and-arc.html 24 | # https://askubuntu.com/questions/800730/dark-gtk-theme-for-ubuntu-16-04-unity 25 | -------------------------------------------------------------------------------- /aptpackage.list: -------------------------------------------------------------------------------- 1 | build-essential 2 | checkinstall 3 | cmake 4 | pkg-config 5 | yasm 6 | git 7 | gfortran 8 | libjpeg8-dev 9 | libjasper-dev 10 | libpng12-dev 11 | libtiff5-dev 12 | libtiff-dev 13 | libavcodec-dev 14 | libavformat-dev 15 | libswscale-dev 16 | libdc1394-22-dev 17 | libxine2-dev 18 | libv4l-dev 19 | libgstreamer0.10-dev 20 | libgstreamer-plugins-base0.10-dev 21 | libgtk2.0-dev 22 | libtbb-dev 23 | qt5-default 24 | libatlas-base-dev 25 | libfaac-dev 26 | libmp3lame-dev 27 | libtheora-dev 28 | libvorbis-dev 29 | libxvidcore-dev 30 | libopencore-amrnb-dev 31 | libopencore-amrwb-dev 32 | libavresample-dev 33 | x264 34 | v4l-utils 35 | libprotobuf-dev 36 | protobuf-compiler 37 | libgoogle-glog-dev 38 | libgflags-dev 39 | libgphoto2-dev 40 | libeigen3-dev 41 | libhdf5-dev 42 | doxygen 43 | tesseract-ocr 44 | libtesseract-dev 45 | libleptonica-dev 46 | libeigen3-dev 47 | python-pip 48 | python3-pip 49 | python-dev 50 | python3-dev 51 | ffmpeg-devel 52 | openexr-devel 53 | libwebp-devel 54 | gcc 55 | gcc-c++ 56 | openssh-server 57 | -------------------------------------------------------------------------------- /Ubuntu1804/aptpackage.list: -------------------------------------------------------------------------------- 1 | build-essential 2 | checkinstall 3 | cmake 4 | pkg-config 5 | yasm 6 | git 7 | gfortran 8 | libjpeg8-dev 9 | libjasper-dev 10 | libpng12-dev 11 | libtiff5-dev 12 | libtiff-dev 13 | libavcodec-dev 14 | libavformat-dev 15 | libswscale-dev 16 | libdc1394-22-dev 17 | libxine2-dev 18 | libv4l-dev 19 | libgstreamer0.10-dev 20 | libgstreamer-plugins-base0.10-dev 21 | libgtk2.0-dev 22 | libtbb-dev 23 | qt5-default 24 | libatlas-base-dev 25 | libfaac-dev 26 | libmp3lame-dev 27 | libtheora-dev 28 | libvorbis-dev 29 | libxvidcore-dev 30 | libopencore-amrnb-dev 31 | libopencore-amrwb-dev 32 | libavresample-dev 33 | x264 34 | v4l-utils 35 | libprotobuf-dev 36 | protobuf-compiler 37 | libgoogle-glog-dev 38 | libgflags-dev 39 | libgphoto2-dev 40 | libeigen3-dev 41 | libhdf5-dev 42 | doxygen 43 | tesseract-ocr 44 | libtesseract-dev 45 | libleptonica-dev 46 | libeigen3-dev 47 | python-pip 48 | python3-pip 49 | python-dev 50 | python3-dev 51 | ffmpeg-devel 52 | openexr-devel 53 | libwebp-devel 54 | gcc 55 | gcc-c++ 56 | openssh-server 57 | -------------------------------------------------------------------------------- /Ubuntu2004/aptpackage.list: -------------------------------------------------------------------------------- 1 | build-essential 2 | checkinstall 3 | cmake 4 | pkg-config 5 | yasm 6 | git 7 | gfortran 8 | libjpeg8-dev 9 | libjasper-dev 10 | libpng12-dev 11 | libtiff5-dev 12 | libtiff-dev 13 | libavcodec-dev 14 | libavformat-dev 15 | libswscale-dev 16 | libdc1394-22-dev 17 | libxine2-dev 18 | libv4l-dev 19 | libgstreamer0.10-dev 20 | libgstreamer-plugins-base0.10-dev 21 | libgtk2.0-dev 22 | libtbb-dev 23 | qt5-default 24 | libatlas-base-dev 25 | libfaac-dev 26 | libmp3lame-dev 27 | libtheora-dev 28 | libvorbis-dev 29 | libxvidcore-dev 30 | libopencore-amrnb-dev 31 | libopencore-amrwb-dev 32 | libavresample-dev 33 | x264 34 | v4l-utils 35 | libprotobuf-dev 36 | protobuf-compiler 37 | libgoogle-glog-dev 38 | libgflags-dev 39 | libgphoto2-dev 40 | libeigen3-dev 41 | libhdf5-dev 42 | doxygen 43 | tesseract-ocr 44 | libtesseract-dev 45 | libleptonica-dev 46 | libeigen3-dev 47 | python-pip 48 | python3-pip 49 | python-dev 50 | python3-dev 51 | ffmpeg-devel 52 | openexr-devel 53 | libwebp-devel 54 | gcc 55 | gcc-c++ 56 | openssh-server 57 | -------------------------------------------------------------------------------- /cudnn1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Add NVIDIA package repository ${NC}" 11 | sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub 12 | wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.1.85-1_amd64.deb 13 | sudo apt install ./cuda-repo-ubuntu1604_9.1.85-1_amd64.deb 14 | wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.deb 15 | sudo apt install ./nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.deb 16 | sudo apt update 17 | 18 | printf "${YELLOW} Install CUDA and tools ${NC}" 19 | sudo apt install cuda9.0 cuda-cublas-9-0 cuda-cufft-9-0 cuda-curand-9-0 \ 20 | cuda-cusolver-9-0 cuda-cusparse-9-0 libcudnn7=7.2.1.38-1+cuda9.0 \ 21 | libnccl2=2.2.13-1+cuda9.0 cuda-command-line-tools-9-0 22 | 23 | printf "${YELLOW} Go to https://developer.nvidia.com/rdp/form/cudnn-download-survey and download CudNN v7.5 for CUDA 9.0 ${NC}" 24 | 25 | 26 | -------------------------------------------------------------------------------- /opencv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing OpenCV 3.4 ${NC}" 11 | sudo apt -y remove x264 libx264-dev 12 | cwd=$(pwd) 13 | sudo apt -y install $(awk '{print $1'} aptpackage.list) 14 | cd /usr/include/linux 15 | sudo ln -s -f ../libv4l1-videodev.h videodev.h 16 | cd $cwd 17 | mkdir build 18 | cd build 19 | cmake -D CMAKE_BUILD_TYPE=RELEASE \ 20 | -D CMAKE_INSTALL_PREFIX=/usr/local \ 21 | -D INSTALL_C_EXAMPLES=ON \ 22 | -D INSTALL_PYTHON_EXAMPLES=ON \ 23 | -D WITH_TBB=ON \ 24 | -D WITH_V4L=ON \ 25 | -D OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.5/site-packages \ 26 | -D WITH_QT=ON \ 27 | -D WITH_OPENGL=ON \ 28 | -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \ 29 | -D BUILD_EXAMPLES=ON .. 30 | sudo pip -H install $(awk '{print $1'} pippackage.list) 31 | echo Enter the number of CPU threads you want to use. FYI: You have $maxThreads CPU Threads. 32 | read nThreads 33 | sudo make -j$nThreads 34 | sudo make install 35 | 36 | 37 | # References: 38 | # https://www.learnopencv.com/install-opencv-3-4-4-on-ubuntu-16-04/ 39 | # https://docs.opencv.org/3.4/d2/de6/tutorial_py_setup_in_ubuntu.html 40 | -------------------------------------------------------------------------------- /Ubuntu1804/cudnn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | # For Cuda 10.1 11 | # printf "${YELLOW} Go to https://developer.nvidia.com/rdp/form/cudnn-download-survey and download CudNN Developer v7.6 for CUDA 10.1 tar file ${NC} \n " 12 | # read -p "Press to continue" 13 | # tar -zxvf ~/Downloads/cudnn-10.1-linux-x64-v7.6.0.64.tgz 14 | # sudo cp cuda/include/cudnn.h /usr/local/cuda/include 15 | # sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 16 | # sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* 17 | 18 | # For Cuda 10.0 19 | printf "${YELLOW} Go to https://developer.nvidia.com/rdp/form/cudnn-download-survey and download CudNN Developer v7.6 for CUDA 10.0 tar file ${NC} \n " 20 | read -p "Press to continue" 21 | tar -zxvf ~/Downloads/cudnn-10.0-linux-x64-v7.6.0.64.tgz 22 | sudo cp -P cuda/include/cudnn.h /usr/local/cuda-10.0/include/ 23 | sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-10.0/lib64/ 24 | sudo chmod a+r /usr/local/cuda-10.0/lib64/libcudnn* 25 | 26 | export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}} 27 | export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH 28 | export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH 29 | 30 | #sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* 31 | -------------------------------------------------------------------------------- /Ubuntu2004/cudnn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | # For Cuda 10.1 11 | # printf "${YELLOW} Go to https://developer.nvidia.com/rdp/form/cudnn-download-survey and download CudNN Developer v7.6 for CUDA 10.1 tar file ${NC} \n " 12 | # read -p "Press to continue" 13 | # tar -zxvf ~/Downloads/cudnn-10.1-linux-x64-v7.6.0.64.tgz 14 | # sudo cp cuda/include/cudnn.h /usr/local/cuda/include 15 | # sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 16 | # sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* 17 | 18 | # For Cuda 10.0 19 | printf "${YELLOW} Go to https://developer.nvidia.com/rdp/form/cudnn-download-survey and download CudNN Developer v7.6 for CUDA 10.0 tar file ${NC} \n " 20 | read -p "Press to continue" 21 | tar -zxvf ~/Downloads/cudnn-10.0-linux-x64-v7.6.0.64.tgz 22 | sudo cp -P cuda/include/cudnn.h /usr/local/cuda-10.0/include/ 23 | sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-10.0/lib64/ 24 | sudo chmod a+r /usr/local/cuda-10.0/lib64/libcudnn* 25 | 26 | export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}} 27 | export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH 28 | export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH 29 | 30 | #sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* 31 | -------------------------------------------------------------------------------- /Ubuntu2004/cudnnforcuda11.sh~: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | # For Cuda 10.1 11 | # printf "${YELLOW} Go to https://developer.nvidia.com/rdp/form/cudnn-download-survey and download CudNN Developer v7.6 for CUDA 10.1 tar file ${NC} \n " 12 | # read -p "Press to continue" 13 | # tar -zxvf ~/Downloads/cudnn-10.1-linux-x64-v7.6.0.64.tgz 14 | # sudo cp cuda/include/cudnn.h /usr/local/cuda/include 15 | # sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 16 | # sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* 17 | 18 | # For Cuda 10.0 19 | printf "${YELLOW} Go to https://developer.nvidia.com/rdp/form/cudnn-download-survey and download CudNN Developer v8.0.5 for CUDA 11.0 tar file ${NC} \n " 20 | read -p "Press to continue" 21 | tar -zxvf ~/Downloads/cudnn-11.0-linux-ppc64le-v8.0.5.39.tgz 22 | sudo cp -P cuda/include/cudnn.h /usr/local/cuda-11.0/include/ 23 | sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-11.0/lib64/ 24 | sudo chmod a+r /usr/local/cuda-11.0/lib64/libcudnn* 25 | 26 | export PATH=/usr/local/cuda-11.0/bin${PATH:+:${PATH}} 27 | export LD_LIBRARY_PATH=/usr/local/cuda-11.0/lib64:$LD_LIBRARY_PATH 28 | export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH 29 | 30 | #sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* 31 | -------------------------------------------------------------------------------- /Ubuntu2004/cuda11.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | # Cuda 10.1 11 | # sudo apt-get install build-essential dkms freeglut3 freeglut3-dev libxi-dev libxmu-dev 12 | # printf "${YELLOW} Add NVIDIA package repository ${NC}" 13 | # wget https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.168-418.67_1.0-1_amd64.deb 14 | # sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.168-418.67_1.0-1_amd64.deb 15 | # sudo apt-key add /var/cuda-repo-10-1-local-10.1.168-418.67/7fa2af80.pub 16 | # sudo apt-get update 17 | # sudo apt-get install cuda-10-1 18 | # printf "${YELLOW} Paste this in your ~/.bashrc${NC} \n # CUDA Config \n export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.3${PATH:+:${PATH}} \n export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}\n" 19 | # printf "${YELLOW} Reboot your PC and test with nvidia-smi ${NC}" 20 | 21 | # Cuda 11.0 22 | wget http://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda_11.0.2_450.51.05_linux.run 23 | sudo sh cuda_11.0.2_450.51.05_linux.run 24 | printf "${YELLOW} Paste this in your ~/.bashrc${NC} \n # CUDA Config \n export LD_LIBRARY_PATH=/usr/local/cuda-11.0/lib64\ \n ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}\n" 25 | printf "${YELLOW} Reboot your PC and test with nvidia-smi ${NC}" 26 | 27 | 28 | -------------------------------------------------------------------------------- /Ubuntu1804/opencv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing OpenCV 3.4 ${NC}" 11 | sudo apt -y remove x264 libx264-dev 12 | cwd=$(pwd) 13 | sudo apt -y install $(awk '{print $1'} aptpackage.list) 14 | cd /usr/include/linux 15 | sudo ln -s -f ../libv4l1-videodev.h videodev.h 16 | cd $cwd 17 | wget -O OpenCV-3.4.zip https://astuteinternet.dl.sourceforge.net/project/opencvlibrary/opencv-unix/3.4.0/opencv-3.4.0.zip 18 | printf "${YELLOW}Installing OpenCV 3.4 ${NC}" 19 | unzip OpenCV-3.4.zip 20 | sudo apt install python-pip cmake 21 | sudo -H pip install $(awk '{print $1'} pippackage.list) 22 | cd opencv-3.4.0 23 | mkdir build 24 | cd build 25 | cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=OFF -D WITH_OPENGL=ON -DENABLE_PRECOMPILED_HEADERS=OFF -DBUILD_opencv_cudacodec=OFF .. 26 | maxThreads=$(grep -c ^processor /proc/cpuinfo) 27 | echo Enter the number of CPU threads you want to use. FYI: You have $maxThreads CPU Threads. 28 | read nThreads 29 | sudo make -j$nThreads 30 | sudo make install 31 | 32 | 33 | # References: 34 | # https://www.learnopencv.com/install-opencv-3-4-4-on-ubuntu-16-04/ 35 | # https://docs.opencv.org/3.4/d2/de6/tutorial_py_setup_in_ubuntu.html 36 | # https://github.com/opencv/opencv_contrib/issues/1786 37 | -------------------------------------------------------------------------------- /Ubuntu2004/opencv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | printf "${YELLOW} Installing OpenCV 3.4 ${NC}" 11 | sudo apt -y remove x264 libx264-dev 12 | cwd=$(pwd) 13 | sudo apt -y install $(awk '{print $1'} aptpackage.list) 14 | cd /usr/include/linux 15 | sudo ln -s -f ../libv4l1-videodev.h videodev.h 16 | cd $cwd 17 | wget -O OpenCV-3.4.zip https://astuteinternet.dl.sourceforge.net/project/opencvlibrary/opencv-unix/3.4.0/opencv-3.4.0.zip 18 | printf "${YELLOW}Installing OpenCV 3.4 ${NC}" 19 | unzip OpenCV-3.4.zip 20 | sudo apt install python-pip cmake 21 | sudo -H pip install $(awk '{print $1'} pippackage.list) 22 | cd opencv-3.4.0 23 | mkdir build 24 | cd build 25 | cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=OFF -D WITH_OPENGL=ON -DENABLE_PRECOMPILED_HEADERS=OFF -DBUILD_opencv_cudacodec=OFF .. 26 | maxThreads=$(grep -c ^processor /proc/cpuinfo) 27 | # echo Enter the number of CPU threads you want to use. FYI: You have $maxThreads CPU Threads. 28 | # read nThreads 29 | sudo make -j12 30 | sudo make install 31 | 32 | 33 | # References: 34 | # https://www.learnopencv.com/install-opencv-3-4-4-on-ubuntu-16-04/ 35 | # https://docs.opencv.org/3.4/d2/de6/tutorial_py_setup_in_ubuntu.html 36 | # https://github.com/opencv/opencv_contrib/issues/1786 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ubuntu4Research 2 | Ubuntu Setup for Research in Robotics and Computer Vision 3 | 4 | - [NVIDIA Drivers]() 5 | - [General Dependencies]() 6 | - [NVIDIA Cuda, Cudnn and Cuda Toolkit]() 7 | - [TensorFlow]() 8 | - [OpenCV]() 9 | - [Text Editors]() 10 | - [Apps]() 11 | - [Apperance Modifications]() 12 | - [MATLAB]() 13 | - [TeamViewer]() 14 | - [Slack]() 15 | 16 | ## Order of Installation 17 | - NVIDIA Driver 18 | - Cuda (Check Version using nvidia-smi) 19 | - CuDNN (Check Version using nvcc --version) 20 | - OpenCV 21 | - ROS 22 | - TensorFlow 23 | 24 | 25 | - Terminal > Right click > Profiles > Profile Preferences > Change transparency settings in Colors to about 10% 26 | - Gedit > Edit > Preferences > Font & Colors > Select Oblivion theme 27 | - Sticky Keys turn off: Displays > Sticky keys off 28 | - LaTeX font for Corel (https://sourceforge.net/projects/cm-unicode/?source=typ_redirect) Use CMU Serif Extended for Math font and CMU Serif Serif for normal text 29 | - Changing Arrow Size in Corel: https://graphicdesign.stackexchange.com/questions/60308/how-to-change-the-arrowhead-size-in-coreldraw 30 | - Fixing sound: https://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/ 31 | - python-tk 32 | - tqdm 33 | - [Store git UserName and Password](https://stackoverflow.com/questions/35942754/how-to-save-username-and-password-in-git) 34 | - Mounting CVLDataMonster 35 | - Install ``nfs-common`` using ``sudo apt install nfs-common`` 36 | - Create a space where you want to mount. For eg., I want to mount in ``/mnt/NitinSpace``. Execute ``sudo mkdir /mnt/NitinSpace``. 37 | - Give mount space premissions. ``sudo chmod -R 777 NitinSpace/`` in ``/mnt``. 38 | - Add this line to ``/etc/fstab``: ``# Mount NAS 192.168.1.179:/nfs/NitinSpace /mnt/NitinSpace nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0`` (Change the IP and space name). 39 | 40 | 41 | ## TODO: 42 | - MATLAB 43 | - Extracting Frames from VLC (https://www.raymond.cc/blog/extract-video-frames-to-images-using-vlc-media-player/) 44 | - rqt_bag 45 | - Printer Setup 46 | -------------------------------------------------------------------------------- /Ubuntu1804/cuda.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | # Cuda 10.1 11 | # sudo apt-get install build-essential dkms freeglut3 freeglut3-dev libxi-dev libxmu-dev 12 | # printf "${YELLOW} Add NVIDIA package repository ${NC}" 13 | # wget https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.168-418.67_1.0-1_amd64.deb 14 | # sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.168-418.67_1.0-1_amd64.deb 15 | # sudo apt-key add /var/cuda-repo-10-1-local-10.1.168-418.67/7fa2af80.pub 16 | # sudo apt-get update 17 | # sudo apt-get install cuda-10-1 18 | # printf "${YELLOW} Paste this in your ~/.bashrc${NC} \n # CUDA Config \n export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.3${PATH:+:${PATH}} \n export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}\n" 19 | # printf "${YELLOW} Reboot your PC and test with nvidia-smi ${NC}" 20 | 21 | # Cuda 10.0 22 | sudo apt-get install build-essential dkms freeglut3 freeglut3-dev libxi-dev libxmu-dev 23 | printf "${YELLOW} Add NVIDIA package repository ${NC}" 24 | wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64 25 | mv cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64 cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb 26 | sudo dpkg -i cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb 27 | sudo apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub 28 | sudo apt-get update 29 | sudo apt-get install cuda-libraries-10-0 cuda-runtime-10-0 cuda-demo-suite-10-0 cuda-10-0 30 | printf "${YELLOW} Paste this in your ~/.bashrc${NC} \n # CUDA Config \n export PATH=/usr/local/cuda/bin${PATH:+:${PATH}} \n export LD_LIBRARY_PATH=/usr/local/cuda/lib64/\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}\n" 31 | printf "${YELLOW} Reboot your PC and test with nvidia-smi ${NC}" 32 | -------------------------------------------------------------------------------- /Ubuntu2004/cuda.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Shell Color Defination: 4 | RED='\033[0;31m' 5 | NC='\033[0m' # No Color 6 | GREEN='\033[0;32m' 7 | CYAN='\033[1;36m' 8 | YELLOW='\033[1;33m' 9 | 10 | # Cuda 10.1 11 | # sudo apt-get install build-essential dkms freeglut3 freeglut3-dev libxi-dev libxmu-dev 12 | # printf "${YELLOW} Add NVIDIA package repository ${NC}" 13 | # wget https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-ubuntu1804-10-1-local-10.1.168-418.67_1.0-1_amd64.deb 14 | # sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.168-418.67_1.0-1_amd64.deb 15 | # sudo apt-key add /var/cuda-repo-10-1-local-10.1.168-418.67/7fa2af80.pub 16 | # sudo apt-get update 17 | # sudo apt-get install cuda-10-1 18 | # printf "${YELLOW} Paste this in your ~/.bashrc${NC} \n # CUDA Config \n export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.3${PATH:+:${PATH}} \n export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}\n" 19 | # printf "${YELLOW} Reboot your PC and test with nvidia-smi ${NC}" 20 | 21 | # Cuda 10.0 22 | sudo apt-get install build-essential dkms freeglut3 freeglut3-dev libxi-dev libxmu-dev 23 | printf "${YELLOW} Add NVIDIA package repository ${NC}" 24 | wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64 25 | mv cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64 cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb 26 | sudo dpkg -i cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb 27 | sudo apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub 28 | sudo apt-get update 29 | sudo apt-get install cuda-libraries-10-0 cuda-runtime-10-0 cuda-demo-suite-10-0 cuda-10-0 30 | printf "${YELLOW} Paste this in your ~/.bashrc${NC} \n # CUDA Config \n export PATH=/usr/local/cuda/bin${PATH:+:${PATH}} \n export LD_LIBRARY_PATH=/usr/local/cuda/lib64/\${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}\n" 31 | printf "${YELLOW} Reboot your PC and test with nvidia-smi ${NC}" 32 | --------------------------------------------------------------------------------