Port 5161 is required to be open for running a full Semux node.
Install JRE 8
sudo apt-get install openjdk-8-jre
Download & extract Semux pre-compiled binaries of the latest release
wget https://github.com/semuxproject/semux-core/releases/download/v1.2.0/semux-linux-1.2.0-73852f9.tar.gz
tar -zxvf semux-linux-1.2.0-73852f9.tar.gz
Install OpenJDK 8 & Maven
sudo apt-get install openjdk-8-jdk maven
Clone source code
git clone https://github.com/semuxproject/semux-core.git
Compile
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
The compiled binaries should be available at dist/linux
once the compilation has completed.
A wallet.data
file that stores a new private key should be automatically created in your installation directory during
the startup of a fresh install of Semux wallet. This file is encrypted by a password specified in a CLI/GUI prompt during
the first time of wallet startup.
$ ./semux-cli.sh
Please enter the new password:
Please re-enter the new password:
21:06:11.440 INFO SemuxCli A new account has been created for you: address = 426ae10caffcc5cbe623866cff1ec00c9501654c
The standard wallet.data file of Semux is always encrypted even if you entered an empty password during wallet creation. Therefore a wallet password is required to be provided for automatic unlock when you setup a full node.
The following ways are available for automatic wallet unlock which will be applied in sequence:
- Set
--password
CLI option as your wallet password when startingsemux-cli.sh
executable. This is considered as an insecured way as the way will expose your wallet password to all users through process monitor. - Set
SEMUX_WALLET_PASSWORD
environment variable as your wallet password.
A systemd service unit can be created at /etc/systemd/system/semux.service
using this template file:
semux.service.
sudo cp semux.service /etc/systemd/system/semux.service
sudo systemctl daemon-reload
sudo systemctl enable semux.service
sudo systemctl start semux.service