Tensor Flowのinstall (Ubuntu 16.10)
' CPU version
$ sudo pip install tensorflow
GPU version
$ sudo apt-get install libcupti-dev
$ sudo pip install tensorflow-gpu
' Pre-requisition cuda & cudnn
谷本の備忘録・雑記帳・work
CATEGORY ARCHIVE
Tensor Flowのinstall (Ubuntu 16.10)
' CPU version
$ sudo pip install tensorflow
GPU version
$ sudo apt-get install libcupti-dev
$ sudo pip install tensorflow-gpu
' Pre-requisition cuda & cudnn
cudaの次はchainerのインストール
' chainer install
' https://developer.nvidia.com/にメンバー登録してcudnnを入手
$ tar xzf cudnn-8.0-linux-x64-v5.1.tgz
$ sudo cp -a cuda/lib64/* /usr/local/lib/
$ sudo cp -a cuda/include/* /usr/local/include/
$ sudo ldconfig
$ rm -R -f cuda
$ sudo nano /etc/default/grub
' GRUB_CMDLINE_LINUX=”systemd.unit=multi-user.target”に設定
$ sudo update-grub
$ sudo reboot
$ sudo apt clean
$ sudo apt-get install gcc-4.9
$ sudo apt-get install g++-4.9
$ sudo update-alternatives ?install /usr/bin/gcc gcc /usr/bin/gcc-4.9.20
' gccのバージョンが新しいとchainerのGPUを使った使用で実行中にエラーが出る
' g++も旧いのを入れないとエラーになったのでこれもライブラリーを入れる
' 参考:https://groups.google.com/forum/#!topic/chainer-jp/hDEZIAKVsn8
$ CUDA_PATH=/usr/local/cuda sudo pip install chainer ?no-cache-dir
' version was chainer-1.21.0
' http://qiita.com/yukoba/items/3692f1cb677b2383c983を参考にした
gccのバージョンを元に戻すと、chainerで又エラーになったので戻せない。
他に方法あるかも
' CUDAを入れてnvidia-smiが出るまで
1.Ubuntu 16.10をinstall
'bluetoothでエラーになるのを止める
$ sudo nano /etc/apt/sources.list.d/ubuntu-ja.list
'ディレクトリーの英文字化
$ LANG=C xdg-user-dirs-gtk-update
'SSH有効化
$ sudo apt-get install openssh-server
'tmpのRAMDISK化
$ sudo mkdir /ramdisk
$ sudo chmod 777 /ramdisk
$ sudo chown -R username /ramdisk (2017.3.4)
$ sudo nano /etc/fstab
' matesession <―間違い
' mate-session
' 上記を追加
'debパッケージのインストール用コマンドgdebi
$ sudo apt-get install gdebi
'ftp server設定
'https://www.server-world.info/query?os=Ubuntu_16.04&p=ftp を参考にした
$ sudo apt-get install vsftpd
$ sudo nano /etc/vsftpd.conf
$ sudo nano /etc/vsftpd.chroot_list
$ sudo service vsftpd restart
'git
$ sudo apt-get install git
'pip
$ sudo apt-get install python3-pip python3-dev
$ sudo apt-get install python-pip python-dev
場合によってはこれも(これは入っていそうだが、まだエラーになり上記)
https://github.com/opencv/opencv/pull/7390/commits/21d9412c93d0fea7c087c2cca3b232b9f8ab9d69
5.CUDAのinstall
'cuda
' cuda driver dawnload from https://developer.nvidia.com/cuda-zone
$ sudo nano /etc/default/grub
' GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”をGRUB_CMDLINE_LINUX_DEFAULT=”text”に
変更する
$ sudo reboot
$ sudo nano /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
$ sudo nano /etc/modprobe.d/nouveau-kms.conf
options nouveau modeset=0
$ sudo update-initramfs -u
$ sudo reboot
$ sudo apt-get install linux-source
$ cd Downloads
$ sudo gdebi cuda-repo-ubuntu1604-8-0-local_8.0.44-1_amd64.deb
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt-get update
$ sudo apt-get install cuda
$ sudo apt-get remove nvidia-367
$ sudo apt-get install nvidia-370
' https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppaから370にした
$ sudo reboot
$ nvidia-smi
正しくインストール出来ているか、ubuntu 16.10で動くかはまだわからない
ダウンロードしたdebパッケージをUbuntu/Debianでインストールするツール。
sudo apt-get install gdebi
使用方法
sudo gdebi xxxxx.deb
リモートデスクトップでMathematicaが立ち上がらなかった。下記のURLにあった解決策を実行したら立ち上がった。
Mathematica on Raspberry pi2 failed starting up under RDP condition. ( RDP disconnected and Mathematica didn’t run) Fortunately I found a solution at the following site.
'https://www.raspberrypi.org/forums/viewtopic.php?f=94&t=131051
――-solution ――
'$ sudo apt-get install libgl1-mesa-swx11
理由不明もWindows 8.1にvirtualboxをinstallしようとすると、fatal errorとなり失敗。 Install途中でUSBの設定箇所をinstall対象からはずしたところ、installできた。
My installation trial of virtualbox into windows8.1 failed as fatal error. So I omitted USB support from installation conditions and succeeded the installation
.