Skip to content

Instantly share code, notes, and snippets.

@curipha
Last active September 14, 2022 15:53
Show Gist options
  • Save curipha/97ad0b08e792b1471c7cc3c89d7f9997 to your computer and use it in GitHub Desktop.
Save curipha/97ad0b08e792b1471c7cc3c89d7f9997 to your computer and use it in GitHub Desktop.
cloud-config file for BOINC client
#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