Materials
- A computer with a NVIDIA graphics card:
- preferably with 4+ GB VRAM, 32+ GB RAM, and 8+ core CPU
- A portable hard-drive
- SSD – comfortably in range of 512MB/s or more (fast but somewhat risky in case of data loss)
- HDD – max 100 MB/s (don’t shake or jostle it, also dirt slow)
- USB drive with 8+ Gb
Install
Install via WSL
to be updated
Install via Virtual Machine
to be updated
Install Linux (Ubuntu)
- Format the hard-drive (optional)
- Download latest Bios
- Create a system image backup [look into this] => might want to avoid this entirely and just creating a VM
- format your flash drive
- download and install Balena etcher
- download and install Ubuntu 20.4 LTS (or whatever version is available)
- flash Ubunto ISO onto flashdrive
- Do shrink volume and create a partition for Ubuntu (at least 20 Gb)
- Trouble shooting:
- Delete some files
- remove Page Indexer (or whatever tf that file is called)
- try defraging and rebooting a few times
- get into bootloader (by restarting and spamming F12, F2, F1, etc.)
- Ensure a few settings on your computer:
- AHCI is enabled
- Secure Boot enabled
- blah blah blah install ubuntu according to savvy nick tutorial
Install NVIDIA Drivers
- open terminal on ubuntu:
1 2
sudo apt-get update sudo apt-get upgrade
- Check to see which NVIDIA drivers to install
- type in terminal https://linuxize.com/post/how-to-nvidia-drivers-on-ubuntu-20-04/:
ubuntu-drivers devices
- I got something that looked like this in return: [insert screenshot]
- Install the recommended driver, in my case I typed into terminal:
sudo apt install nvidia-driver-510
- Once installed reboot system:
sudo reboot
- type in terminal https://linuxize.com/post/how-to-nvidia-drivers-on-ubuntu-20-04/:
- Install Nvidia drivers: (MAKE SURE YOUR TERMINAL IS FULL SCREEN WHEN DOING THIS)
- Check Nvidia drivers with
nvidia-smi
https://forums.fast.ai/t/platform-local-server-ubuntu/65851 sudo add-apt-repository ppa:graphics-drivers/ppa
https://phoenixnap.com/kb/install-nvidia-drivers-ubuntuubuntu-drivers devices
https://phoenixnap.com/kb/install-nvidia-drivers-ubuntusudo ubuntu-drivers autoinstall
(alternatively, you could install an individual driver by replacing autoinstall with the specific driver name, but eh)- while the drivers are installing, you should get a window that pops up that asks for MOK authentication – for secure boot
- click okay
- create a password
- sudo reboot
- follow this: https://documentation.commvault.com/commvault/v11/article?p=118661.htm
- open up terminal again and verify the drivers are there with
nvidia-smi
Install miniconda
- download miniconda for linux from website
- navigate to downloads folder using ls and cd
chmod +x [name of miniconda file]
./[name of miniconda file]
- press space and enter and yes a few times
- close terminal and open up a new one and type in conda to see if works
Install fastAI
This also helped me avoid bugs with running widgets in jupyter notebook:
1 2 3
sudo apt install nodejs sudo apt install npm sudo apt install git
- create fastbook
1 2 3 4 5 6 7
mkdir repos #(folder can be named anything) cd repos git clone https://github.com/fastai/fastbook cd fastbook conda env create -f environment.yml conda activate fastbook pip install fastbook
- open a new terminal for and type
jupyter-lab
- navigate to clean and first notebook
- monitoring GPU and CPU usage and temps: [GPU should be at or near 100% when running epocs, but shouldn’t exceed 85C <= cooling needed if this occurs] In a new terminal type in
watch -d -n 0.5 nvidia-smi
https://unix.stackexchange.com/questions/38560/gpu-usage-monitoring-cuda - open up system info to look at CPU cores
- Run first 3 things in Jupyter
You’re good to go now. Note: if your system takes x seconds to run this, you probably need a new computer
Troubleshooting
Problem:
1
2
(base) username:~$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch
Solution: ^ you probably need to install one of the nvidia drivers (see Install NVIDIA Drivers).
Problem: If you get something like this:
1
2
3
4
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Solution: The following information may help to resolve the situation:
1
2
3
4
5
6
The following packages have unmet dependencies:
nvidia-driver-470 : Depends: nvidia-kernel-source-470 (= 470.103.01-0ubuntu0.20.04.1) but it is not going to be installed
Depends: libnvidia-extra-470 (= 470.103.01-0ubuntu0.20.04.1) but it is not going to be installed
Recommends: libnvidia-ifr1-470:i386 (= 470.103.01-0ubuntu0.20.04.1)
Recommends: libnvidia-gl-470:i386 (= 470.103.01-0ubuntu0.20.04.1)
E: Unable to correct problems, you have held broken packages.
Try this: https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa Or try this: https://askubuntu.com/questions/1362970/problem-installing-nvidia-driver-on-ubuntu-20-04