diff --git a/content/tutorial-build-run-rippled-ubuntu.md b/content/tutorial-build-run-rippled-ubuntu.md index dc79ee71fe..c18f371336 100644 --- a/content/tutorial-build-run-rippled-ubuntu.md +++ b/content/tutorial-build-run-rippled-ubuntu.md @@ -1,14 +1,15 @@ -#Build and Run `rippled` on Ubuntu 15.04 and Later +# Build and Run `rippled` on Ubuntu `rippled` is the core peer-to-peer server that manages the XRP Ledger. A `rippled` server can connect to a network of peers, relay cryptographically signed transactions, and maintain a local copy of the complete shared global ledger. For an overview of `rippled`, see [Operating rippled Servers](tutorial-rippled-setup.html) -Use these instructions to build a `rippled` binary file and run it as a stock `rippled` server on Ubuntu. These instructions use Ubuntu's APT (Advanced Packaging Tool) to install software prerequisites. These instructions were tested on Ubuntu 16.04 LTS. +Use these instructions to build a `rippled` binary file and run it as a stock `rippled` server on Ubuntu 15.04 or later. These instructions were tested on Ubuntu 16.04 LTS. For information about building `rippled` for other platforms, see [Builds](https://github.com/ripple/rippled/tree/develop/Builds) in the `rippled` GitHub repository. -##System Requirements + +## System Requirements Ripple recommends meeting the following **minimum** system requirements for building and running `rippled`. @@ -18,118 +19,107 @@ Ripple recommends meeting the following **minimum** system requirements for buil **_To run rippled:_** +* RAM: 4GB * CPU: 64-bit x86_64, 2+ cores * Disk: 50GB SSD with 500 IOPS for the database partition -* RAM: 4GB * Network: A fast network connection is preferable. -If you are running `rippled` in an Amazon EC2 instance, Ripple recommends selecting a **Type** of **_m3.large_**. Keep in mind that if you choose to run a validating `rippled` server, you may need more resources. Naturally, your server's workload determines the resources it requires. +If you are running `rippled` in an Amazon EC2 instance, Ripple recommends selecting a **Type** of **_m3.large_**. If you choose to run a validating `rippled` server, you may need more resources. -##Build and Run `rippled` -
Update list of packages that can be installed or upgraded.
-+## 1. Build `rippled` + +These instructions use Ubuntu's APT (Advanced Packaging Tool) to install software prerequisites that you'll need to build `rippled`. + +1. Update the list of packages that can be installed or upgraded. +``` sudo apt-get update --
Retrieve and upgrade currently installed packages.
-+``` +2. Retrieve and upgrade currently installed packages. +``` sudo apt-get -y upgrade --
Install git.
-+``` +3. Install git. +``` sudo apt-get -y install git --
Install SCons.
-+``` +4. Install SCons. +``` sudo apt-get -y install scons --
Install Ctags.
-+``` +5. Install Ctags. +``` sudo apt-get -y install ctags --
Install pkg-config.
+``` +6. Install `pkg-config`. +``` sudo apt-get -y install pkg-config --
Install Protocol Buffers.
-+``` +7. Install Protocol Buffers. +``` sudo apt-get -y install protobuf-compiler sudo apt-get -y install libprotobuf-dev --
-Install SSL.
-+``` +8. Install SSL. +``` sudo apt-get -y install libssl-dev --
Install python-software properties. Provides the add-apt-repository binary that you'll need to install Boost.
+``` +9. Install `python-software-properties`. +``` sudo apt-get install -y python-software-properties --
Install Boost.
-+``` +10. Install Boost. +``` sudo add-apt-repository -y ppa:boost-latest/ppa sudo apt-get -y update sudo apt-get install -y libboost-all-dev --
Get rippled source code.
+``` +11. Get `rippled` source code. +``` git clone https://github.com/ripple/rippled.git cd rippled git checkout master --
Build rippled binary executable from source code. This may take about 30 minutes.
+``` +12. Build `rippled` binary executable from source code. This may take about 30 minutes. + + SCons saves the built executable in `rippled/build`. + +``` scons --
Configure rippled.cfg.
rippled.cfg is the configuration file for rippled.
You can find an example configuration file (rippled-example.cfg) in rippled/doc. See the file for a description of all configuration options. You should be able to connect to the XRP Ledger using the default configuration defined in the example file.
Put rippled.cfg in etc/opt/ripple/.
Configure validators.txt.
When you start rippled for the first time, it uses an initial list of validators defined in validators.txt to retrieve validation information and form its UNL (unique node list). validators.txt also enables rippled clients to indirectly locate IPs they can use to contact the Ripple network.
You can find an example validators file (validators-example.txt) in rippled/doc. See the file for a description of all validator options. You should be able to connect to the XRP Ledger using the default validators defined in the example file.
Put validators.txt in etc/opt/ripple/.
Run rippled.
+``` + + +## 2. Configure `rippled` + +1. Configure `rippled.cfg`. + + `rippled.cfg` is the configuration file for `rippled`. + + You can find an example configuration file (`rippled-example.cfg`) in `rippled/doc`. See the file for a description of all configuration options. You should be able to connect to the XRP Ledger using the default configuration defined in the example file. + + Put `rippled.cfg` in `etc/opt/ripple/`. + +2. Configure `validators.txt`. + + When you start `rippled` for the first time, it uses an initial list of validators defined in `validators.txt` to retrieve validation information and form its UNL (unique node list). `validators.txt` also enables `rippled` clients to indirectly locate IPs they can use to contact the Ripple network. + + You can find an example validators file (`validators-example.txt`) in `rippled/doc`. See the file for a description of all validator options. You should be able to connect to the XRP Ledger using the default validators defined in the example file. + + Put `validators.txt` in `etc/opt/ripple/`. + + +## 3. Run `rippled` + +To run your stock `rippled` server from the executable you built, using the configurations you defined: +``` cd build sudo ./rippled --
You are now running a stock rippled server.