- Configure Vim
- Gnome environment
- Installing GTK themes
- Git Setup
- Google Chrome Setup
- Nvidia cuda toolkit installation
- Place .vimrc in home directory (i.e. ~/.vimrc) and a.vim in
~/.vim/bundle/a.vim
- Install vim-plug (for more info visit (vim-plug github)[https://github.com/junegunn/vim-plug])
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- Install vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
open the terminal and paste the following commands:
sudo add-apt-repository ppa:gnome3-team/gnome3-staging -y && \
sudo add-apt-repository ppa:gnome3-team/gnome3 -y &&\
sudo apt update && \
sudo apt dist-upgrade && \
sudo apt install gnome gnome-shell
- Adapta
sudo apt-add-repository ppa:tista/adapta -y sudo apt-get update sudo apt-get install adapta-gtk-theme
- Flat-remix
sudo apt-get install git-all
- Create a repository from your browser.
- Edit
git config
:
git config --global user.name "prateek arora"
git config --global user.email prateekarorav2@gmail.com
git config --global core.editor sublime
Check your configuration, do git config --list
4. Git clone your repository, do git clone htttp://github.com/chahatdeep/<repo_name>
-
cd <repo_name>
-
shell-script && git init
-
Copy all the files you want to move to the repo.
-
In the repo, do
git add *
-
git add LICENSE
(Optional) -
git commit -m 'initial project version'
-
git push
- Setup key with:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- Setup repository with:
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- Setup package with:
sudo apt-get update
sudo apt-get install google-chrome-stable
Ubuntu 20.04 index of cuda repo
-
Check the nvida driver and cudatoolkit compatibilty matrix and determine the version of nvidia driver you need from the following resource: https://docs.nvidia.com/deploy/cuda-compatibility/index.html#deployment-consideration-forward
First, make sure that you have nvidia drivers installed by running the following command:
dpkg -l | grep -i nvidia-driver
if the nvidia drivers aren't installed, install them by using the following command (replace "465" with the version you want):
sudo apt install nvidia-driver-465
Reboot the system
reboot
Verify if the installation was successful
nvidia-smi
You should be able to see the following output on your terminal:
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 465.19.01 Driver Version: 465.19.01 CUDA Version: 11.3 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... On | 00000000:01:00.0 On | N/A | | 30% 36C P8 16W / 350W | 169MiB / 24259MiB | 5% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1150 G /usr/lib/xorg/Xorg 78MiB | | 0 N/A N/A 1341 G /usr/bin/gnome-shell 83MiB | | 0 N/A N/A 1908 G ...mviewer/tv_bin/TeamViewer 4MiB | +-----------------------------------------------------------------------------+
-
This step is crucial for proper installation of nvidia cuda toolkit. Use the following command to remove existing cuda toolkit installation:
sudo apt remove cuda-toolkit* sudo rm -rf /usr/local/cuda*
Remove existing cuda toolkit sources in apt
sudo rm /etc/apt/sources.list.d/cuda* sudo apt-get autoremove && sudo apt-get autoclean
-
Browse the version of cuda toolkit you need to install from CUDA Tookit Archive and follow the instructions for installation. Below are the installation instructions for cuda toolkit 11.1 using local deb file (refer to the archive for recent links if the following commands do not work)
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 wget https://developer.download.nvidia.com/compute/cuda/11.1.0/local_installers/cuda-repo-ubuntu1804-11-1-local_11.1.0-455.23.05-1_amd64.deb sudo dpkg -i cuda-repo-ubuntu1804-11-1-local_11.1.0-455.23.05-1_amd64.deb sudo apt-key add /var/cuda-repo-ubuntu1804-11-1-local/7fa2af80.pub sudo apt-get update sudo apt-get -y install cuda
-
Navigate to cuda installation (replace 11.1 with your version of cuda):
cd /usr/local/cuda-11.1/samples/1_Utilities/deviceQuery
if you are unable to find the deviceQuery directory, do so by using the following command and navigate to the directory:
find -iname "deviceQuery"
Make and run deviceQuery
make ./deviceQuery
This should output a lot of details including (we care about the following only):
- the detected device
- CUDA Runtime Version
- Result (should be PASS)
-
Add the following lines to your ~/.bashrc:
export PATH=${PATH}:/usr/local/cuda-11.1/bin export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda-11.1/lib64
- Type
nvidia-smi
in the terminal to check if the nvidia-driver is installed properly. Reboot the system, if you see the following error:NVIDIA NVML Driver/library version mismatch
. - Upon rebooting, if the system doesn't boot gui, do the following:
- open a session by pressing
ctrl + alt + F2
- check nvidia driver version
dpkg -l | grep -i nvidia
- if the driver version is not the same one as you installed earlier, remove the existing driver and install the one that you know is compatible with your cuda version.
- open a session by pressing