Etc

xmr-stak ubuntu

Naan 2018. 1. 25. 15:25
320x100

ubuntu 16.04 


cuda install

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
apt-get update
apt-get install cuda-8-0

apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev git

apt install ocl-icd-opencl-dev

cd /usr/local/src/

git clone https://github.com/fireice-uk/xmr-stak.git

mkdir xmr-stak/build

cd xmr-stak/build

cmake .. -DCUDA_ARCH=61 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-8.0

make install


./xmr-stak 

setting



vi /lib/systemd/system/xmr-stak.service

[Unit]

Description=xmr

After=network.target

[Service]

ExecStart=/usr/local/src/xmr-stak/build/bin/xmr-stak -c /usr/local/src/xmr-stak/build/bin/config.txt

User=root

[Install]

WantedBy=multi-user.target



systemctl daemon-reload

systemctl enable xmr-stak.service



320x100