Star life

It’s my life

Download the package:
http://sshwindows.sourceforge.net/download/

生成密钥

在Frontend机器上生成密钥:
# cd ~/.ssh/
# ssh-keygen
# ls -l
total 32
-rw——- 1 root root 1671 Jul 31 11:27 id_rsa
-rw——- 1 root root 395 Jul 31 11:27 id_rsa.pub
-rw-r–r– 1 root root 10323 Jul 31 16:07 known_hosts
Windows:
C:\Documents and Settings\hz03629\.ssh\ssh-keygen -t ssh-rsa

复制密钥

将公共密钥复制到需要同步的服务器上:
# scp id_rsa.pub root@ondosrv:/root/.ssh/authorized_keys2

测试ssh

在Frontend机器上测试:
# ssh root@ondosrv
注释:应该不需要输入密码。

编写同步程序

在Frontend机器上编写同步程序:
# cd /backup
# vi sync.sh
# chmod 700 sync.sh
—————————-
Linux:
rsync -avlR –delete -e […]

RealVNC Installation Guide for Linux

Reproduced steps:
1. Download RealVNC from its homepage;
http://www.realvnc.com/vnc/features.html
Select “VNC Free Edition for Linux (x86)” to download;
e.g. vnc-4_1_2-x86_linux.rpm
2. Upload the package to the Linux host;
3. Install the package;
e.g.
# rpm -i vnc-4_1_2-x86_linux.rpm
file /usr/bin/Xvnc from install of vnc-4.1.2-1 conflicts with file from package vnc-server-4.1.1-36
file /usr/bin/vncconfig from install of vnc-4.1.2-1 conflicts with file from package vnc-server-4.1.1-36
file /usr/bin/vncpasswd from install of […]

Python、Lua和Ruby——脚本大P.K.
译者按:Python、 lua和ruby在C/C++是日渐式微的情况下,在java/.net的围歼中努力抗争的三个当红小生。在Tom Gutschmidt的著作《Game Programmng with Python, Lua and Ruby》一书中,介绍了三种语言在游戏中的应用,其中尤为了不起的是在书中最后一章中比较了三种脚本,作者没有说孰优孰劣,但是读者你认为呢?欢迎留言讨论。
本文最初发表于恋花蝶的博客http://blog.csdn.net/lanphaday,欢迎转载,但敬请保持全文完整。
Python versus Lua Versus Ruby
Python、Lua和Ruby——脚本大P.K.
Tom Gutschmidt 著
赖勇浩(http://blog.csdn.net/lanphaday) 译
So which of the three languages is the best to use on your project? That depends a great deal on what you want to accomplish. To wrap up the book, I’ve outlined some of the pros and cons of […]

« Previous Entries