|
| 1 | +## Installation |
| 2 | + |
| 3 | +To install the chia-blockchain node, follow the instructions according to your operating system. |
| 4 | +After installing, follow the remaining instructions in [README.md](README.md) to run the software. |
| 5 | + |
| 6 | +### MacOS |
| 7 | +Make sure [brew](https://brew.sh/) is available before starting the setup. |
| 8 | +```bash |
| 9 | +brew upgrade python |
| 10 | +brew install npm gmp |
| 11 | + |
| 12 | +git clone https://github.com/Chia-Network/chia-blockchain.git |
| 13 | +cd chia-blockchain |
| 14 | + |
| 15 | +sh install.sh |
| 16 | +. ./activate |
| 17 | +``` |
| 18 | + |
| 19 | +### Debian/Ubuntu |
| 20 | + |
| 21 | +On Ubuntu 18.04, you need python 3.7. It's not available in the default |
| 22 | +repository, so you need to add an alternate source. You can skip this step |
| 23 | +if you install in Ubuntu 19.x or higher. |
| 24 | + |
| 25 | +```bash |
| 26 | +# for add-apt-repository |
| 27 | +sudo apt install software-properties-common -y |
| 28 | +sudo add-apt-repository ppa:deadsnakes/ppa -y |
| 29 | +``` |
| 30 | + |
| 31 | +Install dependencies for Ubuntu 18.04 from above or Ubuntu 19.x or higher. |
| 32 | +```bash |
| 33 | +sudo apt-get update |
| 34 | +sudo apt-get install python3.7-venv python3.7-dev python3-pip git -y |
| 35 | + |
| 36 | +git clone https://github.com/Chia-Network/chia-blockchain.git |
| 37 | +cd chia-blockchain |
| 38 | + |
| 39 | +sh install.sh |
| 40 | + |
| 41 | +. ./activate |
| 42 | +``` |
| 43 | + |
| 44 | +### Windows (WSL) |
| 45 | +#### Install WSL2 + Ubuntu 18.04 LTS |
| 46 | + |
| 47 | +From an Administrator PowerShell |
| 48 | +`dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart` |
| 49 | +and then |
| 50 | +`dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart`. |
| 51 | +This usually requires a reboot. Once that is complete, install Ubuntu 18.04 LTS from the Microsoft Store and run it. Then follow the steps below. |
| 52 | +```bash |
| 53 | +# add-apt-repository |
| 54 | +sudo add-apt-repository ppa:deadsnakes/ppa -y |
| 55 | + |
| 56 | +sudo apt-get -y update |
| 57 | +sudo apt-get -y upgrade |
| 58 | + |
| 59 | +sudo apt-get install python3.7-venv python3.7-dev python3-pip git -y |
| 60 | + |
| 61 | +git clone https://github.com/Chia-Network/chia-blockchain.git |
| 62 | +cd chia-blockchain |
| 63 | + |
| 64 | +sh install.sh |
| 65 | +. ./activate |
| 66 | +``` |
| 67 | +You will need to download the Windows native Wallet and unzip into somewhere convenient in Windows. |
| 68 | + |
| 69 | +[main.js-win32-x64.zip](https://hosted.chia.net/beta-1.0-win64-wallet/main.js-win32-x64.zip) |
| 70 | + |
| 71 | +Instead of `chia-start-wallet-ui &` as explained in the [README.md](README.md) you run `chia-start-wallet-server &` in Ubuntu/WSL 2 to allow the Wallet to connect to the Full Node running in Ubuntu/WSL 2. Once you've enabled `chia-start-wallet-server &` you can run `chia.exe` from the unzipped `chia-win32-x64` directory. |
| 72 | + |
| 73 | +### Amazon Linux 2 |
| 74 | + |
| 75 | +```bash |
| 76 | +sudo yum update |
| 77 | +sudo yum install python3 python3-devel git |
| 78 | + |
| 79 | +# Install npm and node |
| 80 | +curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash - |
| 81 | +sudo yum install nodejs |
| 82 | + |
| 83 | +# uPnP and setproctitle require compiling |
| 84 | +sudo yum install gcc |
| 85 | + |
| 86 | +git clone https://github.com/Chia-Network/chia-blockchain.git |
| 87 | +cd chia-blockchain |
| 88 | + |
| 89 | +sh install.sh |
| 90 | + |
| 91 | +. ./activate |
| 92 | +``` |
| 93 | + |
| 94 | +### CentOS 7.7 or newer |
| 95 | + |
| 96 | +```bash |
| 97 | +sudo yum update |
| 98 | +sudo yum install gcc openssl-devel bzip2-devel libffi libffi-devel |
| 99 | +sudo yum install libsqlite3x-devel |
| 100 | + |
| 101 | +# Install python 3.7 |
| 102 | +wget https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tgz |
| 103 | +tar -zxvf Python-3.7.7.tgz ; cd Python-3.7.7 |
| 104 | +./configure --enable-optimizations; sudo make install; cd .. |
| 105 | + |
| 106 | +# Install npm and node |
| 107 | +curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash - |
| 108 | +sudo yum install nodejs |
| 109 | + |
| 110 | +git clone https://github.com/Chia-Network/chia-blockchain.git |
| 111 | +cd chia-blockchain |
| 112 | + |
| 113 | +sh install.sh |
| 114 | +. ./activate |
| 115 | +``` |
0 commit comments