Skip to content

How to Install VEE Testnet Node

zhangdong0620 edited this page Sep 21, 2018 · 1 revision

This page is for testnet. To install mainnet node, please go to How to install VEE mainnet Node

Install JRE 1.8

Ubuntu users can use the following commands to install JRE.

sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer

Now you can check your JRE installation. Run start console and execute command

java -version

If you see

Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

then it is good, you can move to the next step!

But if you get an error, then check your installation and try to find some better tutorials in google.

Note. It's necessary to install Oracle JRE 8 with 64-bit version.

Installation from deb package

There are two types of deb packages of vee nodes: with upstart loader and system loader.

Installation from an Upstart deb package

You should use the deb with Upstart if you have an operating system Ubuntu < 15.04.

Just download or build latest vee deb and install it with

sudo dpkg -i vee*.deb

Now it's time to check your vee config!

Upstart users can start the node with

sudo service vee-testnet start 

and enable autoload on start with

sudo update-rc.d vee-testnet defaults

You can find vee app logs in /var/log/upstart/ folder like that

tail -f /var/log/upstart/vee-testnet.log

Default vee directory (for wallet, blockchain and other node files) is /var/lib/vee-testnet/.vee/. If you want to change vee directory, you should change directory in /etc/vee-testnet/vee.conf.

sudo vi /etc/vee-testnet/vee.conf
vee {
  directory = <set to your path>
  logging-level = DEBUG
  ...

Installation from Systemd deb package

You should use the deb with Systemd if you have an operating system Ubuntu >= 15.04 or latest Debian releases.

Just download latest vee deb and install it with

sudo dpkg -i vee*.deb

Now it's time to check your vee config! It's embedded into the deb package and unpacked to /usr/share/vee-testnet/conf/vee.conf and symlinked to /etc/vee-testnet/vee.conf. Please read this and edit vee config with caution.

Systemd users can start the node with

sudo systemctl start vee-testnet.service 

and enable autoload on start with

sudo systemctl enable vee-testnet.service

Systemd users can find vee app logs in journald storage like that

journalctl -u vee.service -f

You can read about journald tips here.

Default vee directory (for wallet, blockchain and other node files) is /var/lib/vee-testnet/.vee/. If you want to change vee directory, you should change directory in /etc/vee-testnet/vee.conf

sudo vi /etc/vee-testnet/vee.conf
vee {
  directory = <set to your path>
  logging-level = DEBUG
  ...

Installation for advanced users

Download or build latest version of vee.jar and required configuration file for testnet to any folder, for example /opt/vee.

Check out the configuration file, it is very important!!! On this depends the safety of your wallet and money.

Just open it via your favorite text editor, read the documentation of the configuration file.

Then start console, navigate to the folder with the jar file with the command

cd /opt/vee

and start vee node with command

java -jar vee.jar vee-config.conf

Now you can write a script to run every node, which you like and use it! I hope it's worth it!