Skip to content

Instantly share code, notes, and snippets.

@0x15f
Last active March 20, 2018 23:30
Show Gist options
  • Save 0x15f/e8fc10e39f57e05a6507bddf3e8c1795 to your computer and use it in GitHub Desktop.
Save 0x15f/e8fc10e39f57e05a6507bddf3e8c1795 to your computer and use it in GitHub Desktop.
sudo apt-get update && sudo apt-get dist-upgrade -y
sudo apt-get install -y screen
sudo apt-get install -y npm
sudo apt-get install -y libpangocairo-1.0
sudo apt-get install -y libx11-xcb1
sudo apt-get install -y libxcomposite-dev
sudo apt-get install -y libxcursor1
sudo apt-get install -y libxdamage1
sudo apt-get install -y libxi6 libgconf-2-4
sudo apt-get install -y libxtst6
apt-get install -y libnss3 libgconf-2-4
sudo apt-get install -y libpangocairo-1.0-0 libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libcups2 libxss1 libxrandr2 libgconf2-4 libasound2 libatk1.0-0 libgtk-3-0
sudo apt-get install -y git
sudo apt-get install -y python3
sudo apt-get install -y pip
sudo apt-get install -y python3-blinkt
pip install psutil
git clone https://github.com/pimoroni/blinkt.git
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo npm i -g coin-hive --unsafe-perm=true --allow-root
wget "https://gist.githubusercontent.com/0x15f/c9ac9bbed8457c9c9a9236a32292c968/raw/257c2ee4d33eaa6ff354cc04493d1b51fe462f20/miner.js"
screen -d -m -S miner bash -c 'node miner.js'
screen -d -m -S blinkt bash -c 'cd blinkt/examples && python cpu_load.py'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment