This guide will walk you through the necessary steps to set up a FuerteCoin smart node on a server with Linux Ubuntu 20. Please follow these steps carefully.
Step 1: Update the Server
sudo apt update && sudo apt upgrade -y
Step 2: Add 2GB of SWAP (if necessary)
First, check if you already have active swap:
free -h
If the result shows “Swap: 0B 0B 0B,” then you need to create and activate SWAP:
sudo dd if=/dev/zero of=/swapfile bs=1k count=2048k
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo echo "/swapfile swap swap auto 0 0" | tee -a /etc/fstab
sudo sysctl -w vm.swappiness=10
sudo echo vm.swappiness=10 | sudo tee -a /etc/sysctl.conf
Make sure the last line shows “swappiness = 10.”
Step 3: Enable the Firewall and Open Ports
sudo apt install ufw -y
ufw default deny incoming
ufw default allow outgoing
ufw allow ssh
ufw allow 2023/tcp
ufw enable
Step 4: Install Fail2Ban
sudo apt install fail2ban -y
Create and edit the Fail2Ban configuration file:
sudo nano /etc/fail2ban/jail.local
Then, copy and paste the following configuration into the file:
[sshd]
enabled = true
port = 22
filter = sshd
logpath = /var/log/auth.log
maxretry = 3
Restart Fail2Ban:
sudo systemctl restart fail2ban
Restart the server:
sudo reboot
Step 5: Install the FuerteCoin Daemon
Download the latest precompiled files:
wget https://github.com/GitFuec/fuertecoin/releases/download/v1.1.2.0/fuertecoin_PRE_1.1.2.0_ubuntu-20.tar.gz
Unpack the package:
tar -xvf fuertecoin_PRE_1.1.2.0_ubuntu-20.tar.gz
cd fuertecoin_PRE_1.1.2.0_ubuntu-20
Move the files:
sudo strip fuertecoind fuertecoin-cli fuertecoin-tx
sudo cp -r fuertecoind fuertecoin-cli fuertecoin-tx /usr/bin/
chmod +x /usr/bin/fuertecoind
chmod +x /usr/bin/fuertecoin-cli
chmod +x /usr/bin/fuertecoin-tx
Create a directory and the initial configuration file for FuerteCoin:
mkdir -p /home/.FuerteCoinSmartnode echo ' daemon=1 server=1 listen=1 txindex=1 maxconnections=24 rpcthreads=64 rpcuser=fuertecoin rpcpassword=4972mNqe7lxk12 rpcallowip=127.0.0.1 rpcport=13077 addnode=144.91.107.170 ' | sudo -E tee /home/.FuerteCoinSmartnode/fuertecoin.conf >/dev/null 2>&1
Start FuerteCoin:
fuertecoind -datadir=/home/.FuerteCoinSmartnode -daemon
Encrypt the wallet:
fuertecoin-cli -datadir=/home/.FuerteCoinSmartnode encryptwallet YourSecurePassword
Generate two addresses, one for collateral and one for paying the fee:
# Generate collateral and fee addresses
Collateral Address:
fuertecoin-cli -datadir=/home/.FuerteCoinSmartnode getnewaddress# Example: FSdZr8gZv65WRGXVosy8k2Ke9n4oAziYGt
Fee Address:
fuertecoin-cli -datadir=/home/.FuerteCoinSmartnode getnewaddress
# Example: FQZ2n8MgXbqjvgbNjqn47jPe3hkS4v1URi
Step 6: Collateral Address
Open your local wallet and create a new receiving address. Send 900,000 FUEC to the new receiving address and wait for the transaction to confirm.
Send 2 FUEC to the fee address FQZ2n8MgXbqjvgbNjqn47jPe3hkS4v1URi
You can use the `fuertecoin-cli -datadir=/home/.FuerteCoinSmartnode
listaddressbalances` command to check the balances.
Step 7: Create the protx command for the control wallet
Enter the `protx` command in the debug console of your local wallet. This will create a .conf file for that node in the same directory where you run the wallet.
protx quick_setup "Transaction ID" "Collateral Index" "Smartnode Server IP:2023" "Fee Address"
Decrypt the wallet:
fuertecoin-cli -datadir=/home/.FuerteCoinSmartnode -fuertecoin.conf walletpassphrase YourSecurePassword 600
Replace the values with the corresponding data.
Generate configuration:
fuertecoin-cli -datadir=/home/.FuerteCoinSmartnode protx quick_setup e327465113cbfff5ef693f61bba20ea6486b5f6da0133138c15acdbf6b86cdbd 1 136.190.123.91:2023 FQZ2n8MgXbqjvgbNjqn47jPe3hkS4v1URi
Save the JSON file in a safe place.
Step 8: Configure the Smart Node
The configuration file is generated at:
/home/.FuerteCoinSmartnode/FSdZr8gZv65WRGXVosy8k2Ke9n4oAziYGtn_fuertecoin.conf
Stop the daemon:
fuertecoin-cli -datadir=/home/.FuerteCoinSmartnode stop
Copy the configuration data:
cp /home/.FuerteCoinSmartnode/FSdZr8gZv65WRGXVosy8k2Ke9n4oAziYGt_fuertecoin.conf fuertecoin.conf
Start the daemon:
fuertecoind -datadir=/home/.FuerteCoinSmartnode -daemon
Create a task:
(crontab -l 2>/dev/null; echo "@reboot sleep 60 && fuertecoind -datadir=/home/.FuerteCoinSmartnode -fuertecoin.conf -daemon") | crontab -
Wait a few minutes and check the status of the smart node:
fuertecoin-cli -datadir=/home/.FuerteCoinSmartnode smartnode status
Congratulations! You have successfully configured a FuerteCoin smart node on your Ubuntu 20 server. Be sure to save all configuration files and keys securely.