BOINC on FreeBSD

Questions and Answers : Unix/Linux : BOINC on FreeBSD
Message board moderation

To post messages, you must log in.

AuthorMessage
Jim Richardson

Send message
Joined: 2 Mar 17
Posts: 1
Credit: 0
RAC: 0
Message 1852264 - Posted: 2 Mar 2017, 7:59:51 UTC

I have a new OS installed which is freebsd. Does anyone here successfully run the boinc? I use this command # pkg_add -r -v but I don't know where the tar.gz is for download.
ID: 1852264 · Report as offensive
Profile Ageless
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 14245
Credit: 3,547,238
RAC: 1,801
Netherlands
Message 1852368 - Posted: 2 Mar 2017, 20:25:17 UTC - in response to Message 1852264.  

See how https://people.freebsd.org/~pav/boinc.html and http://boinc.berkeley.edu/wiki/Installing_on_FreeBSD work out for you.
Jord

Ancient Astronaut Theorists suggest that in many ways, you can be considered an alien conspiracy!
ID: 1852368 · Report as offensive
Demis

Send message
Joined: 6 Mar 12
Posts: 3
Credit: 5,263,765
RAC: 4,111
Russia
Message 1856256 - Posted: 18 Mar 2017, 9:08:30 UTC

Seti do not make task for FreeBSD platform...

14-Jan-2017 04:05:47 [SETI@home] update requested by user
14-Jan-2017 04:05:49 [SETI@home] Sending scheduler request: Requested by user.
14-Jan-2017 04:05:49 [SETI@home] Requesting new tasks for CPU
14-Jan-2017 04:05:52 [SETI@home] Scheduler request completed: got 0 new tasks
14-Jan-2017 04:05:52 [SETI@home] This project doesn't support computers of type i386-pc-freebsd
14-Jan-2017 04:09:22 [SETI@home] update requested by user
14-Jan-2017 04:09:27 [SETI@home] Sending scheduler request: Requested by user.
14-Jan-2017 04:09:27 [SETI@home] Requesting new tasks for CPU
14-Jan-2017 04:09:30 [SETI@home] Scheduler request completed: got 0 new tasks
14-Jan-2017 04:09:30 [SETI@home] This project doesn't support computers of type i386-pc-freebsd


Key word: " doesn't support computers of type i386-pc-freebsd"
But if init this on server, this work perfectly.

For example: I question same problem on lhc@home and hi added to sheduler platform i386-pc-freebsd
(Sorry for my English)
18-Mar-2017 09:54:40 [LHC@home] Started download of w10_hllhc10_flat_a4b5_30_w10__42__s__62.31_60.32__22_24__5__52.5_1_sixvf_boinc5
18-Mar-2017 09:54:40 [LHC@home] Started download of w10_hllhc10_flat_a4b5_30_w10__42__s__62.31_60.32__22_24__5__60_1_sixvf_boinc507
18-Mar-2017 09:54:42 [LHC@home] Finished download of w10_hllhc10_flat_a4b5_30_w10__42__s__62.31_60.32__22_24__5__52.5_1_sixvf_boinc
18-Mar-2017 09:54:42 [LHC@home] Started download of w10_hllhc10_flat_a4b5_30_w10__42__s__62.31_60.32__22_24__5__75_1_sixvf_boinc508
18-Mar-2017 09:54:43 [LHC@home] Finished download of w10_hllhc10_flat_a4b5_30_w10__42__s__62.31_60.32__22_24__5__60_1_sixvf_boinc50
18-Mar-2017 09:54:43 [LHC@home] Finished download of w10_hllhc10_flat_a4b5_30_w10__42__s__62.31_60.32__22_24__5__75_1_sixvf_boinc50
18-Mar-2017 09:54:43 [LHC@home] Started download of w10_hllhc10_flat_a4b5_30_w10__42__s__62.31_60.32__22_24__5__82.5_1_sixvf_boinc5
18-Mar-2017 09:54:46 [LHC@home] Finished download of w10_hllhc10_flat_a4b5_30_w10__42__s__62.31_60.32__22_24__5__82.5_1_sixvf_boinc
18-Mar-2017 10:41:13 [LHC@home] Computation for task workspace1_hl10_NLC_investigation_HIGH_off_B4__44__s__62.31_60.32__8_10__5__30
ID: 1856256 · Report as offensive
Demis

Send message
Joined: 6 Mar 12
Posts: 3
Credit: 5,263,765
RAC: 4,111
Russia
Message 1856389 - Posted: 18 Mar 2017, 18:34:35 UTC

How to setup boinc client for work in console mode (CLI) on FreeBSD 10.3 if on a clear system?
For i386 (on amd64 not tested) I setup like this:
in CLI mode
locate boinc
/usr/ports/astro/boinc-astropulse
/usr/ports/astro/boinc-setiathome-v7
/usr/ports/net/boinc-client
/usr/ports/net/boinc_curses

Check linux.ko is loaded
kldstat

Id Refs Address    Size     Name
 1   13 0xc0400000 140bd98  kernel
 2    2 0xc535c000 12000    ipfw.ko
 3    1 0xc4f2c000 4000     ipfw_nat.ko
 4    1 0xc537f000 e000     libalias.ko
 5    1 0xc53d9000 45000    linux.ko

If persist?
Ok
Is No then:
kldload linux.ko

Edit rc.conf :
linux_enable="YES"
boinc_enable="YES"
boinc_client_enable="YES"


Next:
cd /usr/ports/net/boinc-client
make config

Set
                      --------------------------- boinc-client-7.2.33_6 -----------------------------¬
                      ¦ ---------------------------------------------------------------------------¬ ¦
                      ¦ ¦ [x] CLIENT       Build BOINC client                                      ¦ ¦
                      ¦ ¦ [x] LINUX        Accept Linux science applications                       ¦ ¦
                      ¦ ¦ [ ] MANAGER      Build BOINC manager GUI                                 ¦ ¦
                      ¦ ¦ [x] NLS          Native Language Support                                 ¦ ¦
                      ¦ ¦ [ ] SKINS        Install more skins for BOINC manager                    ¦ ¦
                      ¦ ¦ [x] USER         Create/check BOINC client user and directory            ¦ ¦
                      ¦ ¦ [ ] X11          Build graphics API                                      ¦ ¦
                      ¦ ¦---------------------- Command line options in script --------------------¦ ¦
                      ¦ ¦ [ ] NO_GUI_RPC   Disable GUI RPC and socket (breaks boinc_curses)        ¦ ¦
                      ¦ ¦ [x] NO_NET_INFO  Do not send host address and name to servers            ¦ ¦
                      ¦ L--------------------------------------------------------------------------- ¦
                      +------------------------------------------------------------------------------+
                      ¦                       <  OK  >            <Cancel>                           ¦
                      L-------------------------------------------------------------------------------

Read site: http://boinc.berkeley.edu/wiki/Installing_on_FreeBSD
1.    go to /usr/ports/net/boinc-client/, open the Makefile in a text editor
2.    change the CONFIGURE_ARGS=--disable-server as follows:
+        1. on 32 bit FreeBSD change it to
        CONFIGURE_ARGS=--disable-server --with-boinc-platform=i686-pc-freebsd --with-boinc-alt-platform=i686-pc-linux-gnu
        2. on 64 bit FreeBSD change it to
        CONFIGURE_ARGS=--disable-server --with-boinc-platform=x86_64-pc-freebsd --with-boinc-alt-platform=i686-pc-linux-gnu
3.    do make install clean
4.    if you receive an error like "ELF 0 ....", make sure you have installed
        1. /usr/ports/emulators/linux_base-fc4 or higher
+        2. sysctl kern.elf32.fallback_brand=3

WARNING! Make set witch plus "+"
Check for connected Internet.
cd /usr/ports/net/boinc-client
make DISABLE_VULNERABILITIES=yes install

(Why "DISABLE_VULNERABILITIES=yes"? On fresh Freebsd 10.3 perl 5.20 by default and have vulnerabilities. Update later.)
On all queried port press "ok" or "enter" (by default).
After setup see /var/log/messages for added ports:
Mar  6 09:57:07 gw1 pkg-static: m4-1.4.17_1,1 installed
Mar  6 11:32:55 gw1 pkg-static: perl5-5.20.3_8 installed
Mar  6 11:33:07 gw1 pkg-static: p5-Locale-gettext-1.06 installed
Mar  6 11:33:20 gw1 pkg-static: gmake-lite-4.1_1 installed
Mar  6 11:33:23 gw1 pkg-static: help2man-1.43.3_1 installed
Mar  6 11:33:32 gw1 pkg-static: autoconf-wrapper-20131203 installed
Mar  6 11:33:33 gw1 pkg-static: autoconf-2.69 installed
Mar  6 11:33:42 gw1 pkg-static: automake-wrapper-20131203 installed
Mar  6 11:33:42 gw1 pkg-static: automake-1.15_1 installed
Mar  6 11:33:55 gw1 pkg-static: libtool-2.4.6 installed
Mar  6 11:36:14 gw1 pkg-static: ca_root_nss-3.22.2 installed
Mar  6 11:36:19 gw1 pkg-static: curl-7.47.0 installed
Mar  6 12:00:11 gw1 pkg-static: boinc-client-7.2.33_6 installed

On same CPU checkbox
[x] LINUX        Accept Linux science applications

have difficult. Uncheck if problem persist.
After install boinc-client (his create /var/db/boinc)
ls -l /var/db/boinc/
total 0
lrwxr-xr-x  1 boinc  boinc  38 Mar  6 12:00 ca-bundle.crt -> /usr/local/share/certs/ca-root-nss.crt

All next work make in /var/db/boinc
cd /var/db/boinc

(And ALWAYS if work for boinc-client goto this directory)
/usr/local/etc/rc.d/boinc-client start
ls -l /var/db/boinc/
total 88
-rw-r--r--  1 boinc  boinc  54025 Mar  6 12:23 all_projects_list.xml
lrwxr-xr-x  1 boinc  boinc     38 Mar  6 12:00 ca-bundle.crt -> /usr/local/share/certs/ca-root-nss.crt
-rw-r--r--  1 boinc  boinc   2186 Mar  6 12:23 client_state.xml
-rw-r--r--  1 boinc  boinc   2186 Mar  6 12:23 client_state_prev.xml
-rw-r--r--  1 boinc  boinc    155 Mar  6 12:23 coproc_info.xml
-rw-r--r--  1 boinc  boinc    112 Mar  6 12:23 daily_xfer_history.xml
-rw-r--r--  1 boinc  boinc      0 Mar  6 12:23 lockfile
drwxrwx--x  2 boinc  boinc    512 Mar  6 12:23 notices
-rw-r--r--  1 boinc  boinc      0 Mar  6 12:23 stderrdae.txt
-rw-r--r--  1 boinc  boinc      0 Mar  6 12:23 stderrgpudetect.txt
-rw-r--r--  1 boinc  boinc   1730 Mar  6 12:24 stdoutdae.txt
-rw-r--r--  1 boinc  boinc     68 Mar  6 12:23 stdoutgpudetect.txt
-rw-r--r--  1 boinc  boinc     57 Mar  6 12:24 time_stats_log

Next (get account key):
boinccmd --lookup_account https://lhcathome.cern.ch/lhcathome/ YourEmail YourPassword
status: Success
poll status: operation in progress
poll status: operation in progress
account key: c9b14123e347gbft123s7gg8w5f89s5s

(I change c9b14123e347gbft123s7gg8w5f89s5s for public to thic web)
boinccmd --project_attach https://lhcathome.cern.ch/lhcathome/ c9b14123e347gbft123s7gg8w5f89s5s

Check like:
boinccmd --get_project_status

See:
======== Projects ========
1) -----------
   name:
   master URL: https://lhcathome.cern.ch/lhcathome/
   user_name:
   team_name:
   resource share: 100.000000
   user_total_credit: 0.000000
   user_expavg_credit: 0.000000
   host_total_credit: 0.000000
   host_expavg_credit: 0.000000
   nrpc_failures: 0
   master_fetch_failures: 0
   master fetch pending: no
   scheduler RPC pending: yes
   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: 0.000000
   project files downloaded: 0.000000

Check tasks:
boinccmd --get_tasks

No string to out, becose first time connect.
Later, after 1 hour (or other time) check again:
boinccmd --get_project_status

See:
======== Projects ========
1) -----------
   name: LHC@home
   master URL: https://lhcathome.cern.ch/lhcathome/
   user_name: Demis
   team_name: BOINCstats
   resource share: 100.000000
   user_total_credit: 401786.794103
   user_expavg_credit: 400.372667
   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: 1488811061.626560
   project files downloaded: 0.000000
GUI URL:
   name: Message boards
   description: Correspond with other users on the LHC@home message boards
   URL: https://lhcathome.cern.ch/lhcathome/forum_index.php
GUI URL:
   name: Your account
   description: View your account information
   URL: https://lhcathome.cern.ch/lhcathome/home.php
GUI URL:
   name: Your tasks
   description: View the last week or so of computational work
   URL: https://lhcathome.cern.ch/lhcathome/results.php?userid=123456
GUI URL:
   name: FAQ
   description: Frequently Asked Questions on LHC@home
   URL: http://lhcathome.web.cern.ch/faq
GUI URL:
   name: Your team
   description: View information about your team: BOINCstats
   URL: https://lhcathome.cern.ch/lhcathome/team_display.php?teamid=40

Wow!
Wow!
Wow!

Connect to server is work. I see statistic from other my CPU:
   user_total_credit: 401786.794103
   user_expavg_credit: 400.372667

Check tasks:
boinccmd --get_tasks

No more.
See log:
boinccmd --get_messages

127: 14-Jan-2017 22:35:25 (low) [https://lhcathome.cern.ch/lhcathome/] Master file download succeeded
128: 14-Jan-2017 22:35:30 (low) [https://lhcathome.cern.ch/lhcathome/] Sending scheduler request: Project initialization.
129: 14-Jan-2017 22:35:30 (low) [https://lhcathome.cern.ch/lhcathome/] Requesting new tasks for CPU
130: 14-Jan-2017 22:35:34 (low) [LHC@home] Scheduler request completed: got 0 new tasks
131: 14-Jan-2017 22:35:34 (user notification) [LHC@home] Message from server: This project doesn't support computers of type i386-pc-freebsd

Connect work but "This project doesn't support computers of type i386-pc-freebsd".
on http://setiathome.berkeley.edu/beta/forum_thread.php?id=1813
Сообщение 39871 - Отправлено: 28 Aug 2010, 5:34:52 UTC - в ответ на Сообщение 39865.
So that you know, BSD is copyright UC Berkeley. FreeBSD (Open Source) is based on the original BSD source code.
Seti runs Fedora.

I write letter to developer (read address on site https://lhcathome.cern.ch/lhcathome/).
He get time for answer.
After three week I get answer from developer "project modified and is ready to send shedules".
I recheck:
boinccmd --get_messages

And getted "This project doesn't support computers of type i386-pc-freebsd".
Why? Why? Why?
Reattach project:
boinccmd --project https://lhcathome.cern.ch/lhcathome/ detach
boinccmd --project_attach https://lhcathome.cern.ch/lhcathome/ c9b14123e347gbft123s7gg8w5f89s5s

No task ("This project doesn't support computers of type i386-pc-freebsd").
In next step I do it:
/usr/local/etc/rc.d/boinc-client stop
cd /usr/ports/net/boinc-client
make deinstall
make clean
mv /var/db/boinc /var/db/boinc-old
make DISABLE_VULNERABILITIES=yes install
/usr/local/etc/rc.d/boinc-client start
cd /var/db/boinc
boinccmd --lookup_account https://lhcathome.cern.ch/lhcathome/ MyEmail password
boinccmd --project_attach https://lhcathome.cern.ch/lhcathome/ c9b14123e347gbft123s7gg8w5f89s5s
boinccmd --get_project_status
boinccmd --get_tasks

Wow!
18:51:42  LHC@home  update requested by user
18:50:53  Resuming computation
18:50:52  2459 integer MIPS (Dhrystone) per CPU
18:50:52  1414 floating point MIPS (Whetstone) per CPU
18:50:52  Number of CPUs: 2
18:50:52  Benchmark results:
18:50:20  Suspending computation - CPU benchmarks in progress
18:50:19  Running CPU benchmarks
18:48:43  LHC@home  work fetch resumed by user
18:48:30  LHC@home  work fetch resumed by user
18:43:16  LHC@home  Finished download of sixtrack_lin32_4517_gen.linux
18:43:13  LHC@home  Finished download of w7_chrom-6.0-4.0__18__s__64.27_59.295__6_7__5__15_1_sixvf_boinc2136.zip
18:43:12  LHC@home  Started download of w7_chrom-6.0-4.0__18__s__64.27_59.295__6_7__5__15_1_sixvf_boinc2136.zip
18:43:12  LHC@home  Finished download of w7_chrom-6.0-4.0__18__s__64.27_59.295__6_7__5__22.5_1_sixvf_boinc2137.zip
18:43:10  LHC@home  Started download of w7_chrom-6.0-4.0__18__s__64.27_59.295__6_7__5__22.5_1_sixvf_boinc2137.zip
18:43:10  LHC@home  Started download of sixtrack_lin32_4517_gen.linux
18:43:08  LHC@home  Scheduler request completed: got 2 new tasks
18:43:06  LHC@home  Requesting new tasks for CPU
18:43:06  LHC@home  Reporting 2 completed tasks
18:43:06  LHC@home  Sending scheduler request: Requested by user.
18:43:04  LHC@home  update requested by user

Super!

In next how to see in console what calulating?
Variant 1
boinccmd --get_tasks

Variant 2
cd /usr/ports/net/boinc_curses
make install
cd /var/db/boinc
boinc_curses

But this program have bug (visible incorrect task longname).
How to correct this error?
Very simple.
After compilation edit one file:
cd /usr/ports/net/boinc_curses/work/boinc_curses-0.2.2
ee boinc_curses.c

Go to row 616 and see
sprintf(formatter, "%%.%zxs'", targetlen - 1);

edit to
sprintf(formatter, "%%.%zus'", targetlen - 1);

Simle xhange "x" for "u".
Save, exit.
Run in this (/usr/ports/net/boinc_curses/work/boinc_curses-0.2.2) directory:
make

ls -l
-rwxr-xr-x  1 root  wheel  313963 Mar 17 17:10 boinc_curses*

Date and time is changes. It's good.
cp boinc_curses /usr/local/bin/
cd /var/db/boinc
boinc_curses

It's fine.
It all.

Nothing complicated.

Why seti@home not like FreeBSD I do not known...
Sorry.
ID: 1856389 · Report as offensive
Demis

Send message
Joined: 6 Mar 12
Posts: 3
Credit: 5,263,765
RAC: 4,111
Russia
Message 1863424 - Posted: 24 Apr 2017, 7:04:52 UTC - in response to Message 1852264.  

Now I confirm SETI@home is working correct.
Get and calculate task on FreeBSD 10.3 i386 .
Just replace
https://lhcathome.cern.ch/lhcathome/
to
http://setiathome.berkeley.edu/
on this instruction.
Thank you All!
ID: 1863424 · Report as offensive

Questions and Answers : Unix/Linux : BOINC on FreeBSD


 
©2017 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.