Skip to content

moneroexamples/compile-monero-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published