1. Disable unattended upgrade
sudo vi /etc/apt/apt.conf.d/20auto-upgradesAPT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
2. Install CUDA and cuDNN
method 1:
Install driver through Software & Updates.
Then install CUDA using the run file, and un-select gpu driver.
Then install cuDNN
method 2: Follow below link:
3. Install Nodejs 12
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
4. Install Python 3
By default, python3 should be shipped with ubuntu 18, check the version:
python3 -V
Install pip3 and venv:
sudo apt install -y python3-pip python3-venv
venv should be shipped with new python3
to create new venv: python3 -m venv /path/to/venvactivate: source /path/to/venv/bin/activatedeactivate: deactivate
### For laptop:
- Install tlp for battery management
sudo apt install tlp
to start tlp: sudo tlp startcheck status: sudo tlp-stat -scheck config: sudo tlp-stat -ccheck battery: sudo tlp-stat -b
2. Use intel gpu for display and nvidia gpu for CUDA: