You are viewing a single comment's thread from:

RE: Ethereum AMD GPU Mining Tutorial Ubuntu 16.04 LTS

in #tutorial6 years ago

Configure auto-mine on startup

Install Screen
    sudo apt install screen
Create a launcher script
    cd ~
    sudo nano minestart.sh

In nano, you will need to paste the following (replace USERNAME with your Ubuntu username)

#!/bin/bash

DEFAULT_DELAY=0

if [ "x$1" = "x" -o "x$1" = "xnone" ]; then

DELAY=$DEFAULT_DELAY

else

DELAY=$1

fi

sleep $DELAY

cd /usr/local/claymore95

su USERNAME -c "screen -dmS ethm ./mine.sh"

You will now need to exit out of Nano
    Press CTRL+X
    Type Y
    Press Enter until you return to the bash promp

Add executable permissions to the file by typing the following:
    sudo chmod +x minestart.sh

Add minestart.sh to startup
    Type the following:
        sudo nano /etc/rc.localv
    Find the line which reads exit 0 and type the following above that line (replace USERNAME with your Ubuntu username):
        /home/USERNAME/minestart.sh 15 &

============sudo nano /etc/rc.local
Find the line which reads exit 0 and type the following above that line (replace USERNAME with your Ubuntu username):
/home/miner-MS-7974/minestart.sh 15 &

Sort:  

Sorry for the delay in response guys!

Ive had an extremely busy month!

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64364.24
ETH 3416.30
USDT 1.00
SBD 2.48