在 Windows 上安装 VNC, SSH, Rsync 服务器

这篇文章记录在 Windows 7 家庭普通版上安装一些软件,我可以从其它电脑上访问 Windows。分别是 UltraVNC 用于远程访问 Windows 桌面(在 Windows 家庭普通版上没有远程桌面服务),Copssh 用于通过 SSH 访问 Windows,cwRsync 用于增量备份 Windows 文件。

UltrVNC:
http://www.uvnc.com/

当你不同时在本地使用时你可以远程使用 Windows 桌面。我设置它通过防火墙,但是失败了。所以使用防火墙高级设置为 UltrVNC 开启一个本地端口。另请参见:Open a Port in Windows 7’s Firewall: http://maximumpcguides.com/windows-7/open-a-port-in-windows-7s-firewall/

Copssh and cwRsync:
https://www.itefix.no/i2/freesoftware

这两个服务器将以一个新建或已有的 administrator 帐户运行。

使用密码访问运行在 Windows 上的 cwRsync 服务器有一些技巧。服务端的 "rsyncd.conf" 需要设置 "auth users", "serets file" 并保持 "strict modes = true"(默认值),服务端的 "secrets file" 和客户端的 "password-file" 必须只能被运行 cwRsync 服务器的用户可读。在 Windows 下,我必须以"acl"选项(Windows 的 acl 需要文件系统支持,NTFS 可以,Linux 客户端需要"chmod 0600 "")挂载包含这两个文件的文件夹。并且,我想,最好是删除其他用户对这两个文件的所有权限。

cwRsync 服务器配置示例:

********************************************************
/rsyncd.conf

uid = nobody
gid = nobody
use chroot = false
hosts allow = *
transfer logging = yes
log file = rsyncd.log

[test]
path = /cygdrive/d/test
read only = true
auth users = testor
secrets file = /etc/rsync_scrt/rsyncd.scrt
strict modes = true

********************************************************

/etc/rsync_scrt/rsyncd.scrt

testor:123456

********************************************************

以 "acl" 选项挂载文件夹:
添加到: /etc/fstab

C:/Program\040Files\040(x86)/ICW/etc/rsync_scrt /etc/rsync_scrt ntfs override,binary,acl 0 0

********************************************************

访问 cwRsync 服务器命令行示例:

rsync -avz --progress testor@192.168.1.2::test/ ~/test/ --password-file=/etc/rsync_scrt/rsyncd.pass

********************************************************

/etc/rsync_scrt/rsyncd.pass

123456

********************************************************

另请参见:
How to Get Pro Features in Windows Home Versions with Third Party Tools: http://www.howtogeek.com/124260/

发表评论

电子邮件地址不会被公开。 必填项已用*标注