Skip to content

MINING ETC ON UBUNTU WITH NVIDIA 1080TI

Recently I had to change the software on my rig. My rig is mining ETC on Ubuntu with NVidia 1080TI cards. I had to change it because claymore was not working the way it should with the site ethermine, hence the need to change mining software from claymore to ethminer. The following guide is how i did it.

Login to the headless rig
sudo bash
cd /
mkdir /miner
cd /miner
wget https://github.com/ethereum-mining/ethminer/releases/tag/v0.18.0

Once it downloads you then run
tar -zxvf *.gz
The software will unpack

cd bin
wget https://tacticalware.com/downloads/etc-ethminer.txt
mv etc.txt etc.sh
chmod +x etc.sh
nano etc.sh

Change the wallet address to your wallet
Save the file and Exit
./etc.sh

You should now be mining. Be sure to look at https://etc.ethermine.org/ and monitor your wallet to verify that it is sending data back and forth to the site. It should take about 15 minutes to show up initially, so be patient.


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

CONNECT POWER BI TO COINMARKETCAP

Needless to say, I have been mining a while, and have some crypto that I want to keep track of. How do you do this, you ask….Well I just have to Connect Power Bi to CoinMarketCap, list my coins, and off I go. This quick and easy guide is how I will connect Power BI to CoinMarketCap.

Open Power BI
Click File
Select New
Click Get Data
Select From Web
Click Advanced
For URL Parts you will want to enter in the following:
https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest
In the HTTP request header parameters(optional) first box, type in
X-CMC_PRO_API_KEY
In the Second Box you will want to enter in your CoinMarketCap API Key

To get the API Key, use the web browser on your computer (Not inside Power BI) and go to
https://pro.coinmarketcap.com/account
Sign up for an account if you don’t already have one
If you do have an account, login
Hover over the API Key box and click Copy

Back to Power BI
Now in the Second Box you will want to enter in your CoinMarketCap API Key
Click Ok
Power BI will now connect to CoinMarketCap

In Power Query
Click data
Select list
Select the To Table button
Use defaults and Click OK
In the Column header, click the button on the top right
Click (Select All Columns)
Select Ok
Click the the Column1.tags header, click the button on the top right
Select Extract Values
Hit the Drop Down
Select Comma
Click Ok
Click the the Column1.quote header, click the button on the top right
Place a checkmark next to USD
Click Ok
Click the the Click the the Column1.quote header, click the button on the top right
Place a checkmark next to USD
Click the the Click the the Column1.quote.USD header, click the button on the top
Click (Select All Columns)
Select Ok

Click the Save Icon at the top left

Click Close and Apply




Documentation on the various CoinMarketCap commands can be found at https://coinmarketcap.com/api/documentation/v1/#section/Endpoint-Overview

ADDING A DIGIT TO A COLUMN IN POWER BI

  • Power BI

I have an excel file with all of my original data, that i need to modify, once it is in Power BI. To do so, I have worked with a friend to create a simple, but effective code to to this automatically. The zip code is automatically formatted in excel, and changed from 02860 over to 2860. I did not notice it until well after it was within Power BI. So this guide is what I ran through in adding a to a column in Power BI.

Open Power BI
Open the pbix file
Click Home
Select Transform Data
Find the Zip column and highlight it. In My case the column has 2860
Click Add Column
Select Custom Column
Type in the following in the Custom Column Formula dialog box
= Text.PadStart([Zip],5,”0″)
Click Ok

That’s it! I now have a zip code column with the proper formatting of 02860 instead of 2860

TURN OFF MAGEGEE KEYBOARD LIGHTS

  • General

Here is a quick and easy how-to on turning off the lights on the MageGee Keyboards.

To do this, it is a simple combination of keystrokes

Hold down the Fn key

Press Esc twice

Your keyboard should not have the rainbow backlight anymore and you should be all set

POWER BI SHAPE MAP

  • Power BI

When you install Power BI, it does not have certain features enabled. One feature that I need to use, is the Power Bi Shape Map. This quick how-to guide is the way to enable that feature.

Open Power BI
Click File
Click Options and Settings
Click Options
Click Preview Features
Place a check mark next to Shape Map Visual
Click Ok
Now restart Power BI for the changes to take effect

And there you have it, a quick way to enable the Power BI Shape Map

MARLIN GCODE

For those of you, like me, who are into 3D printing, here is a quick, and VERY helpful set of marlin gcodes for your Marlin firmware. It will help you when you have to diagnose the errors on-screen, and it will help you even more, if you use the command sets through octoprint. Now onto the latest GCode as of Marlin 2.0.5

G0-G1: Linear Move
G2-G3: Arc or Circle Move
G4: Dwell
G5: Cubic spline
G10: Retract
G11: Recover
G12: Clean the Nozzle
G17-G18: CNC Workspace Planes
G20: Inch Units
G21: Millimeter Units
G26: Mesh Validation Pattern
G27: Park toolhead
G28: Auto Home
G29: Bed Leveling
G29: Bed Leveling (3-Point)
G29: Bed Leveling (Linear)
G29: Bed Leveling (Manual)
G29: Bed Leveling (Bilinear)
G29: Bed Leveling (Unified)
G30: Single Z-Probe
G31: Dock Sled
G32: Undock Sled
G33: Delta Auto Calibration
G34: Z Steppers Auto-Alignment
G38.2-G38.3: Probe target
G42: Move to mesh coordinate
G53: Move in Machine Coordinates
G54-G55: Workspace Coordinate System
G60: Save Current Position
G61: Return to Saved Position
G76: Probe temperature calibration
G80: Cancel Current Motion Mode
G90: Absolute Positioning
G91: Relative Positioning
G92: Set Position
G425: Backlash Calibration
M0-M1: Unconditional stop
M3: Spindle CW / Laser On
M4: Spindle CCW / Laser On
M5: Spindle / Laser Off
M16: Expected Printer Check
M17: Enable Steppers
M18-M84: Disable steppers
M20: List SD Card
M21: Init SD card
M22: Release SD card
M23: Select SD file
M24: Start or Resume SD print
M25: Pause SD print
M26: Set SD position
M27: Report SD print status
M28: Start SD write
M29: Stop SD write
M30: Delete SD file
M31: Print time
M32: Select and Start
M33: Get Long Path
M34: SDCard Sorting
M42: Set Pin State
M43: Debug Pins
M43 T: Toggle Pins
M48: Probe Accuracy Test
M7-M8: Coolant Controls
M73: Set Print Progress
M75: Start Print Job Timer
M76: Pause Print Job
M77: Stop Print Job Timer
M78: Print Job Stats
M80: Power On
M81: Power Off
M82: E Absolute
M83: E Relative
M85: Inactivity Shutdown
M92: Set Axis Steps-per-unit
M100: Free Memory
M104: Set Hotend Temperature
M105: Report Temperatures
M106: Set Fan Speed
M107: Fan Off
M108: Break and Continue
M109: Wait for Hotend Temperature
M110: Set Line Number
M111: Debug Level
M112: Emergency Stop
M113: Host Keepalive
M114: Get Current Position
M115: Firmware Info
M117: Set LCD Message
M118: Serial print
M119: Endstop States
M120: Enable Endstops
M121: Disable Endstops
M122: TMC Debugging
M125: Park Head
M126: Baricuda 1 Open
M127: Baricuda 1 Close
M128: Baricuda 2 Open
M129: Baricuda 2 Close
M140: Set Bed Temperature
M141: Set Chamber Temperature
M145: Set Material Preset
M149: Set Temperature Units
M150: Set RGB(W) Color
M155: Temperature Auto-Report
M163: Set Mix Factor
M164: Save Mix
M165: Set Mix
M166: Gradient Mix
M190: Wait for Bed Temperature
M191: Wait for Chamber Temperature
M200: Set Filament Diameter
M201: Set Print Max Acceleration
M203: Set Max Feedrate
M204: Set Starting Acceleration
M205: Set Advanced Settings
M206: Set Home Offsets
M207: Set Firmware Retraction
M208: Firmware Recover
M209: Set Auto Retract
M211: Software Endstops
M217: Filament swap parameters
M218: Set Hotend Offset
M220: Set Feedrate Percentage
M221: Set Flow Percentage
M226: Wait for Pin State
M240: Trigger Camera
M250: LCD Contrast
M260: I2C Send
M261: I2C Request
M280: Servo Position
M281: Edit Servo Angles
M290: Babystep
M300: Play Tone
M301: Set Hotend PID
M302: Cold Extrude
M303: PID autotune
M304: Set Bed PID
M350: Set micro-stepping
M351: Set Microstep Pins
M355: Case Light Control
M360: SCARA Theta A
M361: SCARA Theta-B
M362: SCARA Psi-A
M363: SCARA Psi-B
M364: SCARA Psi-C
M380: Activate Solenoid
M381: Deactivate Solenoids
M400: Finish Moves
M401: Deploy Probe
M402: Stow Probe
M403: MMU2 Filament Type
M404: Set Filament Diameter
M405: Filament Width Sensor On
M406: Filament Width Sensor Off
M407: Filament Width
M410: Quickstop
M412: Filament Runout
M413: Power-loss Recovery
M420: Bed Leveling State
M421: Set Mesh Value
M422: Set Z Motor XY
M425: Backlash compensation
M428: Home Offsets Here
M486: Cancel Objects
M500: Save Settings
M501: Restore Settings
M502: Factory Reset
M503: Report Settings
M504: Validate EEPROM contents
M524: Abort SD print
M540: Endstops Abort SD
M569: Set TMC stepping mode
M575: Serial baud rate
M600: Filament Change
M603: Configure Filament Change
M605: Dual Nozzle Mode
M665: Delta Configuration
M665: SCARA Configuration
M666: Set Delta endstop adjustments
M666: Set dual endstop offsets
M701: Load filament
M702: Unload filament
M710: Controller Fan settings
M851: XYZ Probe Offset
M852: Bed Skew Compensation
M871: Probe temperature config
M900: Linear Advance Factor
M906: TMC Motor Current
M907: Set Motor Current
M908: Set Trimpot Pins
M909: DAC Print Values
M910: Commit DAC to EEPROM
M911: TMC OT Pre-Warn Condition
M912: Clear TMC OT Pre-Warn
M913: Set Hybrid Threshold Speed
M914: TMC Bump Sensitivity
M915: TMC Z axis calibration
M928: Start SD Logging
M997: Firmware update
M999: STOP Restart
M7219: MAX7219 Control
T0-T1: Select Tool

UBUNTU 20.04 HEADLESS MINING

This one is quick and easy guide on how to Disable the GUI, for those of you who are like me, and do not want the extra processing cycles wasted on a gui…Here you go.

Log into your system

Open a terminal

sudo bash

systemctl set-default multi-user

Reboot your computer

Voila…headless mining rig

INSTALL NVIDIA 1080TI DRIVERS ON UBUNTU 20.04

These directions are quick, easy How-To on to install Nvidia 1080TI drivers, and these next steps will give you the exact commands that I use to get the drivers installed on my headless mining rig.

Open Terminal
sudo bash
apt-get install ubuntu-drivers-common
y

Check nvidia driver version
ubuntu-drivers devices

The following will show on the screen
vendor   : NVIDIA Corporation
model    : GP102 [GeForce GTX 1080 Ti]
driver   : nvidia-driver-440-server – distro non-free
driver   : nvidia-driver-450 – distro non-free recommended
driver   : nvidia-driver-450-server – distro non-free

Select which driver you want….in my case I selected 450 server, so then I run
apt install nvidia-driver-450-server

Reboot after the install finishes

Login
Open a terminal
sudo bash
nvidia-smi

This will verify install nvidia 1080TI drivers have been installed properly

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

INSTALLING CUDA ON UBUNTU SERVER 20.04

  • Mining

In the past, installing CUDA onto Ubuntu Servers, used in mining, was a large undertaking. With the latest release of Ubuntu, everything has changed. Thankfully. Now we are able to easily go through the steps of installing cuda on ubuntu server 20.04. The steps below outline what you will need to do to make this work. I have had success installing either before, or after, I already have the 1080ti drivers on the system. It may not be the same in the future, but as of this writing today, all you have to do are the few steps below.

Open a Terminal
sudo bash
apt-get update
apt install nvidia-cuda-toolkit
y

Cuda will now run the installation. It will take a while, so sit tight. Once it is done installing cuda on ubuntu server 20.04…you are done. Enjoy!

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

TEAMVIEWER 15.10 BROKEN ON UBUNTU 20.04

Teamviewer 15.10 on Ubuntu 20.04, does not work, end of story…For any of you who have been using teamviewer for a while now on your personal systems, teamviewer being broken on Ubuntu is nothing new…keeps happening, and is a HUUUUUGE pain, especially when you are running a mining rig at your house, and you are away for work. Well to fix it this time it is time is a bit easier, however I am not sure how long this fix will last. Teamviewer has an almost magical way of ruining these workarounds. Now, onto the fix…This is the quick fix to remove and replace teamviewer, with a working version of it on Ubuntu Server 20.04

Open a terminal
sudo bash
apt remove teamviewer
apt-get update
apt-get install gdebi-core
wget https://download.teamviewer.com/download/linux/version_14x/teamviewer-host_amd64.deb
dpkg -i teamviewer-host_amd64.deb

If it fails, that’s ok because we will fix it here
apt-get -f install
y

After it installs successfully then type
teamviewer info

Take a note of your Teamviewer ID, you will need it later
teamviewer passwd YOURPASSWORDHERE

Now open teamviewer on another computer that you are logged into

Add the computer using the menu “Add Computer“ enter in your Teamviewer ID and the Password you used in YOURPASSWORDHERE

You can now Connect and your workaround to teamviewer 15.10 on ubuntu 20.04 should now be in place