Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

129 lines (86 sloc) 5.72 KB

Community Tester Install Guide for Factom Federation (M2)

This will walk you through setting up the experimental distributed version of Factom.

Prepare Operating System

The most testing to date has been done under Linux. To get the best testing experience, it should be done on Linux. That will also help us recreate the bugs you experience better. If you are running Windows, please install a virtual machine to run Factom. Installing on Windows has been known to work, but is not covered here.

Here are some good directions to get a virtual machine installed with Linux.

The following are assuming you are using the 64 bit version of Ubuntu, or one of its descendant projects like xubuntu or mint.

Install the go language and dependencies, then setup GOPATH

Install Package Managers

In a terminal window, install Git

On Linux:

sudo apt-get install git

On Mac: Steps 1 and 3 should be enough in this tutorial:

Install Golang

Download latest version of go This example uses 64 bit Linux and 1.10.3 is the latest tested version.

sudo tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz

On Mac, installing go this way should work:

Setup Paths

Put the go binary directory in you path. Also add the GOPATH to your profile. Open the file ~/.profile and add these lines to the bottom. If they are not exact, then your Linux may not be bootable.

export PATH=$PATH:/usr/local/go/bin

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

logout and login. This is the most straightforward way to run/test these changes. Run go version from a terminal to verify the install.

Install Factom

Currently, the blog post here has some screenshots of what to expect Factom Federation (M2) to look like.

These steps will get factom installed onto a linux machine. The steps should be similar for mac.

# install glide, the package dependency manager
go get -u
# download the code
git clone $GOPATH/src/
git clone $GOPATH/src/
git clone $GOPATH/src/
git clone $GOPATH/src/

# To use the unstable development branch, uncomment these lines
# This is primarily for developers who are updating factom itself
# Leave alone to get the tested, released version.
cd $GOPATH/src/
# git checkout develop
cd $GOPATH/src/
# git checkout develop
cd $GOPATH/src/
# git checkout develop
cd $GOPATH/src/
# git checkout develop

# get the dependencies and build each factom program
glide cc
cd $GOPATH/src/
glide install
go install -ldflags "-X`git rev-parse HEAD` -X`cat VERSION`" -v
cd $GOPATH/src/
glide install
go install -ldflags "-X main.FactomcliVersion=`cat VERSION`" -v
cd $GOPATH/src/
glide install
go install -ldflags "-X`cat ./vendor/`" -v
cd $GOPATH/src/
glide install
go install -v
cd $GOPATH/src/

# done.  factomd should be installed
# you can optionally use a config file to run in a non-standard mode
# mkdir -p ~/.factom/m2/
# cp $GOPATH/src/ ~/.factom/m2/

Starting Factom

Note: currently factomd uses a lot of drive accesses when running. It is reccomended to hold the blockchain on a solid state drive. Running factomd on a spinning hard drive will be arduously slow. Factomd currently scans the entire blockchain the first time it is started after if downloads the blockchain, bootup takes a while the first two times, but it is faster after is downloads and is restarted once. You can watch the progress on the Control Panel.

Factom Wallets

Most users will want to run either the API wallet factom-walletd or the GUI wallet enterprise-wallet. Directions for those are located here:

Although the factomd API is backwards compatible, the API extended by the old API wallet, fctwallet, is not supported by factom-walletd. The entire wallet from M1 can be imported into factom-walletd using the -i flag and an empty ~/.factom/wallet directory.

Some users will want to use the old fctwallet with the new factomd. Follow the directions here to compile the old programs.

Testing Factom

You can run a local version of factomd to get greater flexibility by running it like this:

factomd -network=LOCAL

This will make a new blockchain without worrying about other's data interfering with your testing. You can use the key factom-cli importaddress Fs1KWJrpLdfucvmYwN2nWrwepLn8ercpMbzXshd1g8zyhKXLVLWj to get local Factoids after starting factom-walletd.

For issues with the software, please post here.

You can’t perform that action at this time.