You are not logged in.
Hi,
I have installed Tor and not able to run it:
root@mx:/home/mx# tor
Nov 28 09:02:21.515 [notice] Tor v0.2.5.14 (git-4c928d615a084648) running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1t and Zlib 1.2.8.
Nov 28 09:02:21.515 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Nov 28 09:02:21.515 [notice] Read configuration file "/etc/tor/torrc".
Nov 28 09:02:21.521 [notice] Opening Socks listener on 127.0.0.1:9050
Nov 28 09:02:21.521 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
Nov 28 09:02:21.521 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Nov 28 09:02:21.521 [err] Reading config failed--see warnings above.
root@mx:/home/mx#
thanks a lot
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
First of all, try not to run as root unless neccessary.
Second, can you show the output of
ps aux | grep tor
as well as
netstat -pln | grep 9050
From your error message, either tor is already running, or something else is already using the port 9050. In the first case, great, in the second, you ll have to either shut off the service listening on the port 9050, or tell tor to use another port.
Last edited by D219 (2017-11-28 09:47:47)
Offline
When i tried
ps aux | grep tor
i got this message:
mx@mx:~$ ps aux | grep tor
debian-+ 687 0.5 0.3 58248 26516 ? S 10:57 0:00 /usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc --hush
mx 980 0.0 0.1 384788 8512 ? Sl 10:57 0:00 /usr/lib/deja-dup/deja-dup-monitor
mx 1001 0.0 0.1 311120 9264 ? Sl 10:57 0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
mx 1027 0.0 0.0 206728 6020 ? Sl 10:57 0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
mx 1032 0.0 0.0 202768 6028 ? Sl 10:57 0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
mx 1118 0.0 0.0 215808 6420 ? Sl 10:58 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
mx 1127 0.0 0.0 300304 7400 ? Sl 10:58 0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
mx 1370 0.0 0.0 4336 732 ? Ss 10:59 0:00 /bin/sh -c x-terminal-emulator
mx 1371 9.2 0.6 504112 55092 ? Sl 10:59 0:00 /usr/bin/python /usr/bin/x-terminal-emulator
mx 1385 0.0 0.0 12752 2140 pts/0 S+ 10:59 0:00 grep tor
What shall i do next?
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
this is what i got from the terminal
mx@mx:~$ [sudo] password for mx:
bash: [sudo]: no se encontró la orden
mx@mx:~$ tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 687/tor
bash: tcp: no se encontró la orden
so, now?
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
Did you consider the last paragraph here?
It looks like you've installed tor -> this is why it is already running as tor daemon and listening on that port. As it says in that thread: "tor is not Tor Browser, it is just one component that provides the connection to the Tor network but it doesn't include the browser. Instead you should install Tor Browser by following the steps on the Tor Project website."
So you could simply remove tor (as a system service) and install tor together with the browser (which is called the "tor browser bundle"). It is available on torproject.org.
Or: You could check out this thread and "torify" the whole system, so all the traffic would go over tor.
You could also configure only the proxy settings in your browser, but in that case the out-of-the-box Firefox or whatever browser you use would be insecure for this kind of browsing. This is why there is a tor browser bundle, which contains a pre-configured Firefox.
Offline
so, now the problem is that i can not install tor properly. I can run it if i open the file and click in "run tor", but i would like to have it as a software so i can run it as i run anothers softwares, without having to go to the folder which contains the files.
So, when i try to install it from the terminal i got a message that says
tha fail is not founded
i have followed the steps from the tor website.
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
^How would you like to start it? Via menu entry? Terminal? Gmrun? bl-hot-corner?
I'm not sure where you got that error message.
Offline
via Gmrun would be lovely.
i show you when i got that message, so:
mx@mx:~$ tar -xvJf tor-browser-linux64-7.0.10_LANG.tar.xztor-browser-linux64-7.5a8_en-US.tar.xz
tar (child): tor-browser-linux64-7.0.10_LANG.tar.xztor-browser-linux64-7.5a8_en-US.tar.xz: No se puede open: No existe el fichero o el directorio
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
If you like to start it via gmrun, you can do the following:
Go to the folder where tor was installed and from which folder you can start the tor browser, i.e. the folder which contains the file start-tor-browser.desktop.
Open this file with geany (via terminal: geany start-tor-browser.desktop ).
There is a line Exec=. Copy the part after the "=", which will start with: sh -c '" and end with %k -> simply select this part, right click, copy.
Click on "New" in geany in order to create a new file. First type the following: #!/bin/bash
Hit enter and in the next line paste the command from the clipboard: right click, paste (or press ctrl+v).
Click "File" in geany and go to "save as". Choose a name like "torbrowser" or "torb" (if you choose "tor", it might get messed up with the system service in the future) and save it in the folder /home/mx/bin (<-make sure you've chosen this folder) by clicking on save.
This file in the ~/bin folder has to be executable, so set in the File Manager under Permissions "Execute" or in terminal use:
chmod 755 ~/bin/torbrowser
If it's set properly, you can start the tor-browser-bundle from terminal or via gmrun by torbrowser + enter.
There is an other way, but did not try it yet. The one above works for me without issues.
Last edited by martix (2017-11-29 11:01:29)
Offline
i was doing well, until i tried to
Click "File" in geany and go to "save as". Choose a name like "torbrowser" or "torb" (if you choose "tor", it might get messed up with the system service in the future) and save it in the folder /home/mx/bin (<-make sure you've chosen this folder) by clicking on save.
and then i got this message:
Error opening the file «/ bin / torbrowser»: Permission denied
The file on the disk may be truncated.
Thanks a lot, i think we are going well.. :=)
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
+ info, this is what I tiped in geany:
#!/bin/bash
sh -c '\"$PWD/start-tor-browser\" --detach || ([ ! -x \"$PWD/start-tor-browser\" ] \&\& \"\$(dirname \"\$*\")\"/Browser/start-tor-browser --detach)' dummy %k
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
Just to be sure some questions: Can you confirm that you did download the correct tar.xz file (be careful choosing the 32 bit or 64 bit version) from here? Did you extract the downloaded file (command [without being root]: tar -xvfJ FileName.tar.xz )?
Did you manage to start the tor browser from inside the extracted folder via terminal ( ./start-tor-browser.desktop ) or via File Manager? Be careful not to be root while starting it.
Last edited by martix (2017-11-29 23:07:01)
Offline
Hi,
Can you confirm that you did download the correct tar.xz file (be careful choosing the 32 bit or 64 bit version) from here?
i downloaded that version for the torproject website:
tor-browser-linux64-7.0.10_en-US.tar.xz
Did you extract the downloaded file (command [without being root]: tar -xvfJ FileName.tar.xz )?
I extracted the downloaded file clicking the right on the mouse and extracting files (not using the terminal)
Did you manage to start the tor browser from inside the extracted folder via terminal ( ./start-tor-browser.desktop ) or via File Manager?
Via file manager, as i don't really know how terminal works, i use it just when i see that recommendation in forums.
Thanks a lot for your patience.
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
^So far I can tell, everything looks great, but not the sh -c line in post #12.
You should check the Exec= line in start-tor-browser.desktop, it should look something like this (after Exec=):
sh -c '"/home/YourUserName/YourDownloadfolder/tor-browser-linux64-7.0.10_en-US/tor-browser_en-US/Browser/start-tor-browser" --detach || ([ ! -x "/home/YourUsername/YourDownloadfolder/tor-browser-linux64-7.0.10_en-US/tor-browser_en-US/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k
If you change this^ according to the folder where you downloaded tor and copy it into the terminal (not being root), it should start the tor browser. This is what should be under the #!/bin/bash line in a file called something like "torbrowser", being in the /home/YourUsername/bin folder. So check your sh -c ... code in the terminal, if it starts tor, it's ok, if not, there is a culprit.
Last edited by martix (2017-11-30 16:07:10)
Offline
sorry, could u be more especific about this:
If you change this^ according to the folder where you downloaded tor and copy it into the terminal (not being root), it should start the tor browser. This is what should be under the #!/bin/bash line in a file called something like "torbrowser", being in the /home/YourUsername/bin folder. So check your sh -c ... code in the terminal, if it starts tor, it's ok, if not, there is a culprit.
I don't want to be a pain, it just that i am learning how to use bunsenlabs..
thanks a lot
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
Ok, let's say you opened the torproject website, clicked the right bundle (as you mentioned it was tor-browser-linux64-7.0.10_en-US.tar.xz) to download and saved it in the folder /home/mx/Downloads (check where you saved it on your system).
When you extract this tar.xz file, be careful not being root(the file manager was not opened as root). It creates a folder called tor-browser-linux64-7.0.10_en-US and inside this folder an other one called tor-browser_en-US. This folder contains the file start-tor-browser.desktop. Hence the path to this file would be /home/mx/Downloads/tor-browser-linux64-7.0.10_en-US/tor-browser_en-US. If you use Thunar, the path is shown besides the home symbol. In that folder there is also an other folder called Browser, which has a file called start-tor-browser.
Once you figured out the correct path, just change the sh -c... line accordingly, like for the example above: sh -c '"/home/mx/Downloads/tor-browser-linux64-7.0.10_en-US/tor-browser_en-US/Browser/start-tor-browser" --detach || ([ ! -x "/home/mx/Downloads/tor-browser-linux64-7.0.10_en-US/tor-browser_en-US/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k
(This is also in the start-tor-browser.desktop file.) When you have your sh -c... line, just open the terminal, copy and paste the code and hit enter. It should start the tor browser. If it doesn't, just follow these steps, re-download the bundle, save it in Downloads, extract it (not being root) and execute start-tor-browser.desktop first and try the sh -c... line in the terminal.
Offline
When you extract this tar.xz file, be careful not being root(the file manager was not opened as root). It creates a folder called tor-browser-linux64-7.0.10_en-US and inside this folder an other one called tor-browser_en-US. This folder contains the file start-tor-browser.desktop. Hence the path to this file would be /home/mx/Downloads/tor-browser-
I didn't find this file,this is what i found:
http://www.pasteupload.com/image/HN7Ja
and
http://www.pasteupload.com/image/HNdCW
Last edited by mx (2017-12-01 10:27:12)
Please, have in mind that I am a total newbie, please, be patience, i'm trying to learn. Thanks a lot.
Offline
Indeed, you have a slightly different path. Here is a bash command to copy&paste into the terminal and try if tor starts after hitting enter.
sh -c '"/home/mx/Descargas/tor-browser_en-US/Browser/start-tor-browser" --detach || ([ ! -x "/home/mx/Descargas/tor-browser_en-US/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k
If you compare it to the code in post #15, it's basically the same, it's just changed according to your folder structure (I guess your mx folder is in /home as default). Does it work?
Offline
[As a sidenote: This is really strange. In SpaceFM I have 12.4 K for start-tor-browser, whereas Thunar shows (just like for mx on the screenshot) 12.7 K. Also the file name is "Tor Browser" in Thunar, whereas SpaceFM shows start-tor-browser.desktop. I'm sorry about the mess up @mx, I was referring to the names in SpaceFM. Anyhow at least that bash command should work now. Does it?].
Offline