Skip to content

Instantly share code, notes, and snippets.

@JOduMonT
Last active June 22, 2025 16:53
Show Gist options
  • Save JOduMonT/252d3f1b83473000e01e553ae560a59d to your computer and use it in GitHub Desktop.
Save JOduMonT/252d3f1b83473000e01e553ae560a59d to your computer and use it in GitHub Desktop.
OctoBot Service on Clear Linux
## ADJUST THE VERSION BEFORE
### https://github.com/Drakkar-Software/OctoBot/releases
VERSION=2.0.12
sudo swupd bundle-add wget-bin
sudo wget -O /usr/local/bin/OctoBot_linux_x64 https://github.com/Drakkar-Software/OctoBot/releases/download/$VERSION/OctoBot_linux_x64
sudo chmod +x /home/OctoBot_linux_x64
## USER
sudo useradd -r -s /bin/false octobot
sudo mkdir /home/octobot
sudo chown octobot:octobot /home/octobot
## SERVICE
sudo echo \
"[Unit]
Description=OctoBot Trading Robot
After=network.target
[Service]
Type=simple
User=octobot
Group=octobot
WorkingDirectory=/home/octobot
## in home instead of usr, bin, ...
## to ease the backup aka /home
ExecStart=/home/OctoBot_linux_x64
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
" | tee /etc/systemd/system/octobot.service
sudo systemctl daemon-reload
sudo systemctl enable octobot.service
sudo systemctl start octobot.service
systemctl status octobot.service
#journalctl -u octobot.service -f
## SECURE SSHD
### Ensure your ssh key in a user on the server; then run these
# sudo wget -O /etc/ssh/sshd_config https://raw.githubusercontent.com/JOduMonT/ubuntu/refs/heads/main/etc/ssh/sshd_config
# sudo systemctl restart sshd.service
@JOduMonT
Copy link
Author

JOduMonT commented Jun 13, 2025

Why Using Clear Linux ?

Mostly Crypto Trading need speed to be accurate and reliable

  • Clear Linux is one of the fasted Linux you can find.
  • It's a rolling version, so technically you will never have to reinstall it.
  • By not relaying on Docker, it shortcut internal network and other potential overhead.

You litterally simply have to download and launch OctoBot.

+ everything is in /home to simply backups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment