Monthly Archives: July 2010

gnome 下面使用中文农历桌面插件 lunar-applet

在Debian/Ubuntu很简单,只需要 sudo aptitude install lunar-applet 即可,它会自动安装依赖包。 不过有个小问题,由于我使用的locale是en_US.utf8,所以阴历显示的都是拼音,看着很别扭。上网查了一下,解决办法很简单只需要: sudo ln -s /usr/share/locale/zh_CN/LC_MESSAGES/liblunar.mo /usr/share/locale/en/LC_MESSAGES/ 即可。 参考链接:http://code.google.com/p/lunar-applet/issues/detail?id=2

Posted in linux应用, 技术为本 | Tagged , , | Leave a comment

ubuntu 10.04 Thinkpad 指点杆设置

sudo aptitude install gpointing-device-settings 运行 gpointing-device-settings 看着设置吧,会好用很多。 参考链接:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=260673&start=0

Posted in 尚未分类 | Tagged , | Leave a comment

在 Raid 服务器上安装 Debian lenny

安装时,要加上参数: dmraid=true 不然,会把 raid 认为多块硬盘。 原文链接:http://www.moyuer.cn/blog/?p=99

Posted in linux应用, 技术为本 | Tagged , , | Leave a comment

ERROR 1045 (28000): Access denied for user (Using password: YES)

如果mysql登录出现如题目的错误,可以参照下面链接里面的解决方法。 http://lists.mysql.com/mysql/198751 其实很简单,就是flush一下,然后重启mysql即可。

Posted in linux应用, 技术为本 | Tagged , , | Leave a comment

LINUX在CLI下批量处理照片(转贴)

YJ在ubuntu: 批量处理照片的问题里介绍了他找到的在Ubuntu下批量处理照片的方法。他讲的两种方法都是基于GUI的。我到不是反对GUI,不过就像Andrew Tanenbaum (大牛阿,MINIX的作者,一堆经典CS教材的作者)的在他的FAQ (推荐读一下,挺有意思) 里说到的一条: Do you like WYSIWYG systems? Definitely not. I can type faster than I can point. And my mother told me that pointing is impolite. 没错,type faster than point,所以很多时候CLI会比GUI更高效便捷一点。我这一贴就说说我发现或找到的用CLI批量处理图片的方法。 这里都假设使用ImageMagick里的工具,YJ说的那个用Nautilus Image Scripts,最终调用的还是ImageMagick,相当一部分Linux(甚至Win下)的图像相关的自由软件都选择了调用ImageMagick提供的命令。 好了,假设在CLI下,resize一张照片A.JPG,用convert: convert -resize … Continue reading

Posted in linux应用, 技术为本, 文摘转贴 | Tagged , | Leave a comment

Debian 时区的设置

Debian 5 lenny 装好之后,默认的时区是US/Eastern,简写为EDT。我需要显示中国的北京时间,所以要把时区改到东八区。很简单,执行下面语句选择Asia/Shanghai就可以了。 $ sudo dpkg-reconfigure tzdata $ date Mon Jul 19 18:07:28 CST 2010 $ date -u Mon Jul 19 10:08:56 UTC 2010 时间正常显示了。 如果时间不对的话,可以用 date -s 来设置当前时间。

Posted in 尚未分类 | Leave a comment

WordPress 升级到3.0,首页空白,无法显示任何内容。

今天用SVN的方式把WordPress升级到了3.0,过程很顺利,但是结果出现了问题,首页空白,没有任何内容。上网查了一下,有说是插件没有禁用的问题。把插件全部禁用了,还是不行,郁闷那。顺着这个思路想了想,是不是Theme的问题呢。果然,应用了新版默认主题之后,就好了。:-)

Posted in 网络应用 | Tagged , , , | Leave a comment