AutoPager recommanded by Mozilla editors. AutoPager自动翻页扩展进了Mozilla推荐列表
AutoPager recommanded by Mozilla editors.https://addons.mozilla.org/en-US/firefox/recommended
Try it now if you haven't installed.
https://addons.mozilla.org/en-US/firefox/addon/4925
AutoPager自动翻页扩展进了Mozilla推荐列表。先恭喜我自己一下。
https://addons.mozilla.org/en-US/firefox/recommended
如果你还没有安装,那就现在试试吧。
https://addons.mozilla.org/en-US/firefox/addon/4925
Technorati Tags: AutoPager, Mozilla, Firefox, recommended , addons [Read More]
My Tags: addons
blogs.sun.com and ScribeFire
ScribeFire failed to works with blogs.sun.com recently. You can post a entry, but the entry will never be showed on the blog.I spent some time to try different options and finally find a workable one:
1. Launch the account wizard,
2. press Manually Configure
3. select Custom Blog
4. select roller, ignore the warning
5. Server API URL: http://blogs.sun.com/roller-services/xmlrpc
6. provide username and password
The blog url is missed in the api. So the view blog links will not work. You need change it manually.
1. Goto firefox profile folder, which is located in one of the following locations depending on your operating system:
Windows Vista |
Users\ |
Windows 2000, XP, Server 2003 |
Documents and Settings\ |
Mac OS X |
~/Library/Application Support/Firefox/xxxxxxxx.profileName |
Linux and Unix systems |
~/.mozilla/firefox/xxxxxxxx.profileName |
xxxxxxxx represents a random string of 8 characters. profileName should be default if don't create a new profile.
2. Edit extensions/performancing-bloglist.xml
Find your blog setting, for me it's:
Change the url to your blog url:<url>/wind/</url>
<blog>
<blogname>Whisht Wind</blogname>
<blogtype>roller_cus</blogtype>
<blogapi>metaweblog</blogapi>
<appkey/>
<username>wind</username>
<apiurl>http://blogs.sun.com/roller-services/xmlrpc</apiurl>
<GUID>28658d034-a18a-84e4-0284-51b0a859db5</GUID><blogid>wind</blogid>
<useboolean>false</useboolean>
</blog>
<url>http://blogs.sun.com/wind/</url>
One more thing: you also have to login to blogs.sun.com and enable the "Enable weblog client support?" setting in the Preferences tab.
Technorati Tags: ScribeFire, blogs.sun.com
NetBeans插件BlackBerry
一个用来开发黑莓程序的NetBeans插件. 下载地址 http://www.teesoft.info/content/view/36/36/#BlackBerryPlugin.
This is built from http://hg.netbeans.org/main/contrib/file/tip/mobility.plugins.blackberry/ with following features added:
1.
BlackBerry JDE Component Package support. You can register BlackBerry
JDE or BlackBerry JDE Component Package as the platform. You will get
full features if you register BlackBerry JDE as platform. But since
there are no simulator built in ,so you can just build your application
with BlackBerry JDE Component Package, no run and build support for
BlackBerry JDE Component Package.
2. non-windows os support. This
includes linux, solaris and any os with wine installed. You need Wine
to make this work. You can install the JDE or BlackBerry JDE Component
Package using wine or install them in a windows pc and copy to your
non-windows os. The BlackBerry JDE simulator is not so stable while
running in wine, but at least you can build your applications.
3. auto get JDE versions.
4. auto build alx file in your dist folder.
The patch can be find at:
http://www.netbeans.org/issues/show_bug.cgi?id=140871
有什么问题可以发到:http://www.teesoft.info/phpbb/viewforum.php?f=7.
Technorati Tags: NetBeans, BlackBerry, BlackBerry JDE, 8800, 8700, 8100
[Read More]
( 2008年07月19日, 07:13:46 下午 CST ) [Listen] Permalink 评论 [0]
RIM BlackBerry Plugin for NetBeans
RIM BlackBerry Plugin Module, support build BlackBerry applications with NetBeans JDE.
You can download it here: http://www.teesoft.info/content/view/36/36/#BlackBerryPlugin.
This is built from http://hg.netbeans.org/main/contrib/file/tip/mobility.plugins.blackberry/ with following features added:
1.
BlackBerry JDE Component Package support. You can register BlackBerry
JDE or BlackBerry JDE Component Package as the platform. You will get
full features if you register BlackBerry JDE as platform. But since
there are no simulator built in ,so you can just build your application
with BlackBerry JDE Component Package, no run and build support for
BlackBerry JDE Component Package.
2. non-windows os support. This
includes linux, solaris and any os with wine installed. You need Wine
to make this work. You can install the JDE or BlackBerry JDE Component
Package using wine or install them in a windows pc and copy to your
non-windows os. The BlackBerry JDE simulator is not so stable while
running in wine, but at least you can build your applications.
3. auto get JDE versions.
4. auto build alx file in your dist folder.
The patch can be find at:
http://www.netbeans.org/issues/show_bug.cgi?id=140871
You are welcome to post feedback to http://www.teesoft.info/phpbb/viewforum.php?f=7.
Technorati Tags: NetBeans, BlackBerry, BlackBerry JDE, 8800, 8700, 8100
非常郁闷中 NB-XUL居然不是我提的
刚刚注意到NetBeans的有奖资助开发计划中有个NB-XUL项目,实现的功能和我的FoxBeans类似。
不过居然不是我提交的。你说郁闷不郁闷。
FoxBeans可以在这里下载。注意这个链接可能需要点两次。第二次才能打开,不知道NetBeans的网站怎么做的。
( 2008年07月15日, 10:56:58 下午 CST ) [Listen] Permalink 评论 [0]
NB-XUL and foxbeans
Just notice there is a NetBeans grant project call NB-XUL.http://www.netbeans.org/grant/
Don't know whether they know there is foxbeans project which already implement some basic editor functions for Mozilla XUL.
You can download foxbeans here.
升级导致vpnclient问题以及解决方案
最近升级了系统,vpnclient就不工作了。总是停在Authenticating user.Negotiating security policies.
花了点时间终于找到了原因,原来是MTU太小了。不知道什么原因我的无线路由的dhcp服务总是返回一个很小的mtu 576。我可以手工将网卡的mtu设成以太网卡缺省的1500。改之后vpnclient就好了。可以用这个命令来改:
ifconfig eth0 mtu 1500
如下步骤可以使每次系统启动时都自动使用1500作为mtu。
1. 网卡启动前设置mtu为155
在/etc/network/interfaces 中 iface eth0 inet dhcp的后面加入这行:
pre-up /sbin/ifconfig $IFACE mtu 1500
如果你使用的固定ip就更简单了。你可以直接在iface eth0 inet dhcp下面加入mtu 1500。你也可以跳过下面的步骤。
2. 避免dhcp设置mtu
在/etc/dhcp3/dhclient.conf中找到request列表,删除其中的interface-mtu.
改之前:
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu;
改之后:
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope;
重启。OK了。
Technorati Tags: vpn, cisco, vpnclient, mtu, dhcp [Read More]
My Tags: cisco
( 2008年07月10日, 09:32:05 下午 CST ) [Listen] Permalink 评论 [0]
vpnclient issues caused by small mtu
I upgraded my system to the last version. Then the vpnclient stop work. It will failed at Authenticating user.Negotiating security policies. I spent some time fighting on it. I found out if caused by the small MTU of my interface.
For some reason my wireless router's dhcp server return a very small mtu 576. I can make vpnclient work my manual increase the mtu value to the general ethernet interface mtu 1500 by:
ifconfig eth0 mtu 1500
And I changed the following settings to set the interface mtu to 1500 at system boot.
1. set mtu to 1500 before interface up
add the following to /etc/network/interfaces after iface eth0 inet dhcp:
pre-up /sbin/ifconfig $IFACE mtu 1500
If you are using static ip instead of dhcp you can direct put mtu 1500 bellow your iface line. And you can skip next step.
2. Avoid dhcp client set the interface mtu
Find the following line in /etc/dhcp3/dhclient.conf and remove interface-mtu.
Before modify:
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu;
After modify:
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope;
That's all. Try it if you have this issue too. And please kindly let me know whether it works for you.
Thanks
Technorati Tags: vpn, cisco, vpnclient, mtu, dhcp
地震
四川汶川县发生了7.8级大地震,据说几乎整个东亚都有感。
地球真是太不安全了,好多地震啊,看看这个吧,最近地球上所有的5级以上的地震,每天n次:
http://earthquake.usgs.gov/eqcenter/recenteqsww/Quakes/quakes_big.php
[Read More]
My Tags: earthquake
Wine发布了1.0-rc1接近1.0了
今天无意间拿Wine在我的Ubuntu上运行了一下NetBeans的Windows版。让我吃惊的是居然毫无问题的运行了。执行了一下wine --version,居然发现已经是1.0-rc1了。
是个不错的消息,毕竟还有好多软件,游戏只有Windows版,有了Wine至少在某种程度上可以在linux上使用他们了。
为了方便使用OpenSolaris的朋友,我在OpenSolaris上编译了一个。需要的可以试试:
wine-1.0-rc1-solaris-5.11-i86pc.pkg.bz2
下载之后unzip,然后用pkgadd安装。
bunzip wine-1.0-rc1-solaris-5.11-i86pc.pkg.bz2
pkgadd -d wine-1.0-rc1-solaris-5.11-i86pc.pkg
安装路径为 /usr/local/wine.使用前请将/usr/local/wine/bin加入到PATH中:
export PATH=$PATH:/usr/local/wine/bin
开始使用了:
wine --version
wine notepad
....
[Read More]
My Tags: wine
Foxbeans 1.0.1.13 Released
Download it here: http://plugins.netbeans.org/PluginPortal/faces/PluginListPage.jsp?search=foxbeansFoxbeans is a netbeans plugin to support
create Mozilla/Firefox/Thunderbird addons/extensions using netbeans.
You can also import an existing addons project to netbeans.
Changes on previous releases:
Add importing project support.
Add an options to configure the installed mozilla applications to used
while do the testing. Add the selected mozilla application to the
project node as a refer. Please don't modify files under Application
node unless you what you are doing.
New functions added to 1.0.1.13:
Add i18n support for xul file.
It will search and put the hard coded string for following attribute to a dtd file.
*=tooltiptext,label,accesskey,tooltiptextdown,tooltiptextup,title,
toolbar=toolbarname
label=value
key=key
New functions added to 1.0.1.11:
1. Add two functions to add/remove the missed language items from
properties/dtd locale files. Correct Language Files and minimize
Language Files. Correct will add missed string resources, this will
help if you want to release the files. Minimize will remove the string
resources which equal to the default "en-US" ones. This will help to
submit the upgraded files to http://www.babelzilla.org. babelzilla is a site to help localizing mozilla/Firefox addons.
2. Support add extensions to the testing env. You just need put the
addons you want to add to the test profiles to the extensions directory
under your project. They will be automatically installed. For example
you can put the javascript debugger there. XPI files or installed
folders are both supported. You can get the installed addon folders in
your
Technorati Tags: Foxbeans, NetBeans, XUL, Firefox [Read More]
A patch to allow archive and download folder in mercurial repository with hgweb
Mercurial provides hgweb cgi scripts to allow you manage mercurial repositories using http server. And it allow download the archive of the repository as zip,tar.gz or tar.bz2. But it not allow you to download a whole sub folder as some other version control system web fronts. I create one patch to add this function. You can find it here.
Use http://www.teesoft.info/hg/samples/file/tip/netbeans/PaletteDemo1/ as an example. Follow this
to set a mercurial repository over http. It's use sourceforge as an
examples, but you can also use the similar to other isp if they provide
python support. You can also find the patch I created mercurial 0.9.4.
This is my first try on python. Let me know if you find some error/bug.
Thanks
My Tags: archive
( 2008年03月16日, 11:09:04 下午 CST ) [Listen] Permalink 评论 [0]
为mercurial web cgi做了个打包下载文件夹的补丁
Mercurial提供了通过http方式维护代码仓库的cgi脚本,它支持打包下载整个仓库,却不支持打包下载子目录。所以我做了一个补丁来做这件事。你可以在这里下载它。http://www.teesoft.info/hg/samples/file/tip/netbeans/PaletteDemo1/是一个部署之后的例子。你可以打包下载任何目录。
请参考 这个 在你的服务器上配置 mercurial,唯一的条件是你的服务器支持python。别忘了打我的补丁。
另外,我还做了用于mercurial 0.9.4的补丁。
这是我第一次做python的东西。如果你发现其中有什么不妥请告诉我。
谢谢
Technorati Tags: archive, hgweb, mercurial, tar.gz, tar.gz2, zip
[Read More]
My Tags: archive
( 2008年03月16日, 10:55:03 下午 CST ) [Listen] Permalink 评论 [0]
Netbeans 开发之 添加自定义面板到现有编辑器
为了给我自己的 Netbeans插件 Foxbeans 添加功能,所以我最近研究了一下NetBeans插件的开发。这里会记录一些我的发现,以便其他人可以参考。作为第一篇,我先谢谢如何添加自定义面板。先说说如何给现有文件编辑器添加面板。这里我的例子是html编辑器,完整源代码在这里,效果如下,拖到网页上就添加一个 :):
大
的大致工作思路是用一个XML
(下面说的smile.xml)文件定义面板中的一个项。这包含它的名称,描述,图标,以及实现它的类名。layer.xml中引用这个文件,把它加入一
个所谓的folder中,每个编辑器可以使用一到多个这种folder中的项。html编辑器使用的是HTMLPalette
(JSP使用JSPPalette).
你可以将你的项加入到它的folder中。如果你做过Firefox插件的话,你会看到他们使用的是相同的思路。在Firefox中,这叫
overlay,也就是覆盖。实际上也不是覆盖,而是添加。一些动态语言里有这种类似的语法。你可以向一个已经在其他地方定义的类里添加新的属性和方法。
扯远了。:)
大致的步骤如下:
Technorati Tags: netbeans, palette, 面板, foxbeans
vmware上无法启动最新的Solaris的解决办法
最近在vmware上转了一下最新的OpenSolaris,发现安装完之后无法启动,就是在Grub时候黑屏了没响应。后来发现是启动时识别虚拟机的处理器的问题。可能导致不知道是启动64位版还是32位版。处理的办法是明确的告诉Grub去启动32位的操作系统核心。具体步骤如下:
首先我们要启动进去,方法是在grub界面里编辑一下启动参数。机器启动之后在grub界面里按e键编辑第一个启动项目,你会看到如下两行:
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
我们要做得是在每一行上敲e键,编辑他们,删除其中的$ISADIR/. 每一行改完之后按回车返回。最终看起来是这样的:
kernel$ /platform/i86pc/kernel/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/boot_archive
然后按b键启动即可。
每次这样改也不是办法,所以我们要到grub的配置里去改一下,加一个启动32为内核的选项。
首先要登录为root。
执行 zfs mount rpool 以便访问grub的配置。它在/rpool/boot/grub/menu.lst.
用vi打开它,找到ADDED BY BOOTADM所在的行,在它的前面加入如下三行:
title OpenSolaris 32 bit
kernel$ /platform/i86pc/kernel/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/boot_archive
保存就行了。下次启动就自动进入32位模式。
Nexenta Core Platform也有类似的问题,处理方法类似,只不过找到menu.lst的方法不同。
在nexenta上你需要 mount -F zfs syspool /mnt 加载zfs池。要编辑的文件在/mnt/boot/grub/menu.lst.
编辑前:

编辑后:

启动之后:

Technorati Tags: solaris, opensoalris, vmware, menu.lst, arch, 32 bit, 64 bit
Milax 超小的OpenSolaris发行版 50M
无意中从一个同事的blog中发现了一个超小的OpenSolaris发行版。它支持光盘启动和USB启动。原名叫Damn Small Solaris,现在叫Milax. 它和linux界出名的DSL(Damn Small Linux)类似,包含的程序也类似,不同的是它是基于OpenSolaris内核的,所以支持一些Solaris上才有的功能,例如dtrace, zfs, brandz等。它可以用做体验光盘,也可以作为修复光盘使用。它的授权协议也是CDDL 1.这里是下载地址页面:http://milax.org/?page_id=9,光盘版:http://www.genunix.org/distributions/dss/milax011sunhelpru.iso, USB版: http://www.genunix.org/distributions/dss/milax011sunhelpru.usb.
目前它主要提供了如下程序:
Beaver, Vim, Dillo, Midnight Commander, emelFM, XMMS, Xpdf, VNC viewer, Rdesktop, AxyFTP, Irssi.
启动后请用 alex用户登录,密码也是alex。root的密码也是root。启动图形界面的命令是 startx。执行"su -"命令可以获得root权限。
套用目前很流行的一种说法: 很小很强大!
目前不支持中文。最近会找点时间看看有没有汉化她的可能。:)
启动截屏:

运行截屏:

Technorati Tags: OpenSolaris, Solaris, Milax
My Tags: milax
虚拟化大行其道 - Sun正在收购Innotek
春节大采购!Sun在宣布收购MySql之后最近又宣布收购Innotek。如果你不知道Innotek,那么VirtualBox呢?VirtualBox是一个类似VMware的虚拟机软件。还是开源的。它可以运行在Windows, Linux, Macintosh和 OpenSolaris上。 最逗的是仅仅在Sun宣布收购Innotek的前一天,Innotek发布OpenSolaris版的VirtualBox.抓紧时间试用一下VirtualBox吧 http://www.virtualbox.org/wiki/Downloads.
Technorati Tags: VirtualBox, Sun, Innotek, VMWare
netbeans project groups in 6.0 or old poorMansPortfolios project groups
I don't know what do you think of the project groups support in netbeans 6. I don't like it. I like the old poorMansPortfolios project groups implement. But the module had be remove after the new implement added. See #50683 for detail. So I checkout the source code for poorMansPortfolios project groups and make a little changes to make it build and work for netbeans 6.0.Download it here and here is the source code.
Technorati Tags: netbeans, project, groups
( 2007年12月16日, 04:38:14 下午 CST ) [Listen] Permalink 评论 [0]
jStarDictM/jStarDict-BB 0.5.3 released
jStarDictM/jStarDict-BB 0.5.3 released. Implemented the Browse Path function in Add Dict, so you can put the dict in any place of the sd card in your phone and add dict in dict manager.Download from http://www.teesoft.info/content/view/36/36/Technorati Tags: jstardict, jstardictm, stardict, j2me
My Tags: j2me
嫦娥月图上多出的小坑有了一个比较合理的解释:拼接错位
这次发布的嫦娥月图被发现比 Google Moon上的对应图片对了一个小坑。经过多天之后终于有个名为美的眼睛 的网友给出了一个比较合理的分析。可能是制图时将一幅图拼错了位。 详情见这里。 官方公布的三维图中已经修复了这一错误。瑕不掩瑜,我们还是要热烈庆祝嫦娥的成功。不过如果官方在接下来的几天能过高调出来澄清这个问题将更好了。
下面是网友给出的分析示意图,将虚线左边往上提一提就完全一样了:

官方的3d图:

从嫦娥月图又一次见证了人肉搜索的威力。开源的魅力某种程度上也是如此吧。
Technorati Tags: china, 嫦娥
( 2007年12月08日, 11:48:06 下午 CST ) [Listen] Permalink 评论 [1]
OpenOffice文字显示混乱的处理
OpenOffice文字显示混乱的处理
如果打开的文件中使用了包含了系统中不存在的字体,那么OpeOffice有可能将文档显示的有点混乱。OpenOffice其实是提供了解决方案的,那就是字体映射表。OpenOffice会用你指定的字体替换文档指定的字体。例如我用温泉正黑替换宋体。方法是Tools->Options->OpenOffice.org->Fonts:
My Tags: fonts
netbeans 6.0终于发布了
NetBeans IDE 6.0 终于发布了。
Ajax | C/C++ | Databases | Debugger | Desktop | Editor | GUI Builder | Java EE | Java ME | Java SE | Javascript | Mobile | Profiler | Refactor | REST | Rich Client Platform | Ruby | SOA |
还有本人的firefox扩展的支持。:)
Technorati Tags: netbeans
抗战时期的美女杀手——郑萍如
这是一篇转过来的文章 。有感于最近某大导演不顾历史事实,仅凭一篇似是而非的小说,及其充满想像力的小脑袋,用其高超的拍摄技巧,将一位可歌可泣的烈士,在其死了60余年之后拖出来鞭尸。
抗战时期的美女杀手——郑萍如
周佛海口中的郑萍如
《江心秋月推荐》
1945年深秋,重庆歌乐山,一片郁郁葱葱的松林之中,有一座四面用竹篱围起来的院落,院里有一排十来间平房。在抗战时期,这里曾是中美合作所副主任梅乐斯和参谋长贝乐利的住处,现在成为关押周佛海、丁默邨汪伪大汉奸的临时场所。
[Read More]
My Tags: 郑萍如
cross reference for netbeans source
I had searched for it for some time. Got it from http://deadlock.netbeans.org/opengrok/. It's powered by opengrok, the same cross reference tools used by opensolaris.org. But unfortunately they enable the search function for it.Technorati Tags: netbeans, opengrok
foxbeans:更快更好的开发firefox/mozilla插件
做了个开发firefox扩展的netbeans插件。只需简单的几步就可以创建一个可以在firefox/mozilla/thunderbird/netbeans/flock/seamonkey的mozilla系列的软件上使用的扩展。请从这里下载netbeans 6.0,从这里 或这里下载foxbeans插件。安装netbeans之后安装foxbeans,之后新建工程里就会多一个Mozilla Addons的选项。
My Tags: firefox
( 2007年11月25日, 11:15:26 下午 CST ) [Listen] Permalink 评论 [0]
foxbeans: create firefox mozilla thunderbird netbeans flock seamonkey addons /extensions in netbeans
Just create a netbeans plugin to support user netbeans as the ide to create the firefox addons /extension. It supports creating addons for firefox mozilla thunderbird netbeans flock seamonkey and sunbird. You need netbeans 6.0 and this plugin. Another download site. Just download the plugin file, start netbeans 6.0, goto Tools->Plugins->Download and add the downloaded nbm file. Here are some pictures:
Technorati Tags: foxbeans, firefox, mozilla, flock, extension
firefox 3 beta 1 发布了
这里下载。 我的自动翻页插件也更新了,可以用在firefox 3 beta 1上。差不多是更新最快的插件了。Technorati Tags: firefox3, firefox
( 2007年11月20日, 11:04:51 上午 CST ) [Listen] Permalink 评论 [0]
firefox 3 beta 1 is out
Download it here. And my autopager addon has been updated to work with firefox 3 beta 1.Technorati Tags: firefox3, firefox
使用Mercurial(水银,一种版本控制系统)将你的*nix系统添加到版本控制系统
本人一直试图找一个版本控制系统可以将我的linux系统的文件系统方到版本控制之下。那样就不怕丢东西,更新时也不怕丢东西了。我试过CVS和SubVersion,都不太好,我甚至动了要自己写一个的想法。直到我发现了Mercurial。有了这个东西后就一切豁然开朗了。它有三个独特的属性,以至于将整个系统加入版本控制对它来说易如反掌。这三个特性是:1.它不会在每个目录下创建一个文件。它只在你希望加入版本控制的目录的根目录创建一个.hg文件夹。要知道很多系统是不能识别CVS或SubVersion的目录的,他们会被当成正常目录来处理,导致很多基于目录结构的程序失败。Mercurial只有一个目录就很好的避免了这种麻烦。
2.它包含一个addremove命令。"hg addremove". hg是mercurial的命令,取自水银的化学符号。hg addremove自动添加新文件,移出被删除的文件。用起来太方便了。
3. 它是分布式的,很容易备份。用hg pull就行了。
下面是具体的步骤:
1.安装mercurial. ubuntu系统下可以用sudo apt-get install mercurial.其他系统请参照各自系统文档,也可以到http://www.selenic.com/mercurial/wiki/下载。装完之后可以执行hg验证一下,也大致看一下hg的参数。
2. 在系统根目录/下创建一个.hgignore文件,在这个文件中出现的东西会被自动跳过,将我们不希望添加到版本控制的文件和文件加入到这个文件。有几个是必须跳过的,最小的.hgignore文件看起来向这样:
var/3.执行 cd / && sudo hg init
proc/
dev/
sys/
4.执行 sudo hg addremove && sudo hg commit -m "add system root to mercurial rep"
5.如果你不需要备份这些文件,这一步可以省略,切换到备份目录执行: hg clone / root
这样就好了。几分钟时间的事。
你可以将这条命令加入到crontab:cd / && hg commit -A -m "system changed at `date`" .这将自动提交所有的更改。 也可以在备份文件夹下用hg pull /同步更新。
Technorati Tags: mercurial, versioning, unix, linux, solaris, hg, china









Windows Vista
Mac OS X
Linux and Unix systems