タイムゾーンを変更 [Ubuntu]
![Thumbnail of post image 116](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 ...
XMLタグが2重についている文字列を正規表現で抽出
![Thumbnail of post image 148](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/xps-4TBSG2Oqu0Q-unsplash.jpg?resize=150%2C150&ssl=1)
正規表現
(?)<.+?>.+?(?!<)
unzipでは解凍できない場合もある [Linux]
![Thumbnail of post image 068](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/piotr-wilk-Kc-OBw1fMJg-unsplash.jpg?resize=150%2C150&ssl=1)
4GB以上のzipファイルを解凍するとき、unzipではエラーがでるようだ。
以下は、手持ちの20GBのファイルをunzipで解凍した時のエラー文である。
$ unzip hoge.zip
Archiv ...
スクリプトをバックグラウンド起動(ログ無し) [Python][nohup]
![Thumbnail of post image 051](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sambazon-qfIVXu7nxGU-unsplash.jpg?resize=150%2C150&ssl=1)
nohup python hoge.py>/dev/null 2>&1 &
nohupで動かしたジョブの確認と削除
$ xclock 492$ jobs + Running xclock &$ kill ...ファイルの絶対パスを取得するコマンド [Linux]
![Thumbnail of post image 079](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/brooke-lark-HlNcigvUi4Q-unsplash.jpg?resize=150%2C150&ssl=1)
readlink -f hoge.txt
tgzの解凍
![Thumbnail of post image 061](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sidekix-media-FsgWEVacLU-unsplash.jpg?resize=150%2C150&ssl=1)
tar zxvf MWSDK_MWX_Linux64_201912-4.tgz
Linux起動時にunexpected inconsistency run fsck manuallyが出た時の対処法[Linux]
![Thumbnail of post image 119](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/sambazon-qfIVXu7nxGU-unsplash.jpg?resize=150%2C150&ssl=1)
fsck -t ext3/dev/sda1
上のコマンドを打って,y(yes)を連打し,再起動すると意外とシンプルに解決した.
/dev/sda1の部分は,修復の必要があるディレクトリを示している.各自の環境に合わせて替えて ...
‘/etc/apt/sources.list.d/cuda.list’ を上書きしようとしています。のエラーがでたときの対処法
![Thumbnail of post image 074](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/izabelle-acheson-aolXWwy-DiY-unsplash.jpg?resize=150%2C150&ssl=1)
入力したコマンド:
$ sudo dpkg -i cuda-repo-ubuntu1710_9.2.88-1_amd64.debでたエラー:
(データベースを読み込んでいます … 現在 127833 ...
深層学習用環境のセットアップ Ubuntu GNOME 16.04 LTS + CUDA9.1 + cuDNN7
![Thumbnail of post image 003](https://i0.wp.com/vasteelab.com/wp-content/uploads/2020/07/georgia-de-lotz-muN_TndU9A0-unsplash.jpg?resize=150%2C150&ssl=1)
Ubuntu GNOME 16.04 LTS のインストール
日本語のフォルダ名を英語に変換
Linux kernel header のインストールを行う
CUDA9.1 のインストール
NVIDIA drivers ...
日本語のフォルダ名を英語に変換
Linux kernel header のインストールを行う
CUDA9.1 のインストール
NVIDIA drivers ...