2020年6月11日木曜日

UbuntuとNVIDIA

新しくDeep Learning用に購入したPCにLinux (ubuntu)にインストールしようとしたら画面がバグった。具体的には, 「Couldn’t get size: 0x800000000000000e」と一番上に出て,下の方はぐちゃぐちゃで読めない。

USBが壊れてるのかなと思ってインストールディスクを作成しなおしても同じ症状。困ったなー。とおもったら。NVIDIA Geforce 入っているのがまずいらしい。

https://qiita.com/yoya/items/026317fe2ddb30ab411d
このサイト,助かりました。

指示通りnomodesetを追加すると,普通に起動できました。以前他のPCにubuntuをインストールしたときにはそんなことなかったが,相性とかがあるんだろうな。

その後,NVIDIA公式からドライバをDLしてくる。 ここから,選べばいい。
https://www.nvidia.co.jp/Download/index.aspx?lang=jp

.runというファイルがDLされて,それをクリックするとなぜかtextエディタが開かれて…時間かかった挙句何か文句を言われた。

ターミナルから実行すればいいらしいので,.runファイルのあるディレクトリに移動してから
sudo ./ファイル名.run
を実行。

すると,The distribution-provided pre-install script failed!とか言われる。 最初はびびってとりあえずabortするものの,調べてみると無視していいらしい。Continue installしましょう。

一応,下のサイトに詳しいインストール方法が書いてあります(コメント欄にもっと簡単な方法も)が,私は普通に.runファイルを実行するだけでいけました。
https://sy07-sub.hatenablog.com/entry/2018/10/14/003750

さて,これから2080 Tiのお手並み拝見です。

When I tried to install Ubuntu to a new PC for deep learning, a warning message "Couldn’t get size: 0x800000000000000e" appeared and the installation was stuck. I found that the graphic driver for NVIDIA Geforce seemed not to work well. So, first I had to stop the driver and activate default driver by adding "nomodeset" in the first screen that I can select ubuntu installation (see the screen capture in https://qiita.com/yoya/items/026317fe2ddb30ab411d). Then you can boot install and boot ubuntu normally. After that, I had to install a driver for the graphic board (https://www.nvidia.co.jp/Download/index.aspx?lang=jp). In the installing process, you may see "The distribution-provided pre-install script failed!" but you can ignore it. Good luck!