LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-05-2021, 12:41 AM   #16
jail bill gates from hel
Member
 
Registered: Nov 2020
Posts: 48

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by berndbausch View Post
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.
 
Old 01-05-2021, 02:18 AM   #17
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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 View Post
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.
 
Old 01-05-2021, 02:54 AM   #18
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,327
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Or better yet, try the package torbrowser-launcher instead. It will take care of all of the above for you.
 
Old 01-05-2021, 03:11 AM   #19
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
In the appropriate directory, try
Code:
./start-tor-browser.desktop
Worked for me.
But I agree with one of the previous posters: Since this is a GUI app anyhow, why don't you just double-click the .desktop file.

Quote:
Originally Posted by jail bill gates from hel View Post
I have just copied and pasted it from the original site and it reads
tar -xvJF tor-browser-linux64-7.5.6_en-US.tar.xz’

Therefore they have made the typo and should be informed about it
and in the screenshot below it is written correctly.
Anyhow, you should always go to the source for installation instructions. See post #2.

PS: with the arrival of Q-Anon your username gains a whole new dimension of meaning!

Last edited by ondoho; 01-05-2021 at 03:12 AM.
 
Old 01-05-2021, 03:23 AM   #20
aiszisz
LQ Newbie
 
Registered: Dec 2020
Distribution: Slackware64 14.2
Posts: 28

Rep: Reputation: 11
Use your file browser and double click as the howto suggested.

or

Code:
$ chmod 764 start-tor-browser.desktop
$ sh start-tor-browser.desktop
 
Old 01-05-2021, 02:12 PM   #21
heathcliff36
Member
 
Registered: Jun 2019
Location: West Coast, USA
Distribution: Debian
Posts: 90

Rep: Reputation: Disabled
Quote:
Originally Posted by jail bill gates from hel View Post
I am trying to learn how to use the commands!
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.
 
Old 01-05-2021, 07:29 PM   #22
jail bill gates from hel
Member
 
Registered: Nov 2020
Posts: 48

Original Poster
Rep: Reputation: Disabled
I have just tried installing it through the icon
I double click the set up icon and nothing happens!
https://ibb.co/RBqWpw4
 
Old 01-06-2021, 06:30 AM   #23
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,533

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
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.
 
Old 01-06-2021, 07:16 AM   #24
jail bill gates from hel
Member
 
Registered: Nov 2020
Posts: 48

Original Poster
Rep: Reputation: Disabled
Yes that box is ticked

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
 
Old 01-06-2021, 07:51 AM   #25
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
I would change OP primary prompt to something easy to read and work with say
Code:
$ export PS1="[\u]@\w\$ "
on my computer it looks like
Code:
[piotr]@~/Documents:$
just OP host name is very long plus following working directory path makes almost impossible to work within shell (say deep in directory tree).
 
Old 01-06-2021, 11:37 AM   #26
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Follow the directions in the tutorial you have been using and about step 12 or 13 is very clear on what to do.
 
Old 01-06-2021, 11:47 AM   #27
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Withdrawn

Last edited by computersavvy; 01-06-2021 at 11:48 AM.
 
Old 01-06-2021, 11:52 AM   #28
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by heathcliff36 View Post
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/
 
1 members found this post helpful.
Old 01-07-2021, 08:41 AM   #29
heathcliff36
Member
 
Registered: Jun 2019
Location: West Coast, USA
Distribution: Debian
Posts: 90

Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Print all PID folders from /proc line-by-line with this format (( PID: command-line )) courteous Linux - Newbie 7 12-12-2010 04:47 PM
[SOLVED] Awk: Input from one line, execute program; input from next line, execute program C.L. Programming 9 09-27-2010 12:06 AM
awk command line: blank line record sep, new line field sep robertmarkbram Programming 4 02-21-2010 05:25 AM
grab the line below a blank line and the line above the next blank line awk or perl? Pantomime Linux - General 7 06-26-2008 08:13 AM
linux scripting help needed read from file line by line exc commands each line read atokad Programming 4 12-26-2003 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration