Fedora / Debian / Ubuntu
note
Tested on a pristine amd64, armhf:
- Debian 12
- Fedora 41
- Ubuntu
20.0422.0424.04
System dependencies
tip
Refer to the Custom dependencies page if you encounter any issues with the system repository versions or if you want to build a specific library from source!
Debian / Ubuntu
sudo apt install git autoconf automake build-essential libtool\
libboost-all-dev libssl-dev libdb++-dev libminiupnpc-dev
Fedora
sudo dnf install git autoconf automake libtool make\
boost-devel openssl-devel libdb-cxx-devel miniupnpc-devel
Build steps
important
Make sure you have at least 1 GB of memory to compile twister or connect a temporary swap file (see the Administration page) before continue!
- Build twister-core
sudo useradd -m twister- create new user with home directory (set password withsudo passwd twister)su twister- login and navigate (withcd) into the home dir/home/twisterto continuegit clone https://github.com/twisterarmy/twister-core.gitcd twister-core./autotool.sh./configure- ARM only:
./configure --with-boost-libdir=/usr/lib/arm-linux-gnueabihf --disable-sse2
- ARM only:
make
- Setup twister-html (web UI)
mkdir ~/.twisterecho -e "rpcuser=user\nrpcpassword=pwd\nrpcallowip=127.0.0.1" > ~/.twister/twister.conf- use
-rpcallowip=*mask if you want to connect remotely with a dynamic IP address, but make sure you have provided strong credentials along with an SSL certificate (see the Remote Node page for more details)
- use
chmod 600 ~/.twister/twister.confgit clone https://github.com/twisterarmy/twister-html.git ~/.twister/html
- Launch twister
./twisterd- open http://127.0.0.1:28332 or http://[::1]:28332
- enter
userandpwdin the authorization dialog
- enter
- create your account!
Systemd example
Optionally, setup systemd service by pasting following text into the file /etc/systemd/system/twister-core.service
[Unit]
After=network.target
[Service]
Type=simple
User=twister
Group=twister
ExecStart=/home/twister/twister-core/twisterd -printtoconsole
StandardOutput=null
StandardError=file:/home/twister/twister-core-errors.log
Restart=on-failure
[Install]
WantedBy=multi-user.target
note
- The
ExecStartcommand contains the-printtoconsoleoption, which routes the debug output toStandardOutputinstead of thedebug.logfile, then disables it by setting to thenullvalue - The example above requires a previously created
twister.conffile that contains RPC credentials defined in the previous steps. Alternatively, you may forcefully overwrite them by using the custom-rpcuser,-rpcpassword, and-rpcallowiparguments (see./twisterd --helpfor more details) - Support the network by open port
28333and append-port=28333toExecStartif you're running the node as a public peer
Then enable and start the service:
systemctl daemon-reloadsystemctl enable twister-coresystemctl start twister-coresystemctl status twister-core
Upgrade from repository
Steps to upgrade your existing twister-core and twister-html from the repository sources:
- stop running
twisterdprocess to continue (if active, runpgrep twisterdto find)sudo systemctl stop twister-core- if you're usingsystemdservice
cd twister-core- navigatetwister-coresources directory (which contains oldtwisterdbinary)git pull- grab latest updatesmake- build new versioncd ~/.twister/html- navigatetwister-htmlinstallation directorygit pull- grab latesttwister-htmlchanges- start
twister-coreprocesssudo systemctl start twister-core- if you're usingsystemdservice
Generated at: 2025.05