intall BOINC on Ubuntu20.04LTS x64
Boincについて
https://ja.wikipedia.org/wiki/Berkeley_Open_Infrastructure_for_Network_Computing
https://www.boinc.tokyo/
ubuntuについて
https://ja.wikipedia.org/wiki/Ubuntu
https://www.ubuntulinux.jp/ubuntu
コマンド
Boincをインストール
sudo apt-get install boinc-client
自分のアカウントを挿入する
Project_URLはプロジェクトのURLを書き換え
Account_keyは自分のアカウントキーを書き換え
(Account_key自分の参加したBOINC projectにて確認出来ます)
私の場合は: boinccmd --project_attach https://www.worldcommunitygrid.org 0000000000000000
(0000000の部分はWCG---setting---My Profile---一番下に書いてあります)
boinccmd --project_attach Project_URL Account_key
ENABLED=”1″になっていることかを確認
cat /etc/default/boinc-client
ワークユニットのステータスを確認する
boinccmd --get_simple_gui_info
boinc-clientサービスを開始と停止
sudo service boinc-client start
sudo service boinc-client stop
参考となったURL
https://www.codeflow.site/ja/article/how-to-set-up-seti-home-on-ubuntu-14-04-or-debian-7
https://blog.mamimu.me/fishblue/?p=631
https://boinc.berkeley.edu/wiki/Installing_BOINC_on_Ubuntu
https://boinc.berkeley.edu/wiki/Installing_on_Linux
運用マシン
自宅はもちろん。
https://cloud.google.com/
https://aws.amazon.com/jp/
検証済み
メモ
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-42-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue Sep 1 0:0:0 UTC 2020
System load: 0.0
Usage of /: 1.8% of 77.36GB
Memory usage: 5%
Swap usage: 0%
Processes: 121
Users logged in: 0
IPv4 address for eth0: 0.0.0.0
IPv4 address for eth0: 0.0.0.0
IPv6 address for eth0: 0:0:0:0::0:0
22 updates can be installed immediately.
4 of these updates are security updates.
To see these additional updates run: apt list --upgradable
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
root@ubuntu:~#
root@ubuntu:~# sudo apt-get install boinc-client
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 0%
Reading state information... Done
The following additional packages will be installed:
libboinc7 libxss1 x11-common
Suggested packages:
boinc-manager x11-xserver-utils boinc-client-opencl boinc-client-nvidia-cuda
The following NEW packages will be installed:
boinc-client libboinc7 libxss1 x11-common
0 upgraded, 4 newly installed, 0 to remove and 31 not upgraded.
Need to get 903 kB of archives.
After this operation, 3535 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
0% [Working]
Get:1 http://mirrors.0000000.com/ubuntu
focal/universe amd64 libboinc7 amd64 7.16.6+dfsg-1 [396 kB]
4% [1 libboinc7 40.3 kB/396 kB 10%]
40% [Working]
Get:2 http://mirrors.0000000.com/ubuntu
focal/main amd64 x11-common all 1:7.7+19ubuntu14 [22.3 kB]
42% [2 x11-common 22.3 kB/22.3 kB 100%]
47% [Working]
Get:3 http://mirrors.00000000.com/ubuntu
focal/main amd64 libxss1 amd64 1:1.2.3-1 [8140 B]
48% [3 libxss1 8140 B/8140 B 100%]
53% [Waiting for headers]
Get:4 http://mirrors.0000000000.com/ubuntu
focal/universe amd64 boinc-client amd64 7.16.6+dfsg-1 [476 kB]
54% [4 boinc-client 8192 B/476 kB 2%]
100% [Working] Fetched 903 kB in 0s (7226 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libboinc7:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 63136 files and directories currently installed.)
Preparing to unpack .../libboinc7_7.16.6+dfsg-1_amd64.deb ...
Unpacking libboinc7:amd64 (7.16.6+dfsg-1) ...
Selecting previously unselected package x11-common.
Preparing to unpack .../x11-common_1%3a7.7+19ubuntu14_all.deb ...
dpkg-query: no packages found matching nux-tools
Unpacking x11-common (1:7.7+19ubuntu14) ...
Selecting previously unselected package libxss1:amd64.
Preparing to unpack .../libxss1_1%3a1.2.3-1_amd64.deb ...
Unpacking libxss1:amd64 (1:1.2.3-1) ...
Selecting previously unselected package boinc-client.
Preparing to unpack .../boinc-client_7.16.6+dfsg-1_amd64.deb ...
Unpacking boinc-client (7.16.6+dfsg-1) ...
Setting up libboinc7:amd64 (7.16.6+dfsg-1) ...
Setting up x11-common (1:7.7+19ubuntu14) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up libxss1:amd64 (1:1.2.3-1) ...
Setting up boinc-client (7.16.6+dfsg-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/boinc-client.service → /lib/systemd/system/boinc-client.service.
Processing triggers for systemd (245.4-4ubuntu3.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
root@ubuntu:~# boinccmd –project_attach URL account_key
root@ubuntu:
root@ubuntu:~# cat /etc/default/boinc-client
# This file is /etc/default/boinc-client, it is a configuration file for the
# /etc/init.d/boinc-client init script.
# Set this to 1 to enable and to 0 to disable the init script.
ENABLED="1"
# Set this to 1 to enable advanced scheduling of the BOINC core client and
# all its sub-processes (reduces the impact of BOINC on the system's
# performance).
SCHEDULE="1"
# The BOINC core client will be started with the permissions of this user.
BOINC_USER="boinc"
# This is the data directory of the BOINC core client.
BOINC_DIR="/var/lib/boinc-client"
# This is the location of the BOINC core client, that the init script uses.
# If you do not want to use the client program provided by the boinc-client
# package, you can specify here an alternative client program.
#BOINC_CLIENT="/usr/local/bin/boinc"
BOINC_CLIENT="/usr/bin/boinc"
# Here you can specify additional options to pass to the BOINC core client.
# Type 'boinc --help' or 'man boinc' for a full summary of allowed options.
#BOINC_OPTS="--allow_remote_gui_rpc"
BOINC_OPTS=""
# Scheduling options
# Set SCHEDULE="0" if prefering to run with upstream default priority
# settings.
# Nice levels. When systems are truly busy, e.g. because of too many active
# scientific applications started by the boinc client, there is a chance for
# the boinc client not to be granted sufficient opportunity to check for
# scientific applications to be alive and make the (wrong) decision to
# terminate the scientific app. This is particularly an issue with many
# apps started in parallel on modern multi-core systems and extra overheads
# for the download and uploads of files with the project servers. Another
# concern is the latency for scientific applications to communicate with the
# graphics card, which should be low. All such values should be set and
# controled from within the BOINC client. The Debian init script also sets
# extra constrains via chrt on real time performance and via ionice on
# I/O performance, which is beyond the regular BOINC client. It then was
# too easy to use that code to also constrain minimal nice levels. We still
# think about how to best distinguish GPU applications from regular apps.
BOINC_NICE_CLIENT=10
BOINC_NICE_APP_DEFAULT=19
#BOINC_NICE_APP_GPU=5 # not yet used
# ionice classes. See manpage of ionice (1) in the util-linux package.
BOINC_IONICE_CLIENT=3 # idle
#BOINC_IONICE_APP_DEFAULT=3 # idle, not yet used
#BOINC_IONICE_APP_GPU=2 # best effort, not yet used
root@ubuntu-s-2vcpu-4gb-sfo3-02:~# top
top - 03:19:23 up 9 min, 1 user, load average: 0.05, 0.07, 0.06
Tasks: 102 total, 2 running, 100 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 3.3 sy, 46.7 ni, 50.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3936.2 total, 2854.1 free, 172.7 used, 909.5 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 3531.0 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15258 boinc 39 19 127480 57804 42668 R 87.5 1.4 0:00.35 wcgrid_mip1_ros
1 root 20 0 103040 12716 8356 S 0.0 0.3 0:03.06 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
5 root 20 0 0 0 0 I 0.0 0.0 0:00.05 kworker/0:0-events
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H-kblockd
9 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
10 root 20 0 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/0
11 root 20 0 0 0 0 I 0.0 0.0 0:00.08 rcu_sched
12 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
13 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
16 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/1
17 root rt 0 0 0 0 S 0.0 0.0 0:00.13 migration/1
18 root 20 0 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/1
20 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/1:0H-kblockd
21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
22 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
23 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_kthre
24 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kauditd
25 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd
26 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper
27 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback
28 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kcompactd0
29 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd
30 root 39 19 0 0 0 S 0.0 0.0 0:00.00 khugepaged
32 root 20 0 0 0 0 I 0.0 0.0 0:00.03 kworker/u4:1-events_unbound
123 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kintegrityd
124 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd
125 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 blkcg_punt_bio
126 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 tpm_dev_wq
127 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 ata_sff
128 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 md
129 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 edac-poller
130 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 devfreq_wq
131 root rt 0 0 0 0 S 0.0 0.0 0:00.00 watchdogd
134 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0
135 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ecryptfs-kthrea
138 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kthrotld
139 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 acpi_thermal_pm
140 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
root@ubuntu:~# boinccmd --get_simple_gui_info
======== Projects ========
1) -----------
name: World Community Grid
master URL: http://www.worldcommunitygrid.org/
user_name: 0000000
team_name: 0000000
resource share: 100.000000
user_total_credit: 00000000
user_expavg_credit: 0000000
host_total_credit: 0.000000
host_expavg_credit: 0.000000
nrpc_failures: 0
master_fetch_failures: 0
master fetch pending: no
scheduler RPC pending: no
trickle upload pending: no
attached via Account Manager: no
ended: no
suspended via GUI: no
don't request more work: no
disk usage: 0.000000
last RPC: Tue Sep 1 03:25:03 2020
project files downloaded: 0.000000
GUI URL:
name: Research Overview
description: Learn about the projects hosted at World Community Grid
URL: https://www.worldcommunitygrid.org/research/viewAllProjects.do
GUI URL:
name: News and Updates
description: The latest information about World Community Grid and its research projects
URL: https://www.worldcommunitygrid.org/about_us/displayNews.do
GUI URL:
name: My Contribution
description: Your statistics and settings
URL: https://www.worldcommunitygrid.org/ms/viewMyMemberPage.do
GUI URL:
name: Results Status
description: View the status of your assigned work
URL: https://www.worldcommunitygrid.org/ms/viewBoincResults.do
GUI URL:
name: Device Profiles
description: Update your device settings
URL: https://www.worldcommunitygrid.org/ms/device/viewProfiles.do
GUI URL:
name: Forums
description: Visit the World Community Grid forums
URL: https://www.worldcommunitygrid.org/forumLogin.do
GUI URL:
name: Help
description: Search for help in our help system
URL: https://www.worldcommunitygrid.org/help/viewHelp.do
jobs succeeded: 0
jobs failed: 0
elapsed time: 22.097956
cross-project ID:000000000000000000
======== Tasks ========
1) -----------
name: OPN1_0009423_03042_0
WU name: OPN1_0009423_03042
project URL: http://www.worldcommunitygrid.org/
received: Tue Sep 1 03:25:03 2020
report deadline: Tue Sep 8 03:25:03 2020
ready to report: no
state: downloaded
scheduler state: scheduled
active_task_state: EXECUTING
app version num: 717
resources: 1 CPU
estimated CPU time remaining: 33580.580436
slot: 0
PID: 1936
CPU time at last checkpoint: 11.395600
current CPU time: 12.395440
fraction done: 0.000000
swap size: 112 MB
working set size: 18 MB
2) -----------
name: MCM1_0166221_1576_1
WU name: MCM1_0166221_1576
project URL: http://www.worldcommunitygrid.org/
received: Tue Sep 1 03:25:03 2020
report deadline: Tue Sep 8 03:25:03 2020
ready to report: no
state: downloaded
scheduler state: scheduled
active_task_state: EXECUTING
app version num: 743
resources: 1 CPU
estimated CPU time remaining: 49568.775649
slot: 1
PID: 1938
CPU time at last checkpoint: 0.000000
current CPU time: 8.283871
fraction done: 0.005000
swap size: 119 MB
working set size: 59 MB
root@ubuntu:~#
ここにてメモ