Archive for 2008 年 3 月 27 日

如何使执行scp命令时不需要输入用户密码

0

首先制作密码匙∶
ssh-keygen -t rsa 按三次 Return 键
scp ~/.ssh/ida_dsa.pub username@somewhere.com:~/.ssh/authorized_keys2

$ssh-keygen -t rsa
$Generating public/private rsa key pair.
$Enter file in which to save the key (/root/.ssh/id_rsa): ←直接回车
$Enter passphrase (empty for no passphrase): ←直接回车
$Enter same passphrase again: ←直接回车
$Your identification has been saved in /root/.ssh/id_rsa.
$Your public key has been saved in /root/.ssh/id_rsa.pub.
$The key fingerprint is:
$49:9c:8a:8f:bc:19:5e:8c:c0:10:d3:15:60:a3:32:1c root@Client

(更多…)

zlib安装

0

在编译软件./configure时得到错误反馈
checking zlib.h usability… no
checking zlib.h presence… no
checking for zlib.h… no

zlib软件包所包含的库经常被一些软件的压缩或解压缩函数用到,所以如果编译软件时需要Zlib则说明这个软件正好含有压缩或解压缩函数,我们需要安装zlib软件包。

先到zlib官方网站:http://www.zlib.net 上下载源码来安装zlib软件包。

目前最新版本zlib是zlib1.2.3,安装开始;
wget http://www.zlib.net/zlib-1.2.3.tar.gz
tar -xvzf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure
make
sudo make install

这就完成了zlib1.2.3的安装,由于安装zlib1.2.3需要编译,所以最基本的编译器是要安装好的。

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

0

使用SSH登录另外一台机器,
#ssh 192.168.1.105

得到如下输出
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
a5:1c:99:1f:fa:d7:1e:76:8b:0a:67:eb:4f:90:24:7a.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 192.168.1.105 has changed and you have requested strict checking.
Host key verification failed.

搜索得到如下解决:
(更多…)

脑残体和脑残

0

定义
脑残体又称为“火星文”,主要活跃于90后网民当中。这个概念很难定义,虽然它活跃于网络上,但很难说这是一种网络语言,因为脑残体与自创词汇无关,仅仅是对汉字的一种扭曲的书写形式。它一般表现为在一个词或一句话甚至一段话的文字中,大量使用字形与原文部分相似的别字的行为。这些别字的来源五花八门,大多出自繁体汉字、日文汉字和生僻字(所谓的怪字、乱码字),另外也有部分简体汉字,甚至还有日文假名、汉语拼音字母等,有时还夹杂一大堆杂乱的符号。
例:莓兲想埝祢巳宬儰⒈种漝惯(每天想念你已成为一种习惯)
上面这句话就是脑残体,而括号里是它的原意。

脑残体的原理

在说明脑残体之前,首先看一下这段很有意思的英文:
Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn’t mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a total mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Amzanig! (还真的看得懂哦…)
将同样的原理套用到汉字上,可以看出人脑在解读一段话的时候,是整体分析的,句子中出现错别字也会联系上下文自动修正,并不影响理解。
例如这句用脑残体写的话:“皁巳绝朢旳僾凊,bú淔淂畱恋”,虽然整句话只有两个字是对的,但是用不了一两秒,只要把整句话看完,大脑会自动组合出最匹配这些字形或字音并且带有语义的句子,然后明白过来这句话要表达的意思是“早已绝望的爱情,不值得留恋”。所以,尽管脑残体由错别字、异体字组成,但一般用脑残体写出来的短句子几乎是个认字的中国人都能看懂其本意,但如果一个字一个字去认明白,反而会糊涂。
(更多…)

Go to Top