Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
User data для конфигурации инстансов при первом запуске
#!/bin/bash
apt-get update
apt-get install -y libjansson4 libjansson-dev libcurl4-gnutls-dev automake autoconf git-core screen make
su ubuntu
cd /home/ubuntu
git clone https://github.com/Neisklar/quarkcoin-cpuminer
cd quarkcoin-cpuminer
./autogen.sh
./configure CFLAGS="-O3"
make
wget your_config_URL
./minerd --config=config.json &
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment