Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can not start tor browser
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Tue Nov 08, 2022 6:53 pm    Post subject: can not start tor browser Reply with quote

i download
https://dist.torproject.org/torbrowser/11.5.7/tor-browser-linux64-11.5.7_de.tar.xz
extract them
change into the directory and double click "start-tor-browser.desktop"
nothing comes, no error .... nothing

in a terminal i see
./start-tor-browser.desktop
Launching './Browser/start-tor-browser --detach'...

./Browser/start-tor-browser --detach
... nothing comes

what do i wrong?

older versions just run.
the last one that run here is 10.5.8

but i will run 11.5.7 now, what have i to do for?


Last edited by SarahS93 on Wed Nov 09, 2022 6:03 am; edited 1 time in total
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 470

PostPosted: Tue Nov 08, 2022 7:44 pm    Post subject: Reply with quote

Try running it without --detach, you should get some error dialog to work with...
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Wed Nov 09, 2022 6:05 am    Post subject: Reply with quote

running without --detach, i become the message to run with detach.

go i into the "Browser\" directory
and try there to start
./start-tor-browser
nothing comes, no error, nothing...
try i in the "Browser\" directory to start
./start-tor-browser.desktop
i become the message:
/usr/bin/env: „./Browser/execdesktop“: Datei oder Verzeichnis nicht gefunden

how to fix this?
Back to top
View user's profile Send private message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1494
Location: Frankfurt/Main

PostPosted: Wed Nov 09, 2022 7:31 am    Post subject: Reply with quote

Try to start

Code:
./start-tor-browser --verbose

and post the result.
Back to top
View user's profile Send private message
Irets
Apprentice
Apprentice


Joined: 17 Dec 2019
Posts: 222

PostPosted: Wed Nov 09, 2022 11:48 am    Post subject: Reply with quote

You're probably running into the same issue I was at one point.

https://forums.gentoo.org/viewtopic-t-1156696-highlight-torbrowser.html
https://forums.gentoo.org/viewtopic-t-1144980.html
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Fri Nov 11, 2022 1:09 pm    Post subject: Reply with quote

oh, oke

i do need to install shim ? (?sys-boot/shim)
...
?!?

dont understand...
Back to top
View user's profile Send private message
Irets
Apprentice
Apprentice


Joined: 17 Dec 2019
Posts: 222

PostPosted: Fri Nov 11, 2022 3:07 pm    Post subject: Reply with quote

To sum it up:

Create a file called shim.c with the following contents:
Code:
#include <stdlib.h>
void gdk_wayland_display_get_wl_compositor() { abort(); }
void gdk_wayland_device_get_wl_pointer() { abort(); }
void gdk_wayland_window_get_wl_surface() { abort(); }
void gdk_wayland_display_get_wl_display() { abort(); }

Then compile it with cc -shared -o shim.so shim.c
It will create a new file called shim.so.

You should now be able to launch tor by using a script, looking something like this:
Code:
cd /path/to/tor-dir &&
sed '/LD_PRELOAD/!s,Exec[^=]*=,&env LD_PRELOAD=/path/to/shim.so ,' start-tor-browser.desktop >tmp &&
mv tmp start-tor-browser.desktop &&
./start-tor-browser.desktop


This is how the script is setup on my system:
Code:
#!/bin/bash
cd $HOME/Downloads/tor-browser_11.5.2/tor-browser_en-US
sed '/LD_PRELOAD/!s,Exec[^=]*=,&env LD_PRELOAD=/home/irets/Downloads/tor-browser_11.5.2/tor-browser_en-US/shim/shim.so ,' start-tor-browser.desktop >tmp &&
mv tmp start-tor-browser.desktop &&
chmod +x start-tor-browser.desktop &&
./start-tor-browser.desktop

I had to include chmod in my script or else it would fail.

It's nasty & hacky but worked for me.
It's an age-old bug that has never been fixed. :?

More information can be found at the last link of my previous post, assuming that this is the source of your issue.
Back to top
View user's profile Send private message
SarahS93
l33t
l33t


Joined: 21 Nov 2013
Posts: 693

PostPosted: Sat Nov 12, 2022 9:16 am    Post subject: Reply with quote

tor browser is now running ... thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum