# RTX 4090 マシン Setup [[RTX 4090 マシン]] ## Ubuntu [Install Ubuntu desktop | Ubuntu](https://ubuntu.com/tutorials/install-ubuntu-desktop#3-create-a-bootable-usb-stick) For this tutorial, we’ll use [balenaEtcher](https://etcher.balena.io/), as it runs on Linux, Windows and Mac OS. Choose the xversion that corresponds to your current operating system, download and install the tool. [balenaEtcher - Flash OS images to SD cards & USB drives](https://etcher.balena.io) [セキュア ブートの無効化 | Microsoft Learn](https://learn.microsoft.com/ja-jp/windows-hardware/manufacture/desktop/disabling-secure-boot?view=windows-11) > Windows で、Shift キーを押しながら **[再起動]** を選択します。 **[トラブルシューティング] > [Advanced Options: UEFI Firmware Settings]\(詳細オプション: UEFI ファームウェアの設定\)** にアクセスします。 [《図解で徹底解説》WindowsPCにUbuntuをクリーンインストールする方法 | COLOR CODE](https://color-code.net/post-2783) > Windows10の場合は非常に簡単です。 > > ① デスクトップ右下の通知アイコンを選択し、〔すべての設定〕を選択 > ② 〔更新とセキュリティ〕を選択 > ③ 〔回復〕を選択し、”PCの起動をカスタマイズする”箇所にある〔今すぐ再起動〕選択 ## SSH ```sh sudo apt update sudo apt install openssh-server sudo vim /etc/ssh/sshd_config PasswordAuthentication yes service sshd restart ``` ## GPU ### 多分これだけでOK - [NVIDIA Driver, CUDA, cuDNNのインストールをAPTでサクッと済ませる - Ubuntu Linux](https://zenn.dev/pon_pokapoka/articles/nvidia_cuda_install) - 突然動かなくなった - `NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.` - [生きろ NVIDIA ドライバ](https://zenn.dev/wsuzume/articles/d300b479f7a1ba) ### その前に実際やった [CUDA GPUs - Compute Capability | NVIDIA Developer](https://developer.nvidia.com/cuda-gpus) |GPU|Compute Capability| |---|---| |[GeForce RTX 4090](https://www.nvidia.com/en-us/geforce/graphics-cards/40-series/rtx-4090/)|8.9| [公式の高度なドライバー検索 | NVIDIA](https://www.nvidia.co.jp/Download/Find.aspx?lang=jp) | ドライバ | バージョン | 日付 | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | --------- | | **[Linux x64 (AMD64/EM64T) Display Driver](https://www.nvidia.co.jp/download/driverResults.aspx/216797/jp) ![NVIDIAの推奨](https://www.nvidia.co.jp/content/DriverDownloads/includes/us/images/recommended.jpg)** | 535.146.02 | 7.12.2023 | [Linux x64 (AMD64/EM64T) Display Driver | 535.146.02 | Linux 64-bit | NVIDIA](https://www.nvidia.co.jp/download/driverResults.aspx/216797/jp) ```sh nvidia-smi ``` https://developer.nvidia.com/cuda-11-8-0-download-archive ```sh wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb sudo dpkg -i cuda-keyring_1.0-1_all.deb sudo apt-get update sudo apt-get -y install cuda ``` ```sh nvcc -V ``` → command not found ### GUIでもいけそう ```sh ubuntu-drivers devices ``` ``` == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00002684sv000010DEsd000016F3bc03sc00i00 vendor : NVIDIA Corporation driver : nvidia-driver-525-open - distro non-free driver : nvidia-driver-530 - third-party non-free driver : nvidia-driver-525 - third-party non-free driver : nvidia-driver-535-server - distro non-free driver : nvidia-driver-535-open - distro non-free driver : nvidia-driver-525-server - distro non-free driver : nvidia-driver-535-server-open - distro non-free driver : nvidia-driver-535 - third-party non-free driver : nvidia-driver-545 - third-party non-free recommended driver : xserver-xorg-video-nouveau - distro free builtin ``` ```sh sudo apt install -y nvidia-driver-545 ``` ## Anaconda [Free Download | Anaconda](https://www.anaconda.com/download#downloads) ```sh wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh sh ./Anaconda3-2023.09-0-Linux-x86_64.sh ``` [UbuntuにANACONDAを導入する方法 | パソコン工房 NEXMAG](https://www.pc-koubou.jp/magazine/38846)