Setup Parity - Wiki Parity Ethereum Documentation

Binaries

There are a few ways of proceeding here. You can build Parity from the sources; you can install Parity from our binary releases for Ubuntu, Mac/Homebrew and Windows or, if you’re on an Ubuntu Snappy platform, just use our Snappy App. Other Unix-like environments should work (assuming you have the latex *nix installed); we’re not going to expend much effort supporting them, though build PRs are welcome.

One-line Binary Installer

This method is way faster than building from the sources, though it only works on Ubuntu and Mac with Homebrew installed. To use the script just run:

$ bash <(curl https://get.parity.io -L)

This will install and configure the Parity client for you. On Ubuntu, this script will also offer to install the Netstats client and connect it to ethstats.net. The script will prompt you for entering the secret key needed for connecting to the Netstats server. You can learn the key by joining the Netstats Skype group.

Experimental Installers

There are also experimental installers for OS X and Windows which will install Parity as a system service. Parity will always run in the background and hibernate when not being used with the bundled wallet. If you’d like to try these out, downloads are available on the Releases page.

Dependencies

For linux systems:

Building from source

To simply build Parity from source follow the instructions in the README.

For Ethereum key management Ethstore can be used. To compile it use

$ cargo build --release -p ethstore --features=ethstore-cli

in the root Parity directory and for usage instructions:

$ ./target/release/deps/ethstore --help

Building using Docker

Docker is great for making sure differences between operating systems, distributions, installations and build environments don’t get in the way of coding fun. For this quick start, we’ll just use docker to set up a minimal Ubuntu installation and take it from there. However, you don’t need Docker - similar instructions can be used to get things working on pretty much any Linux installation or a Mac Homebrew system, just don’t come complaining if it doesn’t work for you on some niche distribution (Arch, I’m looking at you!) or *nix with 6 months of cruft caking it up. Rather, get the docker image working and then figure out what the differences are.

NOTE: Ensure you have docker to begin with.

$ docker run -it ubuntu bash

This will give you a temporary docker environment.

Grab Rust

NOTE: If you already have Rust in your environment, you don’t need to bother with this.

This will download and install Rust on Linux and OS X:

$ curl https://sh.rustup.rs -sSf | sh

If you are using Windows make sure you have Visual Studio 2015 with C++ support installed. Ensure you run all of the next stuff in the VS2015 x64 Native Tools Command Prompt.

NOTE: We do not support the GNU toolset on Windows. Do not install it, and do not install any Rust version that uses it. If you see x86_64-pc-windows-gnu anywhere, you’ve done it wrong!

Download and run rustup and use the following command to setup the MSVC toolchain:

$ rustup default stable-x86_64-pc-windows-msvc

Install and Build Parity

Next, grab the Parity repository:

$ git clone https://github.com/paritytech/parity
$ cd parity

For tests, also update submodules:

$ git submodule init
$ git submodule update

You can build with:

$ cargo build

You can run the unit tests with:

$ ./test.sh

You can run just the consensus tests with:

$ cargo test --release --features ethcore/json-tests -p ethcore

To install Parity on Linux and Mac OS, just build it and copy it to /usr/local/bin:

$ cargo build --release && cp target/release/parity /usr/local/bin

For Windows, use copy it into C:/Windows:

$ cargo build --release
$ copy target/release/parity C:/Windows

You can start a client and sync with the network with:

$ cargo run --release

To get help on the command line options for the parity client, use --help:

$ cargo run --release --help

A note on backing up your datadir with Docker

In case you need to persist the blockchain files, keys etc., you should run the image with the --base-path option and then mount it, e.g.:

$ docker run --name parity -v /srv/parity:/mnt ethcore/parity:beta --base-path /mnt

Ubuntu Snappy on Raspberry Pi

There are Ubuntu Snappy builds for the RasPi, found in Parity Snappy repository.