Linux Setup
Download and Setup
After you ssh into your VPS, create a directory for your copybot
If you do not have wget
installed, please install it
Next, you can use wget
to download the copybot. Make sure to get the latest version!
If you don't have unzip
, install it and unzip
the bot.
Type ls -a
to confirm the contents of the file
You should see the following files unzipped into your copybot folder:
Change the permissions so that you can execute the copybot:
To run the copybot, simply type:
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.
1. Using tmux
(Recommended)
tmux
(Recommended)tmux
is a terminal multiplexer that allows you to create and manage persistent terminal sessions.
Steps:
Start a
tmux
session:
This creates a new session named copybot
.
Run the bot: Inside the
tmux
session, run your command to start the bot, e.g.:
Detach from the session: Press
Ctrl+B
, thenD
to detach from thetmux
session. The bot will continue running in the background.Reattach to the session (if needed): Reconnect to the session to check the bot's status:
List active sessions: If you forget the session name, list all active sessions:
Last updated