gnome时间的农历显示

仅仅用于软件推荐,不适合发求软件或软件使用问题方面的贴子
yetist
帖子: 37
注册时间: 2007-02-02 0:11

还有一点

#31

帖子 yetist »

这个版本由于疏乎,忘记加图片了,:D,默认用的是原来那个显示日期applet的图片,在我的系统上,它们被放在这里:
/usr/share/icons/hicolor/16x16/apps/gnome-panel-clock.png
/usr/share/icons/hicolor/22x22/apps/gnome-panel-clock.png
/usr/share/icons/hicolor/24x24/apps/gnome-panel-clock.png
/usr/share/icons/hicolor/32x32/apps/gnome-panel-clock.png
/usr/share/icons/hicolor/scalable/apps/gnome-panel-clock.svg
如果没胆,可以自己加一个上去,下个版本我把图片加上。
头像
dogfox
论坛版主
帖子: 5311
注册时间: 2006-09-02 14:18
来自: 汉桑城
联系:

#32

帖子 dogfox »

代码: 全选

sss@kaer:~$ lunar --utf8 2007 1 27
-bash: lunar: command not found
sss@kaer:~$ sudo apt-get install lunar
Password:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
下列【新】软件包将被安装:
  lunar
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 1 个软件未被升级。
需要下载 13.5kB 的软件包。
解压缩后会消耗掉 77.8kB 的额外空间。
获取:1 http://ubuntu.csie.ntu.edu.tw dapper/universe lunar 2.2-3 [13.5kB]
下载 13.5kB,耗时 0s (16.6kB/s)
选中了曾被取消选择的软件包 lunar。
(正在读取数据库 ... 系统当前总共安装有 98857 个文件和目录。)
正在解压缩 lunar (从 .../archives/lunar_2.2-3_i386.deb) ...
正在设置 lunar (2.2-3) ...
sss@kaer:~$ lunar --utf8 2007 1 27
Lunar Version 2.2 (October 28, 2001)

阳历: 2007年 1月27日 0时 星期六
阴历: 2006年12月 9日子时 生肖属狗
干支: 丙戌年 辛丑月 辛酉日 戊子时 
用四柱神算推算之时辰八字: 丙戌年 辛丑月 辛酉日 戊子时 
sss@kaer:~$ lunar --utf8 2007 2 2
Lunar Version 2.2 (October 28, 2001)

阳历: 2007年 2月 2日 0时 星期五
阴历: 2006年12月15日子时 生肖属狗
干支: 丙戌年 辛丑月 丁卯日 庚子时 
用四柱神算推算之时辰八字: 丙戌年 辛丑月 丁卯日 庚子时 
sss@kaer:~$

全世界linux爱好者联合起来 !
yetist
帖子: 37
注册时间: 2007-02-02 0:11

#33

帖子 yetist »

呵呵,算法就用的这个,没有“用四柱神算推算之时辰八字”的结果。
头像
yumumao
帖子: 171
注册时间: 2006-09-25 3:58

#34

帖子 yumumao »

^_^这回用上了。
只是在添加到面板的时候,出现了一个错误提示,然后我原有的一个“抽屉”不见了,忘了提示上写的什么了,我重新加了抽屉之后没发现其他问题了。
yetist
帖子: 37
注册时间: 2007-02-02 0:11

#35

帖子 yetist »

ct 写了:libpanelappletmm-2.6有两个,支持文件和dev包两个我都装了,我后来发的那个是源码加编译过的文件,不知道你们能不能install.
我的系统是feisty.
不需要安装libpanelappletmm包,安装libpanel-applet2-dev就可以。
eexpress 写了:要这个libpanelapplet-2.0。似乎不能满足。
apt-get install libpanel-applet2-dev就可以了。
skyx 写了: ......
checking pkg-config is at least version 0.9.0... yes
checking for LIBPANEL_APPLET... configure: error: Package requirements (libpanelapplet-2.0 >= 2.14.3) were not met:

No package 'libpanelapplet-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
......
同上,apt-get install libpanel-applet2-dev.
yetist
帖子: 37
注册时间: 2007-02-02 0:11

#36

帖子 yetist »

ct 写了:搞了下,你们看看可能用,我不会打包.
晕,我debian上libgnomeui版本才2.14.1-2也可以用,你打的包要求libgnomeui-0 (>= 2.17.1), 这要升级多少包呀?而且有的人也不一定能升级到这么高的版本呀。建议重新打一次包,control中这样写应该就可以了:

Depends: libgtk2.0-0 (>= 2.8.0), libpanel-applet2-0 (>= 2.14.3), libgnomeui-0 (>= 2.13.0)
Suggests: libecal1.2-6, libedataserver1.2-7
xiid
帖子: 17
注册时间: 2006-06-18 8:12

#37

帖子 xiid »

安装成功,以下为完整安装步骤:

装依赖的包:
sudo apt-get install libpanelappletmm-2.6-dev

编译安装:
./configure --prefix=/usr
make
sudo make install

重启GNOME面板:
killall gnome-panel

就可以在“增加到面板”中看到“农历日期”了,

注意:编译安装时不加参数’--prefix=/usr‘默认安装到‘/usr/local’,安装可以正常完成但在’增加到面板‘中看不到“农历日期”,
头像
Jimmy.Zhou
帖子: 475
注册时间: 2006-12-05 21:51
来自: Vienna, Austria

#38

帖子 Jimmy.Zhou »

:em25 汗到死,一个小小的农历软件,折腾我们论坛这么多高手到这种程度……我还是用google calendar吧。
Jimmy.Zhou

Acer Extensa 5620G
T5250 + HD 2400 XT + 2G DDR2 +160G SATA + iwp 3945
Ubuntu Intrepid Ibex + Firefox 3
gman3025
帖子: 151
注册时间: 2007-01-13 18:55

#39

帖子 gman3025 »

有必要吗?
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#40

帖子 bones7456 »

凑热闹来了,我也来编译一下看看。
zabbey
帖子: 296
注册时间: 2006-05-06 2:03

#41

帖子 zabbey »

我折腾了一阵,没弄出来,有空再说了
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#42

帖子 skyx »

新版到1.4了,译了下,总算成功了。不错的说
附件
lunar-applet-1.4.tar.gz
(554.61 KiB) 已下载 395 次
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#43

帖子 skyx »

译好安装完后

重新加载一遍gnome-panel


在面板上右击, 选添加到面板, 在对话框中选农历日期即可.


默认没有显示农历,


要在首选项中配置
no security measure is worth anything if an attacker has physical access to the machine
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#44

帖子 skyx »

整个过程没有出错,好久前译过,那时根本译不了
附件
lunar.jpg
no security measure is worth anything if an attacker has physical access to the machine
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#45

帖子 eexpress »

skyx 确实 是以前的不行。新的可以。
● 鸣学
回复