Giter VIP home page Giter VIP logo

compile-monero-ubuntu's Introduction

Compile Monero on Ubuntu 14.04 x86_64

The example shows how to compile current github version of Monero, as of 31 Oct 2015, on Ubuntu 14.04 x86_64.

Preparation

Before proceeding to the compilation, the following packages are required:

# refresh ubuntu's repository
sudo apt-get update

#install git
sudo apt-get install git

# install dependencies
sudo apt-get install build-essential cmake libboost1.55-all-dev miniupnpc libunbound-dev graphviz doxygen libdb5.1++-dev

Compilation

Having the dependencies, we can download the current Monero version and compile it as follows:

# download the latest bitmonero source code from github
git clone https://github.com/monero-project/bitmonero.git

# go into bitmonero folder
cd bitmonero/

# compile
make # or make -j number_of_threads, e.g., make -j 2

Installation (optional)

After successful compilation, the Monero binaries should be located in ./bin

I usually move the binaries into /opt/bitmonero/ folder. This can be done as follows:

# optional
sudo mkdir /opt/bitmonero
sudo mv ./build/release/bin/* /opt/bitmonero/

Now we can start the Monero daemon and let it download the blockchain and synchronize itself with the Monero network. After that, you can run your the simplewallet.

# launch the Monero daemon and let it synchronize with the Monero network
/opt/bitmonero/bitmonerod

# launch the Monero wallet
/opt/bitmonero/simplewallet

Command hisotry and tab completion (optional)

Both simplewallet and bitmonerod are command line programs, and they do not support command history and tab completion. This can be annoying for linux users, who are usually accustomed to these features in a command line.

This problem can be overcome using rlwrap. The rlwrap requires a file with a list of commands to be used in tab completion. The files can be downloaded here:

# install rlwrap
sudo apt-get install rlwrap

# download the commands files, for example, to your home folder
cd ~
wget https://raw.githubusercontent.com/moneroexamples/compile-monero-ubuntu/master/monerocommands_bitmonerod.txt

wget https://raw.githubusercontent.com/moneroexamples/compile-monero-ubuntu/master/monerocommands_simplewallet.txt

# having the file for the daemon, it can be run as follows:
rlwrap -f monerocommands_bitmonerod.txt /opt/bitmonero/bitmonerod

# having the file for the wallet, it can be run as follows:
rlwrap -f /path/to/monerocommands_simplewallet.txt /opt/bitmonero/simplewallet

Probaly easier to make aliases into your ~/.bashrc, for example:

# add this to the end of your ~/.bashrc
alias moneronode="rlwrap -f monerocommands_bitmonerod.txt /opt/bitmonero/bitmonerod"
alias monerowallet="rlwrap -f monerocommands_simplewallet.txt /opt/bitmonero/simplewallet"

How can you help?

Constructive criticism, code and website edits are always good. They can be made through github.

Some Monero are also welcome:

48daf1rG3hE1Txapcsxh6WXNe9MLNKtu7W7tKTivtSoVLHErYzvdcpea2nSTgGkz66RFP4GKVAsTV14v6G3oddBTHfxP6tU

compile-monero-ubuntu's People

Contributors

moneroexamples avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

casebell

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.