LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I open a file in Ubuntu? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-open-a-file-in-ubuntu-4175468747/)

TheCorporation 07-07-2013 12:49 AM

How do I open a file in Ubuntu?
 
Hi,

I'm brand new to Linux (been a Windows user for years) and I'm trying to install TorGuard VPN in Ubuntu which is on a virtual machine.

I've downloaded two files "TorGuard_unix_4_0_1" and "TorGuardPRO.zip". The first file is the VPN and the second file is the instructions.

I will like to know how to open these files if anyone could be of any help? In Windows one simply hits "Open" but in Linux when I do this it gives me the run about.

Any advice will be appreciated thanks

T.Boyle 07-07-2013 01:37 AM

The second file is easy just open a terminal and type
Code:

unzip TorGuardPRO.zip
Or from your file manager, right-click on the file and select extract

The TorGuard_unix_4_0_1 file doesn't have any extension so I suggest running the file command to see what it is

Code:

file TorGuard_unix_4_0_1
post back the output you get

jdkaye 07-07-2013 01:49 AM

You realise that
a. TorGuard is not free (as in beer; I'm not sure about "as in speech")
b. There are free (in both senses) alternatives.
If you do a search with Ubuntu's package manager for packages with "tor" at the beginning, you'll find a few.
Just saying... what you do is your business. ;)
jdk

TheCorporation 07-07-2013 01:55 AM

Quote:

Originally Posted by T.Boyle (Post 4985530)
The second file is easy just open a terminal and type
Code:

unzip TorGuardPRO.zip
Or from your file manager, right-click on the file and select extract

The TorGuard_unix_4_0_1 file doesn't have any extension so I suggest running the file command to see what it is

Code:

file TorGuard_unix_4_0_1
post back the output you get

Here is what I got....

sphinx@ubuntu:~$ unzip TorGuardPRO.zip
unzip: cannot find or open TorGuardPRO.zip, TorGuardPRO.zip.zip or TorGuardPRO.zip.ZIP.
sphinx@ubuntu:~$

sphinx@ubuntu:~$ file TorGuard_unix_4_0_1
TorGuard_unix_4_0_1: ERROR: cannot open `TorGuard_unix_4_0_1' (No such file or directory)
sphinx@ubuntu:~$

???

TheCorporation 07-07-2013 01:56 AM

Quote:

Originally Posted by jdkaye (Post 4985535)
You realise that
a. TorGuard is not free (as in beer; I'm not sure about "as in speech")
b. There are free (in both senses) alternatives.
If you do a search with Ubuntu's package manager for packages with "tor" at the beginning, you'll find a few.
Just saying... what you do is your business. ;)
jdk

I don't mind paying for quality. :)

astrogeek 07-07-2013 02:10 AM

Quote:

Originally Posted by TheCorporation (Post 4985537)
Here is what I got....

sphinx@ubuntu:~$ unzip TorGuardPRO.zip
unzip: cannot find or open TorGuardPRO.zip, TorGuardPRO.zip.zip or TorGuardPRO.zip.ZIP.
sphinx@ubuntu:~$

sphinx@ubuntu:~$ file TorGuard_unix_4_0_1
TorGuard_unix_4_0_1: ERROR: cannot open `TorGuard_unix_4_0_1' (No such file or directory)
sphinx@ubuntu:~$

???

Where did you download them to? You should be in the same directory where you downloaded them to open them that way.

For example, if you downloaded them to a directory named Downloads in your home directory, then open a terminal and type:

Code:

cd ~/Downloads
... then use the unizp command to open the zip file.

For the other file type...
Code:

./TorGuard_unix_4_0_1
... in the same directory.

You may also need to make it executable first, like this:

Code:

chmod +x TorGuard_unix_4_0_1

TheCorporation 07-07-2013 02:30 AM

Quote:

Originally Posted by astrogeek (Post 4985540)
Where did you download them to? You should be in the same directory where you downloaded them to open them that way.

For example, if you downloaded them to a directory named Downloads in your home directory, then open a terminal and type:

Code:

cd ~/Downloads
... then use the unizp command to open the zip file.

For the other file type...
Code:

./TorGuard_unix_4_0_1
... in the same directory.

You may also need to make it executable first, like this:

Code:

chmod +x TorGuard_unix_4_0_1

I'm brand new to Linux I think that is the problem :(

The files are all in downloads and applications as I was messing around with the files trying to get the files open.

Here is what I got for download command....

sphinx@ubuntu:~$ cd ~/Downloads
sphinx@ubuntu:~/Downloads$ unzip TorGuardPRO.zip
Archive: TorGuardPRO.zip
replace TorGuardPRO/ca10ca.crt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: TorGuardPRO/ca10ca.crt
replace TorGuardPRO/ca11ca.crt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
inflating: TorGuardPRO/ca11ca.crt
replace TorGuardPRO/ca12ca.crt? [y]es, [n]o, [A]ll, [N]one, [r]ename:

and.....

sphinx@ubuntu:~$ cd ~/Downloads
sphinx@ubuntu:~/Downloads$ ./TorGuard_unix_4_0_1
bash: ./TorGuard_unix_4_0_1: No such file or directory
sphinx@ubuntu:~/Downloads$ chmod +x TorGuard_unix_4_0_1
chmod: cannot access `TorGuard_unix_4_0_1': No such file or directory
sphinx@ubuntu:~/Downloads$

jdkaye 07-07-2013 02:55 AM

Quote:

Originally Posted by TheCorporation (Post 4985538)
I don't mind paying for quality. :)

Oh, I thought you were a newcomer to to Linux. If you have already tried the open solutions and found them wanting then you know what you're doing.
Apologies. Out of curiosity which ones did you try?
jdk

yancek 07-07-2013 08:07 AM

From your Downloads directory, run the following command: ls -l, then post the output.

T.Boyle 07-07-2013 08:17 AM

Quote:

Originally Posted by TheCorporation (Post 4985547)
sphinx@ubuntu:~$ cd ~/Downloads
sphinx@ubuntu:~/Downloads$ ./TorGuard_unix_4_0_1
bash: ./TorGuard_unix_4_0_1: No such file or directory
sphinx@ubuntu:~/Downloads$ chmod +x TorGuard_unix_4_0_1
chmod: cannot access `TorGuard_unix_4_0_1': No such file or directory
sphinx@ubuntu:~/Downloads$

Are you certain TorGuard_unix_4_0_1 is in the Downloads folder or in a subdirectory within?

Just to make sure of the path of this file or directory type this from your terminal

Code:

find ~/ -name TorGuard_unix_4_0_1 -exec file {} \;
This will search for TorGuard_unix_4_0_1 starting from the root directory of your home folder and it will execute file command to determine the file type

Post back any results

TheCorporation 07-08-2013 12:57 AM

Quote:

Originally Posted by jdkaye (Post 4985552)
Oh, I thought you were a newcomer to to Linux. If you have already tried the open solutions and found them wanting then you know what you're doing.
Apologies. Out of curiosity which ones did you try?
jdk

I am a new comer to Linux I think we got off on the wrong foot. I've used VPN's for about 4 years but only in Windows and I understand the difference in VPN quality that is all I'm saying my friend:)

I don't use free VPN services only payed ones for reasons I won't go into but I am grateful for your help:)

TheCorporation 07-08-2013 01:01 AM

Quote:

Originally Posted by yancek (Post 4985654)
From your Downloads directory, run the following command: ls -l, then post the output.

Thank you my friend for your help:)

sphinx@ubuntu:~$ cd ~/Downloads
sphinx@ubuntu:~/Downloads$ ls -l
total 2152
-rw-rw-r-- 1 sphinx sphinx 12224 May 20 00:09 config_all.zip
drwxrwxr-x 2 sphinx sphinx 12288 Jul 7 00:23 TorGuardPRO
-rw-rw-r-- 1 sphinx sphinx 150377 Jul 6 20:30 TorGuardPRO.zip
-rw-rw-r-- 1 sphinx sphinx 2026873 Jul 6 20:23 TorGuard_unix_4_0_1.zip

TheCorporation 07-08-2013 01:04 AM

Quote:

Originally Posted by T.Boyle (Post 4985660)
Are you certain TorGuard_unix_4_0_1 is in the Downloads folder or in a subdirectory within?

Just to make sure of the path of this file or directory type this from your terminal

Code:

find ~/ -name TorGuard_unix_4_0_1 -exec file {} \;
This will search for TorGuard_unix_4_0_1 starting from the root directory of your home folder and it will execute file command to determine the file type

Post back any results

Since I don't know what I'm doing I did it two different ways.....

sphinx@ubuntu:~$ find ~/ -name TorGuard_unix_4_0_1 -exec file {} \;
sphinx@ubuntu:~$ cd ~/Downloads
sphinx@ubuntu:~/Downloads$ find ~/ -name TorGuard_unix_4_0_1 -exec file {} \;
sphinx@ubuntu:~/Downloads$

evo2 07-08-2013 02:42 AM

Hi,

OP, jdkaye has been trying to gently nudge you in the direction that most experienced linux users would take. That being to use their package manager to install software that was packaged for them by their distribution. Downloading zip files from third party web sites and installing them by hand can be error prone, makes it troublesome to keep your installed software up to date (a serious security issue), and so on. Additionally, most often the Free software that is packaged by your distribution and is ready to install is generally of higher quality (YMMV here) than similar third party commercial products.

I think you would do well to do some background reading on your new OS before you start getting into bad habits and wasting your own time.

For a general overview see for example http://linux.oneandoneis2.org/LNW.htm, next you should look into repositories and package management. Feel free to ask for pointers to documentation here.

Evo2.

yancek 07-08-2013 08:06 AM

Your output in post 12 from the ls -l command shows three files and one directory. Two of the files are the zip files you refer to in your initial post. I don't know if the first file "config_all.zip" was there before. What is in the directory "drwxrwxr-x 2 sphinx sphinx 12288 Jul 7 00:23 TorGuardPRO".


All times are GMT -5. The time now is 09:21 AM.