> For the complete documentation index, see [llms.txt](https://nidzo-docs.gitbook.io/ticketsbot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nidzo-docs.gitbook.io/ticketsbot/installation-and-setup/linux-installation.md).

# Linux Installation

Documentation on how to run Discord Bot on Linux System (VPS).

{% hint style="info" %}
Before continuing with this Page you'll need to properly Configure your `config.yml` & `commands.yml` files. Also for this you'll need Dependencies from Last Section. After you've installed all of them successfully, come back to this section.
{% endhint %}

{% hint style="warning" %}
If you're gonna start bot with `pm2` make sure you're not starting him with `--watch` flag!
{% endhint %}

These are steps you need to follow in order to install Bot Successfully.

1. Log into your VPS
2. `cd` into directory where are your files.\
   2.1 Make sure you're on Node 16.9 by running `node -v`, if not follow steps below on how to update NodeJS.
3. Run Command `npm install` to install node modules.
4. After it's finished start the bot.\
   4.1 If using PM2 (recommended) use `pm2 start index.js --time`\
   4.2 If not using PM2 use `node index.js`

## How to update NodeJS? <a href="#update-nodejs" id="update-nodejs"></a>

1. Install 'n' using `npm install -g n`
2. Update Node to desired version\
   2.1 Update Node to stable version (recommended) using `n stable`\
   2.2 Update Node to latest version using `n latest`

{% hint style="danger" %}
If you encounter any issues during installation feel free to join Support Server and ask for help.
{% endhint %}
