Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can't cd to start-tor-browser.desktop, since it is a regular file, not a directory.
Since you plan to use a browser, you should have a desktop environment. start-tor-browser.desktop contains the instructions for your desktop environment how the browser is started. Perhaps looking into the file reveals what you have to do to start it from the command line, but why don't you use your desktop as instructed by that web page?
To see the contents of that file, try more start-tor-browser.desktop.
I am trying to learn how to use the commands!
a@a-HP-Compaq-dc7700-Convertible-Minitower:~$ cd Downloads
a@a-HP-Compaq-dc7700-Convertible-Minitower:~/Downloads$ ls
tor-browser_en-US tor-browser-linux32-10.5a6_en-US.tar.xz
a@a-HP-Compaq-dc7700-Convertible-Minitower:~/Downloads$ tor-browser_en-US
tor-browser_en-US: command not found
a@a-HP-Compaq-dc7700-Convertible-Minitower:~$ start-tor-browser.desktop
start-tor-browser.desktop: command not found
a@a-HP-Compaq-dc7700-Convertible-Minitower:~$ start-tor-browser.desktop.
start-tor-browser.desktop.: command not found
a@a-HP-Compaq-dc7700-Convertible-Minitower:~$
Last edited by jail bill gates from hel; 01-05-2021 at 12:43 AM.
I suggest you find a fundamental Linux book or a tutorial for beginners. Also, since you ask for help, why don't you follow the suggestions?
Quote:
Originally Posted by jail bill gates from hel
Code:
a@a-HP-Compaq-dc7700-Convertible-Minitower:~$ cd Downloads
a@a-HP-Compaq-dc7700-Convertible-Minitower:~/Downloads$ ls
tor-browser_en-US tor-browser-linux32-10.5a6_en-US.tar.xz
a@a-HP-Compaq-dc7700-Convertible-Minitower:~/Downloads$ tor-browser_en-US
tor-browser_en-US: command not found
This doesn't work, because tor-browser_en-US is not a command or executable file, but a directory.
Quote:
Code:
a@a-HP-Compaq-dc7700-Convertible-Minitower:~$ start-tor-browser.desktop
start-tor-browser.desktop: command not found
start-tor-browser.desktop simply doesn't exist in the local directory. Its location is the tor-browser_en-US directory, but in any case, it is not an executable file.
Last edited by berndbausch; 01-05-2021 at 02:20 AM.
It seems to me you have downloaded a tor-browser compressed file and then you have unpacked the compressed file in your Downloads directory.
However I don't think you've installed tor-browser.
I think you should use the Linux Mint repository.
Just as Iphone uses iTunes to download all apps and android uses google play, your Linux Mint distro has a repository to download all your apps. Including tor-browser.
Installing from your repository is more secure than downloading software from a website.
This link tells you what commands to use to install tor-browser from your repository computingforgeeks.
Simply copy and paste the commands onto your terminal. You'll need to be logged in as superuser (Administrator).
The tutorial isn't fantastic - but it should work.
I would think your Tor Browser Setup would be executable but check to see if it is when you are in the folder shown in the image in your post. Right click Tor Browser Setup, click Properties, click Permissions and see that the box to the left of "Allow executing as a program" is checked.
The link with instructions posted above seems pretty simple to use, you might try that.
One other thing is when I right click on the icon, one of the options is to open it with the text editor
When you useully open something like that with a text editor it give you a computer code but instead its a set of instructions
__________________________
#!/usr/bin/env ./Browser/execdesktop
#
# This file is a self-modifying .desktop file that can be run from the shell.
# It preserves arguments and environment for the start-tor-browser script.
#
# Run './start-tor-browser.desktop --help' to display the full set of options.
#
# When invoked from the shell, this file must always be in a Tor Browser root
# directory. When run from the file manager or desktop GUI, it is relocatable.
#
# After first invocation, it will update itself with the absolute path to the
# current TBB location, to support relocation of this .desktop file for GUI
# invocation. You can also add Tor Browser to your desktop's application menu
# by running './start-tor-browser.desktop --register-app'
#
# If you use --register-app, and then relocate your TBB directory, Tor Browser
# will no longer launch from your desktop's app launcher/dock. However, if you
# re-run --register-app from inside that new directory, the script
# will correct the absolute paths and re-register itself.
#
# This file will also still function if the path changes when TBB is used as a
# portable app, so long as it is run directly from that new directory, either
# via the shell or via the file manager.
[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
It seems to me you have downloaded a tor-browser compressed file and then you have unpacked the compressed file in your Downloads directory.
However I don't think you've installed tor-browser.
The tor browser runs from the location where it is unpacked. In the case of the OP that is ~/Downloads/tor-browser_en-US/
The tor browser runs from the location where it is unpacked. In the case of the OP that is ~/Downloads/tor-browser_en-US/
The OP has downloaded the tor-browser package from a third-party website which can be vulnerable to being hacked (e.g. MITM attack).
Given this is tor-browser it would be sensible to be cautious.
It's best practice to download from the repo which the OP doesn't know anything about.
The tutorial OP is using (from computersavvy's comment #26) is pretty bad for newbies since installing from repo is far easier.
Also there hasn't been a gpg verification of the tor-browser package being downloaded.
And now OP is going down a rabbit hole of using several complicated linux commands to execute something that has been unpacked.
The tutorial link I gave earlier states a tor-browser repo needs to be added to /etc/apt/sourceslist.d. Perhaps tor-browser won't launch without it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.