# Run the Bots on Linux

![Use a cheaper Linux VPS](https://753607342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhogE6fBOvMLDd92Qub%2Fuploads%2FYiqrRyFM5hlYIO7sW7qj%2FcryptobotLinuxVPS.png?alt=media\&token=43f85a28-433f-4f37-8903-86a2d03741a9)

### Why?

Linux VPS or cheaper than windows VPS, hence it is a good choice to use a Linux VPS for running bots 24/7. If you are new to see, watch one or two Youtube tutorials and you are good to go and you have a cheaper solution.&#x20;

### Requirements

1. wine&#x20;
2. optional: tmux

#### 1 Install wine to run windows applications on linux

#### 1.1 Check architecture:

\>>> lscpu

#### 1.2 a) Install wine from repository depending on architecture

\>>> sudo apt install wine64

or

\>>> sudo apt install wine32&#x20;

Check wine version:

\>>> wine --version

#### &#x20;1.2 b) Install wine from WineHQ repository

Add i386 architecture before installing 64-bit version:

\>>> sudo dpkg --add-architecture i386&#x20;

**WineHQ signing key:**

\>>> cd /tmp

\>>> wget -nc <https://dl.winehq.org/wine-builds/winehq.key>

\>>> sudo mv winehq.key /usr/share/keyrings/winehq-archive.k&#x20;

**Add WineHQ repository:**

\>>> wget -nc <https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources>

\>>> sudo mv winehq-jammy.sources /etc/apt/sources.list.d/&#x20;

**Update package list:**

\>>> apt update&#x20;

**Install wine:**

\>>> sudo apt install --install-recommends winehq-stable

**Check wine version:**

\>>> wine --version&#x20;

#### 1.3) Start and use the Bot you want

Start bot:

\>>> wine PumpBot.exe&#x20;

#### 2) Install tmux to run a Bot in background (e.g. Autotrader Bot, or Futures Bot)&#x20;

#### 2.1) Install tmux&#x20;

\>>> sudo apt-get install tmux&#x20;

#### 2.2) Start session

\>>> tmux new -s session\_name

#### 2.3) Start PumpBot in tmux

\>>> wine PumpBot.exe

#### 2.4) Detach tmux session

Press "CTRL+B" followed by "D"

#### 2.5) Attach tmux session

\>>> tmux attach -t session\_name

### For multiple instances create multiple sessions

Just create multiple sessions and you are able to run different Bots on the same Linux VPS
