Last active
September 14, 2022 15:53
-
-
Save curipha/97ad0b08e792b1471c7cc3c89d7f9997 to your computer and use it in GitHub Desktop.
cloud-config file for BOINC client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
package_update: true | |
package_upgrade: true | |
package_reboot_if_required: false | |
packages: | |
- boinc-client | |
locale: en_US.UTF-8 | |
timezone: Asia/Tokyo | |
#hostname: | |
ssh_deletekeys: true | |
ssh_genkeytypes: [ ed25519 ] | |
disable_root: true | |
ssh_pwauth: no | |
# Add key to ~/.ssh/authorized_keys (~ec2-user or ~ubuntu) | |
ssh_authorized_keys: | |
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO76hu5pYJv1yvwT7kdpyZjmoCeKpB/Mke8FflSXyxJA | |
# Import keys from GitHub (Support only on Debian/Ubuntu) | |
#ssh_import_id: | |
# - gh:curipha | |
disable_ec2_metadata: true | |
runcmd: | |
- sleep 5 | |
- usermod -aG boinc ubuntu | |
- systemctl enable boinc-client.service | |
- systemctl start boinc-client.service | |
- sleep 5 | |
- boinccmd --project_attach "http://www.worldcommunitygrid.org" your_weak_account_key | |
- boinccmd --set_network_mode always | |
- boinccmd --set_run_mode always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment