<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
 <channel>
  <title>龙卷风的博客网</title>
  <link>http://joecen.yourblog.org</link>
  <description><![CDATA[]]></description>
  <generator> by blogbus.com </generator>
  <lastBuildDate>Thu, 01 Jan 1970 07:00:00 +0700</lastBuildDate>
  <image>
									<url>http://public.blogbus.com/images/head.gif</url>
									<title>龙卷风的博客网</title>
									<link>http://joecen.yourblog.org</link>
								</image>  <item>
   <title>vnc远程桌面控制的安装与调试</title>
   <description><![CDATA[sever端<br />
<br />
一、linux系统<br />
我下载的是VNC和VNC-server两个rpm包，也有tar包下载，但为了方便还是用了rpm包。<br />
安装完两个包后：<br />
1、运行“vncpasswd”命令设置VNC的登陆密码；<br />
2、运行“vncserver”命令正式将一个xdm作为VNC服务器，这时会出现“New "x" desktop is <br />
<br />
hostname"1”之类的话，其中最后的“1”表示这是第一个VNC的图形界面，其listen端口为3901。如果再<br />
<br />
运行一次“vncserver”命令，则会出现“New "x" desktop is hostname"2"”，最后的2表示这是第二个<br />
<br />
图形界面，其listen端口为3902。如此类推，再运行再增加......<br />
3、server端的设置就是这么简单，但如果你不想用xdm而想用更漂亮的gdm或kdm的话，就要作一些修改了<br />
<br />
：编辑~/.vnc/xstartup文件，该文件在第一次运行“vncserver”命令的时候自动产生。将xstartup文件<br />
<br />
中的行用“#”全部注释掉（主要是要将“twm”行注释掉），在最后加上startkde或gnome-session即可。<br />
<br />
4、可以在/usr/local/bin/vncserver中更改分辨率和色度。（也可能是/usr/bin/vncserver中，可用“<br />
<br />
whick vncserver”看看哪个才是你真正在用的“vncserver”。<br />
<br />
二、windows系统<br />
windows版本的VNC更简单，下载VNC的exe文件，双击安装，安装过程和其它windows的软件没有什么不同<br />
<br />
，一路next。最后选择是否产生快捷方式和开机自动运行等即可。<br />
在桌面双击VNC SERVER图标，填入密码，按确定即可。其默认的listen端口是3900。<br />
<br />
<br />
cleint端<br />
<br />
一般来说，我们会使用windows作客户端（因为linux的xwindow其实已经是一个能共享桌面的服务器）。<br />
一、windows：双击桌面的VNC VEIWER图标。<br />
   linux：在Xwindow中运行vnccleint命令。<br />
<br />
二、以下对windows和linux来说都是一样的：<br />
在弹出的对话框中填入server的ip，<br />
1、server端是windows的话，直接填IP即可；<br />
2、server端是linux的话，必须填上“IP:数字”，其中的“数字”是第几个图形界面。（在上面linux <br />
<br />
server端的第二点有谈过这问题）。<br />
比如：192.168.0.99:1或192.168.0.99:2<br />
<br />
3、输入在server端设置的密码即可。<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/192221.html">使用串口管理linux</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/188655.html">initrd镜像文件的作用与制作</a> 2004-06-01</div><div><a href="http://joecen.yourblog.org/logs/178165.html">为什么会出现INIT: Id "1" respawning too fast: disabled for 5 minutes</a> 2004-05-21</div><div><a href="http://joecen.yourblog.org/logs/167178.html">关于子网掩码</a> 2004-05-03</div><div><a href="http://joecen.yourblog.org/logs/161128.html">Oracle8i安装手扎</a> 2004-04-27</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F218563.html&title=vnc%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2%E6%8E%A7%E5%88%B6%E7%9A%84%E5%AE%89%E8%A3%85%E4%B8%8E%E8%B0%83%E8%AF%95">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/218563.html</link>
   <author>龙卷风</author>
   <pubDate>Thu, 08 Jul 2004 03:40:13 +0800</pubDate>
  </item>
  <item>
   <title>纳闷</title>
   <description><![CDATA[今天是纳闷的一天。<br />
早上考试的时候忘记了填答题卡，最后填上去的只有一半。看来只有等明年再考英文了。[face18]<br />
由于上个星期到了河源和厦门，所以晚上连到公司想把上个星期没有写完的脚本写完。谁知道不知写错了什么地方，搞到整个系统的文件和设备文件都被我删掉！一个多星期的努力就此化为乌有了。[face15]<br />
<br />
<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/185936.html">忙死了！</a> 2004-05-30</div><div><a href="http://joecen.yourblog.org/logs/179815.html">一个很准的心理测试</a> 2004-05-23</div><div><a href="http://joecen.yourblog.org/logs/178169.html">学习计划</a> 2004-05-21</div><div><a href="http://joecen.yourblog.org/logs/175279.html">滑稽的面试</a> 2004-05-17</div><div><a href="http://joecen.yourblog.org/logs/167122.html">五一站火车记</a> 2004-05-03</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F199282.html&title=%E7%BA%B3%E9%97%B7">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/199282.html</link>
   <author>龙卷风</author>
   <pubDate>Sat, 12 Jun 2004 11:07:30 +0800</pubDate>
  </item>
  <item>
   <title>通过adsl拨号上网并作网关</title>
   <description><![CDATA[一、拨号设置。<br />
<br />
1、运行adsl-setup输入你的拨号信息和dns等。<br />
<br />
2、将默认网关改为无。<br />
即将/etc/sysconfig/network中的gatewat项清空。<br />
<br />
3、保持adsl的连接，不然会隔几十秒就会自动停掉：<br />
vi /etc/sysconfig/network-scripts/ifcfg-ppp0 <br />
把PPPOE-TIMEOUT=*和CONNECT-TIMEOUT=*的值都改成0。<br />
<br />
二、拨号<br />
拨号有两个命令可以实现<br />
1、adsl-start 如果设置了多个adsl账号，可以在后面加上其名字。<br />
如adsl-start ifcfg-ppp0<br />
<br />
2、ifup ppp0<br />
个人感觉第二种的拨号速度快点。<br />
<br />
三、防火墙设置<br />
主要是两个地方<br />
1、开放ip转发：<br />
echo 1 &gt; /proc/sys/net/ipv4/ip_forward<br />
<br />
2、开放nat：<br />
iptables -t nat -A POSTROUTING -s 192.168.0.0/255.255.255.0 -j MASQUERADE<br />
<br />
四、检查配置<br />
1、使用ifup ppp0拨号，然后ifconfig看看是否有ppp0。<br />
<br />
2、route或netstat -r看看默认路由是否有错，ping dns server看看能否出去外网。<br />
<br />
3、在client端设置默认网关为eth0或eth1的ip。ping dns server看看能否出去外网。<br />
<br />
如果上述一切正常即可！<br />
[face01]<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/192221.html">使用串口管理linux</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/178774.html">在windows下安装和使用openssh</a> 2004-05-22</div><div><a href="http://joecen.yourblog.org/logs/175060.html">iptables下开放ftp连接</a> 2004-05-17</div><div><a href="http://joecen.yourblog.org/logs/168593.html">iptables学习手札(一)简介与基础</a> 2004-05-05</div><div><a href="http://joecen.yourblog.org/logs/161207.html">oracle9i安装for linux</a> 2004-04-27</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F193269.html&title=%E9%80%9A%E8%BF%87adsl%E6%8B%A8%E5%8F%B7%E4%B8%8A%E7%BD%91%E5%B9%B6%E4%BD%9C%E7%BD%91%E5%85%B3">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/193269.html</link>
   <author>龙卷风</author>
   <pubDate>Sun, 06 Jun 2004 08:11:29 +0800</pubDate>
  </item>
  <item>
   <title>在linux下安装oracle9i－－关于在redhat9下安装的补充</title>
   <description><![CDATA[今天在帮某事业单位在redhat9中安装oracle9i，发现原来与在redhat7.3中安装有所不同，折腾了一整天终于装好。<br />
<br />
在redhat9中安装oracle9i有几个地方要注意：<br />
<br />
1、默认下使用oracle用户不能打开oracle的安装界面。即是说运行“runInstall”时会有“java。。。。”之类的错误出现。<br />
这个错误搞了我很久，一直想不明白。后来用oracle用户运行xhost命令，发现出现“connect :0.0 refuse”等错误信息才明白是xhost不能连接的关系。<br />
解决方法：<br />
使用root用户，运行“xhost +主机名”（注意：要有加号），再su - oracle后运行“runInstall”即可弹出安装界面。<br />
<br />
2、出现"Error in invoking target install of make file /opt/oracle/product/9.2.0/network/lib/ins_oemagent.mk"错误。<br />
<br />
这是由于glibc库不兼容。<br />
使用<br />
$ rpm -q glibc-2.3.2-5 glibc-common-2.3.2-5 glibc-devel-2.3.2-5检测是否安装的glibc。<br />
返回<br />
 package glibc-2.3.2-5 is not installed<br />
 package glibc-common-2.3.2-5 is not installed<br />
 package glibc-devel-2.3.2-5 is not installed<br />
表明没有安装。<br />
一般redhat9安装的是2.3.2-11.9的版本，我们要先把他们卸载了：<br />
# rpm -e glibc-debug glibc-utils nptl-devel<br />
<br />
然后安装2.3.2-5的版本：<br />
# rpm -Uvh --oldpackage glibc-2.3.2-5.i686.rpm glibc-common-2.3.2-5.i386.rpm glibc-devel-2.3.2-5.i386.rpm<br />
<br />
2.3.2-5的版本可以在此下载：<br />
glibc-2.3.2-5版本<br />
<br />
这样就可以解决该错误，但记得装完oracle后把2.3.2-11.9的版本再装回来。[face21]<br />
<br />
其它的安装过程可以参照我的另一篇安装文档：<br />
oracle 9i 安装for linux[face10]<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/192221.html">使用串口管理linux</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/192211.html">将令开机很慢的finding module denpendeneies停掉！</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/188655.html">initrd镜像文件的作用与制作</a> 2004-06-01</div><div><a href="http://joecen.yourblog.org/logs/175060.html">iptables下开放ftp连接</a> 2004-05-17</div><div><a href="http://joecen.yourblog.org/logs/168593.html">iptables学习手札(一)简介与基础</a> 2004-05-05</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F192576.html&title=%E5%9C%A8linux%E4%B8%8B%E5%AE%89%E8%A3%85oracle9i%EF%BC%8D%EF%BC%8D%E5%85%B3%E4%BA%8E%E5%9C%A8redhat9%E4%B8%8B%E5%AE%89%E8%A3%85%E7%9A%84%E8%A1%A5%E5%85%85">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/192576.html</link>
   <author>龙卷风</author>
   <pubDate>Sat, 05 Jun 2004 11:16:21 +0800</pubDate>
  </item>
  <item>
   <title>使用串口管理linux</title>
   <description><![CDATA[家里有一台主机打算用来作网关，但又不想为其配显示器，使用ssh又有很大局限，于是便想到了用serial口控制该网关。<br />
使用串口管理比起ssh来说有几个好处：<br />
第一，不需ip，即网络断掉或服务停了也可以进行管理。<br />
第二，可以显示linux开机时的信息，让我们可以知道能力出了错。<br />
第三，一个串口只能登陆一个用户，可以在无干扰下进行工作。<br />
<br />
当然，我并不是说ssh不好，只不过对于一台就在身旁的机器来说，使用串口是方便一点的！<br />
<br />
好了，闲话少说：<br />
第一步：让串口可以登陆。<br />
在/etc/inittab中的<br />
"# Run gettys in standard runlevels"项加上<br />
"co:2345:respawn:/sbin/agetty ttyS0 9600 vt100"一行。<br />
目的是能开放一个ttyS0，让其能登陆本机。<br />
<br />
第二步：让root可以在串口登陆。<br />
在/etc/securetty的末尾加上"ttyS0"。<br />
这样就可以让root通过串口登陆。<br />
<br />
第三步：让串口显示开机信息。<br />
如果是用lilo的话，在/etc/lilo.conf中加入:<br />
serial=1,9600n8<br />
append="console=ttyS0,9600"<br />
两句。这样，在开机的时候，开机的信息就会定向到串口中来。<br />
如果是用grub，那我这里有一个示例：<br />
<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/218563.html">vnc远程桌面控制的安装与调试</a> 2004-07-08</div><div><a href="http://joecen.yourblog.org/logs/193269.html">通过adsl拨号上网并作网关</a> 2004-06-06</div><div><a href="http://joecen.yourblog.org/logs/192211.html">将令开机很慢的finding module denpendeneies停掉！</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/178774.html">在windows下安装和使用openssh</a> 2004-05-22</div><div><a href="http://joecen.yourblog.org/logs/175060.html">iptables下开放ftp连接</a> 2004-05-17</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F192221.html&title=%E4%BD%BF%E7%94%A8%E4%B8%B2%E5%8F%A3%E7%AE%A1%E7%90%86linux">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/192221.html</link>
   <author>龙卷风</author>
   <pubDate>Sat, 05 Jun 2004 03:17:15 +0800</pubDate>
  </item>
  <item>
   <title>将令开机很慢的finding module denpendeneies停掉！</title>
   <description><![CDATA[<br />
1、finding module denpendeneies<br />
<br />
 就是检测模块依赖关系之意，一般在第一次运行系统中有用。但在开机的时候发现就是这个检测占用的时间最多，为了让开机速度更快，我们可以将其停用：<br />
<br />
在命令窗口输入以下命令： <br />
代码: <br />
<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/218563.html">vnc远程桌面控制的安装与调试</a> 2004-07-08</div><div><a href="http://joecen.yourblog.org/logs/188655.html">initrd镜像文件的作用与制作</a> 2004-06-01</div><div><a href="http://joecen.yourblog.org/logs/168593.html">iptables学习手札(一)简介与基础</a> 2004-05-05</div><div><a href="http://joecen.yourblog.org/logs/167178.html">关于子网掩码</a> 2004-05-03</div><div><a href="http://joecen.yourblog.org/logs/161207.html">oracle9i安装for linux</a> 2004-04-27</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F192211.html&title=%E5%B0%86%E4%BB%A4%E5%BC%80%E6%9C%BA%E5%BE%88%E6%85%A2%E7%9A%84finding+module+denpendeneies%E5%81%9C%E6%8E%89%EF%BC%81">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/192211.html</link>
   <author>龙卷风</author>
   <pubDate>Sat, 05 Jun 2004 02:55:32 +0800</pubDate>
  </item>
  <item>
   <title>initrd镜像文件的作用与制作</title>
   <description><![CDATA[我们在安装新内核的时候，通常都会编辑lilo.conf 和grub.conf 文件。里面有一段“initrd=/boot/initrd-***.img”（其中的***表示内核的版本号）的我们都很少会注意到，有时候还会发现这一行不要也可以正常开机。那这个initrd***.img究竟是用来干什么的呢?<br />
<br />
其实initrd***.img是一个镜像文件，类似ramdisk，把一段程序打包到img里，然后在开机的时候在内存里开辟一段区域，一般是2m，释放到那里运行，都是一些初始化的程序，比如sisc_mod、ext3、sd_mod等模块和insmod、nash等命令。不同内核，初始化的img可以相同，也可以不同，如果没有，可以在grub.conf里加上no initrd，它就跳过initrd的检测和执行了，以前好像就没有，后来才有的。      <br />
<br />
它的作用是在没有mount /分区以前，系统要执行一些操作，比如挂载scsi驱动，它就把initrd释放到内存里，作一个虚拟的/，然后执行其根目录下的一个脚本"linuxrc"，运行insmod和nash命令挂装模块。为什么有的时候我们在lilo或grub的配置文件中不加入该行都可以正常开机呢？这是因为我们一般的PC机都没有使用scsi硬盘等需要先加载其驱动的设备，所以就算没有initrd***.img也可以正常开机。但是如果我们要在服务器上为其编译新内核那就一定不要忘记也为其新建一个initrd文件呀！      <br />
<br />
好，下面来看看如何查看initrd***.img里面的内容和如何为你的新内核创建一个新的initrd.img文件。<br />
<br />
查看initrd.img： <br />
initrd***.img虽然后缀是“img”，但其实它是一个gz格式的文件，我们可以先把它解压，然后载挂装到目录下：<br />
<br />
1、cp initrd.img initrd.gz <br />
2、guzip initrd.gz <br />
3、mount -o loop initrd /mnt/floppy<br />
<br />
进入/mnt/floppy目录，我们就可以看到initrd***.img文件的庐山真面目了。<br />
<br />
<br />
<br />
制作initrd文件<br />
<br />
当我们编译了一个新的内核，也不要忘了为我们的scsi设备做一个新的initrd镜像：<br />
<br />
语法：<br />
mkinitrd 文件名	内核的目录名<br />
<br />
示例：	<br />
mkinitrd initrd-2.4.19.img 2.4.19   <br />
<br />
initrd-2.4.19.img文件是自己任意取的，但最好对应自己的内核版本号。<br />
2.4.19是在/lib/modules中的目录名，对应内核的版本。<br />
<br />
当然，我们也可以在挂装了initrd***.img文件后直接添加模块到/lib目录中，然后修改linuxrc脚本让其开机进行挂装。但必须具备一定的shell脚本的能力才行。<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/192221.html">使用串口管理linux</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/192211.html">将令开机很慢的finding module denpendeneies停掉！</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/178774.html">在windows下安装和使用openssh</a> 2004-05-22</div><div><a href="http://joecen.yourblog.org/logs/172860.html">dd 命令的用法</a> 2004-05-09</div><div><a href="http://joecen.yourblog.org/logs/167178.html">关于子网掩码</a> 2004-05-03</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F188655.html&title=initrd%E9%95%9C%E5%83%8F%E6%96%87%E4%BB%B6%E7%9A%84%E4%BD%9C%E7%94%A8%E4%B8%8E%E5%88%B6%E4%BD%9C">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/188655.html</link>
   <author>龙卷风</author>
   <pubDate>Tue, 01 Jun 2004 06:53:43 +0800</pubDate>
  </item>
  <item>
   <title>忙死了！</title>
   <description><![CDATA[几乎天天都要上课，连上网都没有时间了。现在除了在公司整天都挂在网上，在家里都没有时间开电脑。下两个月都要考试，现在要准备了。两门课要做设计，一个是网页的设计，一个linux下的C编程。网页的比较简单，以前我也做过，但我的C是最差的了，所以今天买了本《unix系统编程》看看。<br />
<br />
希望能顺利熬过这两个月！[face10]<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/178169.html">学习计划</a> 2004-05-21</div><div><a href="http://joecen.yourblog.org/logs/175279.html">滑稽的面试</a> 2004-05-17</div><div><a href="http://joecen.yourblog.org/logs/167122.html">五一站火车记</a> 2004-05-03</div><div><a href="http://joecen.yourblog.org/logs/161651.html">如何成为优秀工作者 －Robert E . Kelley</a> 2004-04-27</div><div><a href="http://joecen.yourblog.org/logs/161647.html">保护环境随手可做的100件小事</a> 2004-04-27</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F185936.html&title=%E5%BF%99%E6%AD%BB%E4%BA%86%EF%BC%81">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/185936.html</link>
   <author>龙卷风</author>
   <pubDate>Sun, 30 May 2004 01:25:20 +0800</pubDate>
  </item>
  <item>
   <title>一个很准的心理测试</title>
   <description><![CDATA[我试过了，真的是非常准呀！[face01]<br />
<br />
测试：<br />
Hey it is quite accurate!!! Try and see!<br />
嗨，这个测试很准的哦，来试试看。<br />
Take a piece of paper and write down the answers.. The analysis is in the end....<br />
请拿出一张纸一支笔把你的答案写下来，结论就在后面。<br />
Situation:  场景：<br />
You are in a deep deep forest... as you walk on you saw an old hut standing there<br />
你在森林的深处，你向前走，看见前面有一座很旧的小屋。<br />
<br />
(1)	What is the status of the door?    (Opened/closed)<br />
这个小屋的门现在是什么状态？（开着/关着）<br />
(2)	You enter the hut and see a table... What is the shape of the table? <br />
(Round/Oval/Square/Rectangle/Triangle)<br />
你走进屋子里看见一张桌子<br />
这个桌子是什么形状的？（圆形/椭圆形/正方形/长方形/三角形）<br />
(3)	On top of the table there is a vase... in the vase there is water. How much water is it filled up with?<br />
(Full/Half/Empty)<br />
在桌子上有个花瓶，瓶子里有水，有多少水在花瓶里？（满的/一半/空的）<br />
(4)	And what is the vase made of?<br />
[(Glass/porcelain/clay)(metal/plastic/wood)]<br />
这个瓶子是由什么材料制造的？ （玻璃/陶瓷/泥土）（金属/塑料/木头）<br />
(5)	You walk out of the hut... as you carry on your walk in the forest... you see a waterfall from far...<br />
there is water running down...What is the speed of the water?<br />
(Choose a number ranging from 0 to 10)<br />
你走出屋子，继续向森林深处前进，你看见远处有瀑布飞流直下，请问水流的速度是多少？<br />
（你可以从0—10任意选一个）<br />
(6)	Some time after the waterfall... you step on something hard on the ground... as you look down... you see<br />
glistening gold in colour. You bend down and pick it up... it is a keychain chained with keys...<br />
How many key /keys you see hanging on the keychain?   (Choose a number ranging from 1 to 10)<br />
过了一会，你走过瀑布，你站在坚硬的地面上，你看见地上有金光闪烁，你弯腰拾起来，是一个带着钥匙的钥匙链。有多少把钥匙拴在上面，你可以任意选一个数字（从1到10）<br />
(7)	You walk on and on... trying to find your way out...suddenly you see a castle.<br />
What is the condition of the castle?　(Old/new)<br />
你继续向前走，试着找出一条路来，突然你发现眼前有一座城堡。这个城堡是什么样的？<br />
（旧的/新的）<br />
(8)	You enter the castle and saw a pool of murky water with shining jewels floating on it...Will you pick up the jewel?　(YES/NO)<br />
你走进城堡，看见一个游泳池，黑暗的水面上飘浮着很多闪闪发光的宝石，你会捡起这些宝石吗？（是/不）<br />
(9)	Next to the murky pool... there’s another pool... with clear water and money floating on it...<br />
Will you pick the money?　(YES/NO)<br />
在这个黑暗的游泳池旁边还有一座游泳池。清澈的水面上飘浮着很多枚钱币。你会捡起这些钱币吗？（是/不）　<br />
(10)	Walking to the end of the castle there is an exit...you proceed to walk out of the castle. Outside the<br />
exit, there is big garden, you see a box on the ground. What is the size of the box?  (small/medium/big)<br />
你走到城堡的尽头有一个出口，你继续向前走走出了城堡。在城堡外面，你看见一座大花园，你看见地面上有一个箱子。这个箱子是多大尺寸的？（小/中/大）　　　<br />
(11)	What is the material of the box?  (cardboard/paper/wooden/metal)<br />
这个箱子是什么材料做的？ （硬纸板/纸/木头/金属）<br />
(12)	There is a bridge in the garden some distance away from the box, What is the bridge made of?<br />
 (metal/wooden/rattan)<br />
花园里还有一座桥就在离着箱子的不远处。桥是什么材料建造的？（金属/木头/藤条）<br />
(13)	Across the bridge, there is a horse. What is the colour of the horse? (white/grey/brown/black)<br />
走过这座桥，有一匹马。马是什么颜色的？（白色/灰色/褐色/黑色）<br />
(14)	What is the horse doing?  (still and quiet/nibbling grass/running about)<br />
马正在做什么？（安静地站着/吃草/在附近奔跑）<br />
(15)  OH NO!!! There is a tornado coming... some distance from the horse. You have 3 options:<br />
 (i) run and hide in the box?<br />
 (ii) run and hide under the bridge?<br />
 (iii) run to the horse, ride on and gallop away?<br />
哦，不！离马很近的地方突然刮起了一阵龙卷风。你三种选择。<br />
（1） 跑过去藏在箱子里？<br />
（2） 跑过去藏在桥底下？<br />
（3） 跑过去骑马离开？<br />
　　<br />
　　<br />
<br />
　　Here are the interpretations:<br />
　　好了，这就是我们的结论：<br />
(1)	The door:<br />
opened door - you are a person who is willing to share<br />
closed door - you are a person who is keeping things to yourself<br />
门：<br />
门如果是开着的：<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/199282.html">纳闷</a> 2004-06-12</div><div><a href="http://joecen.yourblog.org/logs/172860.html">dd 命令的用法</a> 2004-05-09</div><div><a href="http://joecen.yourblog.org/logs/171037.html">小游珠海荷包岛</a> 2004-05-07</div><div><a href="http://joecen.yourblog.org/logs/167122.html">五一站火车记</a> 2004-05-03</div><div><a href="http://joecen.yourblog.org/logs/161651.html">如何成为优秀工作者 －Robert E . Kelley</a> 2004-04-27</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F179815.html&title=%E4%B8%80%E4%B8%AA%E5%BE%88%E5%87%86%E7%9A%84%E5%BF%83%E7%90%86%E6%B5%8B%E8%AF%95">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/179815.html</link>
   <author>龙卷风</author>
   <pubDate>Sun, 23 May 2004 12:39:54 +0800</pubDate>
  </item>
  <item>
   <title>在windows下安装和使用openssh</title>
   <description><![CDATA[每天都在公司使用putty来运行ssh client连接linux，今天记得好像在windows中也可以安装openssh server，那么就不用再开一个软件，而且还可以使用sftp和scp了。于是决定试试。<br />
<br />
1、下载openssh。<br />
可以在此下载。<br />
 <br />
2、安装。<br />
安装很简单，就像其它windows下的软件一样，双击即可。安装到大半，会有提示框弹出，说“必须要设置../etc/passwd文件才可以正常运作openssh，详情可以参阅readme.txt或quickstart.txt文件。”不用管它，按确定继续完成安装。安装完后可以看到quickstart.txt文件的内容。<br />
<br />
<br />
3、配置。<br />
<br />
     第一、打开一个ms－dos终端，进入openssh/bin目录。（安装完openssh后，发现多了几个在linux中常用的命令，如：ls、mkdir、rm、chmod、chown等，很有亲切感！[face01]）<br />
<br />
    第二、将计算机上的组导入group文件中。这里分两种情况，第一种是本地，第二种是在域中。分别运行-l和-d参数。如果想将两种组都导入，可以先运行-l的参数再运行-d参数的命令。<br />
下面是原文：<br />
Use mkgroup to create a group permissions file. For local groups, use the "-l" switch. For domain groups, use the "-d" switch.<br />
    For both domain and local, it is best to run the command twice (remember to use &gt;&gt;, not &gt;). If you use both, make sure to edit the file to remove any duplicate entires.<br />
<br />
      mkgroup -l &gt;&gt; ..\etc\group        这是加入本地组的命令。<br />
      mkgroup -d &gt;&gt; ..\etc\group       这是加入域组的命令。<br />
<br />
     第三、 将计算机的用户与其密码导入passwd文件中。与上面的组一样，也是分本地和域两种情况。如果没有该文件或没有导入用户的信息。作为server的话，将不能被登陆，因为没有用户嘛！<br />
下面是原文：<br />
Use mkpasswd to add authorized users into the passwd file. For local users, use the "-l" switch. For domain users, use the "-d" switch.<br />
    For both domain and local, it is best to run the command twice (remember to use &gt;&gt;, not &gt;). If you use both, make sure to edit the file to remove any duplicate entires.<br />
<br />
      mkpasswd -l [-u &lt;username&gt;] &gt;&gt; ..\etc\passwd      这是加入本地用户的命令。<br />
      mkpasswd -d [-u &lt;username&gt;] &gt;&gt; ..\etc\passwd      这是加入域用户的命令。<br />
<br />
    NOTE: To add users from a domain that is not the primary domain of the machine, add the domain name after the user name.<br />
    NOTE: Ommitting the username switch adds ALL users from the machine or domain, including service accounts and the Guest account.<br />
<br />
      <br />
      由于我的计算机在家里，不关域的事，所以我只要运行两条命令就可以了。（注意我是在openssh/bin目录下运行的。）<br />
 <!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://joecen.yourblog.org/logs/192576.html">在linux下安装oracle9i－－关于在redhat9下安装的补充</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/192221.html">使用串口管理linux</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/192211.html">将令开机很慢的finding module denpendeneies停掉！</a> 2004-06-05</div><div><a href="http://joecen.yourblog.org/logs/175060.html">iptables下开放ftp连接</a> 2004-05-17</div><div><a href="http://joecen.yourblog.org/logs/172860.html">dd 命令的用法</a> 2004-05-09</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://del.icio.us/post?v=4&noui&jump=close&url=http%3A%2F%2Fjoecen.yourblog.org%2Flogs%2F178774.html&title=%E5%9C%A8windows%E4%B8%8B%E5%AE%89%E8%A3%85%E5%92%8C%E4%BD%BF%E7%94%A8openssh">Del.icio.us</a></span></div><br><br><div class="sysmsg"><b><a href="http://www.gov.cn/zwgk/2008-05/18/content_981560.htm">深切哀悼四川汶川大地震遇难同胞</a></b><br><br></div>]]></description>
   <link>http://joecen.yourblog.org/logs/178774.html</link>
   <author>龙卷风</author>
   <pubDate>Sat, 22 May 2004 12:44:36 +0800</pubDate>
  </item>
 </channel>
</rss>
