# Farming



# Farming BPX on Windows

1\. To start farming BPX, you need a fully synchronized full node. If you don’t have one, [follow all the steps of this tutorial](https://docs.bpxchain.cc/books/tutorials/page/installing-and-running-bpx-full-node-on-windows), but in the step shown in the screenshot below, choose the **Farming Mode** instead of **Node Mode**. Then, proceed directly to the **Step 4**.

[![VirtualBox_Win10_07_06_2023_15_56_13.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/dwjACt1J8NX0bt5Q-virtualbox-win10-07-06-2023-15-56-13.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/dwjACt1J8NX0bt5Q-virtualbox-win10-07-06-2023-15-56-13.png)

2\. If you already have a running full node, go to **Settings** and change the operating mode to **Farming**.

[![VirtualBox_Win10_08_06_2023_11_11_06.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/IEQnCFZ3ZgDvOxTA-virtualbox-win10-08-06-2023-11-11-06.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/IEQnCFZ3ZgDvOxTA-virtualbox-win10-08-06-2023-11-11-06.png)

[![VirtualBox_Win10_08_06_2023_11_13_54.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/suWmqV59H4XkR6vh-virtualbox-win10-08-06-2023-11-13-54.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/suWmqV59H4XkR6vh-virtualbox-win10-08-06-2023-11-13-54.png)

3\. Wait for the additional processes required for farming to start. Allow the Windows Firewall to open the required port, just like during the client installation.

[![VirtualBox_Win10_08_06_2023_11_14_07.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/vbPaLUgClH4fL5CN-virtualbox-win10-08-06-2023-11-14-07.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/vbPaLUgClH4fL5CN-virtualbox-win10-08-06-2023-11-14-07.png)

4\. Go to the **Farming** tab. Expand the menu in the upper right corner and select "**Manage Farming Rewards**".

[![VirtualBox_Win10_08_06_2023_11_18_19.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/aniZNf1XredtPU2a-virtualbox-win10-08-06-2023-11-18-19.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/aniZNf1XredtPU2a-virtualbox-win10-08-06-2023-11-18-19.png)

5\. Delete the default zero address and paste your BPX wallet address where you want to receive block rewards, such as your MetaMask wallet address. Save the changes.

[![VirtualBox_Win10_08_06_2023_11_20_38.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/QEj9rSQQAjqbPcmw-virtualbox-win10-08-06-2023-11-20-38.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/QEj9rSQQAjqbPcmw-virtualbox-win10-08-06-2023-11-20-38.png)

6\. Go to the **Plots** tab. Expand the **ADD KEY** menu and select **Import Existing**.

[![VirtualBox_Win10_08_06_2023_11_28_25.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/NUcrEAzjT3evb897-virtualbox-win10-08-06-2023-11-28-25.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/NUcrEAzjT3evb897-virtualbox-win10-08-06-2023-11-28-25.png)

7\. Enter the mnemonics that were used to create your plots and click **Next**.

[![VirtualBox_Win10_08_06_2023_11_30_09.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/aZ1WYKBeXhUAwWQ5-virtualbox-win10-08-06-2023-11-30-09.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/aZ1WYKBeXhUAwWQ5-virtualbox-win10-08-06-2023-11-30-09.png)

8\. Expand the menu in right top corner and select **Add Plot Directory**.

[![VirtualBox_Win10_08_06_2023_11_33_49.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/vfCPeE8B1EnL3pGI-virtualbox-win10-08-06-2023-11-33-49.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/vfCPeE8B1EnL3pGI-virtualbox-win10-08-06-2023-11-33-49.png)

9\. Use the "**Add Plot Directory**" button to add each folder containing your plots. Once all directories are added, click "**Close**".

[![VirtualBox_Win10_08_06_2023_11_35_10.png](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/scaled-1680-/VXbc2csvgPPADoo0-virtualbox-win10-08-06-2023-11-35-10.png)](https://docs.bpxchain.cc/uploads/images/gallery/2023-06/VXbc2csvgPPADoo0-virtualbox-win10-08-06-2023-11-35-10.png)

10\. Farming will begin immediately after adding the first plots directory. You can check whether your plots pass through the filter in the **Farming** tab.

# Farming BPX on Debian / Ubuntu

1\. To start farming BPX, you need a fully synchronized full node. If you don’t have one, [follow all the steps of this tutorial](https://docs.bpxchain.cc/books/tutorials/page/installing-and-running-bpx-full-node-on-debian-ubuntu).

2\. Log in as the BPX Chain services user, or switch to this account from the root console with the following command:

```bash
su - bpxchain
```

3\. Set the wallet address where you want to receive block rewards. Replace `0xAAAA...` with for instance, your MetaMask address.

```bash
bpx rpc beacon set_coinbase '{"coinbase": "0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}'
```

[![farming-debian1.png](https://docs.bpxchain.cc/uploads/images/gallery/2024-11/scaled-1680-/ly1bfxZ5GG7sTUoa-farming-debian1.png)](https://docs.bpxchain.cc/uploads/images/gallery/2024-11/ly1bfxZ5GG7sTUoa-farming-debian1.png)

4\. Import the key that was used to create your plots. Run the following command and enter the 12 or 24 secret words. You can add an optional label for this key, or simply press **Enter** to skip.

```bash
bpx keys add
```

[![farming-debian2.png](https://docs.bpxchain.cc/uploads/images/gallery/2024-11/scaled-1680-/dGjpXzi1FJjNAKU9-farming-debian2.png)](https://docs.bpxchain.cc/uploads/images/gallery/2024-11/dGjpXzi1FJjNAKU9-farming-debian2.png)

5\. Use the following command to add all folders with your plots. Replace `/mnt/hdd1` with the actual path.

```bash
bpx plots add -d /mnt/hdd1
```

[![farming-debian3.png](https://docs.bpxchain.cc/uploads/images/gallery/2024-11/scaled-1680-/MOO8pkwMFWxTp2il-farming-debian3.png)](https://docs.bpxchain.cc/uploads/images/gallery/2024-11/MOO8pkwMFWxTp2il-farming-debian3.png)

6\. Return to the **root** console. Modify the Beacon Client service configuration using any text editor, for example **nano**:

```bash
nano /etc/systemd/system/bpx-beacon.service
```

Replace the line:

```
ExecStart=bpx start beacon
```

With:

```
ExecStart=bpx start beacon farmer
```

Save the file by pressing **Control + O** and close the editor with **Control + X**.

[![farming-debian4.png](https://docs.bpxchain.cc/uploads/images/gallery/2024-11/scaled-1680-/RSppLsqELghxAnoF-farming-debian4.png)](https://docs.bpxchain.cc/uploads/images/gallery/2024-11/RSppLsqELghxAnoF-farming-debian4.png)

7\. Reload the system services configuration.

```bash
systemctl daemon-reload
```

8\. Restart the Beacon Client with the farmer process enabled.

```
systemctl restart bpx-beacon
```

9\. Your farmer is active and set to automatically start on system boot. Use the commands below to check the farming status.

```bash
su - bpxchain
bpx farm summary
```