Dear readers,
After a substantial amount of time on this forum (and others) I tried to get my Technobit HEX16 to work on a Raspberry. It works on a Windows machine in combination with HEXminer but I am not impressed by it's stability...
Being a total newbie on Linux I followed several "tutorials" I found on the fora. The one I had the "best" result with (and being quoted by others as working) is the one described by 2GOOD [https://bitcointalk.org/index.php?topic=303538.msg3371198#msg3371198] (BIG thank you for that one 2GOOD, BTW!).
But after I:
sudo apt-get update
and I:
sudo apt-get install autoconf yasm pkg-config make libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
succesfully, then I:
Download the build cgminer-hex16a-3.6.1.tar.gz with: wget
https://dl.dropboxusercontent.com/u/8082585/cg/cgminer-hex16a-3.6.1.tar.gz I extract the archive with: tar -xvf cgminer-hex16a-3.6.1.tar.gz
But the tutorial then says to "Edit cgminer.conf - it is preconfigured for speeds 480Mhz @ 1440mV"
I have no idea what to do so I type: "edit cgminer.conf" and all it says is:
Warning: unknown mime-type for "cgminer.conf" -- using "application/octet-stream"
Error: no "edit" mailcap rules found for type "application/octet-stream"
I change directory by: cd cgminer-hex16a-3.6.1 and try again, but with the same result
Assuming I need some sort of editor to do this AND assuming that the preconfigured file should be OK for now I run cgminer with:
sudo ./cgminer -c ./cgminer.conf
But I get this message:
./cgminer: 1: ./cgminer: Syntax error: word unexpected (expecting ")")
Undeterred I continue with the tutorial (thinking maybe I should run the patch before this actually works), and I: cd
Then I: apt-get install autoconf libtool libcurl4-openssl-dev libncurses5-dev pkg-config yasm make
AND HERE IT STOPS FOR ME WITH THE MESSAGE:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Just to be complete, the rest of the tutorial says to:
wget
https://github.com/ckolivas/cgminer/archive/v3.6.1.tar.gztar -xvf v3.6.1.tar.gz
cd cgminer-3.6.1
wget
https://dl.dropboxusercontent.com/u/8082585/cg/cgminer_3_6_1_rev_fe5da9672767e18116444dad18db54638936490a.patchpatch < cgminer_3_6_1_rev_fe5da9672767e18116444dad18db54638936490a.patch
./autogen.sh --disable-opencl --disable-adl --enable-avalon --enable-hexminer --enable-bflsc --enable-icarus
make
sudo ./cgminer -n
to check the HEX board is detected
Could you please help me get this Technobit HEX16 on a Raspberry with a clean install of Raspbian / Debian to work?