需要在windows和linux之间实现文件的实时同步, 采用unison, 服务器端和客户端软件版本保持一致(避免兼容性问题).
我的安装步骤, 其中参考了不少文档, 见文章结尾的参考文档。
1。 安装脚本
unison编译器:
wget http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.1.tar.gz
# tar -zxf ocaml-3.12.1.tar.gz
# cd ocaml-3.12.1
# ./configure
# make world opt
# make install
unison:
linux:
wget http://www.seas.upenn.edu/~bcpierce/unison//download/releases/stable/unison-2.40.63.tar.gz
# tar -xzvf unison-2.40.63.tar.gz
# cd unison-2.40.63/
# make UISTYLE=text
# make install
如果安装过程中出现: etags: command not found
的错误, 不用管它, 直接执行下面的命令:
chmod 0755 unison
cp unison /usr/bin
不影响使用。
unison配置文件路径(linux):
/home/yxw/.unison/default.prf
windows:
参考文档:
http://hi.baidu.com/enovo/blog/item/eb5c57fb0157f60a6d22eb9f.html
http://www.neatstudio.com/show-1757-1.shtml
http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#build-win