Changes

Jump to navigation Jump to search
2,163 bytes added ,  22:25, 22 January 2019
==Pre-installation==
===Run Updates===
sudo apt-get update
sudo apt-get upgrade
 
===Reboot===
 
===Verify that you have a CUDA-Capable GPU===
lspci | grep -i nvidia
===Add location of CUDA drivers to the PATH===
Add drivers to environment path:
nano ~/.profile
 
With the file opened in the nano editor, scroll down and add at the bottom:
 
export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
 
Type ''Ctrl+O'' ENTER to save and ''Ctrl+X'' to exit
===Set configuration===
sudo nvidia-smi -pl 100
 
==Disable automatic updates==
'''IMPORTANT:''' Disabling automatic updates creates a security risk. To keep your system updated manually:
 
sudo apt update
sudo apt upgrade
 
Automatic updates might interfere with your miner. To disable them, edit the following file:
 
sudo nano /etc/apt/apt.conf.d/20auto-upgrades
 
With the file opened in the nano editor, switch off the updater by changing values from 1 to 0:
 
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
 
Type ''Ctrl+O'' ENTER to save and ''Ctrl+X'' to exit
 
==Setting up the miner==
For this example, let's look at the currently popular miner T-Rex.
# [https://github.com/trexminer/T-Rex/releases/ Download the last version from their Github here].
# Browse to the Downloads folder using the Files explorer
# Extract the miner from the tar.gz-file (right click and choose ''Extract Here'')
# Move the extracted folder to your home directory by dragging or copy-pasting it there
# Rename the folder to '''trex-miner''' for simplicity (right click and choose ''Rename...'')
# In the folder trex-miner, rename '''config_example''' to '''config''' (at the time of this writing their example was named ''config_example'')
# Open the config file in Text Editor (simply double-click) and change the settings to your liking.
 
Now start the miner by opening a Terminal and type:
~/trex-miner/t-rex -c config
 
'''OPTIONAL:''' Adjust intensity setting to your liking by adding -i '''X''', where '''X''' is your desired intensity setting, for example 20.
~/trex-miner/t-rex -c config -i 20
 
==Troubleshoot==
===PCI Bus Error===
If you encounter PCIe Bus Error messages:
 
sudo nano /etc/default/grub
 
Add ''pci=noaer'' at the end of GRUB_CMDLINE_LINUX_DEFAULT:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer"
 
Type ''Ctrl+O'' ENTER to save and ''Ctrl+X'' to exit and update grub:
 
sudo update-grub
 
Now reboot

Navigation menu