Linux - NewbieThis 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.
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.
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353
Rep:
sudo googleearth - weird
Hi everyone,
Running Ubuntu Hardy Heron (8.04),
I have just installed Google Earth and have found some weird behaviour with it. Wondering if someone knows the solution.
When I launch Google Earth from either a desktop icon or from the application menu, the Google Earth splash screen appears, then the application appears but then something odd happens. The 'tips' window does not appear and not planet Earth appears. I can see the stars and move around what appears to be the universe, but there is no planet Earth to be found.
Also, the options are all greyed out in the options menu.
BUT...If I type in: sudo googleearth from a command line, then Google Earth works perfectly.
I have tried chmodding /usr/local/google-earth with 777 but that makes no difference. I still find myself having to sudo googleearth.
I think you're seeing the stars and sky because you're in the "sky" mode. Click on View > Switch to Earth. That should get you back to the default setting of looking down, rather than up.
The reason it works OK when you run it with sudo is that you're then running it as root, using root's google earth preferences (which haven't been changed to "sky").
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353
Original Poster
Rep:
Quote:
I think you're seeing the stars and sky because you're in the "sky" mode
No its not. Besides why would all the options be greyed out if that was just the case.
Quote:
The reason it works OK when you run it with sudo is that you're then running it as root, using root's google earth preferences (which haven't been changed to "sky").
No thats not the reason.
I accept that there is a permissions problem somewhere, but I have chmodded all the files directly related to googleearth that I know of, which should resolve permissions problems, but alas, I cannot run Google Earth properly from the applications menu, I can only run it properly by typing sudo googleearth.
Also, when Google Earth appears to be having this problem, it appears that it cannot sign in to the Google Earth server either. But it will sign in when running Google Earth with sudo.
In the GUI, look at the actual command that is being used--it may be passing some parameters. You can typically see the actual command by rt-clicking on the launcher and going to properties or configure.
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353
Original Poster
Rep:
Looked at the Launcher settings for the icon. No parameters are being passed.
Do you think it could be permissions on a device in /dev that could be causing the problem? It seems it doesn't want to or rather cannot, contact the Google Earth server.
Here’s how to fix the “only works with sudo” problem
in your homedir, cd .config/Google, then do ’sudo chown [you user name] GoogleEarthPlus.conf’
Next time you run googleearth, it’ll show you an error message about not being able to write to /root/.googleearth, and that it will use your homedir instead…
Here’s how to fix the “only works with sudo” problem
in your homedir, cd .config/Google, then do ’sudo chown [you user name] GoogleEarthPlus.conf’
Next time you run googleearth, it’ll show you an error message about not being able to write to /root/.googleearth, and that it will use your homedir instead…
This worked great for me on Hardy.
It worked for me too. Using Ubuntu 10.04 - the Lucid Lynx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.