rsyncd.conf 目录名含空格问题

发布于: 2013年09月26日

Server 端: Windows XP

Server 端版本:cwRsync 4.0.5

测试Client: CentOS 6.4 rsync 3.0.6

问题:

当Server端共享目录存在空格时,同步时可能出现下列错误:

@ERROR: chdir failed

rsync error: error starting client-server protocol ( code 5) at main.c(1503)

我尝试的以下绝对不可行方案如下,请勿重复尝试。

假设共享目录:c:\Program Files\test

rsyncd.conf 代码错误示范1:

[TEST]
path = “/cygdrive/c/Program Files/test”
read only = true
transfer logging = yes

rsyncd.conf 代码错误示范2:

[TEST]
path = “/cygdrive/c/Program\ Files/test”
read only = true
transfer logging = yes

rsyncd.conf 代码错误示范3:

[TEST]
path = ‘/cygdrive/c/Program Files/test’
read only = true
transfer logging = yes

rsyncd.conf 代码错误示范4:

[TEST]
path = /cygdrive/c/Program\ Files/test
read only = true
transfer logging = yes

可能可行的方案:

rsyncd.conf 可能可行的方案:

[TEST]
path = /cygdrive/c/”Program Files”/test
read only = true
transfer logging = yes

上面的方案我个人测试未通过,但网上有人测试通过。 相关网址:http://stackoverflow.com/questions/6993355/cwrsync-failing-due-to-spaces-in-directory-names

rsyncd.conf 我测试有条件通过,但你可能不行的方案:

[TEST]
path = /cygdrive/c/Program Files/test
read only = true
transfer logging = yes

是的,不要怀疑你自己的眼睛,什么都不加。我这边可以同步,但不会完成同步,不知道是否是有其他原因。

Google了一圈,这个问题似乎没有办法很好的解决。期待rsync的开发者改进了。

 

 

E17 is not ready

发布于: 2013年06月20日

去年在LT上看到了E17正式版的新闻。今年早些时候在Ubuntu上试用了一下,感觉良好,就是不太稳定。长期对Ubuntu稳定的怀疑,让我试图在Debian上进行E17的尝试。结果让我失望:

1. debe17.com 大多数内容最后一次更新在2011年

2. http://www.debianx.org/e17.html 页面上的内容也比较陈旧,easy_e17.sh项目已经被easy_efl.sh取代。

3. easy_efl.sh也是跟不上时代,因为e17的svn目录结构都经常在变。

4.svn结构变化之频繁,以至于自己网站上官方文档的指导文件都无法运行。下面的命令大多无法正常获得。

 $ svn co http://svn.enlightenment.org/svn/e/trunk/eina eina-svn
 $ svn co http://svn.enlightenment.org/svn/e/trunk/eet eet-svn
 $ svn co http://svn.enlightenment.org/svn/e/trunk/evas evas-svn
 $ svn co http://svn.enlightenment.org/svn/e/trunk/evas_generic_loaders evas_generic_loaders-svn
 $ svn co http://svn.enlightenment.org/svn/e/trunk/ecore ecore-svn
 $ svn co http://svn.enlightenment.org/svn/e/trunk/efreet efreet-svn
 $ svn co http://svn.enlightenment.org/svn/e/trunk/embryo embryo-svn
 $ svn co http://svn.enlightenment.org/svn/e/trunk/edje edje-svn
 $ svn co http://svn.enlightenment.org/svn/e/trunk/e_dbus e_dbus-svn
 $ svn co http://svn.enlightenment.org/svn/e/trunk/eio eio-svn

5. 直到我在http://www.debianuserforums.org一个页面上看到了这段话:

INSTALL NOTES:
—————————————————————————–
The most incredible and really unbelievable dream has become true:
You compiled e17 successfully!

经历了若干天的探索,都无法开始的我,只能对这段话Totally agree!

No! E17 is not ready!

LFS 105days

发布于: 2013年06月17日

今年1月底完成了一份Linux From Scratch, 可用,也堪用。

用fcrontab跑一些定期执行的东西,从局域网抓取一些东西。跑得还挺欢,系统也挺稳定的。

5月31日,办公室预计停电1小时。关掉了所有大的进程,希望notebook的老旧电池能够坚持一小时。结果预计的停电时间延长了,同时老旧电池也没有坚持到1小时。幸好我提前拍下了下面这个画面,LFS uptime: 105days 14 hrs 10 mins。

喜欢折腾的Linuxer注定是三心二意的,是什么原因促使我没有再次启动它?是E17!

我的主本本安装了Ubuntu,ppa源安装的E17系统很是惊艳,但却不太稳定。是Ubuntu?还是PPA?不得而知。在LFS上编译一个X环境失败,让我有点失望。于是让他在连续运行105天之后离开我也算是功成名就。

Goodbye, my LFS  after 105 days!

LFS 105days

Linux 中profile 和bashrc的执行顺序

发布于: 2013年01月29日

一般来说,login Linux系统时会涉及到以下几个文件的执行:

/etc/profile

~/.profile

~/.bahrc

执行顺序是这样的:

1. 首选系统寻找/etc/profile,执行里面的shell命令,可能在该文件里面会引用执行/etc/bash.bashrc文件

2. 执行完/etc/profile后,会寻找并执行用户目录下的profle文件~/.profile

3. 用户目录下的bashrc文件~/.bashrc不会自动执行,而是在~/.profile里面引用执行。如果用户目录下没有~/.profile文件,登陆时~/.bashrc文件时无效的。如果一定要执行,可以手动以下面的命令进行:

source  ~/.bashrc

以上仅个人摸索经验,如有不对,恳请指正。

 

Congratulations!! Linux From Scratch-7.2

发布于: 2013年01月25日

本以为要一个月时间的完成,经历无数坎坷的LFS-7.2,意想不到地只花了两周及三个难关就完成了。不知道算是高估了LFS的难度?还是低估了自己的Linux和英语水平?:-D

LFS启动成功兴奋之余,仍然发现了一个问题:为何不用initrd也可启动?可能跟我编译了一个6M以上的巨大内核有关吧?但是LFS Book甚至没有提及initrd,为何?

下一步是BLFS还是Gentoo,我还没有想好。不过还是先给LFS编译一个SSH吧,netbook键盘太难受了。

贴上我的实际完成时间线:

2013.1.18 16:51 6.29. Bison-2.6.2 Installation of Bison
2013.1.18 17:14 6.30. Procps-3.2.8 Installation of Procps
2013.1.18 17:22 6.31. Grep-2.14 Installation of Grep
2013.1.18 17:24 6.32. Readline-6.2 Installation of Readline
2013.1.21 9:56 6.33. Bash-4.2 Installation of Bash
2013.1.21 10:20 6.34. Libtool-2.4.2 Installation of Libtool
2013.1.21 11:05 6.35. GDBM-1.10 Installation of GDBM
2013.1.21 11:13 6.36. Inetutils-1.9.1 Installation of Inetutils
2013.1.21 11:21 6.37. Perl-5.16.1 Installation of Perl
2013.1.21 12:30 6.38. Autoconf-2.69 Installation of Auutoconf
2013.1.21 13:08 6.39. Automake-1.12.3 Installation of Automake
2013.1.21 16:26 6.40. Diffutils-3.2 Installation of Diffutils
2013.1.22 8:06 6.41. Gawk-4.0.1 Installation of Gawk
2013.1.22 8:22 6.42. Findutils-4.4.2 Installation of findutils
2013.1.22 9:04 6.43. Flex-2.5.37 Installation of Flex
2013.1.22 9:13 6.44. Gettext-0.18.1.1 Installation of Gettext
2013.1.22 10:36 6.45. Groff-1.21 Installation of Groff
2013.1.22 10:46 6.46. Xz-5.04 Installation Xz
2013.1.22 10:52 6.47. GURB-2.00 Installation of GRUB
2013.1.22 11:00 6.48. Less-444 Installation of Less
2013.1.22 11:02 6.49. Gzip-1.5 Installation of Gzip
2013.1.22 11:08 6.50. IPRoute2-3.5.1 Installation of IPRoute2
2013.1.22 12:02 6.51. Kbd-1.15.3 Installation of Kbd
2013.1.22 12:08 6.52. Kmod-9 Installation of Kmod
2013.1.22 12:13 6.53. Libpipeline-1.2.1 Installation of Libpipeline
2013.1.22 12:17 6.54. Make-3.82 Installation of Make
2013.1.22 12:30 6.55. Man-DB-2.6.2 Installation of Man-DB
2013.1.22 12:34 6.56. Patch-2.6.1 Installation of Patch
2013.1.22 12:37 6.57. Sysklogd-1.5 Installation of Sysklogd
2013.1.22 12:39 6.58. Sysvinit-2.88dsf Installation of Sysvinit
2013.1.22 12:41 6.59. Tar-1.26 Installation of Tar
2013.1.22 12:58 6.60. Texinfo-4.13a Installation of Texinfo
2013.1.22 13:01 6.61. Udev-188 (Extracted from systemd-188) Installation of Udev
2013.1.22 13:12 6.62. Vim-7.3 Installation of Vim
2013.1.22 13:47 Chapter 7. Setting Up System Bootscripts
2013.1.22 16:58 Done 7.3. Customizing the /etc/hosts File. Skip 7.4 and 7.5
2013.1.22 17:03 7.6. LFS-Bootscripts-20120901 Installation of LFS-Bootscripts
2013.1.22 17:14 Done 7.9. Configuring the setclock Script
2013.1.24 10:40 Skip 7.10. Configuring the Linux Console
2013.1.24 10:41 Skip 7.11. Configuring the sysklogd Script and 7.12. The rc.site File
2013.1.24 10:49 Done 7.13. The Bash Shell Startup Files
2013.1.24 10:50 Done 7.14. Creating the /etc/inputrc File
2013.1.24 10:51 8.2. Creating the /etc/fstab File
2013.1.24 11:00 Starting 8.3. Linux-3.5.2 Installation of the kernel
2013.1.24 12:48 Make Kernel
2013.1.24 14:59 8.4. Using GRUB to Set Up the Boot Process
2013.1.24 15:31 Chapter 9. The End
2013.1.24 15:31 First Time Reboot! Will good luck be with me!!
2013.1.24 15:40 Congratulations!!

浙ICP备18056264号-1