Ubuntu

Thumbnail of post image 118

UbuntuでGPUを差し替えると唐突に表題のようなエラーが出現した.

上記エラーで検索をかけてみると,nvidia-driverとcudaの再インストールが解決方法として紹介されていることが多いが,私の場合,sudo a ...

Ubuntu

Thumbnail of post image 150

~/.inputrcを開く

vim ~/.inputrc

set enable-bracketed-paste Off
の文字列をinputrcに追記

source ~/.inputrc

Ubuntu

Thumbnail of post image 084

nohup python *.py& などでバックグラウンド実行した後にプログラムを停止する場合、以下の二通りの方法が考えられる。

安全な停止

jobsコマンドでバックグラウンド実行しているジョブを確認。先頭の, が ...

Linux,Ubuntu

Thumbnail of post image 111
# 現在のタイムゾーンを確認。現在はUTCだ。$ dateSun Sep 6 11:35:37 UTC 2020# システムに日本のタイムゾーンがあるかを確認。$ timedatectl list-timezones | grep -i t ...

Ubuntu

Thumbnail of post image 037

sudo fdisk -l でディスクが認識されているかと,パス(/dev/xvdfなど)を確認

sudo vim/etc/fstabでディスクのパスとマウントポイントを指定.

/etc/fst ...

Ubuntu

Thumbnail of post image 170

対策

chmod 1777/tmp

github.com

経緯

dockerで立てたコンテナでapt-get updateを打ち込むと,

W: GPG error: xenial InRelease: Co ...

Ubuntu

Thumbnail of post image 075

困りごとsudo dpkg-reconfigure keyboard-configuration

Ubuntu16.04で上のコマンドをうちこんでも再起動の度に設定がリセットされてしまう。

対象法

設定ファイルを直接変更

Python,Ubuntu

Thumbnail of post image 160

$ sudo mv/usr/bin/python/usr/bin/python2$ sudo ln -s/usr/bin/python3/usr/bin/python$ python --version

Python2とPython3が ...

Ubuntu

Thumbnail of post image 184

$ sudo su -# passwdEnter new UNIX password: Retype new UNIX password: passwd: password updated successfully

Ubuntu

Thumbnail of post image 088

chmodの後の数字は所有者, グループ, その他の順にそれぞれ0から7の整数で表される.

それぞれの数字は以下を加算して求める.

読み込みが可能 4

書き込みと変更が可能 2

実行が可 ...