Linux Full Node
This guide was built by and for the Mochimo Discord Community. It will cover the basics for installing and running the Mochimo GPU Miner/Node on Ubuntu 16.04 with Nvidia Graphics Cards.
Contents
Section I: GPU Mining Setup
Prepared by Mochimo Discord Community
OVERVIEW
This section will guide you through installing Ubuntu, updating your drivers, and getting any other settings changed to allow you to mine on a GPU.
ISO Setup
These tools are used to create a bootable drive to install Ubuntu. Skip if you already are running an OS. The miner will not work on any version of Windows currently.
- Download: Rufus Install.
- Download: Ubuntu 16.04 ISO
- Use Rufus to make a USB bootable with this ISO.
- When Installing: Do a full wipe and fresh install.
Static IP
If you do not have a static IP you need to set one to save yourself from future issues.
- Open a Terminal
- Type
ifconfig
to get your IP and Gateway. - Select the up/down arrows in the top right corner.
- Select Disable Connection
- Select Edit Connections
- Remove any old connections.
- Make new connect with: IP of your choosing, a /24 mask (255.255.255.0), Your Gateway IP, and 8.8.8.8 for DNS
- Selection Enable to grab a new IP via DHCP
Nvidia Drivers
This will download the latest Nvidia drivers. They can be manually downloaded if any errors occur or you want a newer/older version.
To download Nvidia drivers search for “Additional Drivers” on Ubuntu and open it.
The appropriate drivers should be available for download.
Manually complete the following commands, then reboot:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-387
Install CUDA Toolkit 9.2
After install, if you still recieve error “ XXXXX “ then reinstall.
Download the Base Installer: Installer
To Install:
sudo dpkg -i cuda-repo-ubuntu1604-9-2-local_9.2.148-1_amd64.deb
sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
CUDA 9.2 Post-Install Instructions
If you do not save these to the bash then after each reboot you will have to reapply.
Once installed, go to: Nvidia Post Installation Guide
Add this path to the PATH variable, by typing:
export PATH=/user/local/cuda-9.2/bin${PATH:+:${PATH}}
Add path to PATH variable:
sudo nano ~/.bashrc
All the way at the bottom add this line:
export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64/${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Port Forwarding
The errors “xxxx” and “xxxx” are usually caused from a mistake made during these steps.
Make sure that port 2095 on both tcp/udp is forwarded to your rigs IP
If you need help, visit the following site, find your router, and follow its instructions:
portforwarding.com
Mochimo Miner/Node
Download the latest release from the Github: Mochimo Github
- Click on: Source code (tar.gz)
- Place it in whatever directory you want.
- In a terminal type:
tar zxvf (drag the file here) && cd mochi
- Make sure you are in the mochi directory. Now type:
cd ./src
- Initiate the build script:
./makeunx bin
If you get a cuda error here, installing Cuda 9.2 failed at some point possibly. Try re-installing.
If you get the collect 2
error try:
ln -s /usr/local/cuda/lib64/libcudart.so /usr/lib/libcudart.so
If you get no errors, use the following command to install the software in the mochi/bin directory:
./makeunx install
Create a Mining Address
You must create a mining address before you can begin mining.
- Go to ./bin directory and invoke the wallet:
./wallet -p2095 -n
- Give it a name like "mining".
- Choose a password (DON’T FORGET THIS)
- Enter Random Text (mash the key, seriously)
- Save the file to "mining.wal"
- Open the wallet:
./wallet -p2905 mining.wal
- Select option 4 to create a new address. Name it ‘mining address’
- Select N to the "Add Tag?" question.
- Select Option 7 to export this address.
- Type 1 and hit enter to select your mining address for export.
- Save this file as maddr.dat (required)
- Type N for saving balance
- Select 0 to exit
Running the Miner
Go to the ./bin directory
Type: ./gomochi d
The miner is running now, but it may take up to a few minutes to sync.
Type: CTRL+C to bring up command prompt
- ? for options
- q for exit
- r for restart