Check the availability GPU in the system.
lspci | grep -i nvidia
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt install -y build-essential git libgfortran3
https://developer.nvidia.com/cuda-toolkit-archive
nvidia-smi
conda -V
If conda: command not found
then add env var to ~/.bashrc export PATH="$HOME/anaconda3/bin:$PATH"
.
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
conda install jupyter
or conda install jupyterlab
echo c.NotebookApp.ip = '*' > ~/.jupyter/jupyter_notebook_config.py
echo c.NotebookApp.open_browser = False >> ~/.jupyter/jupyter_notebook_config.py
echo c.NotebookApp.port = 8888 >> ~/.jupyter/jupyter_notebook_config.py
jupyter notebook password
jupyter-lab --ip=0.0.0.0 --port=8888 --no-browser &
Enter in browser on client side <ip>:8888
.
jupyter-lab --port=9000 --no-browser &
ssh -N -f -L 8888:localhost:9000 name@server