Linux - NewsThis forum is for original Linux News. If you'd like to write content for LQ, feel free to contact us.
All threads in the forum need to be approved before they will appear.
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.
By default it places the system wide files in /usr/local/google-earth and user specific stuff in ~/.googleearth . There will also be a symbolic link in /usr/local/bin
named googleearth which is linked to /usr/local/google-earth/googleearth
My installation has an "uninstall" script in the google-earth directory. The other thing I noticed while looking at that script is that apparently the installer is a Loki-style installer. So there will also be an entry in ~/.loki for google-earth.
I've never had any need to uninstall it but the process is there. I looked it over briefly and it seems to uninstall everything by overwriting its own process with something called "loki-uninstall -v"
The uninstall script is commented as "Generated by SetupDB 1.6"
Can someone confirm this so I don't sound foolish?
But that is what it has set up on my system.
It might be worth looking into.
EDIT:
Quote:
Originally Posted by gkiagia
There is an uninstall shell script in the installation directory.
Sorry... I made my post before I saw yours. Let the record show that gkiagia mentioned this here before I did...
cwilliams@cwilliams:~$ su -
Password:
cwilliams:~# cd /home/cwilliams/google
googleearth google-earth/
cwilliams:~# cd /home/cwilliams/google-earth/
cwilliams:/home/cwilliams/google-earth# ./uninstall
Could not find a usable uninstall program. Aborting.
Could not find a usable uninstall program. Aborting.
I was a bit stumped at first and started doing all this unnecessary sifting and testing. I got it to work however.
Try executing the uninstall script as the user that installed the program. I'm assuming that because your install directory is within your home directory that you did not install it as root. The problem is that the uninstall script executes the loki uninstall program, which is located in
Code:
~/.loki/installed/bin/Linux/x86
where the home directory belongs to the user who installed the program. Since I did not install google-earth as root, there is no /root/.loki directory. So by calling the uninstall script as root... especially if you 'su -' rather than 'su'... it will not find the ~/.loki directory. Most importantly, there is a file, google-earth.xml, in that directory that links to the xml file created by the google-earth installer that is the repository for the files it installed.
Also of note: The ~/.googleearth directory (not the program folder, the cache and whatnot) is not removed by the uninstaller because it is created when the program is first run by the user, and not created by the installer.
Man - sometimes the most annoying problem has the basic solution. Thank you very much!
Code:
cwilliams@cwilliams:~/google-earth$ ./uninstall
Product: Google Earth
Installed in /home/cwilliams/google-earth
Uninstalling desktop menu entries...
Uninstalling mimetypes...
Running /usr/bin/update-mime-database /home/cwilliams/.local/share/mime
***
* Updating MIME database in /home/cwilliams/.local/share/mime...
Wrote 0 strings at 20 - 20
Wrote aliases at 20 - 24
Wrote parents at 24 - 28
Wrote literal globs at 28 - 2c
Wrote suffix globs at 2c - 34
Wrote full globs at 34 - 38
Wrote magic at 38 - 44
Wrote namespace list at 44 - 48
***
Google Earth has been successfully uninstalled.
Man - sometimes the most annoying problem has the basic solution.
Absolutely!!!
Like I said in my post I
Quote:
Originally Posted by zetabill
started doing all this unnecessary sifting and testing
before I got it to work. And I actually got it to work by accident! I had to reinstall the damn thing just to make sure of what I actually did. But I had started out by going line-by-line in the uninstall script and reading up on bash scripting, etc. etc.
Anyway I'm glad I was able to help. Hope you'll get it to work eventually. Either way, Google Maps is almost as good if you can't get the software to work. It just doesn't have all the really cool extras like 3D buildings and such. Plus, Google Maps has completely taken over from Mapquest for me. Mapquest is dead to me now.
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Rep:
Okay, I got it uninstalled except that I had a problem with xprop. If I had known it was going to give me the error, I would have set my DISPLAY variable to :0 before running the script. Why would xprop be needed in an uninstall script?
Code:
chris@ubuntu:/opt/google-earth$ sudo ./uninstall
Could not find a usable uninstall program. Aborting.
chris@ubuntu:/opt/google-earth$ ./uninstall
Could not find a usable uninstall program. Aborting.
chris@ubuntu:/opt/google-earth$ sudo su -
root@ubuntu:~# cd /opt/google-earth/
root@ubuntu:/opt/google-earth# ./uninstall
Product: Google Earth
Installed in /opt/google-earth
Uninstalling desktop menu entries...
xprop: unable to open display ''
usage: xprop [-options ...] [[format [dformat]] atom] ...
where options include:
-grammar print out full grammar for command line
-display host:dpy the X server to contact
-id id resource id of window to examine
-name name name of window to examine
-font name name of font to examine
-remove propname remove a property
-set propname value set a property to a given value
-root examine the root window
-len n display at most n bytes of any property
-notype do not display the type field
-fs filename where to look for formats for properties
-frame don't ignore window manager frames
-f propname format [dformat] formats to use for property of given name
-spy examine window properties forever
Uninstalling mimetypes...
xprop: unable to open display ''
usage: xprop [-options ...] [[format [dformat]] atom] ...
where options include:
-grammar print out full grammar for command line
-display host:dpy the X server to contact
-id id resource id of window to examine
-name name name of window to examine
-font name name of font to examine
-remove propname remove a property
-set propname value set a property to a given value
-root examine the root window
-len n display at most n bytes of any property
-notype do not display the type field
-fs filename where to look for formats for properties
-frame don't ignore window manager frames
-f propname format [dformat] formats to use for property of given name
-spy examine window properties forever
Running /usr/bin/update-mime-database /root/.local/share/mime
/usr/bin/update-mime-database: I don't have write permission on /root/.local/share/mime.
Try rerunning me as root.
Aborted
Google Earth has been successfully uninstalled.
root@ubuntu:/opt/google-earth#
Last edited by fakie_flip; 05-17-2007 at 09:25 PM.
Um, i am running Slackware 12 on a GeForce4 MX 4000 nvidia card. I got 96.3 driver version. And still get the same error our good friend here specified. Any ideas? I suppose i have to tell the install i am using X11, but how?
If you are talking about xprop, xprop seems to be used internally by loki (which is used internally by the google-earth uninstall script) and it is passed the $DISPLAY environment variable as an argument. However, if a user becomes root with "su -", the $DISPLAY environment variable does not exist in the root shell, and that's not a bug! This is how it should behave!
So, if you just do "su" and then uninstall google-earth it should work.
If that's not the case (I see that fakie_flip is using ubuntu, so he must have logged in as root using "sudo -i"), I suspect it being a bug or a bad configuration option in sudo.
@fakie_flip: xprop is needed because loki shows a progress dialog on X, if it finds a working xserver.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.