Jump to content

xPlanet on MDV08 Gnome


kaba
 Share

Recommended Posts

I use Mandriva, because its the most user-friendly Linux I ever met :woops:

 

Now I like to have xplanet on my desktop. Clouds would also be nice. With KDE I found out how -- but scripts!!! :wall: 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? :D

 

 

[moved from Software by spinynorman - welcome aboard :)]

Link to comment
Share on other sites

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!

Edited by tyme
Link to comment
Share on other sites

  • 2 weeks later...
we can then tell you what to change to point at the right file. thanks!

Thanks for your generous offer :)

 

I delayed coz I tried MDV 2008.1 :puter:

 

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 B)

:mellow: oops, now the obligatory Linux-research begins...

$ 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:

And how do I get line-numbers into gedit?

 

#!/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

Link to comment
Share on other sites

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.

Edited by scarecrow
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...