# 1 BTC (edit: now ~3.25 BTC) bounty for Bitsquare on raspberry pi

**URL:** <https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209>\
**Category:** Uncategorized\
**Created:** [June 10, 2016, 10:44pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209 "2016-06-10T22:44:53Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![TheKoziTwo](https://bisq.community/user_avatar/bisq.community/thekozitwo/32/25_2.png) [@TheKoziTwo](https://bisq.community/u/TheKoziTwo)\
**Post date:** [June 12, 2016, 2:06pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/42 "2016-06-12T14:06:58Z")

</div>

Many have put in great effort here and it would be nice if everyone who contributed to the final solution could be rewarded, however I will not alter the rules. And the terms states that **the first person to post a fully working script will get the bounty.** So yes, it’s winner takes all.

This means there’s a chance that someone who has put in a lot of work post the script, with a few typos that causes it to fail, then someone comes along to fix those and claim the bounty. Even though that wouldn’t be very fair, it would be according to the rules. Therefore I recommend that you test the code and make sure it’s working 100% before you post it. You can PM me the code if you want me to test it first.

If someone wants to work together and split the bounty, then they can decide so between themselves and let me know, and I’d be happy to split it. I am only answering for my bounty. I cannot vouch for the other contributors to the bounty and what they will do, so you’ll have to read their replies to judge. But from what I understand, they will reward the same person as I do.

Thank you all who has contributed so far.

**edit:** I see you’re asking about the partial bounty, the answer to that is if the script does not provide update, reward will be 0.75 BTC. Then someone else can provide update and get 0.25 BTC. But you cannot only provide the update, first the install must be provided.

---

<div class="post-metadata">

**Author:** ![mepistol](https://bisq.community/user_avatar/bisq.community/mepistol/32/39_2.png) [@mepistol](https://bisq.community/u/mepistol)\
**Post date:** [June 12, 2016, 2:28pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/43 "2016-06-12T14:28:44Z")

</div>

I will do exactly like TheKoziTwo does. I will trust his testing since I don’t have a Raspberry Pi.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [June 12, 2016, 2:50pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/44 "2016-06-12T14:50:58Z")

</div>

I leave responsibility to TheKoziTwo as well. Though I would find it cool if the winner will share fairly with other contributor if he has built on work of others. Its great to see such a good cooperation and fast progress. I beliefe cooperation leads to better results than competition and fits better with openness and transparency, though I am aware of the complexities to handle all that on the monetary level.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [June 12, 2016, 2:52pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/45 "2016-06-12T14:52:20Z")

</div>

There is pobably a small issue in the tor java library. The system is not recognized and an extra check for RPi is needed. If the bounty hunter has problems to fix that ping me, so I can jump in.

---

<div class="post-metadata">

**Author:** ![Frederic94500](https://bisq.community/user_avatar/bisq.community/frederic94500/32/97_2.png) [@Frederic94500](https://bisq.community/u/Frederic94500)\
**Post date:** [June 12, 2016, 3:04pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/46 "2016-06-12T15:04:42Z")

</div>

I can’t test my script in a true Raspberry Pi but it’s works in my system (Ubuntu 16.04)so , it’s possible to test my script in your Raspberry?

[Github](https://github.com/Frederic94500/Script_Bitsquare)

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [June 12, 2016, 3:36pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/47 "2016-06-12T15:36:30Z")

</div>

I added the checks for arm to Bitsquare and the Tor lib. It also logs out the uname, so if it still fails we know at least a bit more.  
Its committed to master:

> <https://github.com/bisq-network/bisq/commit/5a2c17af8049c9eb6be8671cb70d4693a3d1db39>

---

<div class="post-metadata">

**Author:** ![pteron](https://bisq.community/letter_avatar/pteron/32/6_22734026db12803ebb3e059622ac3534.png) [@pteron](https://bisq.community/u/pteron)\
**Post date:** [June 12, 2016, 4:45pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/48 "2016-06-12T16:45:52Z")

</div>

I’ve just rerun my [bitsquare.sh](http://bitsquare.sh) and it has picked up Manfred’s changes.

Can someone with a non-headless pi test it? I get an error:

Jun-12 16:42:49.215 [eatInputStream] ERROR c.m.t.t.OnionProxyManager: /home/pi/.local/share/Bitsquare/mainnet/tor/tor: 1: /home/pi/.local/share/Bitsquare/mainnet/tor/tor: Syntax error: word unexpected (expecting “)”)

which suggests that the tor java is still not right.

And re the post from TheKoziTwo - if I happen to get it right first I will be sharing with the others who contributed - teams have better synergy, that’s why open source works.

---

<div class="post-metadata">

**Author:** ![sainth](https://bisq.community/letter_avatar/sainth/32/6_22734026db12803ebb3e059622ac3534.png) [@sainth](https://bisq.community/u/sainth)\
**Post date:** [June 12, 2016, 4:55pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/49 "2016-06-12T16:55:03Z")

</div>

Confirmed it’s still not working with the changes Manfred made, but it is better. It looks like Bitsquare is pulling in a 386 tor binary and libraries into:

`~/.local/share/Bitsquare/mainnet/tor/`

> $ file tor  
> tor: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=ef4777952b1331f92737263ec9251a0854dfa2a4, stripped

Can someone else confirm? This might be due to a change I made. Going to try a fresh install.

---

<div class="post-metadata">

**Author:** ![pteron](https://bisq.community/letter_avatar/pteron/32/6_22734026db12803ebb3e059622ac3534.png) [@pteron](https://bisq.community/u/pteron)\
**Post date:** [June 12, 2016, 4:59pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/50 "2016-06-12T16:59:17Z")

</div>

Yes I get it too

> $file tor  
> tor: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=ef4777952b1331f92737263ec9251a0854dfa2a4, stripped

---

<div class="post-metadata">

**Author:** ![Frederic94500](https://bisq.community/user_avatar/bisq.community/frederic94500/32/97_2.png) [@Frederic94500](https://bisq.community/u/Frederic94500)\
**Post date:** [June 12, 2016, 5:07pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/51 "2016-06-12T17:07:33Z")

</div>

Ah i don’t have the same output!

> file tor  
> tor: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=cb66a6d877548792c249edb6b75ce4f1718e8d3b, stripped

---

<div class="post-metadata">

**Author:** ![TheKoziTwo](https://bisq.community/user_avatar/bisq.community/thekozitwo/32/25_2.png) [@TheKoziTwo](https://bisq.community/u/TheKoziTwo)\
**Post date:** [June 12, 2016, 5:17pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/52 "2016-06-12T17:17:54Z")

</div>

I re-ran @pteron’s script, bitsquare launched, but same result basically. Screen freezes and mouse disappears. Then the message about being unable to connect to Tor. At that point completely stuck and requires a restart.

Just before bitsquare opens terminal outputs:  
INFO: uname -m call results in:armv7l

I’m getting same error also:

> Jun-12 17:01:40.565 [eatInputStream] ERROR c.m.t.t.OnionProxyManager: /home/pi/.local/share/Bitsquare/mainnet/tor/tor: 1: /home/pi/.local/share/Bitsquare/mainnet/tor/tor: Syntax error: word unexpected (expecting “)”)

[bitsquare.log](http://pastebin.com/raw/E2XEc9zP)

> $ file tor  
> tor: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.15, BuildID[sha1]=ef4777952b1331f92737263ec9251a0854dfa2a4, stripped

---

<div class="post-metadata">

**Author:** ![pteron](https://bisq.community/letter_avatar/pteron/32/6_22734026db12803ebb3e059622ac3534.png) [@pteron](https://bisq.community/u/pteron)\
**Post date:** [June 12, 2016, 5:26pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/53 "2016-06-12T17:26:56Z")

</div>

we need to get the TOR java to include the arm executable…

Manfred can you do that?

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [June 12, 2016, 6:33pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/54 "2016-06-12T18:33:52Z")

</div>

Yes the arm tor binary is missing. I did nto find a download link for an arm version. If anyone send a link to the binary I will add it.

---

<div class="post-metadata">

**Author:** ![Frederic94500](https://bisq.community/user_avatar/bisq.community/frederic94500/32/97_2.png) [@Frederic94500](https://bisq.community/u/Frederic94500)\
**Post date:** [June 12, 2016, 6:37pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/55 "2016-06-12T18:37:58Z")

</div>

Here? [https://www.torproject.org/download/download.html.en](https://www.torproject.org/download/download.html.en)

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [June 12, 2016, 7:07pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/56 "2016-06-12T19:07:28Z")

</div>

There are no arm binaries.

---

<div class="post-metadata">

**Author:** ![Frederic94500](https://bisq.community/user_avatar/bisq.community/frederic94500/32/97_2.png) [@Frederic94500](https://bisq.community/u/Frederic94500)\
**Post date:** [June 12, 2016, 7:11pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/57 "2016-06-12T19:11:32Z")

</div>

Maybe, I have an answer to this problem: [http://tor.stackexchange.com/questions/242/how-to-run-tor-on-raspbian-on-the-raspberry-pi](http://tor.stackexchange.com/questions/242/how-to-run-tor-on-raspbian-on-the-raspberry-pi)

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [June 12, 2016, 8:17pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/58 "2016-06-12T20:17:18Z")

</div>

I fear that takes to much of my time.  
Any bounty hunter can fork master and add the binary he wants to test to a bitsquare/jtorproxy/src/main/resources/native/linux/arm directory. The code in OsData needs to be adotped as well:

Currently"  
if (unameOutput.contains(“arm”))  
return unameOutput.contains(“64”) || unameOutput.contains(“v8”) ? OsType.Linux64 : OsType.Linux32;

public enum OsType {Windows, Linux32, Linux64, Mac, Android}

So you need to add a enum for ARM. There might be a bit more of code to adopt, just check usage of the enum to see where it is used and if it needs adoption.

The tor version must fit as well so it works with the tor java libs.

---

<div class="post-metadata">

**Author:** ![sjon](https://bisq.community/user_avatar/bisq.community/sjon/32/106_2.png) [@sjon](https://bisq.community/u/sjon)\
**Post date:** [June 12, 2016, 8:31pm UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/59 "2016-06-12T20:31:44Z")

</div>

Here is my submission, it includes a patch that utilizes the tor-binary that the o/s already supplies:

> <https://github.com/SjonHortensius/BitSquareOnRpi/blob/4154260cb302b479c84b3ff56fb78cb7fb2fe219/bitsquare.sh>

I think this patch should make it into Bitsquare, it should check /usr/bin before downloading a zip-file with binaries. Sometimes it seems to hang when starting (while ‘connecting to mainnet’), but let it run for ~ 5 minutes. The main interface will come up.

my btc address: 18zX2TVwqqs3awmrJV9kFSLG1r24Cr7PFV

---

<div class="post-metadata">

**Author:** ![sainth](https://bisq.community/letter_avatar/sainth/32/6_22734026db12803ebb3e059622ac3534.png) [@sainth](https://bisq.community/u/sainth)\
**Post date:** [June 13, 2016, 12:38am UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/60 "2016-06-13T00:38:57Z")

</div>

My client has been running for a while now and seems to be working for the most part. I’m not sure the Pi is really the best platform for bitsquare though… it seems a little underpowered.

---

<div class="post-metadata">

**Author:** ![TheKoziTwo](https://bisq.community/user_avatar/bisq.community/thekozitwo/32/25_2.png) [@TheKoziTwo](https://bisq.community/u/TheKoziTwo)\
**Post date:** [June 13, 2016, 12:44am UTC](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209/61 "2016-06-13T00:44:08Z")

</div>

Same here. It starts up and I’m not getting any Tor errors. It’s super slow so I’ll have to leave it overnight to see if it will finish syncing and become usable. But, it’s looking very good, seems like you might have nailed it @sjon

I increased GPU memory to 768 MB, not sure what’s the ideal amount to use, but could maybe be tweaked to improve performance. Right now I have a popup saying _“Warning: You lost the connection to all P2P network peers”_ and the mouse pointer / screen seems to be frozen. I’m just going to leave it like that to see where it’s at tomorrow. The sync reached 41% before screen froze.

[Previous page](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209.md?page=2)

[Next page](https://bisq.community/t/1-btc-edit-now-3-25-btc-bounty-for-bitsquare-on-raspberry-pi/209.md?page=4)
