This is tutorial only for BBR AMD GPU miner setup. No sensitive data should end up on the USB (e.g. wallet keys file) thus no encryption of the file system is necessary.
Ingredients:
- GPU mining rig. Rig doesn't need to have HDD.
- 8GB USB thumb drive
- lot of patience, installing on USB 2.0 thumb drive is painfully slow but in the end miner will work just fine
Tutorial itself:
Download amd64 Ubuntu 14.04.1 from
http://www.ubuntu.com/download/desktopDownload Universal USB Installer
http://www.pendrivelinux.com/downloads/Universal-USB-Installer/Universal-USB-Installer-1.9.5.5.exeFollow instructions from
http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows to create bootable USB with Ubuntu. Make sure you put 4GB persistence file on it. If you wish to have persistence file larger than 4GB, i have no clue how to do it from Win, 4GB will be enough.
From GNU/Linux you can create larger Persistence like this:
- Make bootable USB with persistence of any size
- Mount USB and delete casper-rw file and resize partition with gparted
- Create second partition labeled "casper-rw" on USB, and format it as ext3
Both Win and GNU/Linux, open boot/grub/grub.cfg file from the first partition on USB to make sure following menuentry has "persistent" option:
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash persistent --
initrd /casper/initrd.lz
}
If it doesn't, add "persistent" keyword and save file.
Now restart comp and boot it from USB, choose "Try Ubuntu without installing" from grub menu. If you use GNU/Linux for the first time you can make sure that you'll not mess up anything on your HDD by e.g. pulling out power cable from HD before booting from USB (at this point you wish to have only one GPU card plugged in!).
Once Ubuntu boots test if persistence is working by opening terminal (press Ctrl+Alt+t) and issue following two commands (without $ char):
$ touch fileOnPersistance
$ sudo reboot
After reboot open terminal and:
If you see that "fileOnPersistance" is there you are good to go.
Then:
$ rm fileOnPersistance
$ gedit initialUpdate.sh &
When gedit opens copy the following in it:
#!/bin/bash
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe multiverse"
sudo apt-get update
sudo apt-get -y install git-core build-essential cmake libboost1.55-all-dev g++ automake indicator-multiload htop autoconf vim gufw
indicator-multiload &
sudo gufw &
sudo apt-get upgrade
Save and exit. Then:
$ chmod +x initialUpdate.sh
$ ./initialUpdate.sh
At one point firewall (ufw) GUI will appear, just press ON and close it. Then you may notice indicator-multiload appeared in tray, you may wish to check Preferences of it.
Also, you can use this time to download Download AMD-APP-SDK-v2.9-lnx64.tgz from
http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/After few hours, when initialUpdate.sh script finishes, issue commend:
if you got new kernel. If not sure, just reboot.
When it comes back to life type:
$ sudo apt-get install fglrx-updates
to install AMD drivers. If you wish to install newest drivers see
http://wiki.cchtml.com/index.php/Ubuntu_Trusty_Installation_Guidebut it will work fine with "fglrx-updates" drivers. Either way, you'll have more than enough time to read the Ubuntu_Trusty_Installation_Guide while drivers install.
When the driver is installed, type:
and plug in all your AMD GPUs, and power on comp. When it boots press Ctrl+Alt+F1 and type in following:
$ sudo amdconfig --initial -f --adapter=all
$ sudo reboot
When it boots, you should have nice and shiny display that uses the AMD drivers. Now, in terminal:
$ cd && mkdir SDK && mv ~/Downloads/AMD-APP-SDK-v2.9-lnx64.tgz SDK && cd SDK
$ tar xvzf AMD-APP-SDK-v2.9-lnx64.tgz
$ sudo ./Install-AMD-APP.sh
$ sudo reboot
to reboot it for final time. When comes back:
$ env | grep AMDAPPSDKROOT
should return
AMDAPPSDKROOT=/opt/AMDAPP
If not than:
$ export AMDAPPSDKROOT=/opt/AMDAPP
$ cd && echo "\nexport AMDAPPSDKROOT=/opt/AMDAPP" >> .bashrc
Now, and at last:
$ git clone https://github.com/mbkuperman/boolberry-opencl && cd boolberry-opencl && make -j 4
$ cd build/release/src
List line takes you to the directory where boolbd is, if everything went well. Now:
$ cp ../../../src/cl/*.cl .
$ ./boolbd --start-mining=<address> --mining-threads=N
where <address> is your BBR address and N is number of GPUs. This will download blockchain, but it will probably not mine with all your cards. When the blockchain is downloaded, type "exit" and hit Enter in the daemon window.
Now, in terminal:
$ cd ~/.boolb
$ gedit miner_conf.json &
$ cd -
When the editor opens change "thread_delay" to 2000, save and exit the editor. Now (you can get command from history by pressing up arrow on the keyboard):
$ ./boolbd --start-mining=<address> --mining-threads=N
should mine with all your N GPUs.
This is first version of the tutorial. When my memory on how painfully slow this installation on USB 2.0 thumb drive is fades away, i'll try to do it once more to streamline the process and find errors in the tutorial (or i'll just buy USB 3.0 thumb drive). Anyone who tries to do it for the first time please report on problems that you encounter. Also, veteran AMD miners please see if you see errors, this is my first time installing GPU miner. Tnx.
First I keep getting the "Try Ubuntu" on every reboot.
But the major issue is that I can't compile it properly.