Add files via upload

This commit is contained in:
Gonbatfire 2024-07-09 21:28:01 -03:00 committed by GitHub
parent 9450454b6f
commit cc9f5026b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 379 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{
"label": "Solo Mining Guides",
"position": 2
}

View file

@ -0,0 +1,80 @@
# Solo Mining Guide
The Zano daemon features an internal stratum-like server that can serve miner clients via the ethProxy protocol. It works like a very light and simple pool that mines to a single address.
:::caution Requirements
A 2GB graphic card is required for GPU mining.
:::
## Windows quick guide
### Step 1: Set up the Zano node
- First, install the Zano app, open the wallet, and wait until blockchain syncing is complete, when the syncing process is complete, close the app.
<!---->
- Locate where your Zano node executable (`zanod.exe`) is.
By default, it's in `C:\Program Files\Zano`
### Step 2: Download and Configure TT-Miner
- &#x20;Go to the [TT-Miner GitHub page ](https://github.com/TrailingStop/TT-Miner-release/releases/tag/2024.2.0)and download the latest .ZIP file, extract it to a folder on your computer.
<!---->
- &#x20;In the extracted folder, create a text file named `start-zano-mining`&#x20;
- Paste the following content inside:
```
rem starts zano with the stratum server activated
start "" "C:\Program Files\Zano\zanod.exe" --stratum --stratum-miner-address=<YOUR_WALLET_ADDRESS> --stratum-bind-port=11555
rem TT commandline
start TT-Miner.exe -luck -c ZANO -P miner@127.0.0.1:11555
pause
```
- Replace `<YOUR_WALLET_ADDRESS>` with your actual Zano wallet address.
- If your installation is not in the default location, replace `C:\Program Files\Zano` with the correct path.
- Once you finish editing, if using Notepad, select `file` option, then `save as`, an add a `.bat` to the end of your file name (`start-zano-mining.bat`), this will make it executable.
### Step 3: Start Mining
- Double-click `start-zano-mining.bat` to run TT-Miner & Zano node, verify that it's working as intended.
:::info
If your `zanod.exe` instance fails to start, make sure that there isn't another one running, and close your Zano desktop wallet if you haven't done so already.
:::
### Step 4 (Optional): Start miner on boot
- Search `Run` on your Windows search bar and hit enter.
- Paste the following command into the text field, and hit enter.
```
shell:startup
```
The `Startup` folder will be opened
- Go back to your TT-miner folder, right-click `start-zano-mining.bat` and select Create Shortcut
- Copy the new shortcut to the previous `Startup` folder, now the script will be executed whenever your PC starts.
:::info
Remember that to open your Zano desktop wallet, you must first close all zanod.exe instances.
:::
Visit our Mining-Talk channels on our [Discord and Telegram](https://links.zano.org) if you need more assistance or want to discuss, happy mining!

View file

@ -0,0 +1,144 @@
<div align=center>
<img src="static/img/mine/solo-mining-guides/linuxzano_icon.png" width="400">
<h1>Solo Mining with AMD (Ubuntu)<h1>
</div>
## Step 1: Synchronize the Daemon
Open a terminal in the directory with `zanod`, and run it: [^1]
```
./zanod
```
Allow the daemon to synchronize, while we complete other steps.
## Step 2: Install Wildrig Miner[^2]
Open another terminal within the same directory. Create a new directory for Wildrig and enter it:
```
mkdir wildrig
cd wildrig
```
Within wildrig directory, give the following command to download the miner:
```
wget https://github.com/andru-kun/wildrig-multi/releases/download/0.36.6b/wildrig-multi-linux-0.36.6b.tar.xz
```
Extract and then remove the original .tar file:
```
tar -xf wildrig-multi-linux-0.36.6b.tar.xz
rm wildrig-multi-linux-0.36.6b.tar.xz
```
Leave this directory open; we'll return to it soon.
## Step 3: AMD Driver Installation
Since Ubuntu doesn't come with AMD's OpenCL driver, which is necessary for mining, you'll need to install that. But it also requires ****very**** specific AMD driver software (22.40): we've found no other that successfully installs.
1. First, we must get the driver installer itself. Go to your Downloads directory and give the following commands:
```
sudo apt update
sudo apt upgrade
```
a) If running Ubuntu 20.04 LTS:
```
wget https://repo.radeon.com/amdgpu-install/22.40/ubuntu/focal/amdgpu-install_5.4.50401-1_all.deb
```
b) If running Ubuntu 22.04 LTS or 22.10:
```
wget https://repo.radeon.com/amdgpu-install/22.40/ubuntu/jammy/amdgpu-install_5.4.50401-1_all.deb
```
Now, if you already have any AMD drivers installed ****other than 22.40****, you'll need a few extra steps, provided in the following footenote [^3].
If there are no other AMD drivers on your rig, proceed to install the driver installer and enable the proprietary repository:
```
sudo apt install ./amdgpu-install_5.4.50401-1_all.deb
sudo sed -i 's/#deb/deb/g' /etc/apt/sources.list.d/amdgpu-proprietary.list
```
2. If everything went smoothly, the driver can now be installed:
```
amdgpu-install --opencl=legacy,rocr --usecase=workstation,graphics --no-32
```
If successful, reboot:
```
sudo reboot
```
3. To determine whether the driver was properly installed, we need the application ****clinfo****. Install that, and then check for your GPU: [^4]
```
sudo apt install clinfo
sudo clinfo
```
You should see something like the following, with OpenCL under both "Platform version" and "Device version."
<div>
<img src="static/img/mine/solo-mining-guides/linuxamd-clinfo.png" width="800">
</div>
## Step 4: Starting Wildrig Miner
Once your node is fully synced, stop it (ctl+c). In the same terminal, restart `zanod` with the following flags, substituting your wallet address for "<YOUR_WALLET_ID>"
```
./zanod --stratum --stratum-bind-port=11555 --stratum-miner-address=<YOUR_WALLET_ID>
```
The daemon should start, displaying this screen.
<div>
<img src="static/img/mine/solo-mining-guides/linuxamd-daemon_synced.png" width="800">
</div>
You're ready to begin mining.
Return to your wildrig directory and run Wildrig, again substituting your wallet address for "<YOUR_WALLET_ID>" :[^5]
```
cd wildrig
sudo ./wildrig-multi --print-full --algo progpowz --protocol ethproxy -u miner -o 127.0.0.1:11555 -w worker1 -p x
```
The miner should start, displaying your statistics:
<div>
<img src="static/img/mine/solo-mining-guides/linuxamd-wildrig_running.png" width="800">
</div>
And if you switch to the terminal with your daemon running, you should now see this:
<div>
<img src="static/img/mine/solo-mining-guides/linuxnvidia-daemon_mining.png" width="800">
</div>
<div>
<h1>Congratulations, you're solo mining Zano!<h1>
</div>
[^1]: This guide assumes you have already installed, and can use, a CLI wallet and its daemon. If you haven't, see those guides [here](https://docs.zano.org/docs/install-a-zano-cli-wallet-ubuntu) and [here](https://docs.zano.org/docs/using-a-zano-cli-wallet), respectively.
[^2]: Be aware that Wildrig has a 1.0% fee.
[^3]: If you already have any AMD driver installed other than 22.40, you'll need to here take the following steps. Uninstall driver: `amdgpu-install --uninstall`. Install the debian package (i.e., what would have been your next step above): `sudo apt install ./amdgpu-install_5.4.50401-1_all.deb`. Give: `sudo apt update` & `sudo apt autoremove`. You can now proceed to enabling the AMD proprietary repository.
[^4]: If you don't include `sudo` in this command, it's likely that your GPU will not be displayed under devices.
[^5]: Note again the need to give `sudo` here.

View file

@ -0,0 +1,151 @@
<div>
<div align=center>
<img src="static/img/mine/solo-mining-guides/linux/zano_icon.png" width="400">
<h1>Solo Mining with Nvidia<h1>
</div>
## Step 1: Synchronize the Daemon
Open a terminal in the directory with `zanod`, and run it: [^1]
```
./zanod
```
Allow the daemon to synchronize, while we complete other steps.
## Step 2: Install TT-Miner
Open another terminal within the same director, and download TT-Miner application:
```
wget https://github.com/TrailingStop/TT-Miner-release/releases/download/2023.1.0/TT-Miner-2023.1.0.tar.gz
```
Extract and then remove the original .tar file:
```
tar -xf TT-Miner-2023.1.0.tar.gz
rm TT-Miner-2023.1.0.tar.gz
```
Enter the new TT-Miner directory, and open `ZANO-SOLO.sh`using Nano (or other text editor):
```
cd TT-Miner
nano ZANO-SOLO.sh
```
Note the contents. They provide the basic instructions for setting up TT-Miner (though they will require slight modifications):
> rem * Your call to start the ZANO stratrum should look like this. You have to replace <YOUR_WALLET_ID>
> rem * with the address of your ZANO-Wallet
>
> rem zanod.exe --stratum --stratum-miner-address=<YOUR_WALLET_ID> --stratum-bind-port=11555
>
> rem TT commandline
> ./TT-Miner -luck -coin ZANO -P <YOUR_WORKER_NAME>@127.0.0.1:11555
> pause
Exit Nano (`ctl+x`), but leave the terminal and directory open; we'll return to it soon.
## Step 3: Nvidia Driver Installation
Since Ubuntu uses all open source drivers, you may need to install the proper proprietary Nvidia driver (for use with Cuda below). To determine which FOSS driver you may have, and which proprietary driver is recommended, give the command:
```
sudo ubuntu-drivers devices
```
You should see something like the following:
<div>
<img src="static/img/mine/solo-mining-guides/linux/nvidia-installed_drivers.png" width="800">
</div>
</div>
If you already have proprietary drivers, you can skip the next three sub-steps.
If you need to upgrade, do so to the suggested driver:
```
sudo ubuntu-drivers autoinstall
```
You will now need to reboot your system for these changes to be made (if so, remember to stop the daemon and close all open terminals).
Unless you already have Cuda Advanced Libraries installed on your Linux machine, we have one additional installation before running TT-Miner: [^2]
```
sudo apt install nvidia-cuda-toolkit
```
If you wish to check on the installation, give:
```
nvcc --version
```
## Step 4: Starting TT-Miner
Once your node is fully synced, stop it (`ctl+c`). In the same terminal, restart `zanod` with the following flags, taken from the above `ZANO-SOLO.sh` file:
```
./zanod --stratum --stratum-miner-address=<YOUR_WALLET_ID> --stratum-bind-port=11555
```
Note the above has two important adjustments from what is given in `ZANO-SOLO.SH`:
- You must account for Linux, substituing `zanod.exe` with `./zanod`.
- You must replace `<YOUR_WALLET_ID>`, with your wallet's **receive address** (note this is neither your rig nor wallet name).
If you do not place your receive address there, you may get an error such as the following:
<div>
<img src="static/img/mine/solo-mining-guides/linux/nvidia-wrong_wallet.png" width="800">
</div>
<div>
<div align=center>
</div>
But if there are no other problems, the daemon should start, eventually confiming synchronization:
<div>
<img src="static/img/mine/solo-mining-guides/linux/nvidia-daemon4.png" width="800">
</div>
We're ready to run TT-Miner. Open a new terminal in the same directory as both `ZANO-SOLO.sh` and `TT-Miner` .
Give the command:
```
./TT-Miner -luck -coin ZANO -u miner -o 127.0.0.1:11555
```
The miner should start, displaying your statistics:
<div>
<img src="static/img/mine/solo-mining-guides/linux/nvidia-ttminer.png" width="800">
</div>
And if you switch to the terminal with your daemon running, you should now see this:
<div>
<img src="static/img/mine/solo-mining-guides/linux/nvidia-daemon_mining.png" width="800">
</div>
<div>
<h1>Congratulations, you're solo mining Zano!<h1>
</div>
[^1]: This guide assumes you've already installed, and can use, a CLI wallet and its daemon. If you haven't, see those guides [here](https://docs.zano.org/docs/install-a-zano-cli-wallet-ubuntu) and [here](https://docs.zano.org/docs/using-a-zano-cli-wallet), respectively.
[^2]: If you get the following error, you'll need to install Cuda: `./TT-Miner: error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory.`