Update readme.md
This commit is contained in:
parent
29fe3c2bbd
commit
ed33ad05e5
37
readme.md
37
readme.md
@ -1,14 +1,15 @@
|
|||||||
# XENBLOCKS - Effortless GPU Mining on VAST.AI
|
# XENBLOCKS - Effortless GPU Mining on VAST.AI
|
||||||
|
URL: [Vast.ai](https://cloud.vast.ai/?ref_id=87911)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
**Create Github account and fork this repository**:
|
**Create Github account and fork this repository**:
|
||||||
|
|
||||||
- If you don't have your own GithHub account, sign up at [https://github.com](https://github.com/join)
|
- If you don't have your own GitHub account, sign up at [https://github.com](https://github.com/join)
|
||||||
|
|
||||||
- Once signed up, login to your GitHub account and fork my repo to your own public repository. Forking repository is simple. Navigate to https://github.com/JozefJarosciak/xgpu, then in the top-right corner of the page, you will find a button labeled "Fork". Click on this button. GitHub will take a few moments to create a copy of my repository in your own account. You will be redirected to the new fork in your GitHub account once it's done.
|
- Once signed up, log in to your GitHub account and fork my repo to your own public repository. Forking the repository is simple. Navigate to https://github.com/JozefJarosciak/xgpu, then in the top-right corner of the page, you will find a button labelled "Fork". Click on this button. GitHub will take a few moments to create a copy of my repository in your own account. You will be redirected to the new fork in your GitHub account once it's done.
|
||||||
|
|
||||||
- Navigate to the forked repository. In there you'll find several files named `vast.sh` (..., vast4.sh, vast8.sh, etc.). Each is named by the number of GPUs it support. So if you're planning to mine on a single GPU Vast.ai machine, we'll need to edit `vast.sh`. If you're planning to mine on 4 GPU Vast.ai machine, you'll need to edit 'vast4.sh' file.
|
- Navigate to the forked repository. In there you'll find several files named `vast.sh` (..., vast4.sh, vast8.sh, etc.). Each is named by the number of GPUs it supports. So if you're planning to mine on a single GPU Vast.ai machine, we'll need to edit `vast.sh`. If you're planning to mine on 4 GPU Vast.ai machine, you'll need to edit 'vast4.sh' file.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -30,26 +31,26 @@ So let's say you want to mine on a 4 GPU Vast.ai machine. How do you edit the fi
|
|||||||
|
|
||||||
|
|
||||||
**Order VAST.ai server**
|
**Order VAST.ai server**
|
||||||
Now, we need to go to Vast.ai to order a GPU server to mine the XenBlocks for us. To do so follow these steps:
|
Now, we need to go to Vast.ai to order a GPU server to mine the XenBlocks. To do so follow these steps:
|
||||||
- Sign up at https://vast.ai for your own account
|
- Sign up at https://vast.ai?ref_id=87911 for your own account
|
||||||
- Once sign up, deposit some cash at https://cloud.vast.ai/billing/ (note, they also support Ethereum deposits via Coinbase)
|
- Once signed up, deposit some cash at https://cloud.vast.ai/billing/?ref_id=87911 (note, they also support Ethereum deposits via Coinbase)
|
||||||
- When you have the cash in the account, navigate to https://cloud.vast.ai/templates/
|
- When you have the cash in the account, navigate to https://cloud.vast.ai/templates/?ref_id=87911
|
||||||
- Here we need to select the template that supports XenBlocks mining. It's this one: / Cuda:12.0.1-Devel-Ubuntu20.04 and it'll look like this on the page. Press the select button when you find it:
|
- Here we need to select the template that supports XenBlocks mining. It's this one: / Cuda:12.0.1-Devel-Ubuntu20.04 and it'll look like this on the page. Press the select button when you find it:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- Once done, under machines select the server you want to use for mining XenBlocks. The choice will depend on the cost and number of GPUs. Also, note, you can select 'unverified machines' on the left side, which sometime allows you to find a better deal (but note, often those servers are more problematic or do not run at all):
|
- Once done, under machines select the server you want to use for mining XenBlocks. The choice will depend on the cost and number of GPUs. Also, note, that you can select 'unverified machines' on the left side, which sometimes allows you to find a better deal (but note, often those servers are more problematic or do not run at all):
|
||||||

|

|
||||||
|
|
||||||
- When you find a server you want, press the RENT button and within a couple of seconds the server will appear in your rented list of instances at: https://cloud.vast.ai/instances/. Wait for a moment, until the blue button on it -- turns from LOADING state to 'CONNECT' state.
|
- When you find a server you want, press the RENT button and within a couple of seconds the server will appear in your rented list of instances at: https://cloud.vast.ai/instances/?ref_id=87911. Wait for a moment, until the blue button on it -- turns from LOADING state to 'CONNECT' state.
|
||||||
|
|
||||||
- Before you can press 'CONNECT' button, you need to generate the RSA SSH public/private keypair. This is easy, just follow these instructions:
|
- Before pressing the 'CONNECT' button, you need to generate the RSA SSH public/private key pair. This is easy, just follow these instructions:
|
||||||
|
|
||||||
For Linux: https://vast.ai/faq#how-do-i-connect-to-an-ssh-instance-on-linuxmac
|
For Linux: https://vast.ai/faq#how-do-i-connect-to-an-ssh-instance-on-linuxmac?ref_id=87911
|
||||||
|
|
||||||
Or the following instructions if you're planning to connect from Windows: https://vast.ai/docs/guides/windows-ssh-scp-guide
|
Or the following instructions if you're planning to connect from Windows: https://vast.ai/docs/guides/windows-ssh-scp-guide?ref_id=87911
|
||||||
|
|
||||||
- Once done, click on CONNECT button, copy the connect URL and paste it into your choice of command line tool.
|
- Once done, click on the CONNECT button, copy the connect URL and paste it into your choice of command line tool.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -57,7 +58,7 @@ Now, we need to go to Vast.ai to order a GPU server to mine the XenBlocks for us
|
|||||||
**START MINING XENBLOCKS**
|
**START MINING XENBLOCKS**
|
||||||
|
|
||||||
- Now, that we're connected to our server of choice. Copy a single line command below to get a new GPU server up and running mining XenBlocks.
|
- Now, that we're connected to our server of choice. Copy a single line command below to get a new GPU server up and running mining XenBlocks.
|
||||||
- Important Note: In the below one liner commands, replace (JozefJarosciak/xgpu/main/vast.sh, or vash4.sh or vast8.sh, etc.) with a path to your own fork of my repository
|
- Important Note: In the below one-liner commands, replace (JozefJarosciak/xgpu/main/vast.sh, or vash4.sh or vast8.sh, etc.) with a path to your own fork of my repository
|
||||||
|
|
||||||
For single GPU use vast.sh:
|
For single GPU use vast.sh:
|
||||||
```
|
```
|
||||||
@ -98,7 +99,7 @@ Now, we need to go to Vast.ai to order a GPU server to mine the XenBlocks for us
|
|||||||
|
|
||||||
**RUNPOD Mining - runpod.io (unverified)**:
|
**RUNPOD Mining - runpod.io (unverified)**:
|
||||||
|
|
||||||
- Steps are the same as above, just update `runpod.sh` file (with your ETH address) instead of vast.sh file.
|
The steps are the same as above, just update `runpod.sh` file (with your ETH address) instead of vast.sh file.
|
||||||
```
|
```
|
||||||
apt update && apt -y install wget && wget https://raw.githubusercontent.com/JozefJarosciak/xgpu/main/runpod.sh && chmod +x runpod.sh && ./runpod.sh
|
apt update && apt -y install wget && wget https://raw.githubusercontent.com/JozefJarosciak/xgpu/main/runpod.sh && chmod +x runpod.sh && ./runpod.sh
|
||||||
```
|
```
|
||||||
@ -106,7 +107,7 @@ Now, we need to go to Vast.ai to order a GPU server to mine the XenBlocks for us
|
|||||||
|
|
||||||
# XENBLOCKS - USEFUL COMMANDS
|
# XENBLOCKS - USEFUL COMMANDS
|
||||||
|
|
||||||
This section is to show some commends you may find useful.
|
This section is to show some comments you may find useful.
|
||||||
|
|
||||||
Tail logs:
|
Tail logs:
|
||||||
```
|
```
|
||||||
@ -126,7 +127,7 @@ pkill -f "xengpuminer"
|
|||||||
pkill -f "python3"
|
pkill -f "python3"
|
||||||
```
|
```
|
||||||
|
|
||||||
Start Miner.py in the background (in case you needed to stop it):
|
Start Miner.py in the background (in case you need to stop it):
|
||||||
```
|
```
|
||||||
sudo nohup python3 miner.py --gpu=true > miner.log 2>&1 &
|
sudo nohup python3 miner.py --gpu=true > miner.log 2>&1 &
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user