Help - Search - Members - Calendar
Full Version: xPlanet on MDV08 Gnome
MandrivaUsers.org > General Help > Art And Design
kaba
I use Mandriva, because its the most user-friendly Linux I ever met wub.gif

Now I like to have xplanet on my desktop. Clouds would also be nice. With KDE I found out how -- but scripts!!! wall.gif And MDV stores xplanet different from other distros in: /usr/X11R6/share/xplanet

Could plz somebody who mastered this topic with Gnome share his wealth? biggrin.gif


[moved from Software by spinynorman - welcome aboard smile.gif]
tyme
could you posts the scripts you found? they are probably text files, you can just open them up in a text editor and post the contents. we can then tell you what to change to point at the right file. thanks!
kaba
QUOTE (tyme @ Mar 5 2008, 06:30 PM) *
we can then tell you what to change to point at the right file. thanks!

Thanks for your generous offer smile.gif

I delayed coz I tried MDV 2008.1 computer.gif

OK: I want to use this script:
http://xplanet.sourceforge.net/FAQ.php#gnome2

according to my needs I change the "GEOMETRY=1280x800"
I neated it also up: New ".xplanet"-folder in home (kaba), where I put the script.

The topic here I also understand fully:
"Using Gnome session manager. Select Applications (the Footer menu) -> Desktop Preferences -> Advanced -> Sessions and hit the Startup Programs tab. Click Add and browse to where you saved the above script and select it. Click OK. Hit the Current Sessions tab and click Apply. "

Let me see what happens cool.gif
mellow.gif oops, now the obligatory Linux-research begins...
CODE
$ bash  xplanet-gnome.sh
rm: cannot remove `/home/kaba/.xplanet/images/2xplanet.png': No such file or directory
xplanet-gnome.sh: line 28: xplanet: command not found
xplanet-gnome.sh: line 37: exec: xplanet-gnome.sh: not found


Obviously MDV won't install Debian's xplanet-images and also stores the stuff somewhere else.
Here: /usr/X11R6/share/xplanet

How can I start xplanet anyway? unsure.gif
And how do I get line-numbers into gedit?

CODE
#!/bin/bash
#xplanet-gnome.sh shell script v0.2
#shows Earth on your Gnome desktop with current lighting conditions,i.e. day and night

DELAY=6m

PREFIX=/home/kaba/.xplanet/images/
OUTPUT=xplanet.png
APPEND=2

GEOMETRY=1280x800
LONGITUDE=15
LATITUDE=30
#default is no projection,i.e. render a globe
#rectangular is the flat world map. also try ancient, azimuthal,  mercator,..
#PROJECTION=rectangular  

#rename background image so Gnome realises image has changed - thx to dmbasso

if [ -e "$PREFIX$OUTPUT" ]; then
   rm "$PREFIX$OUTPUT"
   OUTPUT="$APPEND$OUTPUT"
else
   rm "$PREFIX$APPEND$OUTPUT"
fi

if [ -z $PROJECTION ]; then
xplanet -num_times 1 -output "$PREFIX$OUTPUT" -geometry $GEOMETRY -longitude $LONGITUDE -latitude $LATITUDE
else
xplanet -num_times 1 -output "$PREFIX$OUTPUT" -geometry $GEOMETRY -longitude $LONGITUDE -latitude $LATITUDE -projection $PROJECTION
fi

#update Gnome backgound
gconftool -t str -s /desktop/gnome/background/picture_filename "$PREFIX$OUTPUT"

sleep $DELAY
exec $0
kaba
Did nobody master xPlanet under Gnome here? unsure.gif
kaba
wink.gif don' tell me that I have to switch to Ubuntu just to get xPlanet going wall.gif
scarecrow
I fail to see where's the problem.
Just create a desktop starter pointing to \usr\X11R6\bin\xplanet - and you are ready to go. Actually you may already have a menu entry for it.
The above scripts are useful only for people who are compiling xplanet from source, and know their homework...
For the rest, who are running it via an installed binary package, they are just confusing.
kaba
1) xPlanet should update every 10 min to redraw the twilight-zone
2) the result should be the desktop picture
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.