# Vultr

Vultr is very user friendly and a great option for beginners. Additionally it allows users to host their VPS in Chicago, which is great benefit as Hypixel is hosted in Chicago allowing you to get the lowest ping possible.

### Step 1

Go to [Vultr](https://www.vultr.com/register/) and create an account. Then go to the `Billing` section, and make a deposit, we recommend 10$, which is the lowest amount.

### Step 2

Go to the `Products` tab, and select **`Cloud Compute`**, leave the `CPU` as default, and select **`Chicago`** as `Location`, since it is closest to Hypixel's servers.

In `Operating System`, select **`Ubuntu, 20.04 LTS x64`**.

In `Server Size`, for the AH Macro it is safe to use the cheapest option, but for the Combat Macro we recommend having **`2GB`** of `RAM` at least, since the pathfinding is a bit heavy.

Disable `Auto Backups`, and click `Deploy`.

### Step 3

To connect to the VPS, we recommend using [`Termius`](https://termius.com/), since it simplifies connecting to the VPS. Create an account and download the program. Once initialized, click **`Add, New Host`** in the `Hosts` panel.

In Vultr, go to `Server Information` of your VPS, and copy the `IP Address`, and paste it in the `Address` field in Termius.

In Vultr, copy the `Username` (usually `root`), and paste it in the `Username` field in Termius.

In Vultr, copy the `Password`, and paste it in the `Password` field in Termius.

Click on the created host, it should start connecting you to the VPS.

### Step 4

Once connected, you will start installing your binmaster program. Chose carefully your needed command:

* AH Macro: `wget https://raped.gay/linuxah`
* Combat Macro: `wget https://raped.gay/slayerlinux`

Wait for the file to download. Then execute `ls` to check the name of your file. Unzip the file with the following command:

`unzip NAME`

{% hint style="warning" %}
**UNZIP:** If you get an error executing the previous command, check that you have installed the `unzip` package correctly. You can learn how to install it [here](https://linuxize.com/post/how-to-unzip-files-in-linux/).
{% endhint %}

Where `NAME` is the name you checked by executing `ls`. Now you should have the contents of the zipped file you downloaded.

### Step 5

Now you will need to edit the `config.json` and the `filter.json` (if you're using the AH Macro), which you can do by visiting the page in the **`EDITING FILES IN LINUX`** hint in [download-setup-on-a-local-pc](https://binmasterdocs.gitbook.io/binmaster-docs/download-setup/download-setup-on-a-local-pc "mention"). You can see what are the values in those two files in the **`Documentation`** part in [links](https://binmasterdocs.gitbook.io/binmaster-docs/support/links "mention").

### Step 6

Next, to prepare the bot, write these commands to give the necessary permissions to the files:

* AH Macro: `chmod 777 binmaster-auction-linux`
* Combat Macro: `chmod 777 binmaster-slayer-linux`

Then do the same with the `config.json` and `filter.json` (if you're using the AH Macro).

`chmod 777 config.json`

`chmod 777 filter.json`

### Step 7

Since we actually want to keep the bot running even when we disconnect from the VPS, we will install a package called `screen`, you can read more about it [here](https://phoenixnap.com/kb/how-to-use-linux-screen-with-commands). Once installed, you can execute the program with a `screen` like this:

* AH Macro: `screen ./binmaster-auction-linux`
* Combat Macro: `screen ./binmaster-slayer-linux`

{% hint style="warning" %}
**SCREEN TERMINATING:** If at any time when executing this, the console outputs `[screen terminating]`, it means that there has been an error while executing the program, to see what was the error, run the program without the `screen` command.
{% endhint %}

You can exit the bot at any time by pressing `Ctrl + C`.

You can exit without closing the bot at any time by pressing `Ctrl + A` and then `Ctrl + D`.

You can reopen the screen at any time by typing `screen -d -r`.

{% hint style="danger" %}
**MULTIPLE SCREENS:** Unless you are sure that the `screen` you were using has been terminated, do **NOT** start another screen. You can reopen the screen with the previous commands. Starting a new `screen` while having another one running in the background will cause the bot to terminate since it detects another instance with the same key running.&#x20;
{% endhint %}

### Video

The following video gives a visual demonstration to the steps. (**COMMANDS ARE OUTDATED**)

{% embed url="<https://youtu.be/F4awBZR8b1o>" %}
