# 前準備
sudo apt-get install vim mesa-utils openssh-server build-essential
# bumblebeeのリポジトリ追加+最新版へ更新
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
# bumblebee一式のインストール(公式ページでのubuntu14.04のインストール方法を参考)
sudo apt-get install bumblebee bumblebee-nvidia primus linux-headers-generic
# blacklist
sudo sh -c 'echo "blacklist nouveau\noptions nouveau modeset=0" > /etc/modprobe.d/blacklist-nouveau.conf'
cat /etc/modprobe.d/blacklist-nouveau.conf
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
sudo reboot -r now
wget https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda_8.0.44_linux-run
sudo chmod a+x ./cuda_8.0.44_linux.run
./cuda_8.0.44_linux.run -extract=~/nvidia_installers
cd nvidia_installers
sudo ./cuda-linux64-rel-8.0.44-21122537.run --no-opengl-libs
sudo ./cuda-samples-linux-8.0.44-21122537.run --no-opengl-libs
sudo ./NVIDIA-Linux-x86_64-367.48.run --no-opengl-files
# "not apper to have an NVIDIA GPU supported by the 367.48..." --> OK
# "LICENSE" --> Accept
# "pre-install script failed!" --> Continue installation
# "register the kernel module source with DKMS?" --> Yes
# "32-bit compatibility libraries" --> No
# "NVIDIA X driver will be used when you restart x?" --> No
# "complete" --> OK
sudo shutdown -r now
$ sudo vim /etc/bumblebee/bumblebee.conf
# 次のように変更します
# 22行: Driver=nvidia
# 55行: KernelDriver=nvidia-367
# 58行: LibraryPath=/usr/lib/nvidia-367:/usr/lib32/nvidia-367
# 61行: XorgModulePath=/usr/lib/nvidia-367/xorg,/usr/lib/xorg/modules
#
# vim コマンドだったら以下
# %s/Driver=/Driver=nvidia/gc
# %s/-current/-367/gc
$ sudo vi /etc/modprobe.d/bumblebee.conf
# 以下があることを確認
# blacklist nvidia-367
# blacklist nvidia-367-updates
# blacklist nvidia-experimental-367
More than 5 years have passed since last update.
Optimus 構成ノートPCで、CUDAインストール 試行錯誤ログ
Last updated at Posted at 2016-10-20
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
20