GeoXPlanet now available at Sourceforge.net

Status
Not open for further replies.

ray|raven

Think Zen.
^Yep, the guide says pretty much what i've said,
but do one thing, instead of killing xfdesktop, just reload it, using the command posted by me.

Also, the script looks a bit rough, but then again , i havent gone through it very well, only thing is that, it takes way less statements to achieve what he meant to do.

You can even do it through sed,
sed -i -e "s:^/.*$:imagepath:" -e "s:^'::" -e "s:'$::" /path/to/created/list && xfdesktop -reload
That should change the wallpaper,provided the path-to-list is given as wallpaper in the settings.
 

praka123

left this forum longback
OK.latest try:- erred out,
Code:
prakash@localhost:~/Desktop/GeoXPlanet-0.4.2/src$ ./GeoXPlanet.py 

GeoXPlanet contains GPL code/files from the following sources:

clouds.py and controller.py now contain code from:
download_clouds.py ver. 1.1
Taken from: 
*xplanet.sourceforge.net//Extras/download_clouds.py
(C) 2004 Michal Pasternak <michal@pasternak.w.lub.pl>
This file has been modified by rocket357 for use in GeoXPlanet.

arcFiles directory: (boundaries_c, coast_c, and states_c)
Taken from: 
*xplanet.sourceforge.net/Extras/boundaries_c.gz
*xplanet.sourceforge.net/Extras/coast_c.gz
*xplanet.sourceforge.net/Extras/states_c.gz
These files are only used when GeoXPlanet.conf is set
with any of the following set to "True":
showNations, showCoast, and showStates

These files are, to the best of the author's knowledge,
GPL'd source.  If you know that this is not the case, please
contact: rocket357 (at) users (dot) sourceforge (dot) net
so the files can be removed from distribution.

Looking for the GeoXPlanet.conf file:
    /home/prakash/Desktop/GeoXPlanet-0.4.2/src/GeoXPlanet.conf...
Found the config file!
Location of xplanet executable: /usr/bin/xplanet
Detecting environment settings...

Environment Variables:

    GNOME_DESKTOP_SESSION_ID:    Default
    LESSOPEN:    | /usr/bin/lesspipe %s
    LOGNAME:    prakash
    USER:    prakash
    HOME:    /home/prakash
    PATH:    /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/sbin:/usr/sbin:
    WINDOWPATH:    7
    SSH_AGENT_PID:    3051
    LANG:    en_US.UTF-8
    HISTCONTROL:    ignoredups
    TERM:    xterm
    SHELL:    /bin/bash
    XAUTHORITY:    /home/prakash/.Xauthority
    LANGUAGE:    en_US.UTF-8
    SESSION_MANAGER:    local/localhost:/tmp/.ICE-unix/3004
    SHLVL:    1
    DISPLAY:    :0.0
    WINDOWID:    35655849
    USERNAME:    prakash
    GDM_XSERVER_LOCATION:    local
    COLORTERM:    gnome-terminal
    SSH_AUTH_SOCK:    /tmp/keyring-8hTb7q/ssh
    GNOME_KEYRING_SOCKET:    /tmp/keyring-8hTb7q/socket
    GDMSESSION:    default
    DBUS_SESSION_BUS_ADDRESS:    unix:abstract=/tmp/dbus-wYnoBN6STD,guid=cbdc533ca72cc028f46c7e7047f239b7
    _:    ./GeoXPlanet.py
    DESKTOP_SESSION:    default
    LESSCLOSE:    /usr/bin/lesspipe %s %s
    GTK_MODULES:    gnomebreakpad
    OLDPWD:    /home/prakash/Desktop/GeoXPlanet-0.4.2
    GDM_LANG:    en_US.UTF-8
    FLASH_FORCE_PULSEAUDIO:    1
    XDG_DATA_DIRS:    /usr/local/share/:/usr/share/:/usr/share/gdm/
    PWD:    /home/prakash/Desktop/GeoXPlanet-0.4.2/src
    DESKTOP_STARTUP_ID:    
    GTK_RC_FILES:    /etc/gtk/gtkrc:/home/prakash/.gtkrc-1.2-gnome2
    LS_COLORS:    no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:


    Detecting Operating System:        linux2
    Detecting Desktop Environment:     gnome
    Detecting GeoXPlanet directory:    /home/prakash/Desktop/GeoXPlanet-0.4.2
Done detecting environment settings
Reading the config file options... Done reading the config file

Generating image file: /home/prakash/Desktop/GeoXPlanet-0.4.2/temp/images/Monitor_0_Output1.png
XPLANET COMMAND:
/usr/bin/xplanet -num_times 1 -searchdir /home/prakash/Desktop/GeoXPlanet-0.4.2/temp -tmpdir /home/prakash/Desktop/GeoXPlanet-0.4.2/temp -marker_file Monitor_0_markerFile.txt -arc_file Monitor_0_arcFile.txt -latitude 0.0 -longitude 0.0 -geometry 800x600 -config /home/prakash/Desktop/GeoXPlanet-0.4.2/Monitor_0_xplanet.conf -output /home/prakash/Desktop/GeoXPlanet-0.4.2/temp/images/Monitor_0_Output1.png 
XPLANET ERROR: Warning: Can't find Monitor_0_arcFile.txt in

XPLANET ERROR: /home/prakash/Desktop/GeoXPlanet-0.4.2/temp/arcs

XPLANET ERROR: xplanet/arcs

XPLANET ERROR: /home/prakash/.xplanet/arcs

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file Monitor_0_arcFile.txt

XPLANET ERROR: Warning: Can't find Monitor_0_arcFile.txt in

XPLANET ERROR: /home/prakash/Desktop/GeoXPlanet-0.4.2/temp/arcs

XPLANET ERROR: xplanet/arcs

XPLANET ERROR: /home/prakash/.xplanet/arcs

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file Monitor_0_arcFile.txt

Setting wallpaper!
Traceback (most recent call last):
  File "./GeoXPlanet.py", line 89, in ?
    program.run(GUI)
  File "/home/prakash/Desktop/GeoXPlanet-0.4.2/src/controller.py", line 728, in run
    self.runXPlanet()
  File "/home/prakash/Desktop/GeoXPlanet-0.4.2/src/controller.py", line 673, in runXPlanet
    os.popen("mv %s%stemp%simages%s%s%s.%s %s%stemp%simages%s%s%s.%s" % (extension, 
TypeError: not all arguments converted during string formatting
also,in Debian(ubuntu too) the xplanet-images is installed in :
Code:
 prakash@localhost:~$ dpkg --listfiles xplanet-images 
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/xplanet-images
/usr/share/doc/xplanet-images/copyright
/usr/share/doc/xplanet-images/README
/usr/share/doc/xplanet-images/changelog.Debian.gz
/usr/share/xplanet
/usr/share/xplanet/images
/usr/share/xplanet/images/sublunar.png
/usr/share/xplanet/images/iss.png
/usr/share/xplanet/images/smile.png
/usr/share/xplanet/images/odyssey.png
/usr/share/xplanet/images/night.jpg
/usr/share/xplanet/images/earth.jpg
/usr/share/xplanet/images/shuttle.png
/usr/share/xplanet/images/subsolar.png
/usr/share/xplanet/images/sun.jpg
/usr/share/xplanet/images/hubble.png
/usr/share/xplanet/images/mgs.png
/usr/share/xplanet/images/README
and xplanet package have:
Code:
prakash@localhost:~$ dpkg --listfiles xplanet
/.
/usr
/usr/share
/usr/share/xplanet
/usr/share/xplanet/arcs
/usr/share/xplanet/arcs/README
/usr/share/xplanet/arcs/constellations
/usr/share/xplanet/config
/usr/share/xplanet/config/README
/usr/share/xplanet/ephemeris
/usr/share/xplanet/ephemeris/README
/usr/share/xplanet/fonts
/usr/share/xplanet/fonts/README
/usr/share/xplanet/fonts/FreeMonoBold.ttf
/usr/share/xplanet/images
/usr/share/xplanet/markers
/usr/share/xplanet/markers/README
/usr/share/xplanet/markers/brightStars
/usr/share/xplanet/markers/mars
/usr/share/xplanet/markers/moon
/usr/share/xplanet/origin
/usr/share/xplanet/origin/README
/usr/share/xplanet/satellites
/usr/share/xplanet/satellites/README
/usr/share/xplanet/spice
/usr/share/xplanet/spice/README
/usr/share/xplanet/spice/asteroids
/usr/share/xplanet/spice/asteroids.krn
/usr/share/xplanet/spice/cassini
/usr/share/xplanet/spice/cassini.krn
/usr/share/xplanet/spice/mgs
/usr/share/xplanet/spice/mgs.krn
/usr/share/xplanet/spice/voyager
/usr/share/xplanet/spice/voyager.krn
/usr/share/xplanet/stars
/usr/share/xplanet/stars/BSC
/usr/share/xplanet/scripts
/usr/share/xplanet/scripts/convertCassini.perl
/usr/share/xplanet/scripts/convertCassini2.perl
/usr/share/doc
/usr/share/doc/xplanet
/usr/share/doc/xplanet/FAQ.html
/usr/share/doc/xplanet/README.Debian
/usr/share/doc/xplanet/copyright
/usr/share/doc/xplanet/README.gz
/usr/share/doc/xplanet/NEWS.gz
/usr/share/doc/xplanet/changelog.Debian.gz
/usr/share/doc/xplanet/changelog.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/xplanet.1.gz
/usr/share/menu
/usr/share/menu/xplanet
/usr/bin
/usr/bin/xplanet
/etc
/etc/xplanet
/etc/xplanet/satellites
/etc/xplanet/satellites/iss
/etc/xplanet/satellites/iss.tle
/etc/xplanet/config
/etc/xplanet/config/default
/etc/xplanet/config/earth_markers
/etc/xplanet/config/moon_orbit
/etc/xplanet/config/overlay_clouds
/etc/xplanet/markers
/etc/xplanet/markers/earth
/etc/xplanet/origin
/etc/xplanet/origin/cassini
/etc/xplanet/origin/galileo
/etc/xplanet/stars
/etc/xplanet/rgb.txt
/usr/share/xplanet/config/moon_orbit
/usr/share/xplanet/config/default
/usr/share/xplanet/config/earth_markers
/usr/share/xplanet/config/overlay_clouds
/usr/share/xplanet/markers/earth
/usr/share/xplanet/origin/galileo
/usr/share/xplanet/origin/cassini
/usr/share/xplanet/satellites/iss
/usr/share/xplanet/satellites/iss.tle
/usr/share/xplanet/rgb.txt
/usr/share/doc/xplanet/README.config
what is wrong :?
the Debian xplanet and xplanet-images .debs are available at these links: perhaps you may see what is wrong :?
*http.us.debian.org/debian/pool/main/x/xplanet/xplanet_1.2.0-4_i386.deb

*http.us.debian.org/debian/pool/main/x/xplanet/xplanet-images_1.2.0-4_all.deb

extract data.gz for the files.
 
Last edited:
OP
rocket357

rocket357

Security freak
Ehh, so the "unable to find arcs/markers" bug is NOT fixed. Lovely.

The cause of this bug is that I'm overriding a few key locations by defining -tmpdir and -searchdir when I launch xplanet. It's an ugly hack that came about when I decided to reinstate support for Windows because of the brain-dead way Windows handles paths...

Sigh.

0.4.3 will be out shortly hahaha

PS - preconfigured support for SQLite is in the works and will likely be included in 0.4.3 as well. With SQLite, you get a few improvements: increased accuracy, no outgoing requests (so someone sniffing traffic between you and hostip.info can't determine what sites you're visiting), and it's exceptionally simple to setup (i.e. apt-get install sqlite pysqlite...or something to that effect). I'm working on the HOWTO and once I have that finished, and I've tested SQLite on my home machine, it'll be time to roll 0.4.3 out (assuming I can determine a fix for the "unable to find arcs/markers" bug).

Thanks again guys, you're really helping out with the bug-hunting!
 
OP
rocket357

rocket357

Security freak
praka123,

would you post the generated Monitor_0_xplanet.conf and GeoXPlanet.conf files? If the override isn't doing what it's supposed to, I need a bit more info to figure out what's going on. The only way I could see this happening is if you had markers turned on but not arcs.

Thanks!
 
Last edited:

praka123

left this forum longback
@rocket:sure!
Code:
prakash@localhost:~/Desktop/GeoXPlanet-0.4.2$ cat Monitor_0_xplanet.conf 
[default]
marker_color=red
shade=30
text_color={255,0,0}
twilight=6
[earth]
"Earth"
image=/home/prakash/Desktop/GeoXPlanet-0.4.2/temp/images/earth.jpg
night_map=/home/prakash/Desktop/GeoXPlanet-0.4.2/temp/images/night.jpg
color={28, 82, 110}
marker_file=Monitor_0_markerFile.txt
arc_file=Monitor_0_arcFile.txt
marker_fontsize=10
#cloud_map=/home/prakash/Desktop/GeoXPlanet-0.4.2/temp/images/clouds_2048.jpg
another file is also there:

Code:
prakash@localhost:~/Desktop/GeoXPlanet-0.4.2$ cat Monitor_1_xplanet.conf 
[default]
marker_color=red
shade=30
text_color={255,0,0}
twilight=6
[earth]
"Earth"
image=/home/rocket357/GeoXPlanet-0.4.0/temp/images/earth.jpg
night_map=/home/rocket357/GeoXPlanet-0.4.0/temp/images/night.jpg
color={28, 82, 110}
marker_file=Monitor_1_markerFile.txt
arc_file=Monitor_1_arcFile.txt
marker_fontsize=10
cloud_map=/home/rocket357/GeoXPlanet-0.4.0/temp/images/clouds_2048.jpg

and ...src/GeoXPlanet.conf
Code:
 prakash@localhost:~/Desktop/GeoXPlanet-0.4.2$ cat src/GeoXPlanet.conf 

################################################
###  This file was generated by configGUI.py ###
################################################
[General]
DESKTOP=gnome
DEBUG=True
delay=15.0
useNetstat=True
defaultColor=0xFFFFFF
homeName=Home
homeLAT=9.9932
homeLON=76.5706
xplanetExe=/usr/bin/xplanet

[Display]
Xinerama=False
NumberOfDisplays=1
Monitor_0_geometry=800x600
Monitor_0_trace=False
Monitor_0_arcs=False
Monitor_0_projection=None
Monitor_0_titles=False
Monitor_0_titleType=port
Monitor_0_colors=False
Monitor_0_symbolsize=7
Monitor_0_showNations=False
Monitor_0_showCoast=False
Monitor_0_showStates=False
Monitor_0_nationColor=0x777777
Monitor_0_coastColor=0x002277
Monitor_0_stateColor=0x004400
Monitor_0_showClouds=False
Monitor_0_latitude=0.0
Monitor_0_longitude=0.0

[Database]
useDatabase=False
dbHost=
dbName=
dbUser=
dbPassword=
preferreddbmodule=
 
OP
rocket357

rocket357

Security freak
Wow...I'm speechless...

The problem is simple...I set up the xplanet.conf to define an arc file, but you don't have arcs turned on, meaning that arc file doesn't get built. XPlanet bombs when it tries to find the arc file that's defined in the xplanet.conf file that doesn't exist.

Guess I need to add a check for arcs being active, ehh? heh

Thanks for posting the files, praka123...

PS - the Monitor_1_xplanet.conf file can be deleted...it's a hold-over from 0.4.0 and it isn't being used by 0.4.2. (or you can leave it there...it's not "in the way" or anything)
 

praka123

left this forum longback
well,what should be the remedy?do I have to edit my /etc/xplanet/config/default ?
I dont know how to point towards the arc files :?
here is it:
Code:
 cat /etc/xplanet/config/default 
# This file contains options you might want to customize for each
# body.  It's best to leave this file alone and modify a copy. Use the
# -config option to tell xplanet to read your copy.

[default]                       # Values in this section apply to all
                # bodies unless overridden below.   

arc_color=white
#arc_file=

#bump_map=
bump_scale=1

cloud_gamma=1
#cloud_map=
cloud_ssec=false                # true if the cloud map is from the
                # University of Wisconsin Space
                # Science and Engineering Center 
cloud_threshold=90

color={255,255,255}             # fallback color in case an image map
                # isn't found 

draw_orbit=false                # if true, draw this body's orbit
                                # about its primary

grid=false
grid1=6
grid2=15

#image=

magnify=1                       # draw the body as if its radius were
                # magnified by this factor 

marker_color=red
#marker_file=
#marker_font=

max_radius_for_label=3          # don't draw a label if the body's
                # radius in pixels is more than this  

min_radius_for_label=.01        # don't draw a label if the body's
                # radius in pixels is less than this  

min_radius_for_markers=40       # don't draw markers if the body's
                # radius in pixels is less than this  

#night_map=

orbit={-.5,.5,2}                # extent of orbit to draw, 
                # {start, end, delta}, where 
                                # start and end are in units of period
                # of revolution and delta is angular
                # increment in degrees to evaluate
                # position 

orbit_color={255,255,255}       # color for the orbit

random_origin=true              # Can this body be considered if
                # -origin random is used?  

random_target=true              # Can this body be considered if
                # -target random is used?  

#satellite_file=

shade=30                        # 0 = black, 100 = same as dayside

#specular_map=

text_color={255,0,0}            # color for text (markers & body label)

twilight=6                      # blend the day and night images for
                                # pixels within this many degrees of
                                # the terminator 

[sun]
"Sun"
color={255,255,166}

max_radius_for_label=0          # never draw a label for the sun

shade=100            # No night side!

[mercury]
"Mercury"
color={100, 100, 100}

min_radius_for_label=0          # always draw a label

[venus]
"Venus"
color={161, 129, 70}

min_radius_for_label=0

[earth]
"Earth"
color={28, 82, 110}

# I have day and night maps of Australia centered on Alice Springs,
# which are cropped from higher resolution maps.
#map=alice_springs.png
#night_map=alice_springs_night.png
#mapbounds={-1.2,98.7107,-46.2,169.023}  # lat1, lon1, lat2, lon2

#marker_file=earth

min_radius_for_label=0

#satellite_file=iss

[moon]
"Moon"
color={100, 100, 100}

[mars]
"Mars"
color={172, 123, 67}

min_radius_for_label=0

[phobos]
"Phobos"

[deimos]
"Deimos"

[jupiter]
"Jupiter"
color={204, 163, 133}
min_radius_for_label=0

[io]
"Io"
color={212, 182, 52}

[europa]
"Europa"
color={140, 140, 140}

[ganymede]
"Ganymede"
color={150, 150, 150}

[callisto]
"Callisto"
color={70, 70, 70}

[saturn]
"Saturn"
color={244, 199, 134}
min_radius_for_label=0

[mimas]
"Mimas"

[enceladus]
"Enceladus"

[tethys]
"Tethys"

[dione]
"Dione"

[rhea]
"Rhea"

[titan]
"Titan"

color={252,94,7}

[hyperion]
"Hyperion"

[iapetus]
"Iapetus"

[phoebe]
"Phoebe"

[uranus]
"Uranus"

color={105, 197, 238}

min_radius_for_label=0

[miranda]
"Miranda"

[ariel]
"Ariel"

[umbriel]
"Umbriel"

[titania]
"Titania"

[oberon]
"Oberon"

[neptune]
"Neptune"
color={95, 133, 232}

min_radius_for_label=0

[triton]
"Triton"

[nereid]
"Nereid"

[pluto]
"Pluto"
color={206, 180, 153}

min_radius_for_label=0

[charon]
"Charon"
 
OP
rocket357

rocket357

Security freak
well,what should be the remedy?do I have to edit my /etc/xplanet/config/default ?
I dont know how to point towards the arc files :?
here is it:

Don't modify that file...it won't fix it, and if you read the beginning comment, it suggests using -config /some/alternate/xplanet.conf for program-specific configurations (which is what GeoXPlanet does).

The problem isn't that xplanet is pointing at the wrong directory...the problem is that the arc file isn't being generated in the first place. Go to your GeoXPlanet.conf and set "Monitor_0_arcs=True" (Meaning GeoXPlanet will generate arcs between Home and the connection end-points). You still have the string format conversion bug though...(if you edit line 673 of controller.py (there's the word "extension," on the end of that line) and remove the trailing "extension,":

Change this:

os.popen("mv %s%stemp%simages%s%s%s.%s %s%stemp%simages%s%s%s.%s" % (extension,

to this:

os.popen("mv %s%stemp%simages%s%s%s.%s %s%stemp%simages%s%s%s.%s" % (

), you should be able to run GeoXPlanet without problem after that).

The string format conversion bug will be fixed in next release, but I thought I'd give you a head's up on that fix to get you moving forward...heh.
 
Last edited:

praka123

left this forum longback
added below line replacing line 673 in controller.py and now it seems working,will log out and re-login to confirm :)
Code:
os.popen("mv %s%stemp%simages%s%s%s.%s %s%stemp%simages%s%s%s.%s" % (


Code:
prakash@localhost:~/Desktop/GeoXPlanet-0.4.2/src$ ./GeoXPlanet.py 

GeoXPlanet contains GPL code/files from the following sources:

clouds.py and controller.py now contain code from:
download_clouds.py ver. 1.1
Taken from: 
*xplanet.sourceforge.net//Extras/download_clouds.py
(C) 2004 Michal Pasternak <michal@pasternak.w.lub.pl>
This file has been modified by rocket357 for use in GeoXPlanet.

arcFiles directory: (boundaries_c, coast_c, and states_c)
Taken from: 
*xplanet.sourceforge.net/Extras/boundaries_c.gz
*xplanet.sourceforge.net/Extras/coast_c.gz
*xplanet.sourceforge.net/Extras/states_c.gz
These files are only used when GeoXPlanet.conf is set
with any of the following set to "True":
showNations, showCoast, and showStates

These files are, to the best of the author's knowledge,
GPL'd source.  If you know that this is not the case, please
contact: rocket357 (at) users (dot) sourceforge (dot) net
so the files can be removed from distribution.

Looking for the GeoXPlanet.conf file:
    /home/prakash/Desktop/GeoXPlanet-0.4.2/src/GeoXPlanet.conf...
Found the config file!
Location of xplanet executable: /usr/bin/xplanet
Detecting environment settings...

Environment Variables:

    GNOME_DESKTOP_SESSION_ID:    Default
    LESSOPEN:    | /usr/bin/lesspipe %s
    LOGNAME:    prakash
    USER:    prakash
    HOME:    /home/prakash
    PATH:    /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/sbin:/usr/sbin:
    WINDOWPATH:    7
    SSH_AGENT_PID:    3051
    LANG:    en_US.UTF-8
    HISTCONTROL:    ignoredups
    TERM:    xterm
    SHELL:    /bin/bash
    XAUTHORITY:    /home/prakash/.Xauthority
    LANGUAGE:    en_US.UTF-8
    SESSION_MANAGER:    local/localhost:/tmp/.ICE-unix/3004
    SHLVL:    1
    DISPLAY:    :0.0
    WINDOWID:    35655849
    USERNAME:    prakash
    GDM_XSERVER_LOCATION:    local
    COLORTERM:    gnome-terminal
    SSH_AUTH_SOCK:    /tmp/keyring-8hTb7q/ssh
    GNOME_KEYRING_SOCKET:    /tmp/keyring-8hTb7q/socket
    GDMSESSION:    default
    DBUS_SESSION_BUS_ADDRESS:    unix:abstract=/tmp/dbus-wYnoBN6STD,guid=cbdc533ca72cc028f46c7e7047f239b7
    _:    ./GeoXPlanet.py
    DESKTOP_SESSION:    default
    LESSCLOSE:    /usr/bin/lesspipe %s %s
    GTK_MODULES:    gnomebreakpad
    OLDPWD:    /home/prakash/Desktop/GeoXPlanet-0.4.2
    GDM_LANG:    en_US.UTF-8
    FLASH_FORCE_PULSEAUDIO:    1
    XDG_DATA_DIRS:    /usr/local/share/:/usr/share/:/usr/share/gdm/
    PWD:    /home/prakash/Desktop/GeoXPlanet-0.4.2/src
    DESKTOP_STARTUP_ID:    
    GTK_RC_FILES:    /etc/gtk/gtkrc:/home/prakash/.gtkrc-1.2-gnome2
    LS_COLORS:    no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:


    Detecting Operating System:        linux2
    Detecting Desktop Environment:     gnome
    Detecting GeoXPlanet directory:    /home/prakash/Desktop/GeoXPlanet-0.4.2
Done detecting environment settings
Reading the config file options... Done reading the config file

Generating image file: /home/prakash/Desktop/GeoXPlanet-0.4.2/temp/images/Monitor_0_Output1.png
XPLANET COMMAND:
/usr/bin/xplanet -num_times 1 -searchdir /home/prakash/Desktop/GeoXPlanet-0.4.2/temp -tmpdir /home/prakash/Desktop/GeoXPlanet-0.4.2/temp -marker_file Monitor_0_markerFile.txt -arc_file Monitor_0_arcFile.txt -latitude 0.0 -longitude 0.0 -geometry 800x600 -config /home/prakash/Desktop/GeoXPlanet-0.4.2/Monitor_0_xplanet.conf -output /home/prakash/Desktop/GeoXPlanet-0.4.2/temp/images/Monitor_0_Output1.png 
Setting wallpaper!
Thanks!*broadbandforum.in/images/smilies/happy15.gif

well,this is how my desktop looks after restarting gdm :-|


*img7.uploadhouse.com/fileuploads/1559/1559518-holder-6979318187fa72626c9ed12f99e7e03d.jpg

one thing more :( xplanet is not executed when GeoXplanet.py is ran!I have to manually start xplanet.
 
Last edited:
OP
rocket357

rocket357

Security freak
one thing more :( xplanet is not executed when GeoXplanet.py is ran!I have to manually start xplanet.

XPlanet is not run in daemon mode (the usual) with GeoXPlanet...it's run with -num_times 1 -output /some/output/filename to simply generate the background then exit. I did that so synchronizing would be easier (i.e. early versions of GeoXPlanet (prior to 0.3.3) had the seriously annoying habit of being in the middle of an arcFile or markerFile write when xplanet would read the files, and xplanet would complain about "incomplete line in markerfile.txt" and display very strange data on the background). Once I discovered how to get the background set in kde/gnome/fluxbox manually, I changed xplanet to run one time and exit. It prevents broken (half-written) data being displayed (not to mention the task of getting the configurations in sync between xplanet and GeoXPlanet is no longer on the end-user).

Did you set the "Monitor 1" settings in the configGUI when it ran, or did you copy your config from an earlier version? It looks to me like you haven't set "Monitor_0_latitude" and "Monitor_0_longitude" (The configGUI is "human readable" (starting at 1) and the config file is "computer readable" (starting at 0), so don't worry about the difference there in numbering) in GeoXPlanet.conf, but GeoXPlanet appears to be writing marker files properly (as there is a marker visible on the right side of the image you posted). Try copying your homeLAT and homeLON to Monitor_0_latitude and Monitor_0_longitude and re-run GeoXPlanet...that'll center GeoXPlanet on your home location.
 
Last edited:

praka123

left this forum longback
here is mine GeoXPlanet.conf
yes,I tried some hand editing :p
Code:
prakash@localhost:~/Desktop/GeoXPlanet-0.4.2/src$ cat GeoXPlanet.conf 

################################################
###  This file was generated by configGUI.py ###
################################################
[General]
DESKTOP=gnome
DEBUG=True
delay=15.0
useNetstat=True
defaultColor=0xFFFFFF
homeName=Home
homeLAT=9.9932
homeLON=76.5706
xplanetExe=/usr/bin/xplanet

[Display]
Xinerama=False
NumberOfDisplays=1
Monitor_0_geometry=800x600
Monitor_0_trace=False
Monitor_0_arcs=True
Monitor_0_projection=None
Monitor_0_titles=False
Monitor_0_titleType=port
Monitor_0_colors=False
Monitor_0_symbolsize=7
Monitor_0_showNations=False
Monitor_0_showCoast=False
Monitor_0_showStates=False
Monitor_0_nationColor=0x777777
Monitor_0_coastColor=0x002277
Monitor_0_stateColor=0x004400
Monitor_0_showClouds=False
Monitor_0_latitude=9.9932
Monitor_0_longitude=76.5706

[Database]
useDatabase=False
dbHost=
dbName=
dbUser=
dbPassword=
preferreddbmodule=

OK,I have edited to incl lat and lon in geoxplanet.conf file.
now below is the screenshot:
*img5.uploadhouse.com/fileuploads/1559/1559764-holder-a96a781614ab4e989cb43a8f555059d9.jpg
after 15 sec or so,in terminal shows that the program connects to some IPs(for update?).
is the below one OK?
also,for this program to start on boot,what have to be done?adding
sh /path/to/GeoXplanet.py to /etc/rc.local enough?

EDIT:
on login,I can see the map focused on my location(kerala,india).but after sometime,again it went back to somewher west of africa continent :?
 
Last edited:
OP
rocket357

rocket357

Security freak
after 15 sec or so,in terminal shows that the program connects to some IPs(for update?).
is the below one OK?
also,for this program to start on boot,what have to be done?adding
sh /path/to/GeoXplanet.py to /etc/rc.local enough?

If you're using online lookups (useDatabase=False in GeoXPlanet.conf), then you'll see it connect to a server in California, USA (hostip.info) to look the data up (lat/long values). By 0.4.4 I want to have a working SQLite image of the MaxMind database so GeoXPlanet doesn't have to rely on online lookups. MaxMind has released a "GPL" version of their geolocation datasets, and I've successfully imported it into PostgreSQL and (as of this morning), SQLite. SQLite would be the way to go since it's a simple "apt-get install" (rather than installing, configuring, and maintaining a full-blown database server system). I'll be testing performance of MaxMind/SQLite tonight...

As for startup, you should be able to add it to your gnome startup (GeoXPlanet is kinda pointless without the desktop running, so I wouldn't add it to rc.conf). I'm no gnome guru, but I'd imagine you could go Control Center -> Sessions -> startup and add GeoXPlanet.py there, or add it to ~/.gnome2/session-manual.

on login,I can see the map focused on my location(kerala,india).but after sometime,again it went back to somewher west of africa continent

Is there a "rogue" copy of xplanet running in the background? How did you launch GeoXPlanet on login?
 

praka123

left this forum longback
^yeah,already added to sessions :) BTW,do see this :
EDIT:
on login,I can see the map focused on my location(kerala,india).but after sometime,again it went back to somewher west of africa continent :???:

also,is it possible in xplanet to show whole world in a plane wallpaper rather than 3D?

the script tries changing the wallpaper saying,setting wallpaper,but nothing,no change in Desktop though :-|
 
OP
rocket357

rocket357

Security freak
also,is it possible in xplanet to show whole world in a plane wallpaper rather than 3D?

the script tries changing the wallpaper saying,setting wallpaper,but nothing,no change in Desktop though :-|

Set Monitor_0_projection=mercator
That's a good one...and turn on clouds in your GeoXPlanet.conf! You'll like it heh.

As for the desktop not changing, it might be that a connection on the other side of the planet is dropping or connecting and you aren't seeing it, or it might be that there's another copy of geoxplanet or xplanet running. Set the projection to mercator and watch the endpoints closely...sometimes connections cluster and it's a bit hard seeing them connect or disconnect...(when connections start or end GeoXPlanet kicks off a background update)
 

praka123

left this forum longback
^will try those!no,no xplanet cmd is manually invoked :?,just have the script placed in gnome-session-properties option. :-|
now after a reboot,it shows a pointer(a small circle) in my location),but no other changes though(no 15sec updates) .
 
OP
rocket357

rocket357

Security freak
^will try those!no,no xplanet cmd is manually invoked :?,just have the script placed in gnome-session-properties option. :-|
now after a reboot,it shows a pointer(a small circle) in my location),but no other changes though(no 15sec updates) .

http connections typically don't last long (and online lookups are notoriously error-prone, in my experience). Try this: find an ftp site you can browse to (*openbsd.org/ftp.html has a nice list of them) and click on one of the ftp links. ftp connections have a much longer timeout than http, and other persistent connections (instant messengers, ssh, etc...) will give you an idea of how quickly GeoXPlanet does (or does not) respond to new connections.
 

praka123

left this forum longback
well,the problem is,the wallpaper doesnot change/no plotting was seen. :?

if I restart X,I can see the plot though.I think it is Nautilus File Manager(Desktop too) have some hand on this :-| (sry,for my poor English )
see for eg,below,the script is running fine,but xplanet doesnot change!
Code:
tcp        0      0        208.65.153.253:80       ESTABLISHED

tcp        0      0       129.128.5.191:21        ESTABLISHED

deleting 199.185.137.3
Generating image file: /home/prakash/Desktop/GeoXPlanet-0.4.2/temp/images/Monitor_0_Output1.png
XPLANET COMMAND:
/usr/bin/xplanet -num_times 1 -searchdir /home/prakash/Desktop/GeoXPlanet-0.4.2/temp -tmpdir /home/prakash/Desktop/GeoXPlanet-0.4.2/temp -marker_file Monitor_0_markerFile.txt -projection mercator -arc_file Monitor_0_arcFile.txt -latitude 9.9932 -longitude 76.5706 -geometry 800x600 -config /home/prakash/Desktop/GeoXPlanet-0.4.2/Monitor_0_xplanet.conf -output /home/prakash/Desktop/GeoXPlanet-0.4.2/temp/images/Monitor_0_Output1.png 
Setting wallpaper!
tcp        0      0        208.65.153.253:80       ESTABLISHED

tcp        0      0        129.128.5.191:21        ESTABLISHED

tcp        0      0        208.65.153.253:80       ESTABLISHED

tcp        0      0        129.128.5.191:21        ESTABLISHED

tcp        0      0 59.xx.xx.xx      208.65.153.253:80       ESTABLISHED

tcp        0      0       129.128.5.191:21        ESTABLISHED

tcp        0      0        208.65.153.253:80       ESTABLISHED

tcp        0      0        129.128.5.191:21        ESTABLISHED

tcp        0      0        208.65.153.253:80       ESTABLISHED

tcp        0      0       129.128.5.191:21        ESTABLISHED
 

gary4gar

GaurishSharma.com
Got some free time, tried project again. again failed:|
here the log: *digit.wsnw.net/geoxplanet

Ubuntu 7.10,Gnome 2.20,Xplanet & Xplanet images installed.

GeoXPlanet-0.4.2

Code:
General]
DESKTOP=gnome
DEBUG=True
delay=15.0
useNetstat=True
defaultColor=0xFFFFFF
homeName=Home
homeLAT=19.8833
homeLON=76.7833
xplanetExe=/usr/bin/xplanet

[Display]
Xinerama=False
NumberOfDisplays=1
Monitor_0_geometry=1280x1024
Monitor_0_trace=True
Monitor_0_arcs=True
Monitor_0_projection=None
Monitor_0_titles=True
Monitor_0_titleType=port
Monitor_0_colors=False
Monitor_0_symbolsize=7
Monitor_0_showNations=False
Monitor_0_showCoast=False
Monitor_0_showStates=False
Monitor_0_nationColor=0x777777
Monitor_0_coastColor=0x002277
Monitor_0_stateColor=0x004400
Monitor_0_showClouds=False
Monitor_0_latitude=0.0
Monitor_0_longitude=0.0

[Database]
useDatabase=False
dbHost=
dbName=
dbUser=
dbPassword=
preferreddbmodule=
 
OP
rocket357

rocket357

Security freak
^^ That's the string format conversion bug that praka reported earlier. I haven't released a fix for it yet, though I know what the problem is. Look back a couple of posts where I posted a line that looks like this:

os.popen("mv %s%stemp%simages%s%s%s.%s %s%stemp%simages%s%s%s.%s" % (

That's instructions on how to fix that bug, or you can wait a bit until I release 0.4.3 =)

Your GeoXPlanet.conf looks great, though you may wish to set Monitor_0_projection (projection of none draws earth in 3D, meaning you can't see everything at once (though it's great for closeups heh). I prefer mercator projection, but there are tons others available. Also, unless you want to be staring at the west coast of Africa you should copy homeLAT to Monitor_0_latitude and copy homeLON to Monitor_0_longitude (to center GeoXPlanet on your home location). I'll set 0.4.3 to copy the homeLAT and homeLON values over by default.
 

praka123

left this forum longback
I want to know,why the Geoxplanet doesnot change the directions(line drawn) although the script is reporting setting wallpaper every time.
I tried ftp ,still the line doesnot change :(
 
Last edited:
Status
Not open for further replies.
Top Bottom