NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
![Thumbnail of post image 066](https://i0.wp.com/vasteelab.com/wp-content/uploads/2022/08/DALL·E-2022-08-06-11.52.20-closed-up-V-character-using-3dcg.png?resize=150%2C150&ssl=1)
UbuntuでGPUを差し替えると唐突に表題のようなエラーが出現した.
上記エラーで検索をかけてみると,nvidia-driverとcudaの再インストールが解決方法として紹介されていることが多いが,私の場合,sudo a ...
Ubuntu22.04でコピー&ペーストをすると謎の文字列^[[200~ ~が挿入される件の解決方法
![Thumbnail of post image 110](https://i0.wp.com/vasteelab.com/wp-content/uploads/2023/03/grid-0009.png?resize=150%2C150&ssl=1)
~/.inputrcを開く
vim ~/.inputrcset enable-bracketed-paste Off
の文字列をinputrcに追記
バックグラウンド実行したプログラムを停止する方法
![Thumbnail of post image 114](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/samantha-gades-BlIhVfXbi9s-unsplash.jpg?resize=150%2C150&ssl=1)
nohup python *.py& などでバックグラウンド実行した後にプログラムを停止する場合、以下の二通りの方法が考えられる。
安全な停止jobsコマンドでバックグラウンド実行しているジョブを確認。先頭の, が ...
タイムゾーンを変更 [Ubuntu]
![Thumbnail of post image 193](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sambazon-qfIVXu7nxGU-unsplash.jpg?resize=150%2C150&ssl=1)
# 現在のタイムゾーンを確認。現在はUTCだ。$ dateSun Sep 6 11:35:37 UTC 2020# システムに日本のタイムゾーンがあるかを確認。$ timedatectl list-timezones | grep -i t ...
追加ディスクのmount手順[Ubuntu]
![Thumbnail of post image 129](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/link-hoang-UoqAR2pOxMo-unsplash.jpg?resize=150%2C150&ssl=1)
sudo fdisk -l でディスクが認識されているかと,パス(/dev/xvdfなど)を確認
sudo vim/etc/fstabでディスクのパスとマウントポイントを指定.
例
/etc/fst ...
apt-getでGPG errorが発生した時の対策[Ubuntu]
![Thumbnail of post image 016](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/link-hoang-UoqAR2pOxMo-unsplash.jpg?resize=150%2C150&ssl=1)
対策
chmod 1777/tmp
github.com
経緯dockerで立てたコンテナでapt-get updateを打ち込むと,
W: GPG error: xenial InRelease: Co ...sudo dpkg-reconfigure keyboard-configurationが再起動の度にリセットされる[Ubuntu]
![Thumbnail of post image 090](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/brooke-lark-nTZOILVZuOg-unsplash.jpg?resize=150%2C150&ssl=1)
困りごとsudo dpkg-reconfigure keyboard-configuration
Ubuntu16.04で上のコマンドをうちこんでも再起動の度に設定がリセットされてしまう。
対象法設定ファイルを直接変更
Pythonを3に切り替える[Ubuntu][Python]
![Thumbnail of post image 044](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/xps-DYAf-8UTFN8-unsplash.jpg?resize=150%2C150&ssl=1)
$ sudo mv/usr/bin/python/usr/bin/python2$ sudo ln -s/usr/bin/python3/usr/bin/python$ python --version
Python2とPython3が ...
Ubuntu root のパスワードを設定した記憶が無いときにすること[Ubuntu]
![Thumbnail of post image 025](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/anna-sullivan-IUXR0sqs-mY-unsplash.jpg?resize=150%2C150&ssl=1)
$ sudo su -# passwdEnter new UNIX password: Retype new UNIX password: passwd: password updated successfully
chmodの後に付く数字って何?[Ubuntu]
![Thumbnail of post image 117](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sidekix-media-FsgWEVacLU-unsplash.jpg?resize=150%2C150&ssl=1)
chmodの後の数字は所有者, グループ, その他の順にそれぞれ0から7の整数で表される.
それぞれの数字は以下を加算して求める.
読み込みが可能 4
書き込みと変更が可能 2
実行が可 ...