LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1147|回复: 2

刚安装好了xplanet,上个图片。

[复制链接]
发表于 2008-4-17 09:27:10 | 显示全部楼层 |阅读模式
还有很多东西没有弄,没有详细地看配置文件。

图片用gimp转化了一下格式,感觉效果还行。

这个东西弄能自动的显示现在你的地理位置的白天和黑夜的状态,当然还有其他的,不过最近太忙,

过几天在弄。

安装和配置:

首先要安装xplanet和xplanet-images两个包,然后在不同的桌面系统里面做不同的设置。

gnome里面使用方法如下:

======================

#!/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=10m

# 换成你自己的目录
PREFIX=/home/fender/xplanet

OUTPUT=planet.png

APPEND=2

# 指定一下分辨率
GEOMETRY=1280x1024


# 指定一些自己的精度和纬度,我在天津,就baidu了一下天津。
LONGITUDE=117.2

LATITUDE=39.13

#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

======================

把这个脚本加到gnome的启动回话里面就可以了。

======================

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2008-4-17 09:39:51 | 显示全部楼层
还有一个好玩的东西叫stellarium,

关于天文学的,

也可以安装上试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-17 12:20:27 | 显示全部楼层
在来一张中午的桌面。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表