Skip to content
Home » Mining

Mining

Cryptocurrency Mining Information, How-To’s, Tips, Tools, and Guides

LINUX COMMAND LINE SHOW PUBLIC IP

This is a simple command that you can run on your local linux box, which will show you the public ip of the machine. Very helpful when mining on ethermine

First open a Terminal

Type:
dig +short myip.opendns.com @resolver1.opendns.com

That’s it. Your public IP will now show

ERROR: Can’t start miner, cuda exception in [check_if_cuda_really_exists, 248], invalid argument

I just rebooted my miner, had not run any updates, had not run anything, just rebooted my miner, tried turning t-rex back on, and received the following error: ERROR: Can’t start miner, cuda exception in [check_if_cuda_really_exists, 248], invalid argument

To fix this I had to perform the following
Login to the miner
Type:
sudo bash
apt-get update
apt-get upgrade
y
ubuntu-drivers devices
Check to see if the 450 driver is available:

vendor : NVIDIA Corporation
model : GP102 [GeForce GTX 1080 Ti]
driver : nvidia-driver-390 – distro non-free
driver : nvidia-driver-460-server – distro non-free
driver : nvidia-driver-450-server – distro non-free
driver : nvidia-driver-460 – distro non-free recommended
driver : nvidia-driver-418-server – distro non-free
driver : nvidia-driver-450 – distro non-free
driver : xserver-xorg-video-nouveau – distro free builtin

Now run the following command
apt purge nvidia-driver-460-server
y
apt install nvidia-driver-450-server
y
reboot

Once your miner comes back online, you can now run t-rex fine.

The hardware that I used in this guide:
Gigabyte AORUS GeForce GTX 1080 Ti (QTY 6):
https://amzn.to/2JqvXC8

Motherboard (QTY 1): 
https://amzn.to/2JqGJZ7

CPU (QTY 1): 
https://amzn.to/3qevp2X

Memory (QTY 1): 
https://amzn.to/2JqHn8Z

Hard Drive (QTY 1):  
https://amzn.to/3lic3X5

Risers (QTY 6):  
https://amzn.to/33rIgVE

Power Supplies (QTY 2):
https://amzn.to/3fTRpLR

Add2PSU (QTY 1):
https://amzn.to/39s4URY

Power Switch (QTY 1):  
https://amzn.to/3ljmNVk

UBUNTU 20.04, 1080 TI, ETH MINING IN 2021

This is a quick guide on how to use T-Rex on your Ubuntu 20.04 mining rig to allow your NVidia 1080 Ti cards to mine Ethereum in 2021.

On the rig
Open a Terminal
sudo bash
Enter your password
mkdir /tacticalware
cd /tacticalware

If you have Cuda 10 installed, download the following, otherwise find the one for your Cuda version
wget https://github.com/trexminer/T-Rex/releases/download/0.19.5/t-rex-0.19.5-linux-cuda10.0.tar.gz
Once it is downloaded
tar -zxvf t-rex-0.19.5-linux-cuda10.0.tar.gz
cp ETC-2miners.sh tacticalware-eth.sh
nano tacticalware-eth.sh

Now modify the contents of the file. I suggest replacing the mining site, and wallet address. My file looks like this:
./t-rex -a ethash –coin eth -o stratum+tcp://us1.ethermine.org:4444 -u 0xb6c1807520Fc60e39a29cD02a859c652B2910DB8 -w tacticalware

Note that there is a double dash before –coin and –fork. Sometimes your browser will show them as a double dash, sometimes it shows as a single long dash. they are double dashes

Save the file
Exit
Now you can launch it by running
./tacticalware-eth.sh

It will begin to mine. To monitor it you can do it through a web browser. Simply look for the address when the miner begins

The address will look something like this, and be displayed right when you begin mining
ubuntu t-rex


When you browse to that site you will see something that looks like this:

t-rex
That’t It. You are mining successfully. Thanks for reading

The hardware that I used in this guide:
Gigabyte AORUS GeForce GTX 1080 Ti (QTY 6):
https://amzn.to/2JqvXC8

Motherboard (QTY 1): 
https://amzn.to/2JqGJZ7

CPU (QTY 1): 
https://amzn.to/3qevp2X

Memory (QTY 1): 
https://amzn.to/2JqHn8Z

Hard Drive (QTY 1):  
https://amzn.to/3lic3X5

Risers (QTY 6):  
https://amzn.to/33rIgVE

Power Supplies (QTY 2):
https://amzn.to/3fTRpLR

Add2PSU (QTY 1):
https://amzn.to/39s4URY

Power Switch (QTY 1):  
https://amzn.to/3ljmNVk

INCREASE ETH / ETC MINING BY 50% IN 2021 USING OHGODANETHLARGEMENTPILL-R2

If you are still using an NVidia 1080 Ti card, and are trying to compete with the 2080s and 3090s these days, you need to up your hash game. There has been a tool around for the past 2 years to help with this. It is specifically designed for teh 1080 Ti cards, and has increased my hashes in the area of 50% per card. I wanted to preserve the software on github, so I created my own fork of it. The fork will not be updated, or worked on by me. It is just there so we all have a place to draw from in the long run.

For my setup, I am running Ubuntu 20.04.01, headless, and an Nvidia 1080ti. My miner is T-Rex with the setup from this guide:
https://tacticalware.com/ubuntu-20-04-etc-mining-after-epoch-390-november-2020/

Back to the guide

On your miner, open a terminal
sudo bash
cd /tacticalware
git clone https://github.com/tacticalware/ETHlargementPill.git
mv ETHlargementPill/ ohgod
cd ohgod
chmod +x OhGodAnETHlargementPill-r2
screen ./OhGodAnETHlargementPill-r2

You will see the following message:



Your system is now capable of running at 50% greater speed.

Since you used screen you can close this connection and it will still run.
To reconnect to this screen you can resume it by opening a terminal again
Typing sudo bash
Then screen -r

All that is left is to start up your mining software, configure it to mine ETH or ETC and start mining.

Enjoy the extra hashes!

The hardware that I used in this guide:
Gigabyte AORUS GeForce GTX 1080 Ti (QTY 6):
https://amzn.to/2JqvXC8

Motherboard (QTY 1): 
https://amzn.to/2JqGJZ7

CPU (QTY 1): 
https://amzn.to/3qevp2X

Memory (QTY 1): 
https://amzn.to/2JqHn8Z

Hard Drive (QTY 1):  
https://amzn.to/3lic3X5

Risers (QTY 6):  
https://amzn.to/33rIgVE

Power Supplies (QTY 2):
https://amzn.to/3fTRpLR

Add2PSU (QTY 1):
https://amzn.to/39s4URY

Power Switch (QTY 1):  
https://amzn.to/3ljmNVk




UPDATE NEW RASPBERRY PI 4 FIRMWARE / EEPROM

This guide assumes you do not have a running Raspberry Pi 4 device, and this is your first time opening it up. If that is the case, make sure you follow the steps in this guide first
https://tacticalware.com/install-raspbian-os-on-raspberry-pi-4/

Once your Operating system is setup and functional you will want to update the firmware to the latest revision, therefore the objective of this guide is to show you how to update Raspian and how to update the eeprom / firmware

Open a terminal
sudo bash
apt update
apt upgrade
rpi-update

Would you like to proceed
Type y
Now reboot your Pi

Open a terminal
sudo bash
rpi-eeprom-update -d -a
reboot your Pi after it updates

Open a terminal
raspi-config
Scroll down and select Option 8 – Update
Update now runs, and after the update completes
Scroll down and select Option 6 – Advanced Options
Then scroll down to Option A7 – Bootloader Options
Select Option E1 Latest – Use the latest version of the boot rom software
Press Enter
Select OK
On the Reset boot rom to defaults screen
Select No
On the Boot rom not reset to defaults screen
Select OK
Scroll down and select Finish
Select Yes

Your Firmware / EEPROM are now Updated, and you will have the latest version with the latest features.

Hardware I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Thanks for reading!

UDATE EXISTING RASPBERRY PI 4 FIRMWARE / EEPROM

This guide assumes you already have a running Raspberry Pi 4 device. If you do not already have it setup, you can follow this guide first (https://tacticalware.com/install-raspbian-os-on-raspberry-pi-4/)

This objective of this guide is to show you how to update Raspian and how to update the eeprom / firmware

Open a terminal
sudo bash
apt update
apt upgrade
rpi-update

Would you like to proceed
Type y
Now reboot your Pi

Open a terminal
sudo bash
rpi-eeprom-update -d -a
reboot your Pi after it updates

Open a terminal
raspi-config
Scroll down and select Option 8 – Update
Update now runs, and after the update completes
Scroll down and select Option 6 – Advanced Options
Then scroll down to Option A7 – Bootloader Options
Select Option E1 Latest – Use the latest version of the boot rom software
Press Enter
Select OK
On the Reset boot rom to defaults screen
Select No
On the Boot rom not reset to defaults screen
Select OK
Scroll down and select Finish
Select Yes

Your Firmware / EEPROM are updated, and you will have the latest version with the latest features.

Hardware I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9


Thanks for Reading!

USBIT – USB BACKUP TOOL FOR MINING RIGS

Simple, easy, fast backup utility for your mining rigs. I use this on mine, where Ubuntu 20.04 is running off of a usb drive.

Plug the Linux USB Drive into your Windows 10 computer

On a Windows 10 computer, download the latest version of the software from:
https://www.alexpage.de/usb-image-tool/download/

Extract the software on your windows computer
Double Click USB Image Tool, to launch the program
In the White box on the left, select the USB Drive that your Linux VM is on
Select Backup in the bottom menu
Pick the folder where you want the backup to save to
Give it a name like tacticalware
Press Enter
Your backup will begin

Once your backup completes you are ready to go.

To restore the image, you can use the same tool (USBIT), select your Image, Select the USB Drive, and click restore.

Simple, easy, fast….Thanks for reading




CHROME REMOTE DESKTOP ON HEADLESS UBUNTU 20.04

Since the latest teamviewer update, I have had to switch away from it altogether for a better alternative. Enter Chrome Remote Desktop… This package allows me to connect to my Windows computers, and linux computers in a similar manner, and also allows for me to connect to my headless mining rigs. The guide below details how I set up chrome remote desktop on headless ubuntu 20.04 rig.

sudo bash

apt update

apt-get install –assume-yes wget

wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb

dpkg –install chrome-remote-desktop_current_amd64.deb
apt install –assume-yes –fix-broken

sudo DEBIAN_FRONTEND=noninteractive \
apt install –assume-yes xfce4 desktop-base

sudo bash -c ‘echo “exec /etc/X11/Xsession /usr/bin/xfce4-session” > /etc/chrome-remote-desktop-session’

sudo apt install –assume-yes xscreensaver

sudo systemctl disable lightdm.service

sudo usermod -a -G chrome-remote-desktop $USER

exit

On a different computer
Open the Chrome browser
Go to
https://remotedesktop.google.com/headless
Sign In
Click Begin
Select Next
Click Authorize

Copy the code that looks like this:
DISPLAY= /opt/google/chrome-remote-desktop/start-host \
–code=”4/xxxxxxxxxxxxxxxxxxxxxxxx” \
–redirect-url=”https://remotedesktop.google.com/_/oauthredirect” \
–name=


Enter in a six digit pin
Confirm the pin
Enter in your sudo password

Your installation should be complete

Open Chrome Remote Desktop on a computer, and connect to your headless system.

Thanks for reading

UBUNTU 20.04, ETC MINING, AFTER EPOCH 390 [NOVEMBER 2020]

This is a quick guide on how to use T-Rex on your Ubuntu 20.04 mining rig to allow your NVidia 1080 Ti cards to run after the epoch. Ethereum Classic has a hardform at Epoch 390 which should fall on or around November 28th 2020. To keep mining afterwards you will have to update your miner to one that supports the new fork. For this, I have chosen to switch over to T-Rex.

On the rig
Open a Terminal
sudo bash
Enter your password
mkdir /tacticalware
cd /tacticalware

If you have Cuda 10 installed, download the following, otherwise find the one for your Cuda version
wget https://github.com/trexminer/T-Rex/releases/download/0.18.11/t-rex-0.18.11-linux-cuda10.0.tar.gz
Once it is downloaded
tar -zxvf t-rex-0.18.11-linux-cuda10.0.tar.gz
cp ETC-2miners.sh tacticalware.sh
nano tacticalware.sh

Now modify the contents of the file. I suggest replacing the mining site, and wallet address. My file looks like this:
./t-rex -a ethash –coin etc -o stratum+tcp://us1-etc.ethermine.org:4444 -u 0xb2bc70cD85e20c96c8967CAECcE20a238ee9950D -w tacticalware –fork-at etchash=epoch:390

Note that there is a double dash before –coin and –fork. Sometimes your browser will show them as a double dash, sometimes it shows as a single long dash. they are double dashes

Save the file
Exit
Now you can launch it by running
./tacticalware.sh

It will begin to mine. To monitor it you can do it through a web browser. Simply look for the address when the miner begins

The address will look something like this, and be displayed right when you begin mining
ubuntu t-rex


When you browse to that site you will see something that looks like this:

t-rex

That’t It. You are mining successfully. Thanks for reading

The hardware that I used in this guide:
Gigabyte AORUS GeForce GTX 1080 Ti (QTY 6):
https://amzn.to/2JqvXC8

Motherboard (QTY 1): 
https://amzn.to/2JqGJZ7

CPU (QTY 1): 
https://amzn.to/3qevp2X

Memory (QTY 1): 
https://amzn.to/2JqHn8Z

Hard Drive (QTY 1):  
https://amzn.to/3lic3X5

Risers (QTY 6):  
https://amzn.to/33rIgVE

Power Supplies (QTY 2):
https://amzn.to/3fTRpLR

Add2PSU (QTY 1):
https://amzn.to/39s4URY

Power Switch (QTY 1):  
https://amzn.to/3ljmNVk

WINDOWS 10 MINING ETC AFTER EPOCH 390 [NOVEMBER 2020]

This is a quick guide on how to use T-Rex on your Windows 10 computer to allow your NVidia 1080 Ti cards to run after the epoch. Ethereum Classic has a hardform at Epoch 390 which should fall on or around November 28th 2020. To keep mining afterwards you will have to update your miner to one that supports the new fork. For this, I have chosen to switch over to T-Rex.

On my Windows computer:
Open a web browser
Navigate to
https://github.com/trexminer/T-Rex/releases

Download
https://github.com/trexminer/T-Rex/releases/download/0.18.11/t-rex-0.18.11-win-cuda10.0.zip

Unzip t-rex-0.18.11….

Your Antivirus will probably send you a warning, so you will have to create an exception for it.

Now right click on the .bat file you want to run. For me, I will be mining ETC, so I will right click on ETC-2miners.bat

Once the file is open, I will save it as Tacticalware.bat

Next you will want to change the mining pool to whichever one you use. I use ethermine

You will want to modify the wallet address that shows in the file, and replace it with your wallet address

At the end of the changes, my file looks like this:
t-rex.exe -a ethash –coin etc -o stratum+tcp://us1-etc.ethermine.org:4444 -u 0xb2bc70cD85e20c96c8967CAECcE20a238ee9950D -w tacticalware –fork-at etchash=epoch:390

pause


Save the file, and then run it. You can monitor the progress by navigating watching your hashes on the ethermine site, or navigate to the local t-rex site that is created on your computer.

The address will look something like this, and be displayed when you begin mining
t-rex


When you browse to that site you will see something that looks like this:

t-rex

You can now monitor your mining rig through a browser

Thanks for reading

The hardware that I used in this guide:
Gigabyte AORUS GeForce GTX 1080 Ti (QTY 4):
https://amzn.to/2JqvXC8

Motherboard (QTY 1): 
https://amzn.to/2JqGJZ7

CPU (QTY 1): 
https://amzn.to/3qevp2X

Memory (QTY 1): 
https://amzn.to/2JqHn8Z

Hard Drive (QTY 1):  
https://amzn.to/3nZ5pH4

Risers (QTY 4):  
https://amzn.to/33rIgVE

Power Supplies (QTY 2):
https://amzn.to/3fTRpLR

Add2PSU (QTY 1):
https://amzn.to/39s4URY

Power Switch (QTY 1):  
https://amzn.to/3ljmNVk