Last active
June 3, 2021 18:28
-
-
Save mohit242/70f8f6c5750162a8f5862ee980cedc7a to your computer and use it in GitHub Desktop.
Plotter setup script
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
cd | |
sudo swupd bundle-add storage-utils | |
sudo swupd bundle-add lm-sensors | |
sudo swupd bundle-add vim | |
sudo mkfs.ext4 -m 0 -T largefile4 -L staging $1 | |
sudo mdadm -C /dev/md0 /dev/nvme[0-1]n1 -n 2 -l 0 -c 64 | |
sudo mkfs.xfs /dev/md0 | |
sudo mkdir /mnt/temp | |
sudo mkdir /mnt/staging | |
sudo mkdir /mnt/destination | |
mkdir ~/logs | |
sudo mount -t xfs -o discard /dev/md0 /mnt/temp | |
sudo mount $1 /mnt/staging | |
sudo swupd bundle-add git | |
git clone https://github.com/Chia-Network/chia-blockchain.git | |
cd chia-blockchain | |
sh install.sh | |
echo ". ~/chia-blockchain/activate" >> ~/.bashrc | |
source ~/.bashrc | |
mkdir logs | |
sudo chmod 777 /mnt/temp | |
sudo chmod 777 /mnt/destination | |
sudo chmod 777 /mnt/staging | |
sudo chmod 777 ~/logs | |
pip install --force-reinstall git+https://github.com/ericaltendorf/plotman@main | |
chia init | |
mkdir -p ~/.config/plotman | |
curl https://gist.githubusercontent.com/mohit242/45eed12116bb1e31429420facba92ae3/raw > ~/.config/plotman/plotman.yaml | |
curl https://gist.githubusercontent.com/mohit242/4e05f39710e9803d1e659b7381445fed/raw > ~/copy-script.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment