Title: UnicornHasher Ubuntu+Beta Drivers headless scrypt miner setup and tuning guide Post by: miaviator on March 07, 2014, 08:13:11 PM UNICORN HASHER MINER INSTALLATION GUIDE UnicornHasher GPU Scrypt Miner Setup 201303xx OS: Ubuntu 12.04 LTS Server 64 bit Drive: ADATA 32GB SSD Miners: ckolivas / cgminer 3.7.2 veox / sgminer LATEST from GIT Kalroth / cgminer-3.7.2-kalroth LATEST GIT This guide is copy and paste on how to setup a linux GPU scrypt miner Using any of the above three pieces of mining software. Copy EVERYTHING in the code blocks including empty lines! This is using the latest beta drivers from AMD 14.12 Beta This new driver set includes AMP-APP so we do not install it. This is for altcoin Scrypt Mining on a minimal headless ubuntu linux server Please paste exact error messages if something doesnt work References Used Unicorn Hasher Scrypt-Master.txt http://silverlinux.blogspot.com/2013/10/minimal-headless-opencl-cgminer-on.html Preparing: Download and Install Ubuntu Server 12.04 LTS 64 bit: http://releases.ubuntu.com/12.04.4/ubuntu-12.04.4-server-amd64.iso There are thousands of guides on installing ubuntu. This is not one of them. Sorry To follow this guide without modifications set the Username and Password miner select openssh-server during installation make sure you can ssh to the box Unplug the monitor and SSH into the machine everything else in this guide is normally done from a remote location! Code: sudo -s Update the system Code: apt-get -y update Install dependencies Code: apt-get install -y dh-make dh-modaliases execstack libxrandr2 libice6 libsm6 libfontconfig1 libxi6 libxcursor1 libgl1-mesa-glx libxinerama1 libqtgui4 unzip xdm xorg git build-essential autoconf libtool libcurl4-openssl-dev libncurses5-dev pkg-config libudev-dev screen opencl-headers lib32gcc1 libc6-i386 dkms Fix the grub failure bug, normally after a system crash or a few forced reboots Ubuntu will sit at the grub prompt and wait for you to hit enter. Which sucks. Code: sed "s/:--1/0/g" -i /etc/grub.d/00_header Swap privilege levels: Code: su miner Download the newest catalyst beta driver for linux amd64 and the AMD_SDL headers You will have to get a valid nonce or download the ADL_SDK FROM: http://developer.amd.com/tools-and-sdks/graphics-development/display-library-adl-sdk/ The nonce is a code to prevent me from scripting this :) If you use the inspect element or developer view on chrome/IE/firefox/safari you can see the nonce inside the form on the download page. Just replace the nonce= below with a new one or download the file and scp it over to the rig. Code: POSTDATA="amd_developer_central_nonce=c51137f55e&_wp_http_referer=%2Ftools-and-sdks%2Fgraphics-development%2Fdisplay-library-adl-sdk%2F&f=QURMX1NES182LjAuemlw" Create a distribution specific package for the video driver Code: unzip amd-catalyst-*.zip Install the video driver: Code: dpkg -i fglrx_*.deb Reboot so the new driver takes affect: Code: reboot SSH back into the machine and become root user: Code: sudo -s Swap privilege level Code: su miner INSTALL K,C,S Gminer Or Pick One! It can't hurt to have all three installed :) SGMINER Code: git clone https://github.com/veox/sgminer Make sure you have GPU support!!!! # OpenCL...............: FOUND. GPU mining support enabled # ADL..................: SDK found, GPU monitoring support enabled Code: make clean #KGMINER Code: git clone https://github.com/Kalroth/cgminer-3.7.2-kalroth.git kgminer # OpenCL...............: FOUND. GPU mining support enabled # ADL..................: SDK found, GPU monitoring support enabled Code: make clean CGMINER Code: cd # OpenCL...............: FOUND. GPU mining support enabled # ADL..................: SDK found, GPU monitoring support enabled Code: make clean Test your ati-config to ensure you have GPU support: THIS SHOULD LIST ALL OF YOUR GPUS!!! # * 0. 00:01.0 AMD Radeon HD 7480D # 1. 05:00.0 Supported device 6810 Code: export DISPLAY=:0 TEST YOUR three xGMINER BUILDS This should output a lot of text. Look for errors and make sure you have supported GPU's listed in the output Code: export DISPLAY=:0 Create the auto-start file so mining always starts on reboot Code: cat > /etc/rc.local << EOF Create a force reboot command so you can reboot the rig if cgminer hangs Code: cat > /home/miner/frboot.sh << EOF Create the actual miner script which will start c/k/s gminer CHANGE SGMINER to whatever miner you are using!!! Code: cat > mine.sh << EOF CHANGE SGMINER to whatever miner you are using!!! Create an Xgminer reboot script to assist in tuning the cards! Code: cat > cgrestart.sh << EOF ONLY NEEDED IF YOU ARE USING A LEASING SYSTEM This is only used to swap pools using a cron job or remote system in case you lease out or change pools frequently Code: cat > pool.unicorn.sh << EOF That is it. You are done. Reboot directly into a functioning mining rig! Code: reboot after the reboot ssh into the rig and use screen -x to join the mining session my SSDs take under 15 seconds for a cold reboot with this setup The system should be mining using the default config listed (to my pools if you didn't change them :) I'll post the clock tuning guide next Long Live the Unicorn Title: Re: UnicornHasher Ubuntu+Beta Drivers headless scrypt miner setup and tuning guide Post by: miaviator on March 07, 2014, 08:16:58 PM RESERVED for tuning guide
|