Instructions for Raptoreum, Bitoreum, Yerbas, Neoxa and other compatible smartnode setup on Oracle vps with bonus HestiaCp

Oracle VPS

Register to oracle vps get those free vps, London server is full try other continent, you can also unlock premium by paying ~100 bucks and it will get insta returned and just use free resources for best freemium experience, but looks like oracle lowered hdd disk size – its no more 200gb free like they promised. Step by step instruction table. I will give several youtubers links how to setup Oracle vps. Use sfotware putty to open ssh or use cmd or downlaod terminal from microsoft store. You follow this table from up to down, step by step. Some commands you need to skip like userdel as you will just delete what you have created and you will need to repeat some steps.

#COMMANDS#COMMENTS
 Name: inst_##Instance name
Image: canonical ubuntu 20.04Best for several smartnodes in 1 vps
Shape: ampere vm.standard.A1.Flex (always free)
Public key + Private key: downloadDownload for puttygen
Use only private key
Boot volume (default 46.6 GB)46.6*4 = 186.4 GB total (and still it might not be fully free)
generate ppk fileUse software Puttygen and get that ppk file
ubuntu@ipDefault login trough ssh

Update Ubuntu

sudo su –root (you need root privilages)
sudo bashroot
sudo apt update && sudo apt dist-upgrade -yupgrade

Hestia CP

Ideaspot blogYouTuber ideaspot, more detailed instructions
sudo su –
sudo su
root //what is this -?
alternatyve root.
wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.shInstall hestia script
bash hst-install.sh –interactive no —email YourEmail@gmail.compassword password(case sensitive) -hostname hcp.example.com (your domain name) -f
change emaila
username: admin
change domain (activate from namecheap or other registrar)
sudo rebootrestart
Namecheap: “A record” “hcp” “server-ip”find namecheap domain name setting and just add – a record hcp subdomain and oracle server ip
Website check: hcp.yourdomain.com:8083

4GB SWAP

(If you run out of ram, you need swap or system will crash, win equivalent = system memory it will use hard disk to store ram)

sudo surun on root
swapoff -adisable swap file
sudo dd if=/dev/zero of=/swapfile bs=1M count=4000 status=progressmake it size almost 4 gb
sudo echo “/swapfile swap swap auto 0 0” | tee -a /etc/fstabmake swappiness
sudo sysctl -w vm.swappiness=10make ubuntu only use swap if really needed
sudo echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf

Oracle instance inside ubuntu

sudo nano /etc/iptables/rules.v4
-A INPUT -p tcp -m state –state NEW -m tcp –dport 22 -j ACCEPT
-A INPUT -p tcp -m state –state NEW -m tcp –dport 8083 -j ACCEPT
-A INPUT -p tcp -m state –state NEW -m tcp –dport 10226 -j ACCEPT
-A INPUT -p tcp -m state –state NEW -m tcp –dport 15168 -j ACCEPT
-A INPUT -p tcp -m state –state NEW -m tcp –dport 15420 -j ACCEPT
put it before oracle settings
Later for several smartnodes in single VPS remember to change RPC ports
 
15168 Bitoreum port
15420 Yerbas port
10226 Raptoreum port
sudo iptables-restore </etc/iptables/rules.v4You told oracle vps, and you put previously oracles firewall to be open.
But now needs now an aplication that uses this port, to open up.

Fail to Ban (after installing hcp)

sudo nano /etc/fail2ban/jail.local
[sshd] 
enabled = true 
port = 22 
filter = sshd 
logpath = /var/log/auth.log 
maxretry = 3
after 3 authentication fails you get 10 minute timeout (I think)

Create user (repeat for different smartnodes)

sudo adduser raptorCreate user raptor to install smartnode
exitTo get out of user
sudo adduser raptor sudoAdd to admin group
sudo visudoIncludedor /etc/sudoers.d
#includedir /etc/sudoers.d
raptor ALL=(ALL) NOPASSWD:ALL
No more password, but it has to be in correct config line
su raptorSwitch user to raptor
sudo apt updateTry if works without password
userdel -r raptorIf need to delete, remember to remove visudo

Smartnode

su raptorSwitch to raptor user
lsFile manager
mkdir raptoreum-1.3.17.05Create a folder where you will put all smartnode files
cd raptoreum-1.3.17.05
wget https://github.com/Raptor3um/raptoreum/releases/download/1.3.17.05/raptoreum-arm64-1.3.17.05.tar.gz
[Check version]
lsagain
tar -xf raptoreum-arm64-1.3.17.05.tar.gzunzip
lsagain
rm checksums.txtCheck cheksums than delete
rm raptoreum-arm64-1.3.17.05.tar.gzRemove zip file
lsAgain check if files are removed
sudo cp raptoreumd /usr/bin/raptoreumdInside folder
sudo cp raptoreum-cli /usr/bin/raptoreum-cli
cd
tail -f ~/.raptoreumcore/debug.logUse another SSH window
Use raptor user to tail log file
tail -f ~/.bitoreumcore/debug.log
raptoreumdStart smartnode
raptoreum-cli getblockcountCheck how many blocks has sinced (ubuntu), also needs to sync some before?
raptoreum-cli stopStop smartnode

Wallet Commands

protx quick_setup “123d7041232d481236d1f3f72abb326555cac9808c574d012358338c0a4123” “1” “123.123.123.123:10226” “RU3rcYutb7af5uijmHCi9RZJMpcif6pDqU”
Transaction to myself with colateral (sum has to be exacrlt 1.8 milllion)
smartnode outputs
in debug console
also I will get 1 or 5 or whatever number
server ip address
listaddressbalances (raptoreum wallet command)
choose not collateral, with some coin
CFG file generatedWhen you use your raptoreum wallet on windows, find the cfg file generated location. Copy paste to inside oracle vps, or you get pose ban

Check if ports are open

https://www.yougetsignal.com/tools/open-ports/

132.145.69.134 : 10226
132.145.31.11 : 10226
140.238.90.60 : 10226
Check port if open

Old School Startup

(when vps accidently restarts, you want to start your smartnode or you lose your income lol…)

crontab -e
Select an editor.  To change later, run ‘select-editor’.
  1. /bin/nano        <—- easiest (really easy)
  2. /usr/bin/vim.basic
  3. /usr/bin/mcedit
  4. /usr/bin/vim.tiny
  5. /bin/ed
Oldschool startup
@reboot /usr/bin/raptoreumdWrite this
 
Replace @ to # to ignore
And use service as a 100% crash guarantee
htopCheck if raptoreumd is running under: su raptor

Service startup

More powerfull way to restart smartnode, runs a service, even if you try to crash it manually it will auto start again, infinite loop, I don’t even know how to stop it as I never needed it, but if you need it than google or gpt for answer, I never bothered as my goal is to run the smartnode forever

su raptor
tail -f ~/.raptoreumcore/debug.logTail to see if restarts on new ssh window
raptoreum-cli stopStop before creating service. User raptor
sudo nano /etc/systemd/system/raptoreum.serviceCreate new service
##############################################################
##   Raptoreum Smartnode Systemd service always alive        ##
##############################################################
[Unit]
Description=Raptoreum Node Daemon
After=network.target
 
[Service]
Type=forking
User=raptor
RuntimeDirectory=/home/raptor/.raptoreumcore
#PIDFile=/run/raptoreum.pid
Restart=on-failure
ExecStart=/usr/bin/raptoreumd -datadir=/home/raptor/.raptoreumcore/  -conf=/home/raptor/.raptoreumcore/raptoreum.conf -daemon
ExecStop=/usr/bin/raptoreum-cli -datadir=/home/raptor/.raptoreumcore/  -conf=/home/raptor/.raptoreumcore/raptoreum.conf stop
 
# Recommended hardening
 
# Provide a private /tmp and /var/tmp.
PrivateTmp=true
 
# Mount /usr, /boot/ and /etc read-only for the process.
ProtectSystem=full
 
# Disallow the process and all of its children to gain
# new privileges through execve().
NoNewPrivileges=true
 
# Use a new /dev namespace only populated with API pseudo devices
# such as /dev/null, /dev/zero and /dev/random.
PrivateDevices=true
 
# Deny the creation of writable and executable memory mappings.
MemoryDenyWri teExecute=true
 
[Install]
WantedBy=multi-user.target
Copy and paste, it was hard work copying from yerbas youtuber and it works. I have tested on my smartnodes, I also changed for raptoreum instead of yerbas, if you need yerbas you will need to change everything that is related to raptoreum to yerbas (use like notepad find and replace raptoreum and raptor to yerbas also you need to have yerbas username created and you can use this for other smartnodes too, but again you will need to change those names coresponding to their own smartnodes. I think I have bolded all the names you need to change)
echo “pid=/run/raptoreum.pid” >>/home/raptor/.raptoreumcore/raptoreum.confWill auto write into config file
nano ~/.raptoreumcore/raptoreum.confor just type:
pid=/run/raptoreum.pidAt the end of raptoreum.conf file
sudo systemctl daemon-reloadto reload system services
sudo systemctl enable raptoreumto start raptoreum services, if it works ok, if not – redo steps, there is somwere mistakes
sudo systemctl start raptoreumStarts raptoreum service
raptoreum-cli stoptest if works

Congrats on your free Raptoreum, Bitoreum, Yerbas, Neoxa etc… nodes … No more paying any fees to pecunia, power bills, inodez and so on… Also you can now create websites on same VPS and run WordPress or any other site at the same time lol.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *