LampPi

 

Notes


Compile and Install Milkyway@Home

1. Join Milkyway@Home if you do not have an account.

Site: https://milkyway.cs.rpi.edu/

Note: Record your email address, password and weak account key.
Note: If you do not have a team, join "Raspberry Pi".


2. Make a backup of your current microSD chip


3. Update system and install Boinc (in a terminal shell)

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo apt-get install dnsutils whois unzip lsb-release
$ sudo apt-get install chkconfig dos2unix
$ sudo apt-get install git
$ sudo apt-get install cmake
$ sudo apt-get install build-essential
$ sudo apt-get install boinc
$ sudo apt-get clean
$ sudo reboot
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
$ sudo reboot


4. Get and compile the Milkyway project

$ cd /home/pi
$ mkdir /home/pi/projects
$ cd /home/pi/projects
$ mkdir /home/pi/projects/milkyway
$ cd /home/pi/projects/milkyway
$ git clone https://github.com/Milkyway-at-home/milkywayathome_client.git
$ cd milkywayathome_client
$ git submodule init
$ git submodule update --recursive
$ cd /home/pi/projects/milkyway
$ mkdir /home/pi/projects/milkyway/build
$ cd /home/pi/projects/milkyway/build
$ cmake ../milkywayathome_client -DBOINC_RELEASE_NAMES=ON -DSEPARATION=ON -DNBODY_OPENMP=OFF -DSEPARATION_OPENCL=OFF
$ make


5. Create our boinc files

$ cd /home/pi/projects/milkyway/build/bin
$ ls -l
[You will see the output from the compiler.
[In this example we will use the following file name:]
["milkyway_separation_1.36_unknown-system"]
$ cp milkyway_separation_1.36_unknown-system milkyway
[Create and add the following text to the new file]
[note the version number matches our executable]
[remove the space between tags < >]
$ nano app_info.xml
< app_info >
< app >
< name >milkyway< /name >
< /app >
< file_info >
< name >milkyway< /name >
< executable/ >
< /file_info >
< app_version >
< app_name >milkyway< /app_name >
< version_num >136< /version_num >
< file_ref >
< file_name >milkyway< /file_name >
< main_program/ >
< /file_ref >
< /app_version >
< /app_info >


6. Install the executable in boinc

$ cd /var/lib/boinc-client/
$ ls -l
[You should see a "projects" folder. If not, create it.]
[$ sudo mkdir projects]
[$ sudo chown boinc:boinc -R projects]
$ cd projects
$ sudo mkdir milkyway.cs.rpi.edu_milkyway
$ sudo chown boinc:boinc -R milkyway.cs.rpi.edu_milkyway
$ cd milkyway.cs.rpi.edu_milkyway
$ sudo cp /home/pi/projects/milkyway/build/bin/milkyway .
$ sudo cp /home/pi/projects/milkyway/build/bin/app_info.xml .
$ cd /var/lib/boinc-client/
$ sudo chown boinc:boinc -R projects
$ cd /home/pi


7. Attach to the Milkyway project

$ boinccmd --project_attach http://milkyway.cs.rpi.edu/milkyway/ < your_weak_key >


8. Status and Help

$ boinccmd --help
$ boinccmd --get_state
$ more /var/lib/boinc-client/stdoutdae.txt
$ top [press "q" to quite]


9. Results should start showing up in your Milkyway account

Site: https://milkyway.cs.rpi.edu/milkyway/login_form.php?next_url=home.php

===================

1. Uninstall instructions

[The Milkyway@Home group will update the software from time]
[to time. This may cause validation errors in your account.]
[The following will remove the software and you can repeat]
[the steps above to re-install.]
$ boinccmd --project http://milkyway.cs.rpi.edu/milkyway/ detach
$ rm -Rf /home/pi/projects/milkyway
$ sudo rm -Rf /var/lib/boinc-client/projects/milkyway.cs.rpi.edu_milkyway

===================

Credit:
The above information would not have been possible without the help of Jake Weiss. Mr. Weiss is a project scientist with the Milkyway@Home group.


About

Contact

Links

Site Map

© LampPi 2024