# Node Lending

This feature allows users to connect their personal PCs/Nodes and rent out the power of their GPU, CPU, RAM, hard drive, and motherboard, earning income while supporting the ecosystem.

## How to Start Lending

{% hint style="info" %}
*Some points are marked as optional, whilst these aren't necessary to get started with lending, they are recommended.*
{% endhint %}

{% stepper %}
{% step %}

### Step 1: Install Ubuntu 22.04

Hash AI's software has only been tested on Ubuntu 22.04, it may work on other Debian systems, however Ubuntu 22.04 is recommended currently.&#x20;

Download the Ubuntu 22.04 ISO image, then use a tool such as <https://rufus.ie/en/> to create a bootable USB drive. Install Ubuntu onto your GPU workstation from the USB drive.
{% endstep %}

{% step %}

### Step 2: Configure Ports in Your Router

You should perform port forwarding of 2 ports in your router configuration. Instructions for this vary per manufacturer (personal research is recommended). 2 ports are required for the Hash AI's software to function. One port is required for SSH/RDP to the container, the 2nd is used for hosting any API which the image may host (for example mining API, LLM API etc).

#### *\*(Optional)* Configure IP Reservation in Your Router <a href="#optional-configure-ip-reservation-in-your-router" id="optional-configure-ip-reservation-in-your-router"></a>

If for any reason your workstation is restarted, the IP address could change. This will break any port forwarding rules you have configured. By configuring IP reservation, your gateway or router will assign the same IP address.

#### *\*(Optional)* Perform Subnetting <a href="#optional-perform-subnetting" id="optional-perform-subnetting"></a>

By performing subnetting, you can segment your network to isolate traffic to and from your PC. This reduces the vector for malicious activity.

#### \*(Optional) Perform Partitioning to Prevent Disk Space Filling on the Root mount <a href="#optional-perform-partitioning-to-prevent-disk-space-filling-on-the-root-mount" id="optional-perform-partitioning-to-prevent-disk-space-filling-on-the-root-mount"></a>

It is important that the /  (root) mount is separate from application data to prevent rendering the host unusable if disk space fills.
{% endstep %}

{% step %}

### Step 3: Install Hash AI Lending Software

**Download Hash AI software**

```
wget https://dapp.hashai.co.uk/versions/hashai.zip
```

**Make the scripts executable**

```
cd hashai
chmod +x nvidiadrivers.sh
chmod +x amddrivers.sh
chmod +x setup
```

**Install drivers using the provided driver script (choose the relevant script for your GPU).**

```
./nvidiadrivers.sh
./amddrivers.sh
```

This will restart your PC.

**Run the setup script**

```
./setup <lender id> <port 1> <port 2>
```

The lender ID will be provided to you via the Hash AI Dapp once you have registered your workstation. The 2 ports can be whatever you require, ensure you do not use a reserved port, or port already in use.
{% endstep %}
{% endstepper %}

**Finished!**

That's it. Once the setup has completed successfully, your workstation will shortly appear in the Hash AI dapp, ready to be rented. We ask that once setup is complete, you avoid using your workstation to allow the renter to enjoy the full benefits.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hashai.co.uk/features/node-rental-and-lending/node-lending.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
