Ubuntu Server 14.04.3 LTS 64 server AMD mining Claymore

멀티 부트 설치 디스크 만들기

다운로드 페이지 https://www.pendrivelinux.com/yumi-multiboot-usb-creator/

최신버전 https://www.pendrivelinux.com/downloads/YUMI/YUMI-2.0.4.9.exe

실행 시키면 여러개의 운영체제를 설치 할 수 있는 멀티 부트 운영체제를 만들 수 있다.


Ubuntu install

http://www.omgubuntu.co.uk/2016/03/ubuntu-drops-amd-catalyst-fglrx-driver-16-04

amd 드라이버를 쓸려면 우분투 16.04 는 사용 하면 안된다.

1. download Ubuntu Server 14.04.3 LTS 64


http://mirror.metrocast.net/ubuntu-releases/14.04/ubuntu-14.04.3-server-amd64.iso

2. update and install packages


sudo apt-get install -y fglrx fglrx-core fglrx-dev fglrx-amdcccle fglrx-updates  
sudo apt-get install -y  xinit xterm screen

sudo aticonfig --adapter=all --initial --f
sudo aticonfig --list-adapters
sudo reboot



http://infi.wikidot.com/blog:_start/tag/miner/category/blog

4. 오버 클럭킹, 언더 클럭킹, 언더볼트, 모니터링


# sudo apt-get install gnome-core gnome-session-flashback

sudo apt-get install -y xinit xterm sudo dpkg-reconfigure x11-common

anybody 선택

# Run X environment
sudo aticonfig --adapter=all --initial --f

screen -dmS X xinit
sudo aticonfig --od-enable
sudo aticonfig --pplib-cmd "set fanspeed 0 100"
sudo aticonfig --pplib-cmd "set fanspeed 1 100"
sudo aticonfig --pplib-cmd "set fanspeed 2 100"
sudo aticonfig --pplib-cmd "set fanspeed 3 100"
sudo aticonfig --odsc 1100,1500 --adapter=all

# Save GPU clocks
sudo aticonfig --adapter=all --odcc

  


# Run
export DISPLAY=:0

# Monitoring clock
sudo aticonfig --odgc --adapter=all

# Monitoring temerature
sudo aticonfig --odgt --adapter=all

# Changing GPU clocks (change 1000, 1400 to your numbers)
sudo aticonfig --od-enable
sudo aticonfig --odsc 1100,1500 --adapter=all

# Save GPU clocks
sudo aticonfig --adapter=all --odcc

# To the defalut clocks - 나중에 복원 할 때
sudo aticonfig --adapter=all --odrd

참고 : https://www.ddengle.com/miningbitcoin/1215774


기본 마이닝에 성공하면, 그 다음 중요한 것은 gpu 코어와 메모리 컬럭속도를 최적화하는 것입니다.
이를 위한 기본 유틸리티는 aticonfig 를 사용합니다.

aticonfig --od-enable   #오버드라이브를 켠다
aticonfig --odgc --adapter=all  #현재의 클럭스피트들 보여준다.
aticonfig --odgt --adapter=all  #현재의 온도를 보여준다.
aticonfig --odsc 1050,1500 --adapter=all # 코어를 1050, 메모리를 1500 으로 맞춘다.

그리고 전력소비를 줄이기 위한 비디오 바이오스 플래쉬 기법도 있습니다.
자세한 내용들은 다시 업데이트하겠습니다.

다른 글로 포스팅 했습니다.
http://www.ddengle.com/miningbitcoin/1115446

자 이것을 우리가 원하는 380x는 780,1485, 280x는  1050,1500 로 바꾸어 봅시다.
aticonfig --adapter=0 --odsc=780,1485
aticonfig --adapter=1 --odsc=1050,1500
최적의 값을 찾은 후 다음의 명령어를 실행하면 마지막에 설정한 값이 리부팅후에도 유지가 됩니다.
aticonfig --adapter=all --odcc


만일 비디오 카드 기본값을 다시 복구하고 싶다면 다음과 같은 명령어를 주고 시스템을 리부트하면 됩니다.
aticonfig --adapter=all --odrd


마지막으로 비디오 카드의 온도테스트는 다음과 같이 합니다.
aticonfig --adapter=all --odgt

5. install claymore

sudo apt-get install -y libcurl3

wget https://github.com/nanopool/Claymore-Dual-Miner/releases/download/v9.7/Claymore.s.Dual.Ethereum.Decred_Siacoin_Lbry_Pascal.AMD.NVIDIA.GPU.Miner.v9.7.-.LINUX.tar.gz

sudo mkdir /usr/local/claymore97

sudo tar -xvf Claymore.s.Dual.Ethereum.Decred_Siacoin_Lbry_Pascal.AMD.NVIDIA.GPU.Miner.v9.7.-.LINUX.tar.gz -C /usr/local/claymore97

sudo chmod u+s /usr/local/claymore97/ethdcrminer64

sudo vi /usr/local/claymore97/mine.sh

#!/bin/sh
export GPU_FORCE_64BIT_PTR=0
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100

/usr/local/claymore97/ethdcrminer64 -epool asia.ethash-hub.miningpoolhub.com:20535 -ewal kildongp.e1 -eworker kildongp.e1 -esm 2 -epsw x -allpools 1 -allcoins 1 -mode 1 -ftime 10

sudo chmod +x /usr/local/claymore97/mine.sh

6. make run script


cd ~
vi miner_launcher.sh

#!/bin/bash
DEFAULT_DELAY=0
if [ "x$1" = "x" -o "x$1" = "xnone" ]; then
   DELAY=$DEFAULT_DELAY
else
   DELAY=$1
fi
sleep $DELAY
su kildongp -c "screen -dmS X xinit"
sleep 5
/usr/bin/aticonfig --od-enable
DISPLAY=:0.0 /usr/bin/aticonfig --pplib-cmd "set fanspeed 0 100"
DISPLAY=:0.1 /usr/bin/aticonfig --pplib-cmd "set fanspeed 0 100"
DISPLAY=:0.2 /usr/bin/aticonfig --pplib-cmd "set fanspeed 0 100"
DISPLAY=:0.3 /usr/bin/aticonfig --pplib-cmd "set fanspeed 0 100"
/usr/bin/aticonfig --odsc 1100,1500 --adapter=all
su kildongp -c "screen -dmS ethm /usr/local/claymore97/mine.sh"

chmod +x miner_launcher.sh


7. screen 

cd ~
sudo vi .bashrc

alias miner='screen -x ethm'


#test 
screen -dmS ethm /usr/local/claymore97/mine.sh

miner


 

8. add to boot script


sudo vi /etc/rc.local


/home/kildongp/miner_launcher.sh 15 &

스크린 사용법
- 보기 miner
- 나올려면 Ctrl+a Ctrl+d

9. powoff

sudo poweroff

wol 기능 확인 한다.




참고




댓글