[HOME] [DOWNLOAD] [DOCS] [BLOG] [SUPPORT] [TIPS] [ISSUES] [Priority Support]

Torbrowser on Ubuntu 14.04 64 bit


#1

I followed these written instructions to install Ubuntu 14.04 64 bit and configure the network:

The only thing I could find about installing Torbrowser was in the references at:

…which lead me to…

https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/WebBrowsers#UseTorBrowserwithoutbundledTorNIX

I followed the instructions for Linux and this kept tor from running. (When I ran it tor over tor it looked like it was connecting fine. Firefox also connects fine.) I believe I configured it according the instructions yet I get the “Something went wrong” page.


#2

This is because Tor Browser has no access to Tor’s control port.

Technically this is better explained here:

Soon there will be might be (depending on community support) much better support for other operating systems such as Ubuntu. Because Whonix’s functionality (such as fixing this issue) has been split into multiple packages, which I am currently testing. This particular issue could be fixed with the anon-ws-disable-stacked-tor package (https://github.com/Whonix/anon-ws-disable-stacked-tor).

So you could either go through the hassle of being the first tester of that package outside Whonix, or go through the hassle of manually implementing the functionality of that package or to live with this issue. For now, only Tor Button’s New Identiy feature and the about:tor page should be broken due to missing Tor control port access.


#3

I suppose you mean these functions are broken on anon-ws-disable-stacked-tor package because I can’t connect to any website without tor over tor.

Thanks for all your help. I’m learning a lot from the wiki.


#4
I can't connect to any website without tor over tor.
Then your proxy settings are wrong, not pointing to the gateway. I thought you are already at that point and now wondering about the "something went wrong" message.

No. The package anon-ws-disable-stacked-tor is a new package, which you do not have installed on Ubuntu. It’s the functionality used in Whonix to fix the issue you are having. It will first appear in Whonix 9. Maybe later in other distributions. In essence it sets up system settings to make Tor Browser work without your issue.


#5

No, I saw the message and assumed I couldn’t connect to any site. I guess I had changed the proxy settings and didn’t change them back when I tested it, after I read what you said. I corrected them now and I can connect! Cool beans.

Anyway I built anon-ws-disable-stacked-tor but I didn’t get a “.deb” package I got a “.tar.gz” and a “.build” so the instructions to replace “apparmor-profile-torbrowser” with “anon-ws-disable-stacked-tor” only got me this far.

http://xxxxxxxxxxh5kyrx.onion/wiki/Dev/Build_Documentation/apparmor-profile-torbrowser#Install_the_Package

One thing I didn’t understand was how this…

./build -us -uc

…would indicate what version number you wanted to build. I just ran it in the anon-ws-disable-stacked-tor directory and it created a directory called anon-ws-disable-stacked-tor_0.1.orig and those two files.


#6
Anyway I built anon-ws-disable-stacked-tor but I didn't get a ".deb" package I got a ".tar.gz" and a ".build" so the instructions to replace "apparmor-profile-torbrowser" with "anon-ws-disable-stacked-tor" only got me this far.
The .deb should be in home folder as well.

If not, there must be some error. Can you post the log please?

One thing I didn't understand was how this...

./build -us -uc

…would indicate what version number you wanted to build.


./build reads the version number from debian/control.

#7

[quote=“Patrick, post:6, topic:350”][quote]One thing I didn’t understand was how this…

./build -us -uc

…would indicate what version number you wanted to build.
[/quote]
./build reads the version number from debian/control.[/quote]

I don’t know where that is. Do you write the version number you want to build into debian/control?

I’m not sure if I built it right. “git tag” didn’t show any version numbers so I went right to “./build -us -uc”.

The .deb should be in home folder as well.[/quote]

Double checked. No deb.

You want the output of the terminal during the build? Here that is:

user@host:~/anon-ws-disable-stacked-tor$ ./build -us -uc + '[' -f /usr/lib/pre.bsh ']' + set -e + set -o pipefail ++++ dirname ./build +++ cd . +++ pwd ++ basename /home/user/anon-ws-disable-stacked-tor + package_name=anon-ws-disable-stacked-tor + command -v dpkg-parsechangelog + OIFS=' ' + NIFS=' ' + IFS=' ' ++ dpkg-parsechangelog + for line in '$(dpkg-parsechangelog)' + IFS=' ' + read -r first second _ + first=source: + '[' source: = version: ']' + for line in '$(dpkg-parsechangelog)' + IFS=' ' + read -r first second _ + first=version: + '[' version: = version: ']' + version=3:0.1-2 + version=3:0.1 + version=0.1 + break + IFS=' ' + '[' 0.1 = '' ']' + ./clean + set -o pipefail + fakeroot debian/rules clean make clean make[1]: Entering directory `/home/user/anon-ws-disable-stacked-tor' git clean -df make[1]: Leaving directory `/home/user/anon-ws-disable-stacked-tor' + shopt -s globstar dotglob + touch -t 201308151102.35 ./debian + touch -t 201308151102.35 ./debian/ ./debian/anon-ws-disable-stacked-tor.displace ./debian/anon-ws-disable-stacked-tor.displace-extension ./debian/anon-ws-disable-stacked-tor.postinst ./debian/anon-ws-disable-stacked-tor.postrm ./debian/changelog ./debian/compat ./debian/control ./debian/copyright ./debian/gain-root-command ./debian/rules ./debian/source ./debian/source/format ./debian/watch + shopt -u globstar dotglob + rm --force ../anon-ws-disable-stacked-tor_0.1.orig.tar.gz + gzip -n + git archive --format=tar HEAD + ls -la ../anon-ws-disable-stacked-tor_0.1.orig.tar.gz -rw-rw-r-- 1 user user 20431 Jul 12 16:23 ../anon-ws-disable-stacked-tor_0.1.orig.tar.gz + debuild --rootcmd=debian/gain-root-command -sa -us -uc dpkg-buildpackage -rdebian/gain-root-command -D -us -uc -sa dpkg-buildpackage: source package anon-ws-disable-stacked-tor dpkg-buildpackage: source version 3:0.1-2 dpkg-buildpackage: source distribution UNRELEASED dpkg-buildpackage: source changed by Patrick Schleizer dpkg-source --before-build anon-ws-disable-stacked-tor dpkg-buildpackage: host architecture amd64 dpkg-checkbuilddeps: Unmet build dependencies: faketime config-package-dev (>= 5.1) dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting dpkg-buildpackage: warning: (Use -d flag to override.) debuild: fatal error at line 1364: dpkg-buildpackage -rdebian/gain-root-command -D -us -uc -sa failed user@host:~/anon-ws-disable-stacked-tor$

#8

Note: slight change. It’s now no longer.

It now is.

(When you have latest version from git.)

(The wiki has been updated accordingly.)

Technical reason for the change in case you are interested:
https://www.whonix.org/forum/index.php/topic,378.msg2770.html#new

[quote=“nufflel, post:7, topic:350”][quote author=Patrick link=topic=368.msg2763#msg2763 date=1405157669]

[quote]One thing I didn’t understand was how this…

./build -us -uc

…would indicate what version number you wanted to build.
[/quote]
./build reads the version number from debian/control.
[/quote]

I don’t know where that is. Do you write the version number you want to build into debian/control?[/quote]
Technical answer:
Sorry, I meant, the build script reads the version number from debian/changelog, not debian/control. This is implemented in man-helper.bsh in function get_variables. But you most likely didn’t want the technical answer, sorry.

How to answer:
At the moment, just run.

Since there are no git tags yet, you automatically get the latest version (technically build from git master).

I'm not sure if I built it right. "git tag" didn't show any version numbers so I went right to "./build -us -uc".
This is correct. There are not git tags yet. I am not sure yet the most efficient way to maintain all the packages.
[quote author=Patrick link=topic=368.msg2763#msg2763 date=1405157669] [quote]Anyway I built anon-ws-disable-stacked-tor but I didn't get a ".deb" package I got a ".tar.gz" and a ".build" so the instructions to replace "apparmor-profile-torbrowser" with "anon-ws-disable-stacked-tor" only got me this far.[/quote] The .deb should be in home folder as well.[/quote]

Double checked. No deb.


For one, it was not created, because of some error, which I will answer below. Sorry, not necessarily in home folder. I meant parent folder.
dpkg-checkbuilddeps: Unmet build dependencies: faketime config-package-dev (>= 5.1) dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
It says you do have neither faketime nor config-package-dev (>= 5.1) installed. That's why it failed. You most likely missed the step "Get Build Dependencies". https://www.whonix.org/wiki/Template:Build_Documentation_Build_Package#Get_Build_Dependencies

#9

[quote=“Patrick, post:8, topic:350”][quote]dpkg-checkbuilddeps: Unmet build dependencies: faketime config-package-dev (>= 5.1)
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting[/quote]
It says you do have neither faketime nor config-package-dev (>= 5.1) installed. That’s why it failed. You most likely missed the step “Get Build Dependencies”.
https://www.whonix.org/wiki/Template:Build_Documentation_Build_Package#Get_Build_Dependencies[/quote]

Yes, I failed to follow instructions there. I’m wary of using Debain sources so I tried it like this:

user@host:~$ sudo apt-get install devscripts faketime git 
devscripts is already the newest version.
devscripts set to manually installed.
git is already the newest version.
The following extra packages will be installed:
  libfaketime
The following NEW packages will be installed:
  faketime libfaketime
0 upgraded, 2 newly installed, 0 to remove and 24 not upgraded.
Need to get 29.9 kB of archives.
After this operation, 166 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main libfaketime amd64 0.9.5-2 [20.6 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main faketime amd64 0.9.5-2 [9,330 B]
Fetched 29.9 kB in 3s (9,279 B/s)
Selecting previously unselected package libfaketime:amd64.
(Reading database ... 227652 files and directories currently installed.)
Preparing to unpack .../libfaketime_0.9.5-2_amd64.deb ...
Unpacking libfaketime:amd64 (0.9.5-2) ...
Selecting previously unselected package faketime.
Preparing to unpack .../faketime_0.9.5-2_amd64.deb ...
Unpacking faketime (0.9.5-2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up libfaketime:amd64 (0.9.5-2) ...
Setting up faketime (0.9.5-2) ...

user@host:~/tor-browser_en-US$ cd ..
user@host:~$ sudo apt-get install config-package-dev
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  config-package-dev
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 29.8 kB of archives.
After this operation, 336 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe config-package-dev all 5.1.2 [29.8 kB]
Fetched 29.8 kB in 1s (17.9 kB/s)       
Selecting previously unselected package config-package-dev.
(Reading database ... 227664 files and directories currently installed.)
Preparing to unpack .../config-package-dev_5.1.2_all.deb ...
Unpacking config-package-dev (5.1.2) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up config-package-dev (5.1.2) ...
user@host:~$

user@host:~$ git clone https://github.com/Whonix/anon-ws-disable-stacked-tor
Cloning into 'anon-ws-disable-stacked-tor'...
remote: Reusing existing pack: 135, done.
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 139 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (139/139), 37.42 KiB | 0 bytes/s, done.
Resolving deltas: 100% (64/64), done.
Checking connectivity... done.

user@host:~$ cd anon-ws-disable-stacked-tor/
user@host:~/anon-ws-disable-stacked-tor$ make deb-pkg
./make-helper.bsh deb-pkg
+ '[' -f /usr/lib/pre.bsh ']'
+ set -e
+ set -o pipefail
+ parse_cmd deb-pkg
+ local matched=false
+ :
+ case $1 in
+ matched=true
+ deb=true
+ shift
+ :
+ case $1 in
+ break
+ '[' '!' true = true ']'
+ '[' true = true ']'
+ make_deb-pkg
+ make_dist
+ get_variables
+ command -v dpkg-parsechangelog
+ OIFS=' 	
'
+ NIFS='
'
+ IFS='
'
++ dpkg-parsechangelog
+ for line in '$(dpkg-parsechangelog)'
+ IFS=' 	
'
+ read -r first second _
+ first=source:
+ '[' source: = version: ']'
+ for line in '$(dpkg-parsechangelog)'
+ IFS=' 	
'
+ read -r first second _
+ first=version:
+ '[' version: = version: ']'
+ version=3:0.1-2
+ revision=2
+ version=3:0.1
+ version=0.1
+ break
+ IFS=' 	
'
+ '[' 0.1 = '' ']'
++++ dirname ./make-helper.bsh
+++ cd .
+++ pwd
++ basename /home/user/anon-ws-disable-stacked-tor
+ package_name=anon-ws-disable-stacked-tor
+ '[' anon-ws-disable-stacked-tor = '' ']'
+ deb_file=../anon-ws-disable-stacked-tor_0.1-2_all.deb
+ shopt -s globstar dotglob
+ touch -t 201308151102.35 ./debian
+ touch -t 201308151102.35 ./debian/ ./debian/anon-ws-disable-stacked-tor.displace ./debian/anon-ws-disable-stacked-tor.displace-extension ./debian/anon-ws-disable-stacked-tor.postinst ./debian/anon-ws-disable-stacked-tor.postrm ./debian/changelog ./debian/compat ./debian/control ./debian/copyright ./debian/gain-root-command ./debian/rules ./debian/source ./debian/source/format ./debian/watch
+ shopt -u globstar dotglob
+ rm --force ../anon-ws-disable-stacked-tor_0.1.orig.tar.gz
+ gzip -n
+ git archive --format=tar HEAD
+ ls -la ../anon-ws-disable-stacked-tor_0.1.orig.tar.gz
-rw-rw-r-- 1 user user 21583 Jul 12 21:45 ../anon-ws-disable-stacked-tor_0.1.orig.tar.gz
+ '[' '' = '' ']'
+ export 'DEBUILD_LINTIAN_OPTS=--info --display-info --show-overrides --fail-on-warnings'
+ DEBUILD_LINTIAN_OPTS='--info --display-info --show-overrides --fail-on-warnings'
+ debuild --no-lintian --rootcmd=debian/gain-root-command -sa -us -uc
 dpkg-buildpackage -rdebian/gain-root-command -D -us -uc -sa
dpkg-buildpackage: source package anon-ws-disable-stacked-tor
dpkg-buildpackage: source version 3:0.1-2
dpkg-buildpackage: source distribution UNRELEASED
dpkg-buildpackage: source changed by Patrick Schleizer <adrelanos@riseup.net>
 dpkg-source --before-build anon-ws-disable-stacked-tor
dpkg-buildpackage: host architecture amd64
 debian/gain-root-command debian/rules clean
dh clean --with=config-package
   dh_testdir
   dh_auto_clean
make[1]: Entering directory `/home/user/anon-ws-disable-stacked-tor'
make[1]: Warning: File `Makefile' has modification time 0.95 s in the future
./make-helper.bsh distclean
+ '[' -f /usr/lib/pre.bsh ']'
+ set -e
+ set -o pipefail
+ parse_cmd distclean
+ local matched=false
+ :
+ case $1 in
+ matched=true
+ make_clean
+ git clean -df
+ shift
+ :
+ case $1 in
+ break
+ '[' '!' true = true ']'
+ '[' '' = true ']'
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory `/home/user/anon-ws-disable-stacked-tor'
   dh_clean
 dpkg-source -b anon-ws-disable-stacked-tor
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building anon-ws-disable-stacked-tor using existing ./anon-ws-disable-stacked-tor_0.1.orig.tar.gz
dpkg-source: info: building anon-ws-disable-stacked-tor in anon-ws-disable-stacked-tor_0.1-2.debian.tar.gz
dpkg-source: info: building anon-ws-disable-stacked-tor in anon-ws-disable-stacked-tor_0.1-2.dsc
 debian/rules build
dh build --with=config-package
   dh_testdir
   dh_auto_configure
   dh_auto_build
make[1]: Entering directory `/home/user/anon-ws-disable-stacked-tor'
make all is not required.
make[1]: Leaving directory `/home/user/anon-ws-disable-stacked-tor'
   dh_auto_test
 debian/gain-root-command debian/rules binary
dh binary --with=config-package
   dh_testroot
   dh_prep
   dh_auto_install
make[1]: Entering directory `/home/user/anon-ws-disable-stacked-tor'
make[1]: Warning: File `Makefile' has modification time 0.95 s in the future
./make-helper.bsh install
+ '[' -f /usr/lib/pre.bsh ']'
+ set -e
+ set -o pipefail
+ parse_cmd install
+ local matched=false
+ :
+ case $1 in
+ matched=true
+ make_install
+ '[' /home/user/anon-ws-disable-stacked-tor/debian/anon-ws-disable-stacked-tor = '' ']'
+ local d
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d bin ']'
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d boot ']'
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d dev ']'
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d etc ']'
+ cp -R etc /home/user/anon-ws-disable-stacked-tor/debian/anon-ws-disable-stacked-tor
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d home ']'
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d lib ']'
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d opt ']'
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d sbin ']'
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d srv ']'
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d sys ']'
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d usr ']'
+ cp -R usr /home/user/anon-ws-disable-stacked-tor/debian/anon-ws-disable-stacked-tor
+ for d in bin boot dev etc home lib opt sbin srv sys usr var
+ '[' -d var ']'
+ shift
+ :
+ case $1 in
+ break
+ '[' '!' true = true ']'
+ '[' '' = true ']'
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory `/home/user/anon-ws-disable-stacked-tor'
   dh_installdocs
   dh_installchangelogs
   dh_perl
   dh_configpackage
   dh_link
   dh_compress
   dh_fixperms
   dh_installdeb
   dh_gencontrol
   dh_md5sums
   dh_builddeb
dpkg-deb: building package `anon-ws-disable-stacked-tor' in `../anon-ws-disable-stacked-tor_0.1-2_all.deb'.
 dpkg-genchanges -sa >../anon-ws-disable-stacked-tor_0.1-2_amd64.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build anon-ws-disable-stacked-tor
dpkg-buildpackage: full upload (original source is included)
+ lintian --info --display-info --show-overrides --fail-on-warnings
W: anon-ws-disable-stacked-tor source: out-of-date-standards-version 3.9.4 (current is 3.9.5)
N: 
N:    The source package refers to a Standards-Version older than the one that
N:    was current at the time the package was created (according to the
N:    timestamp of the latest debian/changelog entry). Please consider
N:    updating the package to current Policy and setting this control field
N:    appropriately.
N:    
N:    If the package is already compliant with the current standards, you
N:    don't have to re-upload the package just to adjust the Standards-Version
N:    control field. However, please remember to update this field next time
N:    you upload the package.
N:    
N:    See /usr/share/doc/debian-policy/upgrading-checklist.txt.gz in the
N:    debian-policy package for a summary of changes in newer versions of
N:    Policy.
N:    
N:    Refer to http://www.debian.org/doc/debian-policy/upgrading-checklist for
N:    details.
N:    
N:    Severity: normal, Certainty: certain
N:    
N:    Check: standards-version, Type: source
N: 
N: Dummy script does not need a man page. Original man page still available.
O: anon-ws-disable-stacked-tor: binary-without-manpage usr/sbin/tor.anondist
N: 
N:    Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should
N:    have a manual page
N:    
N:    Note that though the man program has the capability to check for several
N:    program names in the NAMES section, each of these programs should have
N:    its own manual page (a symbolic link to the appropriate manual page is
N:    sufficient) because other manual page viewers such as xman or tkman
N:    don't support this.
N:    
N:    If the name of the man page differs from the binary by case, man may be
N:    able to find it anyway; however, it is still best practice to make the
N:    case of the man page match the case of the binary.
N:    
N:    If the man pages are provided by another package on which this package
N:    depends, lintian may not be able to determine that man pages are
N:    available. In this case, after confirming that all binaries do have man
N:    pages after this package and its dependencies are installed, please add
N:    a lintian override.
N:    
N:    Refer to Debian Policy Manual section 12.1 (Manual pages) for details.
N:    
N:    Severity: normal, Certainty: possible
N:    
N:    Check: manpages, Type: binary
N: 
make: *** [deb-pkg] Error 1
user@host:~/anon-ws-disable-stacked-tor$

I now have a deb in the parent directory but I notice there is at least one error at the very end of that output and “W: anon-ws-disable-stacked-tor source: out-of-date-standards-version 3.9.4 (current is 3.9.5)”.

Would it be safe to proceed with this build?


#10
I now have a deb in the parent directory but I notice there is at least one error at the very end of that output and "W: anon-ws-disable-stacked-tor source: out-of-date-standards-version 3.9.4 (current is 3.9.5)".

Would it be safe to proceed with this build?


Probably you’re using Debian testing? In Debian stable, 3.9.4 is most recent standard version.
The package has only been tested in Debian stable (currently: wheezy).

The error you’re seeing is caused by the standards related lintian warning, because we’re using lintian --fail-on-warnings.

In this particular case I do not foresee any issues. Probably the worst thing that could happen is, that the package will be defunct, but that is unlikely, I think.

And before you run into the next issue… (Because this package is developed for Whonix 9.) In /etc/rinetd.conf you have to edit all strings.

With the IP of your own gateway. For Whonix 8.x:

Then restart rinetd.

sudo service rinetd restart

Then it should work.


#11

[quote=“Patrick, post:10, topic:350”][quote]
I now have a deb in the parent directory but I notice there is at least one error at the very end of that output and “W: anon-ws-disable-stacked-tor source: out-of-date-standards-version 3.9.4 (current is 3.9.5)”.

Would it be safe to proceed with this build?
[/quote]
Probably you’re using Debian testing?[/quote]

I’m using Ubuntu 14.04 64 bit, note the thread title. And I’m trying to install without using Debian sources so I’m not following all the instructions under Get Build Dependencies.

[quote=“Patrick, post:10, topic:350”]And before you run into the next issue… (Because this package is developed for Whonix 9.) In /etc/rinetd.conf you have to edit all strings.

With the IP of your own gateway. For Whonix 8.x:

Then restart rinetd.

sudo service rinetd restart

Then it should work.[/quote]

I tried to install it and it said I had to install rinetd.

user@host:~/anon-ws-disable-stacked-tor$ export DEBDEBUG=1
user@host:~/anon-ws-disable-stacked-tor$ make deb-install
./make-helper.bsh deb-install
+ '[' -f /usr/lib/pre.bsh ']'
+ set -e
+ set -o pipefail
+ parse_cmd deb-install
+ local matched=false
+ :
+ case $1 in
+ matched=true
+ make_deb-install
+ get_variables
+ command -v dpkg-parsechangelog
+ OIFS=' 	
'
+ NIFS='
'
+ IFS='
'
++ dpkg-parsechangelog
+ for line in '$(dpkg-parsechangelog)'
+ IFS=' 	
'
+ read -r first second _
+ first=source:
+ '[' source: = version: ']'
+ for line in '$(dpkg-parsechangelog)'
+ IFS=' 	
'
+ read -r first second _
+ first=version:
+ '[' version: = version: ']'
+ version=3:0.1-2
+ revision=2
+ version=3:0.1
+ version=0.1
+ break
+ IFS=' 	
'
+ '[' 0.1 = '' ']'
++++ dirname ./make-helper.bsh
+++ cd .
+++ pwd
++ basename /home/user/anon-ws-disable-stacked-tor
+ package_name=anon-ws-disable-stacked-tor
+ '[' anon-ws-disable-stacked-tor = '' ']'
+ deb_file=../anon-ws-disable-stacked-tor_0.1-2_all.deb
+ '[' '!' -f ../anon-ws-disable-stacked-tor_0.1-2_all.deb ']'
+ sudo dpkg -i ../anon-ws-disable-stacked-tor_0.1-2_all.deb
[sudo] password for user: 
Selecting previously unselected package anon-ws-disable-stacked-tor.
(Reading database ... 227831 files and directories currently installed.)
Preparing to unpack .../anon-ws-disable-stacked-tor_0.1-2_all.deb ...
Unpacking anon-ws-disable-stacked-tor (3:0.1-2) ...
dpkg: dependency problems prevent configuration of anon-ws-disable-stacked-tor:
 anon-ws-disable-stacked-tor depends on rinetd; however:
  Package rinetd is not installed.

dpkg: error processing package anon-ws-disable-stacked-tor (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 anon-ws-disable-stacked-tor
make: *** [deb-install] Error 1
user@host:~/anon-ws-disable-stacked-tor$

I installed rinetd:

user@host:~/anon-ws-disable-stacked-tor$ sudo apt-get install rinetd
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  rinetd
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
1 not fully installed or removed.
Need to get 24.9 kB of archives.
After this operation, 152 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe rinetd amd64 0.62-5.1 [24.9 kB]
Fetched 24.9 kB in 6s (3,683 B/s) 
Selecting previously unselected package rinetd.
(Reading database ... 227847 files and directories currently installed.)
Preparing to unpack .../rinetd_0.62-5.1_amd64.deb ...
Unpacking rinetd (0.62-5.1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up rinetd (0.62-5.1) ...
Starting internet redirection server: rinetd.
Processing triggers for ureadahead (0.100.0-16) ...
Setting up anon-ws-disable-stacked-tor (3:0.1-2) ...
Stopping internet redirection server: rinetd.
Starting internet redirection server: rinetd.
Adding 'diversion of /etc/default/tor to /etc/default/tor.anondist-orig by anon-ws-disable-stacked-tor'
Adding 'diversion of /etc/rinetd.conf to /etc/rinetd.conf.anondist-orig by anon-ws-disable-stacked-tor'
Adding 'diversion of /usr/bin/tor to /usr/bin/tor.anondist-orig by anon-ws-disable-stacked-tor'
Adding 'diversion of /usr/sbin/tor to /usr/sbin/tor.anondist-orig by anon-ws-disable-stacked-tor'

… and installed over the first attempt:

user@host:~/anon-ws-disable-stacked-tor$ make deb-install
./make-helper.bsh deb-install
+ '[' -f /usr/lib/pre.bsh ']'
+ set -e
+ set -o pipefail
+ parse_cmd deb-install
+ local matched=false
+ :
+ case $1 in
+ matched=true
+ make_deb-install
+ get_variables
+ command -v dpkg-parsechangelog
+ OIFS=' 	
'
+ NIFS='
'
+ IFS='
'
++ dpkg-parsechangelog
+ for line in '$(dpkg-parsechangelog)'
+ IFS=' 	
'
+ read -r first second _
+ first=source:
+ '[' source: = version: ']'
+ for line in '$(dpkg-parsechangelog)'
+ IFS=' 	
'
+ read -r first second _
+ first=version:
+ '[' version: = version: ']'
+ version=3:0.1-2
+ revision=2
+ version=3:0.1
+ version=0.1
+ break
+ IFS=' 	
'
+ '[' 0.1 = '' ']'
++++ dirname ./make-helper.bsh
+++ cd .
+++ pwd
++ basename /home/user/anon-ws-disable-stacked-tor
+ package_name=anon-ws-disable-stacked-tor
+ '[' anon-ws-disable-stacked-tor = '' ']'
+ deb_file=../anon-ws-disable-stacked-tor_0.1-2_all.deb
+ '[' '!' -f ../anon-ws-disable-stacked-tor_0.1-2_all.deb ']'
+ sudo dpkg -i ../anon-ws-disable-stacked-tor_0.1-2_all.deb
(Reading database ... 227866 files and directories currently installed.)
Preparing to unpack .../anon-ws-disable-stacked-tor_0.1-2_all.deb ...
Unpacking anon-ws-disable-stacked-tor (3:0.1-2) over (3:0.1-2) ...
Setting up anon-ws-disable-stacked-tor (3:0.1-2) ...
Stopping internet redirection server: rinetd.
Starting internet redirection server: rinetd.
+ shift
+ :
+ case $1 in
+ break
+ '[' '!' true = true ']'
+ '[' '' = true ']'

I edited /etc/rinetd.conf and restarted it as you said. Restarted Torbrowser by clicking “New Identity” and about:tor hasn’t changed. I don’t know if it is giving me a new identity.

All I care about is being able to create a new identity. Is there any other way to do this? I can’t do it by restarting Torbrowser? How do I know if I have new identity?

Another problem I have sometimes is that the scroll bars for the whole Torbrowser window disappear. Not a big issue, I just have to use page up/down. It would be nice for the documentation however.


#12
I edited /etc/rinetd.conf and restarted it as you said. Restarted Torbrowser by clicking "New Identity" and about:tor hasn't changed. I don't know if it is giving me a new identity.
How do I know if I have new identity?
Good question. Documentation for this topic has been added few minutes ago: https://www.whonix.org/wiki/Tor_Browser#Verify_New_Identity
All I care about is being able to create a new identity. Is there any other way to do this? I can't do it by restarting Torbrowser?
Good question. Documentation for this topic has been added few minutes ago: https://www.whonix.org/wiki/Tor_Browser#Get_New_Identity_without_Tor_ControlPort_Access
Another problem I have sometimes is that the scroll bars for the whole Torbrowser window disappear. Not a big issue, I just have to use page up/down. It would be nice for the documentation however.
Never saw this issue. Sounds like a Ubuntu and/or Tor Browser bug and should be reported upstream. Since Whonix is not involved, you are allowed to contact them.

#13

Good question. Documentation for this topic has been added few minutes ago:

Good question. Documentation for this topic has been added few minutes ago:

After the install of anon-ws-disable-stacked-tor, I was getting a new identity despite the fact that the onion symbol by the address bar had an X on it and about:tor said “Something went wrong”. I checked a snapshot from before I ran the installation and I was not getting a new identity (Torbrowser popped up a message telling me I wasn’t also).

I prefer to change IP using the gateway however. Are the streams going to look any different when you are running multiple workstations behind one gateway? If you get a new identity with Torbutton does that apply only to the workstation you did it from?

I don’t know of any other reason I would need anon-ws-disable-stacked-tor. I may be able to help you test it when I have more time later, but you know how that goes.


#14
I prefer to change IP using the gateway however.
Ok. [You still must restart Tor Browser (if you were using it) to unlink browser states.]
Are the streams going to look any different when you are running multiple workstations behind one gateway?
If they have different IP's, yes.

Source:
https://www.torproject.org/docs/tor-manual-dev.html.en

IsolateClientAddr
Don’t share circuits with streams from a different client address. (On by default and strongly recommended; you can disable it with NoIsolateClientAddr.)</blockquote>
If you get a new identity with Torbutton does that apply only to the workstation you did it from?

Source: https://gitweb.torproject.org/torspec.git?a=blob_plain;hb=HEAD;f=control-spec.txt

NEWNYM -- Switch to clean circuits, so new application requests don't share any circuits with old ones. Also clears the client-side DNS cache. (Tor MAY rate-limit its response to this signal.)
I don't know of any other reason I would need anon-ws-disable-stacked-tor.
If you need it or not is up to your needs. See the package description (https://github.com/Whonix/anon-ws-disable-stacked-tor/blob/master/README.md) if that sounds relevant to you.

#15

This is now finally sorted out. See the new thread since I will close this one.


#16