Linux Mint 18.3 is based on Linux Ubuntu 16.04.
1. su failure:
sudo passwd root
1. Local time:
timedatectl set-local-rtc 1
grep LOCAL /etc/adjtime
2. Nvidia Driver:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
Then install the latest version of Nvidia Driver from 'Driver Management'
Or in the terminal:
sudo apt install nvidia-390 nvidia-settings
3. Install CUDA:
sudo dpkg -i cuda-repo-ubuntu1604_9.2.88-1_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
The pwd of CUDA is: /usr/local/cuda and '/usr/local/cuda-9.2'
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo dpkg -i cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
sudo apt-get update
sudo apt-get install -y cuda nvidia-cuda-toolkit
4. Install Anaconda:
alias python = python3
source .bashrc
5. Eigen3
sudo tar -xzvf eigen.tar.gz -C /usr/local/include
sudo mv /usr/local/include/eigen /usr/local/include/eigen3
sudo cp -r /usr/local/include/eigen3/Eigen /usr/local/include
因为eigen3 被默认安装到了usr/local/include里了(usr/include),在很多程序中include时经常使用#include<Eigen/Dense> 而不是使用#include<eigen3/Eigen/Dense>, 上面指令将usr/local/include/eigen3文件夹中的Eigen文件复制到上一层文件夹, 直接放到/usr/local/include中
cd /usr/local/include
sudo ln -sf eigen3/Eigen Eigen
sudo ln -sf eigen3/unsupported unsupported
https://github.com/piratf/MatrixH/blob/master/Matrix.h