「RaspberryPiで新型コロナウイルスの解析」の版間の差分
提供: ディーズガレージ wiki
4行目: | 4行目: | ||
<span style="color:red;font-size:22px;">書き込み中</span><br /> | <span style="color:red;font-size:22px;">書き込み中</span><br /> | ||
− | Folding@home or Rosetta@home > 調査中 | + | Folding@home or Rosetta@home > 調査中<br /> |
− | 参考: [https://gigazine.net/news/20200323-folding-home-boinc-coronavirus/] | + | 参考: [https://gigazine.net/news/20200323-folding-home-boinc-coronavirus/]<br /> |
参考: [https://gigazine.net/news/20200326-foldingathome-supercomputers-coronavirus/] | 参考: [https://gigazine.net/news/20200326-foldingathome-supercomputers-coronavirus/] | ||
2020年3月28日 (土) 21:31時点における版
書き込み中
Folding@home or Rosetta@home > 調査中
参考: [1]
参考: [2]
環境
ボード | Raspberry Pi 2 Model B |
OS | Raspbian Buster with desktop 2020-02-13 |
microSD | SanDisk Ultra microSDHC Class10 8GB |
LAN | 標準搭載のLAN |
作業補助 | モニター マウス キーボード |
具合
- リソースの具合 IoT Monitor 別窓
- オーバークロック設定では計算中に異常が発生してるように見えるので「無し(900MHz)」に設定
- GPUは対応してない様子 メモリ割り当てをデフォルト値「64」に設定
OSの準備
省略
IP固定(省略可)
$ sudo nano /etc/dhcpcd.conf
末尾に追記
interface eth0
static ip_address=192.168.1.186/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
保存: Ctrl + o > リターン
終了: Ctrl + x
再起動
$ sudo reboot
遠隔操作(省略可)
運用にモニター、マウス、キーボードは必要ないので遠隔操作にします。
標準で入っているRealVNCを使用します。
VNC有効
Menu > 設定 > Raspberry Piの設定 > インターフェイスタブ > VNC有効 > OK
解像度の変更
Menu > 設定 > Raspberry Piの設定 > システムタブ > 解像度 > 1280x1024程度
シャットダウンし、モニター、マウス、キーボードを取り外して電源入れ直し。
WindowsPCなどのVNCクライアントから接続を試す。
成功していれば、以降はVNCクライアントの窓の中で作業できます。
インストール
設定
延命対策(省略可)
swap
無効化
Stretchの場合
$ sudo dphys-swapfile swapoff $ sudo systemctl stop dphys-swapfile $ sudo systemctl disable dphys-swapfile
fstab
設定
$ sudo nano /etc/fstab
nodiratime追記と末尾に追記
参考: fstab - ArchWiki atime オプション
PARTUUID=5ee44bf0-02 / ext4 defaults,noatime,nodiratime 0 1 tmpfs /tmp tmpfs defaults,noatime,nodiratime,mode=1777 0 0 tmpfs /run/user/1000 tmpfs defaults,noatime,nodiratime,mode=1777 0 0 tmpfs /home/pi/.cache/lxsession/LXDE-pi tmpfs defaults,noatime,nodiratime,mode=1777 0 0
保存: Ctrl + o リターン
終了: Ctrl + x
再起動
$ sudo reboot
確認
$ df -h
systemctl
確認
$ systemctl list-unit-files -t service|grep enabled
rsyslog停止
$ sudo systemctl stop rsyslog.service $ sudo systemctl disable rsyslog.service 戻すなら $ sudo systemctl enable rsyslog.service
bluetooth停止
$ sudo systemctl stop hciuart.service $ sudo systemctl stop bluetooth.service $ sudo systemctl disable hciuart.service $ sudo systemctl disable bluetooth.service 戻すなら $ sudo systemctl enable hciuart.service $ sudo systemctl enable bluetooth.service
再起動
$ sudo reboot
確認
$ systemctl list-unit-files -t service $ systemctl list-unit-files -t service|grep disabled
folder2ram
RAMディスク化
インストール
$ sudo wget -O /sbin/folder2ram https://raw.githubusercontent.com/bobafetthotmail/folder2ram/master/debian_package/sbin/folder2ram $ sudo chmod +x /sbin/folder2ram $ sudo folder2ram -configure will now open the configuration file with your favourite text editor write its name and press enter (nano, vim, gedit are the most common) リターン
$ sudo nano /etc/folder2ram/folder2ram.conf
末尾に追記
tmpfs /var/log tmpfs /var/tmp tmpfs /var/spool tmpfs /var/cache/samba tmpfs /var/lib/boinc-client/slots
保存: Ctrl + o > リターン
終了: Ctrl + x
$ sudo folder2ram -mountall $ sudo folder2ram -enablesystemd
再起動
$ sudo reboot
確認
$ df -h
journald
$ sudo nano /etc/systemd/journald.conf
追記
Storage=none
保存: Ctrl + o > リターン
終了: Ctrl + x
再起動
$ sudo reboot
更新履歴
- 2020.03.28 暫定公開