Linux Setup

Download and Setup

After you ssh into your VPS, create a directory for your copybot

mkdir copybot
cd copybot

If you do not have wget installed, please install it

sudo apt update
sudo apt install wget

Next, you can use wget to download the copybot. Make sure to get the latest version!

wget https://sourceforge.net/projects/simply-copy-bot/files/simply-copybot-1.2.0-lin.zip

If you don't have unzip, install it and unzip the bot.

sudo apt update
sudo apt install unzip
unzip simply-copybot-1.2.0-lin.zip

Type ls -a to confirm the contents of the file

ls -a

You should see the following files unzipped into your copybot folder:

simply-copybot
.env.example
copy_wallets.yaml.example

Create a copy of each of the example files. Refer to the Configuration Guide for instructions on how to configure the bot.

cp .env.example .env
cp copy_wallets.yaml.example copy_wallets.yaml

Change the permissions so that you can execute the copybot:

chmod +x *

To run the copybot, simply type:

./simply-copybot

Running Copybot in the Background

When running a bot or any long-running process on a remote server via SSH, you want the process to continue even after disconnecting.


tmux is a terminal multiplexer that allows you to create and manage persistent terminal sessions.

Steps:

  1. Start a tmux session:

    tmux new -s copybot

This creates a new session named copybot.

  1. Run the bot: Inside the tmux session, run your command to start the bot, e.g.:

./simply-copybot
  1. Detach from the session: Press Ctrl+B, then D to detach from the tmux session. The bot will continue running in the background.

  2. Reattach to the session (if needed): Reconnect to the session to check the bot's status:

tmux attach -t copybot
  1. List active sessions: If you forget the session name, list all active sessions:

tmux ls

Last updated