LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-24-2010, 06:33 PM   #1
elishac
Member
 
Registered: Nov 2009
Posts: 522

Rep: Reputation: 33
change the directory of an application


hello,

I've just downloaded google earth for linux (I have ubuntu). By default, all the source files went to $home. I'd like to remove them from there.
Where do you think it is best to put these files into (I'm not really familiar with the linux directories), and how can I put them there (and still be able to use the software of course).
I also have a shortcut in application -> internet, maybe this will need to be changed too.

Thanks for your help.
 
Old 01-24-2010, 06:48 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
Blog Entries: 33

Rep: Reputation: 290Reputation: 290Reputation: 290
try and install it to where you want.

GoogleEarthLinux.bin --help
Quote:
glenn@GamesBox:~$ sh GoogleEarthLinux.bin --help
Makeself version 2.1.5
1) Getting help or info about /home/glenn/local/Archive/sources/GoogleEarthLinux.bin :
/home/glenn/local/Archive/sources/GoogleEarthLinux.bin --help Print this message
/home/glenn/local/Archive/sources/GoogleEarthLinux.bin --info Print embedded info : title, default target directory, embedded script ...
/home/glenn/local/Archive/sources/GoogleEarthLinux.bin --lsm Print embedded lsm entry (or no LSM)
/home/glenn/local/Archive/sources/GoogleEarthLinux.bin --list Print the list of files in the archive
/home/glenn/local/Archive/sources/GoogleEarthLinux.bin --check Checks integrity of the archive

2) Running /home/glenn/local/Archive/sources/GoogleEarthLinux.bin :
/home/glenn/local/Archive/sources/GoogleEarthLinux.bin [options] [--] [additional arguments to embedded script]
with following options (in that order)
--confirm Ask before running embedded script
--noexec Do not run embedded script
--keep Do not erase target directory after running
the embedded script
--nox11 Do not spawn an xterm
--nochown Do not give the extracted files to the current user
--target NewDirectory Extract in NewDirectory
--tar arg1 [arg2 ...] Access the contents of the archive through the tar command
-- Following arguments will be passed to the embedded script
glenn@GamesBox:~$
I put mine in /home/glenn/programs/..

But you might use /opt, or /usr/local.

Cheers Glenn
 
Old 01-24-2010, 07:09 PM   #3
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
What does "sh" mean, and what exactly should I type in ?

sh GoogleEarthLinux.bin --target /opt ?

Last edited by elishac; 01-24-2010 at 07:12 PM.
 
Old 01-24-2010, 07:13 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
`sh` is a reference to your system's shell, which is probably Bash. On many modern Linux machines, /bin/sh is a symlink which points to /bin/bash.

In the example command given above, Glenn basically said, "Hey /bin/sh, execute this "GoogleEarthLinux.bin --help" command for me.
 
Old 01-24-2010, 07:18 PM   #5
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
I see, thanks for the answer.
So basically, what do I need to type in ?
My GoogleEarthLinux.bin is located in $home/downloads, so i wrote cd ./Downloads ans then sh GoogleEarthLinux.bin --target /opt
The answer was :
Creating directory /opt
Verifying archive integrity... All good.
Uncompressing Google Earth for GNU/Linux 5.1.3533.1731....................................................................................... ...................................Extraction failed.
....Terminated
 
Old 01-24-2010, 07:23 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Depending on whether you have write-permissions to create anything in /opt, you may not be able to extract the archive to that location as a regular user. Just a guess though, since the extraction didn't tell us what the exact problem was.

Try again, but direct the extraction to a folder inside your /home/<username? directory and see if that works. If it DOES, but you still want to extract the thing into /opt somewhere, you'll need to become root, using `su` or `sudo`.

NOTE: I don't use GoogleEarth myself,. so if this advice doesn't fix the extraction issue, you may need to wait until someone who had actually gone through this, such as Glenn above, can give better guidance.

PS - FWIW, you should probably extract to a SUBFOLDER in /opt, rather to /opt itself.


Sasha
 
Old 01-24-2010, 07:29 PM   #7
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Ok, I used sudo before, and it worked.
Now I'd like to update the link in application->internet, because it's still pointing to $home, and thus it cannot work. How do I do that ?
 
Old 01-24-2010, 08:04 PM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
Blog Entries: 33

Rep: Reputation: 290Reputation: 290Reputation: 290
Hi, right click the desktop link, and select properties.

This should give you access to the absolute path to the application.

Quote:
/home/glenn/Programs/google-earth/Google-googleearth.desktop
to
/opt/google-earth/Google-googleearth.desktop
Just change the address to point to where the app is.

Last edited by GlennsPref; 01-24-2010 at 08:05 PM. Reason: spelling
 
Old 01-25-2010, 05:16 AM   #9
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
I'm sorry I didn't understand your answer. I'm not talking about the link that is on the desktop, I'm talking about the link that you can find when you click on applications on the top left corner (with ubuntu) and then internet.
If I click on it, it says error failed to execute child process "/home/elishac/googlearth/googleearth" (no such file or directory)
How do I change the path of that link ? (a right click doesn't give properties)
 
Old 01-25-2010, 09:39 AM   #10
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Where is the directory that contains the links that are displayed in "applications" ?
Maybe this will help to solve my problem...
 
Old 01-25-2010, 02:14 PM   #11
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Doesn't anyone know how to make this link work again ?
 
Old 01-25-2010, 06:39 PM   #12
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
Blog Entries: 33

Rep: Reputation: 290Reputation: 290Reputation: 290
Hi, sorry, I've been away from the terminal.

I don't use gnome and I don't know the answer.

Regards Glenn
 
Old 01-25-2010, 07:04 PM   #13
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
It's ok, I'll make a new thread then, maybe someone will be able to help me. Thanks for your help so far.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 07:33 PM
application installation directory hubabuba Linux - Software 1 04-18-2006 04:39 PM
associate application with directory ukd Linux - Software 0 10-28-2004 11:40 AM
Default Application Directory linuxnubx Slackware 3 07-11-2004 10:49 PM
mountig - change ro to rw, delete directory, change rw to ro ?? itsjustme Linux - General 6 10-17-2003 12:48 PM

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

All times are GMT -5. The time now is 02:11 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