Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing 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
zaidgs
n00b
n00b


Joined: 08 Sep 2015
Posts: 16

PostPosted: Wed Sep 09, 2015 4:21 pm    Post subject: Installing Tor Browser... Reply with quote

What is the best method to install Tor Browser on Gentoo??

I have tried using

layman --fetch --add torbrowser

Which adds (an outdated?) Tor Browser layout, but it seems that the packages are broken.

I am actually very surprised that Tor Browser is not a default package in the main Gentoo tree, as it is quite an important and popular web browser.
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1631
Location: United Kingdom

PostPosted: Thu Sep 10, 2015 2:42 pm    Post subject: Reply with quote

I just download the tarball from the Tor Web site and follow the instructions:

https://www.torproject.org/projects/torbrowser.html.en#downloads

Code:
$ tar -xvJf tor-browser-linux64-5.0.2_en-US.tar.xz

To launch the browser:

Code:
$ cd tor-browser_en-US
$ ./start-tor-browser.desktop

_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2273
Location: Bardowick, Germany

PostPosted: Fri Sep 11, 2015 11:54 am    Post subject: Reply with quote

A bug report or any message to the maintainer might be helpful.

However, the package in the overlay is neither outdated, nor broken. According to the torbrowser overlay site, they have an ebuild for the most recent version, so I tried it out:
Code:
 # layman -a torbrowser

 * Adding overlay...
 * Overlay "torbrowser" is not an official. Continue install? [y/n]: y
(...)
 * Successfully added overlay(s) torbrowser.

 # eix-update
(...)
 # eix -e torbrowser
* www-client/torbrowser [1]
     Available versions:  (~)38.2.1_p502 {egl hardened test}
     Homepage:            https://www.torproject.org/projects/torbrowser.html https://gitweb.torproject.org/tor-browser.git
     Description:         The Tor Browser

[1] "torbrowser" /var/lib/layman/torbrowser
Looks good so far.

But the version numbering is a bit confusing.
"38.2.1" is the Mozilla Firefox Version used
"_p502" is TOR Version 5.0.2, which is the most recent
Code:
 # emerge --ask torbrowser

These are the packages that would be merged, in order:

Calculating dependencies  ... done!
[ebuild  N    ~] www-client/torbrowser-38.2.1_p502::torbrowser  USE="-custom-cflags -custom-optimization dbus -debug -egl gstreamer -gstreamer-0 -hardened jemalloc3 jit -pulseaudio (-selinux) startup-notification -system-cairo -system-icu -system-jpeg -system-libvpx -system-sqlite {-test} -wifi" 49.166 KiB

Total: 1 package (1 new), Size of downloads: 49.166 KiB

Would you like to merge these packages? [Yes/No] no

Quitting.
This looks like the tor browser mirrors the mozilla firefox USE flags? Better make them match, I guess:
Code:
 # grep firefox /etc/portage/package.use/gentoo.use | sed -e 's,firefox,torbrowser,' >> /etc/portage/package.use/gentoo.use
The Version of the installed firefox matches, too:
Code:
 # eix -c -e firefox
[I] www-client/firefox (38.2.1@08.09.2015): Firefox Web Browser
This means all the dependencies installed match the TOR dependencies.

If you wonder, I masked Firefox-40 because it sporadically segfaults. (AFAIK this is a known bug)

Now to TOR:
Code:
 # emerge --ask torbrowser

These are the packages that would be merged, in order:

Calculating dependencies  .... done!
[ebuild  N    ~] www-client/torbrowser-38.2.1_p502::torbrowser  USE="-custom-cflags -custom-optimization dbus -debug -egl -gstreamer gstreamer-0 -hardened jemalloc3 jit -pulseaudio (-selinux) startup-notification system-cairo system-icu system-jpeg system-libvpx system-sqlite {-test} wifi" 49.166 KiB

Total: 1 package (1 new), Size of downloads: 49.166 KiB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Running pre-merge checks for www-client/torbrowser-38.2.1_p502
 * Checking for at least 4 GiB disk space at "/home/portage/www-client/torbrowser-38.2.1_p502/temp" ...                                                     [ ok ]
>>> Emerging (1 of 1) www-client/torbrowser-38.2.1_p502::torbrowser
>>> Installing (1 of 1) www-client/torbrowser-38.2.1_p502::torbrowser
>>> Recording www-client/torbrowser in "world" favorites file...
>>> Jobs: 1 of 1 complete                           Load avg: 7.31, 7.18, 5.18

 * Messages for package www-client/torbrowser-38.2.1_p502:

 * This patched firefox build is _NOT_ recommended by Tor upstream but uses
 * the exact same sources. Use this only if you know what you are doing!
 * Torbrowser uses port 9150 to connect to Tor. You can change the port
 * in the connection settings to match your setup.
 *
 * To get the advanced functionality of Torbutton (network information,
 * new identity), Torbrowser needs to access a control port.
 * See 99torbrowser.example in /usr/share/doc/torbrowser-38.2.1_p502 and check "man tor"
 * for further information.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
Merges alright, starts up alright.
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
poncho
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2011
Posts: 88

PostPosted: Sat Sep 12, 2015 9:25 am    Post subject: Re: Installing Tor Browser... Reply with quote

zaidgs wrote:
Which adds (an outdated?) Tor Browser layout, but it seems that the packages are broken.


I'm the maintainer of the torbrowser overlay. Could you explain what is outdated and/or broken?

You can install either www-client/torbrowser-launcher or www-client/torbrowser from the overlay.
Have a look at https://github.com/MeisterP/torbrowser-overlay/blob/master/Readme.md to understand the difference between the two packages.
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