Introduction
So recently I’ve started ASIC bitcoin mining and I’ve ordered some block eruptors (icarus protocl) and I have a spare ASUS EEE device lying around with 3 USB ports. Ideal for mining, low power, small and silent. However it’s a 32-bit device and cgminer isn’t built for this :(.
Time to take matters in our own hands.
Installing Xubuntu on the ASUS EEE-PC
Xubuntu, it’s a clear choice for this EEE-PC. Light, versatile, a lot of packages! You can get it here: http://xubuntu.org/
Install is pretty straightforward, I won’t cover this here.
Installing openssh
I like my installations to come with a openssh server. Just to see what’s going on. (For a web based stats page with phpSysInfo, see my tutorials on Slitaz)
sudo apt-get update sudo apt-get install openssh-server |
Compiling and installing cgminer
The problem with cgminer is that I can’t find it pre compiled for 32 bit, and the usblib it uses is pretty non standard. So grabbing the usblib found in ubuntu won’t work.
First make sure you have all the latest packages installed, and grab the dependencies to compile cgminer.
sudo apt-get upgrade sudo apt-get install libcurl4-openssl-dev ncurses-dev libudev-dev |
Now, let’s download a version of cgminer and an old usblib which will work and unzip the files.
cd /home/enira/ wget https://github.com/kanoi/cgminer-binaries/blob/master/libusb-1.0.16-rc10.tar.bz2?raw=true -O libusb-1.0.16-rc10.tar.bz2 wget http://ck.kolivas.org/apps/cgminer/3.4/cgminer-3.4.0.tar.bz2 tar -xvjf libusb-1.0.16-rc10.tar.bz2 tar -xvjf cgminer-3.4.0.tar.bz2 |
Now copy libusb to the cgminer folder and compile it.
mkdir ./cgminer-3.4.0/libusb cp -R libusb-1.0.16-rc10 ./cgminer-3.4.0/libusb cd /home/enira/cgminer-3.4.0/libusb/libusb-1.0.16-rc10/ ./configure make |
Then compile cgminer.
cd /home/enira/cgminer-3.4.0/ LIBUSB_CFLAGS="-I./libusb/libusb-1.0.16-rc10/libusb" LIBUSB_LIBS="./libusb/libusb-1.0.16-rc10/libusb/.libs/libusb-1.0.a -ludev -lrt" CFLAGS="-g -W -Wall" ./configure --enable-bflsc --enable-icarus --enable-bitforce --enable-modminer --enable-ztex --enable-avalon |
The output should look like this:
------------------------------------------------------------------------ cgminer 3.4.0 ------------------------------------------------------------------------ Configuration Options Summary: curses.TUI...........: FOUND: -lncurses OpenCL...............: NOT FOUND. GPU mining support DISABLED scrypt...............: Disabled (needs OpenCL) ADL..................: SDK NOT found, GPU monitoring support DISABLED Avalon.ASICs.........: Enabled BFL.ASICs............: Enabled BitForce.FPGAs.......: Enabled Icarus.FPGAs.........: Enabled ModMiner.FPGAs.......: Enabled Ztex.FPGAs...........: Enabled Compilation............: make (or gmake) CPPFLAGS.............: CFLAGS...............: -g -W -Wall -I./libusb/libusb-1.0.16-rc10/libusb LDFLAGS..............: -lpthread LDADD................: -lcurl compat/jansson/libjansson.a -lpthread -lm ./libusb/libusb-1.0.16-rc10/libusb/.libs/libusb-1.0.a -ludev -lrt Installation...........: make install (as root if needed, with 'su' or 'sudo') prefix...............: /usr/local |
And make the file:
make |
Once this is done create your miner script, I created mine in my user dir.
nano /home/enira/mine_bitcoins.sh |
#!/bin/sh cd /home/enira/cgminer-3.4.0/ ./cgminer -o stratum+tcp://mint.bitminter.com:3333 -u uuu -p ppp |
And assign rights:
chmod +x /home/enira/mine_bitcoins.sh |
Now install an xrdp so you can get a remote desktop and go nuts!
sudo apt-get install xrdp echo xfce4-session > ~/.xsession |
That’s all there is to it.
Leave a Reply
You must be logged in to post a comment.