月度归档:2015年01月

Linux iSCSI安装配置手册

介绍

本系列描述了如何在不同版本的Linux环境下安装配置iSCSI initiator,按照iSCSI要求对主机重命名,以及如何进行target和LUN的相关操作,discovery,log in等。作为系列中的第一篇,阐述了CentOS,Ubuntu,RHEL, SLES版本Linux如何安装iSCSI initiator。

继续阅读

rsyncd setup on Mac OsX

To set up an rsync server on a Mac can be quite tricky.

That’s my way to do that!

It is possible to simply launch rsync daemon by typing:

rsync –daemon

This will start a rsync daemon running on TCP port 873, but without the appropriate rsyncd.conf all the configuration has to be done by command line arguments.
In addition, if the server needs to be rebooted, the process will not restart automatically on boot.

On Mac OsX inetd is no longer an option since processes use launchd and launchdctl to load XML process files. 继续阅读

rsync server daemon on Mac OS X with launchctl

There are many web pages describing how to enable the rsync daemon on Mac OS X using launchd/launchctl mechanism. But I had to use a different (and simpler) plist file in LaunchDaemons to make it work across reboots on Lion (10.7.4).

(I started by following this guide , and this very similar one. And I also read this and this. In the end, what helped me getting the plist file right was this thread. Particularly this post: “For one you have both a Program and a ProgramArguments key, when you should have only one or the other (you use Program if there is just one element to the command, or ProgramArguments if there are multiple.” And this one.)
继续阅读