GeoXPlanet now available at Sourceforge.net

Status
Not open for further replies.

mehulved

18 Till I Die............
I am using fluxbox on gentoo.
rocket357 said:
In each of those statements, if the given name (gnome, kde, fluxbox) is found in the userDesktop variable (sometimes it's listed as kde-3.5, etc...), then Python drops to the os object (the operating system) and runs the popen line directly (as if you're running it in a shell...for instance, if you're running fluxbox, it'll run "fbsetbg /path/to/GeoXPlanet/GeoXPlanet0.jpg"..."popen" is just the function call in Python that launches the command).
It isn't detecting fluxbox here.
rocket357 said:
If the images are being created, then something between GeoXPlanet,
Yeah. The images are created
rocket357 said:
Python, and the individual commands (fbsetbg, dcop kdesktop, and gconftool) is broken. See if you can manually set a background with the appropriate command.
fbsetbg is running fine. I have used it a couple of times after running GeoXPlanet without a problem.
rocket357 said:
If you can, AND the images are there in the directory (and named correctly), then the problem could be your Python install. If the images aren't there, then the problem is with xplanet or GeoXPlanet
My python version is 2.4.4 if that helps.
rocket357 said:
...you can tell by trying to run this command manually:

xplanet -num_times 1 -projection mercator -config /your/GeoXPlanetDir/xplanet.conf.example -geometry 1280x1024 -output /your/GeoXPlanetDir/test.jpg

If XPlanet generates the file properly (in your GeoXPlanet folder), then I have a bug I need to hunt down =)
test.jpg is generated properly.

And now there's one more problem. When I start GeoXPlanet, I get this *pastebin.ca/706646
It just came all of a sudden after running XPlanet manually using the command you had given.
 
OP
rocket357

rocket357

Security freak
Not detecting fluxbox, eh? That's the problem for sure. I have 2 methods for detecting kde and gnome, and only one for detecting fluxbox...guess I'll need to update the desktop environment detection then...

Thanks for pointing this out. One last thing...try running this:

echo $DESKTOP_SESSION

If you don't get any output from that, then there's the problem. I'm working on more robust desktop environment detection code, as that's the portion that makes the determination of what background setter command to run...

If the above command doesn't give output, please do this:

export DESKTOP_SESSION=fluxbox

And try running GeoXPlanet again. It should work after that (just to make sure there aren't any other problems!).

Thanks again, mehulved!
 

mehulved

18 Till I Die............
Code:
echo $DESKTOP_SESSION
returns a blank. export command worked.
Another thing. When I change useNetstat=True, I get the error that I have put in the pastebin.
So, besides the netstat error, it's working fine.
 

vish786

"The Gentleman"
@rocket357, i dont exactly understand what is ur plugin/program doing, i installed xearth/xplanet but i found that xearth by default(without using ur plugin) it does everything like displaying night/morning/rotating/displayin cities, but what is plugin meant for :confused:
 
OP
rocket357

rocket357

Security freak
@ vish786: My script determines what ip addresses you're connected to, runs them through a GeoLocation service (either online or via the MaxMind GeoLiteCity database), and plots them out on your desktop so you can see visually how many connections from what areas are active on your computer...

You're right that XPlanet/XEarth does most of the work (my script generates a few files that XPlanet uses to generate a custom background) =)

@ mehulved: Strange...what's the output of "netstat -na | grep ESTABLISHED"?
 
OP
rocket357

rocket357

Security freak
mehulved said:
Any plans on having ebuilds for the project?

Perhaps...I'm currently working on a few other projects (working on hashing out a package management system with a few friends, business plans with my brother-in-law, a new project for IT network management software, work, school, etc...), so just getting 0.3.7 out is going to prove fun. I'll keep you posted, though, and keep your eyes out for 0.3.7. It shouldn't be *much* longer...
 
OP
rocket357

rocket357

Security freak
infra_red_dude said:
whats new in 0.3.7?

0.3.7 is available now...

0.3.7 includes a few enhancements to the base code (more structured path handling, so you can launch GeoXPlanet.py without having to be in the GeoXPlanet dir, a few bugfixes), as well as EXPERIMENTAL traceroute capabilities. The traceroute affects how arcs are displayed between "home" and each endpoint. It's still experimental, so should you give it a whirl DO NOT file a bug report with me...it's not stable yet, and I know it =)

Also, GeoXPlanet now requires you to edit the GeoXPlanet.conf file and set your Desktop environment (currently kde, gnome, and fluxbox are available), since desktop detection has proven to be such a pain.

Enjoy.
 
OP
rocket357

rocket357

Security freak
After a long delay, GeoXPlanet-0.4.0 is available for download at sourceforge.net!

The past few months have been riddled with major life changes (graduated from college, corporate advancement, and I bought a house), so I hadn't really worked on GeoXPlanet until recently. GeoXPlanet-0.4.0 is a major overhaul, and it includes 3 big changes:

1) Windows is supported (again)
2) Graphical configuration utility
3) Connection tracing is stable now

There's a potential bug that I didn't discover until *after* I released (affecting gnome users), so anyone who's interested in checking out GeoXPlanet that runs gnome, please let me know how successful you are in getting GeoXPlanet running!

Thanks.
 

praka123

left this forum longback
on Debian Sid Gnome-2.22 ,
erred in first itself :D
I have pygtk(python-gtk2) and other deps installed.xplanet is running.
I have to disable Nautilus Desktop management via gconf-editor>
apps>nautilus>preferences>Show_Desktop =>disable(untick)
to have xplanet to show up on Gnome
first try:
Code:
prakash@localhost:~/Desktop/GeoXPlanet-0.4.1/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.1/src/GeoXPlanet.conf...
The config file was not found...
Traceback (most recent call last):
  File "./GeoXPlanet.py", line 71, in ?
    from configGUI import configGUI
  File "/home/prakash/Desktop/GeoXPlanet-0.4.1/src/configGUI.py", line 357
    finally:
          ^
SyntaxError: invalid syntax
Code:
prakash@localhost:~/Desktop/GeoXPlanet-0.4.1/src$ cp /home/prakash/Desktop/GeoXPlanet-0.4.1/defaults/GeoXPlanet.conf /home/prakash/Desktop/GeoXPlanet-0.4.1/src/
prakash@localhost:~/Desktop/GeoXPlanet-0.4.1/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.1/src/GeoXPlanet.conf...
Found the config file!
Location of xplanet executable: 
Detecting environment settings...
    Detecting Operating System:        linux2
    Detecting Desktop Environment:    
Traceback (most recent call last):
  File "./GeoXPlanet.py", line 88, in ?
    program = GeoXPlanet(configFile)
  File "/home/prakash/Desktop/GeoXPlanet-0.4.1/src/controller.py", line 209, in __init__
    serf.useGnome = True
[B]NameError: global name 'serf' is not defined[/B]

I have to copy GeoXPlanet.conf from default/ dir to src/ dir to start it!
and here in India,many still uses old samtron 15" monitors etc whose resolution is 800x600 :D
Code:
prakash@localhost:~/Desktop/GeoXPlanet-0.4.1$ cat defaults/GeoXPlanet.conf
################################################################################
## GeoXPlanet.conf
##
## Base configuration options for GeoXPlanet.py
##
## Author: rocket357 (rocket357@users.sourceforge.net)
################################################################################

# CHANGELOG
#
# Version 0.3.8
#               Added options for boundaries under "Display" - rocket357
#		Removed warning from trace, since trace is now stable - rocket357
#
# Version 0.3.7
#		Added DESKTOP and DEBUG to General - rocket357
#		Added warning to trace option - rocket357
#
# Version 0.3.5
#		Removed useless options - rocket357
#
# Version 0.3.4
#		Cleaned up comments (since config option list is in docs) - rocket357
#
# Version 0.3.3
#		Added symbolsize option - rocket357
#		Added options to pass to xplanet - rocket357
#
# Version 0.3.2
#		Added defaultColor option - rocket357
#		Now colors, titleType, arcs, and arcFileName are used - rocket357
#
# Version 0.3.1
#		Fixed default "useDatabase=False" - rocket357
#
# Version 0.3
#		Added option to use netstat - rocket357
#		Commenting - rocket357
#
# Version 0.2
#		Added to project - rocket357
#

[General]
# DESKTOP doesn't apply to Windows Systems!  (acceptable values are fluxbox, kde, and gnome)
DESKTOP=gnome
# DEBUG to get more output for troubleshooting
DEBUG=True
# delay - forced delay between updating the background (to reduce CPU usage)
delay=15.0
# useNetstat - only applies to Linux.  The default on all other systems is useNetstat=True
# Linux users can opt to pull the information directly from /proc/net/tcp by setting this to False
useNetstat=True
xplanetExe=/usr/bin/xplanet
defaultColor=0x999900
homeName=Muvattupuzha
homeLAT=9.979848
homeLON=76.573807

[XPlanet]
/usr/bin/xplanet
[Display]
Xinerama=False
NumberOfDisplays=1
Monitor_1_projection=mercator
Monitor_1_latitude=9.979848
Monitor_1_longitude=76.573807
Monitor_1_geometry=800x600
Monitor_1_trace=True
Monitor_1_arcs=True
Monitor_1_titles=True
Monitor_1_titleType=port
Monitor_1_colors=True
Monitor_1_symbolsize=7
Monitor_1_showNations=True
Monitor_1_showCoast=True
Monitor_1_showStates=True
Monitor_1_nationColor=0x999999
Monitor_1_coastColor=0x0044FF
Monitor_1_stateColor=0x009900
Monitor_1_showClouds=True

[Database]
useDatabase=False
# the following settings are only required if you set useDatabase=True...
# see the README for more information
dbHost=<your MaxMind DB installation server!>
dbName=geoip
dbUser=<your MaxMind DB installation username>
dbPassword=<your MaxMind DB installation password>
xplanet and xplanet-images are installed.
 
Last edited:
OP
rocket357

rocket357

Security freak
on Debian Sid Gnome-2.22 ,
erred in first itself :D
I have pygtk(python-gtk2) and other deps installed.xplanet is running.
I have to disable Nautilus Desktop management via gconf-editor>
apps>nautilus>preferences>Show_Desktop =>disable(untick)
to have xplanet to show up on Gnome
first try:
Code:
Looking for the GeoXPlanet.conf file:
    /home/prakash/Desktop/GeoXPlanet-0.4.1/src/GeoXPlanet.conf...
The config file was not found...
Traceback (most recent call last):
  File "./GeoXPlanet.py", line 71, in ?
    from configGUI import configGUI
  File "/home/prakash/Desktop/GeoXPlanet-0.4.1/src/configGUI.py", line 357
    finally:
          ^
SyntaxError: invalid syntax

Hrmmm...that's interesting. I modified it to remove the "finally:" clause, but I'm not sure why your system didn't like that...what version of Python are you using?

Code:
[B]NameError: global name 'serf' is not defined[/B]
I have to copy GeoXPlanet.conf from default/ dir to src/ dir to start it!

Thanks for pointing this bug out. This one only affects gnome users.

Fixed this one too, and I'll have 0.4.2 up on sourceforge.net soon.

Thanks for giving me the info, praka123!
 

NucleusKore

TheSaint
I installed it successfully on Open SuSE 10.3 but am having a few problems
-----------------------------------------------------------------------------
neville@linux-ab6m:~/GeoXPlanet-0.4.1/src> chmod 700 GeoXPlanet.py
neville@linux-ab6m:~/GeoXPlanet-0.4.1/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/neville/GeoXPlanet-0.4.1/src/GeoXPlanet.conf...
The config file was not found... Starting the GeoXPlanet GUI Config tool
xplanet executable: /usr/bin/xplanet
Attempting to autodetect screen resolution(s)
Detected Monitor #1: {'width': 1024, 'height': 768}
Now attempting to determine your public ip address.
This information is not stored or used in any way other
than to determine your latitude and longitude.

Detecting your public ip address: 122.167.28.169
Connecting to "*hostip.info" to determine your lat/long...
Done
Your latitude (according to hostip.info):
Your longitude (according to hostip.info):
neville@linux-ab6m:~/GeoXPlanet-0.4.1/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/neville/GeoXPlanet-0.4.1/src/GeoXPlanet.conf...
Found the config file!
Location of xplanet executable: /usr/bin/xplanet
Detecting environment settings...
Detecting Operating System: linux2
Detecting Desktop Environment:
Please set DESKTOP=<your desktop> in /home/neville/GeoXPlanet-0.4.1/src/GeoXPlanet.conf (Under "General")
Acceptable values are 'gnome', 'kde', and 'fluxbox' (more to come)
neville@linux-ab6m:~/GeoXPlanet-0.4.1/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/neville/GeoXPlanet-0.4.1/src/GeoXPlanet.conf...
Found the config file!
Location of xplanet executable: /usr/bin/xplanet
Detecting environment settings...
Detecting Operating System: linux2
Detecting Desktop Environment: kde
Detecting GeoXPlanet directory: /home/neville/GeoXPlanet-0.4.1
Done detecting environment settings
Reading the config file options... Done reading the config file

Performing lookup on 128.241.220.72
Generating image file: /home/neville/GeoXPlanet-0.4.1/temp/images/Monitor_0_Output1.png
XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

Setting wallpaper!
Performing lookup on 84.215.162.167
Generating image file: /home/neville/GeoXPlanet-0.4.1/temp/images/Monitor_0_Output0.png
XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

Setting wallpaper!
deleting 84.215.162.167
Generating image file: /home/neville/GeoXPlanet-0.4.1/temp/images/Monitor_0_Output1.png
XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

Setting wallpaper!
deleting 128.241.220.72
Generating image file: /home/neville/GeoXPlanet-0.4.1/temp/images/Monitor_0_Output0.png
XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

Setting wallpaper!
Performing lookup on 76.123.186.5
Adding 84.215.162.167 from cache!
Generating image file: /home/neville/GeoXPlanet-0.4.1/temp/images/Monitor_0_Output1.png
XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

XPLANET ERROR: Warning: Can't find /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt in

XPLANET ERROR: xplanet/arcs

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

XPLANET ERROR: /usr/share/xplanet/arcs

XPLANET ERROR: Warning: Can't load arc file /home/neville/GeoXPlanet-0.4.1/temp/arcs/Monitor_0_arcFile.txt

Setting wallpaper!
Traceback (most recent call last):
File "./GeoXPlanet.py", line 89, in <module>
program.run(GUI)
File "/home/neville/GeoXPlanet-0.4.1/src/controller.py", line 812, in run
time.sleep(self.delay)
KeyboardInterrupt
neville@linux-ab6m:~/GeoXPlanet-0.4.1/src>
--------------------------------------------------------------------------
Had to kill it as it was looping. can't load arc file? I never found Monitor_0_arcFile.txt in the specified destination, and the picture generated was of Africa again.

What am I doing wrong?

I fed in the latitude and longitude when asked for manually from here
*www.ip2location.com/
 
Last edited:
OP
rocket357

rocket357

Security freak
Thanks for the updates...there have been a small number of bugs reported that affect GeoXPlanet operation, though the "Can't find <arcfile> in xplanet//arcs" bug has been fixed already and many of the configGUI bugs have been fixed. I'll package it all up once I've had a chance to test the final code on Windows and gnome, and I'll upload it tonight.


Again, thanks for the updates!
 
Status
Not open for further replies.
Top Bottom