box86 icon indicating copy to clipboard operation
box86 copied to clipboard

Tor-browser

Open buhtz opened this issue 4 years ago • 7 comments

I am sorry for open this as an issue. But I couldn't find a better place.

I want to run Tor-browser via box86 on a Raspberry Pi 4 with Raspberry Pi OS (based on Debian buster).

The build of box86 worked well on the Pi 4. Very nice. I downloaded the x86 32bit linux version of tor-browser. But the start process is to complex I think.

When I do start-tor-browser.desktop I got thet "Tor Browser requires a CPU with SSE2 support." error. I tried to dive deeper into the tor folder structure to find out if box86 runs in the background.

cd ~/Downloads/tor-browser/Browser/
./firefox

Box86 with Dynarec v0.2.3 46114235 built on Sept 28 ...
Error: loading needed libs in elf ./firefox.real

Box86 itself runs I think. Any idea how to solve it?

buhtz avatar Sep 28 '21 13:09 buhtz

Not sure box86 can run that. Try to use BOX86_LOG=1 ./firefox to have more detail on what lib is missing...

ptitSeb avatar Sep 28 '21 13:09 ptitSeb

Thank you so much for your help.

I see libatomic.so.1 is "missing". What is the background here and how to treat that?

$ BOX86_LOG=1 ./firefox
Debug level is 1
Dynarec for ARM, with extension: HALF FAST_MULT EDSP NEON VFPv4 IDIVA PageSize:4096
Box86 with Dynarec v0.2.3 46114235 built on Sep 28 2021 14:43:04
Using default BOX86_LD_LIBRARY_PATH: ./:lib/:lib32/:x86/
Using default BOX86_PATH: ./:bin/
Counted 45 Env var
Looking for ./firefox.real
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Error loading needed lib libatomic.so.1
Error loading one of needed lib
Error: loading needed libs in elf ./firefox.real

btw: I am sure that simply starting ./firefox won't bring up a full working tor-browser. Because of that the main problem here is that the recommand way to start tor-browser via start-tor-browser.desktop does not invoke box86 (because of the SEE2 error). The Excec line in there looks a bit complex for me and I do not understand what it does.

[Desktop Entry]
Type=Application
Name=Tor Browser Setup
GenericName=Web Browser
Comment=Tor Browser is +1 for privacy and −1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=sh -c '"$(dirname "$*")"/Browser/start-tor-browser --detach || ([ ! -x "$(dirname "$*")"/Browser/start-tor-browser ] && "$(dirname "$*")"/start-tor-browser --detach)' dummy %k
X-TorBrowser-ExecShell=./Browser/start-tor-browser --detach
Icon=web-browser
StartupWMClass=Tor Browser

Here is the full start-tor-browser script.

buhtz avatar Sep 28 '21 13:09 buhtz

for the libatomic.so missing, this lib is not wrapped, so you should grab an x86 version of that lib and copy the binary in the current folder.

For ./Browser/start-tor-browser doing an error with SSE2 error, that's strange. Box86 emulate SSE2 extension, so it should be detected. There must be something else going on there. I may try to run the thing at some point, to see if I can see something.

ptitSeb avatar Sep 28 '21 13:09 ptitSeb

Oh, it's a script. Ok, I see. Well, issue is there: https://gist.github.com/Codeberg-AsGithubAlternative-buhtz/926f6c843ad43b3fd2bee63ab061bdac#file-gistfile1-txt-L99-L102 comment those lines in the script to avoid the test...

ptitSeb avatar Sep 28 '21 13:09 ptitSeb

Thanks for your help. With commenting the test lines the run keeps silent without any error. I was not able to find a lib atomic to download somewhere. And I do not want to install a virtual linux somewhere just to get this file. I think I will give up at this point.

buhtz avatar Sep 28 '21 13:09 buhtz

I want to run Tor-browser via box86 on a Raspberry Pi 4 with Raspberry Pi OS (based on Debian buster).

There are ARM builds of Tor Browser here. You can easily install it with Pi-Apps. @ptitSeb I suggest you close this issue.

Botspot avatar Oct 18 '21 02:10 Botspot

The ARM builds are not from a trustfull source. No option.

This issue was not about runnig tor browser on ARM64. It was about running it with box86 o ARM64.

buhtz avatar Oct 18 '21 05:10 buhtz

So, did you retry with latest box86? Shall the ticket be closed?

ptitSeb avatar Oct 11 '22 17:10 ptitSeb

Thanks for asking back. I switch to another operating system. I'm now using an original Debian (but special) image for Pi's from http://raspi.debian.net/

buhtz avatar Oct 11 '22 18:10 buhtz