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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-24-2010, 06:33 PM
|
#1
|
Member
Registered: Nov 2009
Posts: 522
Rep:
|
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.
|
|
|
01-24-2010, 06:48 PM
|
#2
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
|
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
|
|
|
01-24-2010, 07:09 PM
|
#3
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
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.
|
|
|
01-24-2010, 07:13 PM
|
#4
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
`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.
|
|
|
01-24-2010, 07:18 PM
|
#5
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
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
|
|
|
01-24-2010, 07:23 PM
|
#6
|
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594
|
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
|
|
|
01-24-2010, 07:29 PM
|
#7
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
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 ?
|
|
|
01-24-2010, 08:04 PM
|
#8
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
|
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
|
|
|
01-25-2010, 05:16 AM
|
#9
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
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)
|
|
|
01-25-2010, 09:39 AM
|
#10
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
Where is the directory that contains the links that are displayed in "applications" ?
Maybe this will help to solve my problem...
|
|
|
01-25-2010, 02:14 PM
|
#11
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
Doesn't anyone know how to make this link work again ?
|
|
|
01-25-2010, 06:39 PM
|
#12
|
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,690
|
Hi, sorry, I've been away from the terminal.
I don't use gnome and I don't know the answer.
Regards Glenn
|
|
|
01-25-2010, 07:04 PM
|
#13
|
Member
Registered: Nov 2009
Posts: 522
Original Poster
Rep:
|
It's ok, I'll make a new thread then, maybe someone will be able to help me. Thanks for your help so far.
|
|
|
All times are GMT -5. The time now is 02:11 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|