<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[行走的世界]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[低頭看看自己的影子，我卻看不到自己那張臉孔。]]></description>
<link>http://hi.baidu.com/weishuian</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[IP规划一目了然]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/81d676588721c88b800a1899.html]]></link>
        <description><![CDATA[
		
		IP和子网掩码<br>
我们都知道，ＩＰ是由四段数字组成，在此，我们先来了解一下3类常用的ＩＰ<br>
　　A类IP段　 0.0.0.0 到127.255.255.255 <br>
　　B类IP段　 128.0.0.0 到191.255.255.255 <br>
　　C类IP段　 192.0.0.0 到223.255.255.255
<div>　　ＸＰ默认分配的子网掩码每段只有255或0<br>
　　Ａ类的默认子网掩码　255.0.0.0　　　　　一个子网最多可以容纳1677万多台电脑<br>
　　Ｂ类的默认子网掩码　255.255.0.0　　　　一个子网最多可以容纳6万台电脑<br>
　　Ｃ类的默认子网掩码　255.255.255.0　　　一个子网最多可以容纳254台电脑</div>
<div>　　我以前认为，要想把一些电脑搞在同一网段，只要ＩＰ的前三段一样就可以了，今天，我才知道我错了。如果照我这说的话，一个子网就只能容纳254台电脑？真是有点笑话。我们来说详细看看吧。</div>
<div>　　要想在同一网段，只要网络标识相同就可以了，那要怎么看网络标识呢？首先要做的是把每段的ＩＰ转换为二进制。（有人说，我不会转换耶，没关系，我们用Ｗｉｎｄｏｗｓ自带计算器就行。打开计算器，点查看&gt;科学型，输入十进制的数字，再点一下&ldquo;二进制&rdquo;这个单选点，就可以切换至二进制了。）</div>
<div>　　把子网掩码切换至二进制，我们会发现，所有的子网掩码是由一串[red]连续[/red]的1和一串[red]连续[/red]的0组成的（一共4段，每段8位，一共32位数）。<br>
　　255.0.0.0　　　11111111.00000000.00000000.00000000<br>
　　255.255.0.0　　11111111.11111111.00000000.00000000<br>
　　255.255.255.0　11111111.11111111.11111111.00000000<br>
　　这是A/B/C三类默认子网掩码的二进制形式，其实，还有好多种子网掩码，只要是一串连续的1和一串连续的0就可以了（每段都是8位）。如11111111.11111111.11111000.00000000，这也是一段合法的子网掩码。子网掩码决定的是一个子网的计算机数目，计算机公式是2的m次方，其中，我们可以把m看到是后面的多少颗0。如255.255.255.0转换成二进制，那就是11111111.11111111.11111111.00000000，后面有8颗0，那m就是8，255.255.255.0这个子网掩码可以容纳2的8次方（台）电脑，也就是256台，但是有两个ＩＰ是不能用的，那就是最后一段不能为0和255，减去这两台，就是254台。我们再来做一个。<br>
　　255.255.248.0这个子网掩码可以最多容纳多少台电脑？<br>
　　计算方法：<br>
　　把将其转换为二进制的四段数字（每段要是8位，如果是0，可以写成8个0，也就是00000000）<br>
　　11111111.1111111.11111000.00000000<br>
　　然后，数数后面有几颗0，一共是有11颗，那就是2的11次方，等于2048，这个子网掩码最多可以容纳2048台电脑。<br>
　　一个子网最多可以容纳多少台电脑你会算了吧，下面我们来个逆向算法的题。<br>
　　一个公司有530台电脑，组成一个对等局域网，子网掩码设多少最合适？<br>
　　首先，无疑，530台电脑用Ｂ类ＩＰ最合适（Ａ类不用说了，太多，Ｃ类又不够，肯定是Ｂ类），但是B类默认的子网掩码是255.255.0.0，可以容纳6万台电脑，显然不太合适，那子网掩码设多少合适呢？我们先来列个公式。<br>
　　2的m次方＝560<br>
　　首先，我们确定2一定是大于8次方的，因为我们知道2的8次方是256，也就是Ｃ类ＩＰ的最大容纳电脑的数目，我们从9次方一个一个试2的9次方是512，不到560，2的10次方是1024，看来2的10次方最合适了。子网掩码一共由32位组成，已确定后面10位是0了，那前面的22位就是1，最合适的子网掩码就是：11111111.11111111.11111100.00000000，转换成10进制，那就是255.255.252.0。</div>
<div>　　分配和计算子网掩码你会了吧，下面，我们来看看ＩＰ地址的网段。<br>
　　相信好多人都和偶一样，认为ＩＰ只要前三段相同，就是在同一网段了，其实，不是这样的，同样，我样把ＩＰ的每一段转换为一个二进制数，这里就拿ＩＰ：192.168.0.1，子网掩码：255.255.255.0做实验吧。<br>
　　192.168.0.1<br>
　　11000000.10101000.00000000.00000001<br>
　　（这里说明一下，和子网掩码一样，每段8位，不足8位的，前面加0补齐。）<br>
　　ＩＰ　　　　11000000.10101000.00000000.00000001<br>
　　子网掩码　　11111111.11111111.11111111.00000000<br>
　　在这里，向大家说一下到底怎么样才算同一网段。<br>
　　要想在同一网段，必需做到网络标识相同，那网络标识怎么算呢？各类ＩＰ的网络标识算法都是不一样的。Ａ类的，只算第一段。Ｂ类，只算第一、二段。Ｃ类，算第一、二、三段。<br>
　　算法只要把ＩＰ和子网掩码的每位数AND就可以了。<br>
　　AND方法：0和1＝0　0和0＝0　1和1＝1<br>
　　如：And　192.168.0.1，255.255.255.0，先转换为二进制，然后AND每一位<br>
　　ＩＰ　　　　　　11000000.10101000.00000000.00000001<br>
　　子网掩码　　　　11111111.11111111.11111111.00000000<br>
　　得出AND结果　 11000000.10101000.00000000.00000000<br>
　　转换为十进制192.168.0.0，这就是网络标识，<br>
　　再将子网掩码反取，也就是00000000.00000000.00000000.11111111，与IP　AND<br>
　　得出结果00000000.00000000.00000000.00000001，转换为10进制，即0.0.0.1，<br>
　　这0.0.0.1就是主机标识。要想在同一网段，必需做到网络标识一样。</div>
<div>　　我们再来看看这个改为默认子网掩码的Ｂ类ＩＰ<br>
　　如ＩＰ：188.188.0.111，188.188.5.222，子网掩码都设为255.255.254.0，在同一网段吗？<br>
　　先将这些转换成二进制<br>
　　188.188.0.111　10111100.10111100.00000000.01101111<br>
　　188.188.5.222　10111100.10111100.00000101.11011010<br>
　　255.255.254.0　11111111.11111111.11111110.00000000<br>
　　分别AND，得<br>
　　10111100.10111100.00000000.00000000<br>
　　10111100.10111100.00000100.00000000<br>
　　网络标识不一样，即不在同一网段。<br>
　　判断是不是在同一网段，你会了吧，下面，我们来点实际的。<br>
　　一个公司有530台电脑，组成一个对等局域网，子网掩码和ＩＰ设多少最合适？<br>
　　子网掩码不说了，前面算出结果来了11111111.11111111.11111100.00000000，也就是255.255.252.0<br>
　　我们现在要确定的是ＩＰ如何分配，首先，选一个Ｂ类ＩＰ段，这里就选188.188.x.x吧<br>
　　这样，ＩＰ的前两段确定的，关键是要确定第三段，只要网络标识相同就可以了。我们先来确定网络号。（我们把子网掩码中的1和IP中的?对就起来，0和*对应起来，如下：）<br>
　　255.255.252.0　11111111.11111111.11111100.00000000<br>
　　188.188.x.x　　10111100.10111100.??????**.********<br>
　　网络标识　　　10111100.10111100.??????00.00000000<br>
　　由此可知，?处随便填（只能用0和1填，不一定全是0和1），我们就用全填0吧，*处随便，这样呢，我们的ＩＰ就是<br>
　　10111100.10111100.000000**.********，一共有530台电脑，ＩＰ的最后一段1～254可以分给254台计算机，530/254＝2.086，采用进1法，得整数3，这样，我们确定了ＩＰ的第三段要分成三个不同的数字，也就是说，把000000**中的**填三次数字，只能填1和0，而且每次的数字都不一样，至于填什么，就随我们便了，如00000001，00000010，00000011，转换成二进制，分别是1，2，3，这样，第三段也确定了，这样，就可以把ＩＰ分成188.188.1.y，188.188.2.y，188.188.3.y，y处随便填，只要在1～254范围之内，并且这530台电脑每台和每台的ＩＰ不一样，就可以了。</div>
<div><br>
　　有人也许会说，既然算法这么麻烦，干脆用Ａ类ＩＰ和Ａ类默认子网掩码得了，偶要告诉你的是，由于Ａ类ＩＰ和Ａ类默认子网掩码的主机数目过大，这样做无疑是大海捞针，如果同时局域网访问量过频繁、过大，会影响效率的，所以，最好设置符合自己的ＩＰ和子网掩码</div> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/Ip">Ip</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/81d676588721c88b800a1899.html#comment">查看评论</a>]]></description>
        <pubDate>2009/11/11  12:56</pubDate>
        <category><![CDATA[Ip]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/81d676588721c88b800a1899.html</guid>
</item>

<item>
        <title><![CDATA[IP规划-半小时掌握IP知识]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/4c6981977b166a6754fb9633.html]]></link>
        <description><![CDATA[
		
		<p>半小时掌握IP知识，理解了才是自己的。<br>
<br>
<font color="#ff0000">一、IP地址概念</font></p>
<p><font color="#ff0000"><br>
</font>IP地址是一个32位的二进制数，它由网络ID和主机ID两部份组成，用来在网络中唯一的标识的一台计算机。网络ID用来标识计算机所处的网段；主机ID用来标识计算机在网段中的位置。IP地址通常用4组3位十进制数表示，中间用&ldquo;.&rdquo;分隔。比如，192.168.0.1。<br>
补充[IPv6]：前面所讲的32位IP地址称之为IPv4，随着信息技术的发展，IPv4可用IP地址数目已经不能满足人们日常的需要，据权威机构预测到2010年要充分应用信息技术，每个人至少需要10个IP地址，比如：计算机、笔记本、手机和智能化冰箱等。为了解决该问题开发了IPv6规范，IPv6用128位表示IP地址，其表示为8组4位16进制数，中间为&ldquo;：&rdquo;分隔。比如，AB32:33ea:89dc:cc47:abcd:ef12:abcd:ef12。</p>
<p><font color="#ff0000">二、IP地址分类</font></p>
<p><br>
为了方便IP寻址将IP地址划分为A、B、C、D和E五类，每类IP地址对各个IP地址中用来表示网络ID和主机ID的位数作了明确的规定。当主机ID的位数确定之后，一个网络中是多能够包含的计算机数目也就确定，用户可根据企业需要灵活选择一类IP地址构建网络结构。</p>
<p><br>
A类地址用IP地址前8位表示网络ID，用IP地址后24位表示主机ID。A类地址用来表示网络ID的第一位必须以0开始，其他7位可以是任意值，当其他7位全为0是网络ID最小，即为0；当其他7位全为1时网络ID最大，即为127。网络ID不能为0，它有特殊的用途，用来表示所有网段，所以网络ID最小为1；网络ID也不能为127；127用来作为网络回路测试用。所以A类网络网络ID的有效范围是1-126共126个网络，每个网络可以包含224-2台主机。</p>
<p><br>
B类地址用IP地址前16位表示网络ID，用IP地址后16位表示主机ID。B类地址用来表示网络ID的前两位必须以10开始，其他14位可以是任意值，当其他14位全为0是网络ID最小，即为128；当其他14位全为1时网络ID最大，第一个字节数最大，即为191。B类IP地址第一个字节的有效范围为128－191，共16384个B类网络；每个B类网络可以包含216-2台主机（即65534台主机）。</p>
<p><br>
C类地址用IP地址前24位表示网络ID，用IP地址后8位表示主机ID。C类地址用来表示网络ID的前三位必须以110开始，其他22位可以是任意值，当其他22位全为0是网络ID最小，IP地址的第一个字节为192；当其他22位全为1时网络ID最大，第一个字节数最大，即为223。C类IP地址第一个字节的有效范围为192－223，共2097152个C类网络；每个C类网络可以包含28-2台主机（即254台主机）。</p>
<p><br>
D类D类地址用来多播使用，没有网络ID和主机ID之分，D类IP地址的第一个字节前四位必须以1110开始，其他28位可以是任何值，则D类IP地址的有效范围为224.0.0.0到239.255.255.255。<br>
E类E类地址保留实验用，没有网络ID和主机ID之分，E类IP地址的第一字节前四位必须以1111开始，其它28位可以是任何值，则E类IP地址的有效范围为240.0.0.0至255.255.255.254。其中255.255.255.2555表示广播地址。</p>
<p><br>
在实际应用中，只有A、B和C三类IP地址能够直接分配给主机，D类和E类不能直接分配给计算机。</p>
<p><br>
三、网络ID、主机ID和子网掩码</p>
<p><br>
网络ID用来表示计算机属于哪一个网络，网络ID相同的计算机不需要通过路由器连接就能够直接通信，我们把网络ID相同的计算机组成一个网络称之为本地网络（网段）；网络ID不相同的计算机之间通信必须通过路由器连接，我们把网络ID不相同的计算机称之为远程计算机。<br>
当为一台计算机分配IP地址后，该计算机的IP地址哪部份表示网络ID，哪部份表示主机ID，并不由IP地址所属的类来确定，而是由子网掩码确定。子网确定一个IP地址属于哪一个子网。<br>
子网掩码的格式是以连续的255后面跟连续的0表示，其中连续的255这部份表示网络ID；连续0部份表示主机ID。比如，子网掩码255.255.0.0和255.255.255.0。<br>
根据子网掩码的格式可以发现，子网掩码有0.0.0.0、255.0.0.0、255.255.0.0、255.255.255.0和255.255.255.255共五种。采用这种格式的子网掩码每个网络中主机的数目相差至少为256倍，不利于灵活根据企业需要分配IP地址。比如，一个企业有2000台计算机，用户要么为其分配子网掩为255.255.0.0，那么该网络可包含65534台计算机，将造成63534个IP地址的浪费；要么用户为其分配8个255.255.255.0网络，那么必须用路由器连接这个8个网络，造成网络管理和维护的负担。<br>
网络ID是IP地址与子网掩码进行与运算获得，即将IP地址中表示主机ID的部份全部变为0，表示网络ID的部份保持不变，则网络ID的格式与IP地址相同都是32位的二进制数；主机ID就是表示主机ID的部份。<br>
例题1：IP地址：192.168.23.35 子网掩码：255.255.0.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  网络ID:192.168.0.0 主机ID:23.35<br>
例题2：IP地址:192.168.23.35 子网掩码：255.255.255.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  网络ID:192.168.23.0 主机ID:35</p>
<p><br>
<font color="#ff0000">四、子网和CIDR</font></p>
<p><br>
将常规的子网掩码转换为二进制，将发现子网掩格式为连续的二进制1跟连续0，其中子网掩码中为1的部份表示网络ID，子网掩中为0的表示主机ID。比如255.255.0.0转换为二进制为11111111 11111111 00000000 00000000。<br>
在前面所举的例子中可不可以不用连续的1部份表示网络ID，连续的0部份表示主机ID呢？答案是肯定的，采用这种方案的IP寻址技术称之为无类域间路由（CIDR）。CIDR技术用子网掩码中连续的1部份表示网络ID，连续的0部份表示主机ID。比如，网络中包含2000台计算机，只需要用11位表示主机ID，用21位表网络ID，则子网掩码表示为11111111.11111111.11100000.00000000，转换为十进制则为255.255.224.0。此时，该网络将包含2046台计算机，既不会造成IP地址的浪费，也不会利用路由器连接网络，增加额外的管理维护量。<br>
CIDR表示方法：IP地址/网络ID的位数，比如192.168.23.35/21，其中用21位表示网络ID。<br>
例题1：192.168.23.35/21<br>
子网掩码：11111111 11111111 11111000 00000000则为255.255.248.0<br>
&nbsp;&nbsp;  网络ID：192.168.00010111.0（其中第三个字节红色部分表示网络ID，其他表示主机ID，网络ID是表示网络ID部份保持不变主机ID全部变为0）则网络ID为192.168.16.0<br>
起始IP地址：192.168.16.1（主机ID不能全为0，全为0表示网络ID最后一位为1）<br>
结束IP地址：192.168.00010111.11111110（主机ID不能全为1，全为1表示本地广播）则结束IP地址为：192.168.23.254。<br>
例题2：将163.135.0.0划分为16个子网，计算前两个子网的网络ID、子网掩码、起止IP地址。<br>
第1步：用CIDR表示163.135.0.0/20，则子网掩码为255.255.240（11110000）.0。<br>
第2步：第一网络ID（子网掩码与IP地址与运算）：163.135.0.0<br>
&nbsp;&nbsp;&nbsp;  第一个IP地址：163.135.0.1 结束IP地址：163.135.15.254；<br>
第3步：第二网络ID：163.135.16.0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  第一个IP地址：163.135.16.1 结束IP地址：163.135.31.254。</p>
<p><br>
<font color="#ff0000">五、子网掩码和网络ID的快速计算方法</font></p>
<p>CIDR的子网掩码都是连续的1跟连接的0表示，则子网掩码有以下几种表示方法：<br>
0000 0000&nbsp;&nbsp;  0<br>
1000 0000&nbsp;&nbsp;  128<br>
1100 0000&nbsp;&nbsp;  128＋64＝192<br>
1110 0000&nbsp;&nbsp;  128＋64＋32＝224<br>
1111 0000&nbsp;&nbsp;  255－15＝240<br>
1111 1000&nbsp;&nbsp;  255－7＝248<br>
1111 1100&nbsp;&nbsp;  255－3＝252<br>
1111 1110&nbsp;&nbsp;  255－1＝254<br>
1111 1111&nbsp;&nbsp;  255</p>
<p><br>
大家都知道11111111的十进制数为255，那么我们怎么来快速计算子网掩码呢？二进制的1=1，11=3，111＝7，1111=15；那么1111 1110=255-1，1111 1100=255-3，1111 1000=255-8，1111 0000=255-15这样是不是就很快呢？只要我们一旦确定子网掩码中有多少位表示网络ID，那么我们马上就可以写出子网掩码了。那么，对于1000 0000，1100 0000和1110 0000 我们又该怎么计算呢？27=8则1000 0000=128，1100 0000=128+64，1110 0000=128+64+32，所以我们不需要去记住每一个为多少，只需要做做简单的加减法就搞定子网掩码的计算。</p>
<p><br>
网络ID的结果大家都知道网络ID部份不变，主机ID部分全部变为0，那么在计算网络ID时，首先看子网掩码中有多少位用来表示网络，相应在将IP地址转换为二进制时就只转换前面几位，比如192.168.176.15/19，网络ID一共19位，则网络ID前两个字节为192.168.X.0发生变化的为第三个字节。那么怎样快速计算出这个变化的X的值呢？我们知道第三字节只有三位表示网络ID，转换时176&gt;128，第1位为1,176－128＝48＜64，第2位为0,48＞32第3位为1，剩下的计算就没有意义了，全都要转换为0，则网络ID为10100000，则网络ID为192.168.160.0，这样计算反而出错的可能性很小。</p>
<p><font color="#ff0000">六、本地和远程网络概念</font></p>
<p><br>
网络ID相同的计算机称之为本地网络，本地网络中的计算机相互通信不需要路由器连接；网络ID不相同的计算机称之为远程网络，远程网络中的计算机要相互通信必须通过路由器连接。<br>
例题：192.168.10.14/28，192.168.10.15/28，192.168.10.16/28，192.168.10.31/28哪些是合法IP，哪些是非法IP地址？<br>
主机ID全为0和主机ID全为1的为非法IP地址：192.168.10.15/28、192.158.10.16/28、192.168.10.31/28都是非法IP地址。<br>
例题：192.168.10.14/28，192.168.10.15/28，192.168.10.16/28哪个不是同一网段？<br>
网络ID相同的就属于同一网段，则192.168.10.16/28不属于同一网段。</p>
<p><br>
<font color="#ff0000">七、子网数和主机数的计算方法</font></p>
<p>例题：172.168.34.56/20，一共划分为了多少个子网，各子网可以包含多少台主机。<br>
172.168.34.56是一个B类地址，B类地址用16位表示网络ID，题目中20位表示网络ID，则子网位数为4位，那么子网就有24次个（即从0000、0001到1111的16种变化）。<br>
由于IP地址是32位，用20位表示网络ID，则主机ID的位数为12位，则每个子网可以包含212－2个IP地址，即可以包含4096个IP地址。<br>
注意：为什么计算IP地址时要减2，而计算子网数目时不减2呢？IP地址减2的原因是主机ID不能全为0也不能全为1；子网就不存在这个问题。</p>
<p><br>
<font color="#ff0000">八、公共IP和私有IP地址</font></p>
<p><font color="#ff0000"><br>
</font>IP地址由IANA（Internet地址分配机构）管理和分配，任何一个IP地址要能够在Internet上使用就必须由IANA分配，IANA分配的能够在Internet上正常使用的IP地址称之为公共IP地址；IANA保留了一部份IP地址没有分配给任何机构和个人，这部份IP地址不能在Internet上使用，此类IP地址就称之为私有IP地址。为什么私有IP地址不能在Internet上使用呢？因为Internet上没有私有IP地址的路由。私有IP地址范围包括：<br>
A类：10.0.0.0/8<br>
B类：172.16.0.0/12 即172.16.0.1-172.31.255.254共16个B类网络<br>
C类：192.168.0.0/16即192.168.0.1-192.168.255.254共256个C类网络</p>
<p><br>
<font color="#ff0000">九、路由概念、Ping、Ipconfig、Route和Tracert命令</font></p>
<p><br>
通过路由器将数据从一个网络传输到另一个网络称之为路由。路由选择负责在网络中选择一段最优先的路径将数据传输到目的网络，路由选择的基础和依据是路由表，路由表由目的网络ID、子网掩码、网关、接口和计费组成，通过route print可查看计算机的路由表。<br>
Ping命令三种结果&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Ipconfig命令&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Tracert命令<br>
目的地不可到达：路由表无目的地记录<br>
超时：网关设置错有路由表记录<br>
Ping通过：正常</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/Ip">Ip</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/4c6981977b166a6754fb9633.html#comment">查看评论</a>]]></description>
        <pubDate>2009/10/15  11:38</pubDate>
        <category><![CDATA[Ip]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/4c6981977b166a6754fb9633.html</guid>
</item>

<item>
        <title><![CDATA[在win2003里面如何记录用户在文件服务器的操作记录]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/46e16eea1423abdad439c92f.html]]></link>
        <description><![CDATA[
		
		（文章出自winos论坛 尘封之心）<br>
在文件服务器上面，针对多个用户对某一个文件夹进行读写,难免会有操作错误或误删的情况.为了保留操作的真实性.如果设定记录用户的操作情况,特别是文件及文件夹的删除日志<br>
解决方法：<br>
如果要满足你的需求，需要进行两个操作。<br>
一个是在安全策略里面启用“审核对象访问”，开启这个功能<br>
二是光开启这个功能还不行，你还得设定为哪个用户对哪个文件开启哪些审核。<br>
方法是右键选择你需要查看操作日志的文件的属性，选择“安全”--&gt; “高级”--&gt;&quot;审核&quot;--&gt;然后添加一个需要审核的用户，例如everyone --&gt; 再选择具体的审核项目，例如是审核用户是否运行过这个文件，是否重命名这个文件等等，如果希望审核所有操作，就选择完全控制。<br>
最后，再到安全性日志中就可以查看到具体的操作记录。<br>
如图，可以看到我访问了一个pdf文件，事件日志中便记录下来<br>
<br>
备注：这个功能不是太实用，记录量巨大..... 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/46e16eea1423abdad439c92f.html#comment">查看评论</a>]]></description>
        <pubDate>2009/08/07  13:40</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/46e16eea1423abdad439c92f.html</guid>
</item>

<item>
        <title><![CDATA[文件服务器如何启动日志功能]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/8a890644bbd4c48bb3b7dc5a.html]]></link>
        <description><![CDATA[
		
		<font size="2">      </font>
<p><font size="3"><a href="http://gnaw0725.blogbus.com/logs/14565837.html" target="_blank">文件服务器</a>如 何启动日志功能知道删除移动是谁干的？文件服务器如何启动日志功能,可以详细记录每个用户和连接的读取\运行\写入的各类记录。用户通过映射盘访问服务器 上的文件夹，每层文件夹都有不同的权限控制，因为服务器上经常有文件夹被删除或移动，现在我想知道是谁干的，还有时间，有没有什么方案可以实现，环 境：win2003server ad client：xp。由于我的文件服务器所处环境是非域网络环境,希望能详细了解 本地<a href="http://gnaw0725.blogbus.com/logs/18223191.html" target="_blank">策略</a> 审核策略的设置办法和方案.以及其对文件访问的影响程度?</font></p>
<font size="2"><font size="3">回答：根据我的研究，如果您希望记录文件服务器上文件夹或文件的被用户执行的操作，可以通过应用或修改文件服务器上文件或文件夹的审核策略设置来实现。具体的设置方法如下：<br>
<br>
1. 打开 Windows 资源管理器。<br>
2. 右键单击要审核的文件或文件夹，单击“属性”，然后单击“安全”选项卡。<br>
3. 单击“高级”，然后单击“审核”选项卡。<br>
4. 要设置新用户或组的审核，请单击“添加”。在“输入要选择的对象名称”中，键入想要的用户或组的名称，然后单击“确定”。<br>
5. 在“应用于”框中单击希望进行审核的位置。<br>
6. 在“访问”框中，通过选中适当的复选框，指出您想要审核的操作：<br>
7. 如果要防止原始对象的后续文件和子文件夹继承这些审核项，请选中“将这些审核项目只应用到这个容器中的对象和/或容器上”复选框。<br>
</font>  <br>
注意：设置文件和文件夹的审核前，必须通过为对象访问事件类别定义审核策略设置，来启用对象访问审核。如果不启用对象访问审核，在设置文件和文件夹的审核时，将收到错误消息且不会审核任何文件或文件夹。<br>
<br>
</font> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/8a890644bbd4c48bb3b7dc5a.html#comment">查看评论</a>]]></description>
        <pubDate>2009/08/07  13:22</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/8a890644bbd4c48bb3b7dc5a.html</guid>
</item>

<item>
        <title><![CDATA[有关客户首次端登陆域无法创建配置文件的问题]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/c090f6da036aa4d2b6fd489b.html]]></link>
        <description><![CDATA[
		
		<p>检查c盘文件格式，转化成ntfs格式，并保证登陆账号有足够的权限。</p>
<p> </p>
<p>无法更改用户配置文件类型（漫游改成本地），将c盘根目录下的winnt删掉或重命名（需用工具来删）。</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/%D3%F2%BF%D8">域控</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/c090f6da036aa4d2b6fd489b.html#comment">查看评论</a>]]></description>
        <pubDate>2009/08/07  11:57</pubDate>
        <category><![CDATA[域控]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/c090f6da036aa4d2b6fd489b.html</guid>
</item>

<item>
        <title><![CDATA[Vmware 虚拟计算机软件]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/cc47d4f0737f1ea6a40f52bf.html]]></link>
        <description><![CDATA[
		
		<font size="3"><br>
<br>
客户端解决方案：<br>
Vmware Workstation<br>
唯一的能在Windows和Linux主机平台上运行的虚拟计算机软件。它能提高计算机硬件的利用率，加快产品上市的周期，它性能优越，稳定，广泛应用于软件开发测试，教育培训，软件技术支持等领域。<br>
<br>
服务器端解决方案：<br>
Vmware GSX Server<br>
为基于Intel处理器的服务器开发的企业级的虚拟计算机软件。它能很容易地移植到任何系统环境中，扩展服务器管理的效能，降低服务成本。它是市场上操作设置最为灵活和简便的虚拟计算机软件。<br>
<br>
Vmware ESX Server<br>
适用于任何系统环境的企业级的虚拟计算机软件。大型机级别的架构提供了空前的可测量性和操作控制。完全动态的资源控制，适合各种要求严格的应用程序的需要。<br>
<br>
VMware Virtual SMP <br>
VMware Virtual SMP是VMware ESX Server 2的一个附加模块，它能将单虚拟机扩展成为多处理器。VMware Virtual SMP允许多处理器在使用一个单独的客户操作系统镜像时平行工作，它能满足几乎所有的对资源配置要求较高的应用程序的需求。 只有VMware为基于Intel处理器的虚拟机提供均衡的多重处理功能。<br>
<br>
VMware 控制中心：<br>
VMware控制中心是一个企业级的软件，用于对分散的计算机环境中的虚拟机的管理和控制。VMware控制中心通过公司的 VMotion技术，把分散的，不同的计算机环境当作一个单独的硬件资源集合来实施管理。<br>
本文来自: IXPUB技术社区(www.ixpub.net) 详细出处参考：http://www.ixpub.net/thread-245955-1-1.html<br>
</font> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/%D0%E9%C4%E2%BB%AF">虚拟化</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/cc47d4f0737f1ea6a40f52bf.html#comment">查看评论</a>]]></description>
        <pubDate>2009/07/08  13:43</pubDate>
        <category><![CDATA[虚拟化]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/cc47d4f0737f1ea6a40f52bf.html</guid>
</item>

<item>
        <title><![CDATA[xxx is not in the sudoers file解决方法]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/4c5b7ef9b64e5450252df2a6.html]]></link>
        <description><![CDATA[
		
		<font size="3"><br>
用sudo时提示&quot;xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名，也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方 法：<br>
<br>
1）进入超级用户模式。也就是输入&quot;su -&quot;,系统会让你输入超级用户密码，输入密码后就进入了超级用户模式。（当然，你也可以直接用root用） <br>
2）添加文件的写权限。也就是输入命令&quot;chmod u+w /etc/sudoers&quot;。 <br>
3） 编辑/etc/sudoers文件。也就是输入命令&quot;vim /etc/sudoers&quot;,输入&quot;i&quot;进入编辑模式，找到这一 行：&quot;root ALL=(ALL) ALL&quot;在起下面添加&quot;xxx ALL=(ALL) ALL&quot;(这里的xxx是你的用户名)，然后保存（就是先按一 下Esc键，然后输入&quot;:wq&quot;）退出。 <br>
4）撤销文件的写权限。也就是输入命令&quot;chmod u-w /etc/sudoers&quot;。</font> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/Linux">Linux</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/4c5b7ef9b64e5450252df2a6.html#comment">查看评论</a>]]></description>
        <pubDate>2009/07/02  16:40</pubDate>
        <category><![CDATA[Linux]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/4c5b7ef9b64e5450252df2a6.html</guid>
</item>

<item>
        <title><![CDATA[Domino控制台指令大全]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/2693383d2091e109baa167cf.html]]></link>
        <description><![CDATA[
		
		<p><br>
<font size="3">来源：Linuxdby.com 作者：Webmaster 时间：2007-05-31 点击： [收藏] [投稿]<br>
Lotus Domino Administration in a Nutshell By Greg Neilson<br>
1st Edition August 2000 1-56592-717-6, Order Number: 7176 384 pages, $24.95</font></p>
<p><font size="3">Chapter 13<br>
Domino Server Tasks and Console Commands<br>
In this chapter, I discuss how to specify which component tasks Domino loads at startup and how to configure Domino to run scheduled maintenance tasks. This type of configuration is usually done once as the server is commissioned, with occasional changes as needed.</font></p>
<p><font size="3">There is also a set of commands that you can issue at the Domino server console to dynamically control the operation of the server. These commands are typically used to diagnose and resolve issues with Domino operations, make dynamic configuration changes to the Domino server, or to override scheduled operations and make things such as mail routing or database replication happen immediately.</font></p>
<p><font size="3">Domino Server Tasks<br>
A few lines in NOTES.INI define which server tasks are started when the server starts up, and also which scheduled tasks are to run at various times during the day.</font></p>
<p><font size="3">The ServerTasks= line lists the tasks to start as the server starts up. The scheduled tasks are listed in the ServerTasksAt0= to ServerTasksAt23= lines. These specifications use the 24-hour clock, where 0 is midnight and 23 is 11:00 P.M.</font></p>
<p><font size="3">Another option for scheduling tasks is the Program document in the Domino Directory. The Program document is described in Chapter 2, Domino Directories.</font></p>
<p><font size="3">By default, the following tasks are configured to start, depending on how the server has been configured:</font></p>
<p><font size="3">When the Quick and Easy Configuration setup option is selected, the tasks set to start at startup are Router, Replica, Update, AMgr, AdminP, CalConn, Event, Sched , Stats, and Maps. Then other tasks are added depending on which other client audience options are selected:</font></p>
<p><font size="3">Web Browsers adds HTTP and DIIOP</font></p>
<p><font size="3">Internet Mail Packages adds IMAP and POP3</font></p>
<p><font size="3">News Readers adds NNTP</font></p>
<p><font size="3">Enterprise Connection Services adds DECs</font></p>
<p><font size="3">When the Advanced Configuration setup option is selected, the tasks set to start at startup are AdminP, AMgr, Update, Replica, Router, and Maps. Other tasks, such as CalConn, Event, Sched, and Stat, are optionally added if selected. Other tasks are added if they are selected by name. These are:<br>
HTTP, DIIOP<br>
IMAP, POP3<br>
LDAP<br>
NNTP<br>
DECS</font></p>
<p><font size="3">When the server has been upgraded from 4.x, you are not required to run the setup application after the code has been installed. This means that the original list of startup tasks is retained. Because the Reports task no longer exists in R5 and has been replaced by the Collect task, you must remove it. You also must remove the SMTPMTA statement, since this function has been added to the Router process.</font></p>
<p><font size="3">Then, for the scheduled tasks in NOTES.INI, these entries are added as part of the original installation:</font></p>
<p><font size="3">ServerTasksAt1=Catalog,Design<br>
ServerTasksAt2=UpdAll,Object Collect mailobj.nsf<br>
ServerTasksAt3=Object Info -Full<br>
ServerTasksAt5=Statlog</font></p>
<p><font size="3">You should also be aware that after you reinstall or upgrade your Domino server code, these entries are usually added again to NOTES.INI, if they had been removed.</font></p>
<p><font size="3">Here is a list of all of the Domino server tasks, their functions, and the specific console commands they accept:</font></p>
<p><font size="3">AdminP<br>
The Administration Process automates many administration tasks. This task has the following commands available to modify its behavior while it is running:</font></p>
<p><font size="3">tell adminp process all<br>
Instructs the admin process to process all new and modified immediate/interval/daily/delayed requests.</font></p>
<p><font size="3">tell adminp process daily<br>
Instructs the admin process to process all new and modified daily requests.</font></p>
<p><font size="3">tell adminp process delayed<br>
Instructs the admin process to process all new and modified delayed requests.</font></p>
<p><font size="3">tell adminp process interval<br>
Instructs the admin process to process all immediate and interval requests.</font></p>
<p><font size="3">tell adminp process new<br>
Instructs the admin process to process all new requests.</font></p>
<p><font size="3">tell adminp process people<br>
Instructs the admin process to process all new and modified requests to update Person records within the Domino Directory.</font></p>
<p><font size="3">tell adminp process time<br>
Instructs the admin process to process all new and modified requests to delete mail files that become unlinked.</font></p>
<p><font size="3">tell adminp show databases<br>
Lists the databases that an administration server manages, and also lists databases that do not have an administration server configured.</font></p>
<p><font size="3">AMgr<br>
The Agent Manager runs scheduled and triggered agents in Domino databases. This task has the following commands available to modify its behavior while it is running:</font></p>
<p><font size="3">tell amgr pause<br>
Pauses the agent manager service, so no new agents can be scheduled for execution on the server.</font></p>
<p><font size="3">tell amgr resume<br>
Resumes the agent manager service, so new agents can be scheduled for execution on the server.</font></p>
<p><font size="3">tell amgr schedule </font></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/Louts">Louts</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/2693383d2091e109baa167cf.html#comment">查看评论</a>]]></description>
        <pubDate>2009/07/01  09:14</pubDate>
        <category><![CDATA[Louts]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/2693383d2091e109baa167cf.html</guid>
</item>

<item>
        <title><![CDATA[Ubuntu 显卡驱动安装]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/e0ae0851f5e265888c5430fc.html]]></link>
        <description><![CDATA[
		
		<font color="darkred">14。基本配置结束！接下来，要搞定大家最关心的显卡驱动问题，因为你要看到众多桌面／窗口特效，必须有显卡支持<br>
我们4710Z用的是移动版的HD2400XT，我去官方查看过了，居然没有列在驱动支持的范围内，一开始我都是在1024＊768模式下摸索的，看的很累，本本是宽屏的，我看到的都是拉伸的画面～～～～<br>
在研究了Ubuntu中文论坛的一些帖子后，决定尝试官方驱动，随后到驱动之家找到了这款for <span class="t_tag" href="http://benyouhui.it168.com/tag.php?name=Linux">Linux</span>的8。5通用驱动，文件名：ati-driver-installer-8-5-x86.x86_64.run，将此文件下载到桌面（若下载的是rar压缩文件，解压到桌面）<br>
起初，看到有人说要通过编译才能安装，心马上凉了，真的要我这些菜鸟去搞那么高深的东东吗？<br>
偶尔在一个帖子中看到一个简单方法,打开终端，输入<br>
sudo -i&nbsp;&nbsp; 让你输入管理员密码<br>
然后 将桌面的.run文件拖到终端窗口中，前面加上sh<br>
变成 sh /home/你的用户名//ati-driver-installer-8-5-x86.x86_64.run<br>
回车，随即出现和windows下类似的安装窗口，只管&ldquo;下一步&rdquo;好了，这样，驱动就装好了<br>
关键是最后，它提示你要重启，现别重启！<br>
回到终端，sudo -i&nbsp;&nbsp; 让你输入管理员密码，然后输入<br>
aticonfig --initial -f <br>
（我当初就是因为没有做这一步，害我浪费时间重装～～～）<br>
好了，放心重启吧，重启后你的桌面应该自动变成1280＊800了<br>
当然，你不放心的话，可以到系统－－系统管理－－Hardware Drivers中看看ATI显卡驱动是否In use<br>
正常的应该是绿色</font> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/Linux">Linux</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/e0ae0851f5e265888c5430fc.html#comment">查看评论</a>]]></description>
        <pubDate>2009/02/07  10:37</pubDate>
        <category><![CDATA[Linux]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/e0ae0851f5e265888c5430fc.html</guid>
</item>

<item>
        <title><![CDATA[Ubuntu 分区]]></title>
        <link><![CDATA[http://hi.baidu.com/weishuian/blog/item/089a91d32f3910073af3cf39.html]]></link>
        <description><![CDATA[
		
		<p>假如将/boot单独分区，则/boot为主分区，而/分区不必是主分区。 <br itxtvisited="1">
安全的分区方案原则：系统数据和普通用户数据分离放置于不同的分区 （即使用单独的 home 分区）；不经常变化的系统数据和经常变化的系统数据分离放置于不同的分区（即使用单独的 usr 分区和 var 分区）。 <br itxtvisited="1">
一般地，在一个实际系统中至少要创建单独的 home 分区。 <br itxtvisited="1">
四、图文演示 <br itxtvisited="1">
在此，我用虚拟机来给大家演示一下怎样操作分区，当然，这里的数据并没有参考意义，只是让大家有一个感性认识(PS:在手动分区过程中随时能够通过&ldquo;撤销对分区配置的修改&rdquo;来放弃划分错误的分区重新开始）：</p>
<p><font color="#ff0000">（一）用Desktop CD安装到空白硬盘：</font></p>
<p><br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/37990477946b5980e25b63.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
注意：在用Desktop CD安装Ubuntu到空白硬盘时，只有两个分区选择：&ldquo;向导──使用整个磁盘&rdquo;和&ldquo;手动&rdquo;，假如想用整个硬盘来安装Ubuntu系统而又不进行比较细的分区，能够选择&ldquo;使用整个硬盘&rdquo;，安装程式会自动将整个磁盘分为/文档系统和SWAP文档系统，SWAP的大小在我的实验中略小于内存。&ldquo;使用整个硬盘&rdquo;比较简单，点击&ldquo;前进&rdquo;按钮一闪就完成了，下面我们看一下怎样手动分区（只是简单地分为/、/home和SWAP，假如想分割出更多的分区参照着操作就能够了）： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/160866942546b599d02cfd8.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择&ldquo;手动&rdquo;，点击&ldquo;前进&rdquo; <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/54051066446b59a235bd12.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
点击&ldquo;New Partition Table&rdquo; <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/15245339146b59a6c3ee86.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
点&ldquo;继续&rdquo; <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/103695957346b59c5de99db.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
1 选择&ldquo;free space&rdquo;（空闲空间） <br itxtvisited="1">
2 点击&ldquo;New partition&rdquo;（新建分区） <br itxtvisited="1">
3 选择新分区的类型：Primary（主分区）（单独安装Ubuntu到全新磁盘，/分区需要选择Primary，其他分区选择Logical逻辑分区就能够；假如是安装双系统且已安装Windows的话，/分区的类型选择Primary或Logical都能够，其他分区选择Logical逻辑分区。） <br itxtvisited="1">
4 输入新分区的大小（以MB为单位） <br itxtvisited="1">
5 选择新分区的位置（您希望新分区是建在可用空间的首部还是尾部，一般默认统一选择&ldquo;开始&rdquo;就能够） <br itxtvisited="1">
6 选择使用的文档系统（一般用ext3或ReiseFS） <br itxtvisited="1">
7 选择挂载点（虽然这里有个下拉三角，但我在虚拟机实验时却无法选择，只能自己输入） <br itxtvisited="1">
8 点击&ldquo;OK&rdquo;确认 <br itxtvisited="1">
创建完/文档系统后，能够看到已建立了一个ext3文档系统的挂载到/的分区，还剩1932MB空闲空间，如图： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/188695063446b5a7ae1db26.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
继续来创建并挂载到/home文档系统，和前面的操作类似，只是分区类型无需为Primary（主分区），只要为逻辑分区（Logical）就能够了： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/126825991346b5af3f3dfb4.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
创建并挂载完/home文档系统后，如图： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/125938797446b5b0cb057cf.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
我们接着创建SWAP分区，注意这时分区大小我们用系统提供的剩余空闲空间大小就能够了，文档系统用swap，这里就不用输入挂载点了： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/116092751846b5b0e2cb5f8.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
分区全部创建完了，如图： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/208907682946b5b28adeb75.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
在Desktop CD安装的最后一步，我们能够看到： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/86862773946b5b2e29fb49.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
<font color="#ff0000">（二）用Ubuntu Desktop CD安装双系统</font></p>
<p><br itxtvisited="1">
默认前提：已提供了剩余空白分区，不论您在在分区时保留的，还是在Windows中用磁盘管理删除一个分区后得到的，又或用分区魔术师调整得来的。 <br itxtvisited="1">
在安装程式进行到分区部分时，会比安装到空白硬盘多一项&ldquo;向导──使用最大的连续空闲空间&rdquo;，如图： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/178438140146b5b98ec1352.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
假如说我们为了偷懒，只要Ubuntu系统能用就行，则能够使用这一项，由系统自动为我们分割成/分区和SWAP分区，点&ldquo;前进&rdquo;按钮，在第7步时会得到如图提示： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/39177076746b5b9a79f2a6.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
能够看到，系统自动为我们将空闲空间划分为/分区和SWAP分区。 <br itxtvisited="1">
假如我们想进行比较细化的分区，就象上面的手动分区操作相同，选择&ldquo;手动&rdquo;，点击&ldquo;前进&rdquo;按钮，和上面基本大同小异，如图： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/75354736746b5bb7518e5d.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/137585385046b5bc48ac82c.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/168616099446b5be8e6daf1.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/109322782946b5bed855a9b.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/142094627946b5bf1f846e3.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/103086592246b5bf521e293.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
<font color="#ff0000">（三）用Alterate CD安装Ubuntu双系统</font></p>
<p><br itxtvisited="1">
默认前提：已提供了剩余空白分区，不论您在在分区时保留的，还是在Windows中用磁盘管理删除一个分区后得到的，又或用分区魔术师调整得来的。 <br itxtvisited="1">
用Alterate CD安装Ubuntu双系统，界面和Desktop CD略有不同： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/147156087046b5c10314419.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
大家能够看到除了&ldquo;向导──使用整个磁盘&rdquo;、&ldquo;向导──使用最大的连续空闲空间&rdquo;和&ldquo;手动&rdquo;这三项我们在Desktop中也能够见到的选项之外 ，还多了一项&ldquo;向导──使用整个磁盘并配置LVM&rdquo;，LVM是逻辑卷管理的意思，貌似这个东东多用在服务器中，再说我们这里是要安装Ubuntu和Windows的双系统，所以这一项我们就不理会了，感兴趣的朋友能够看一下<br itxtvisited="1">
<font color="#0000ff" itxtvisited="1">http://dotclear.org.cn/dapper/ubuntusys/ch02-ubuntu_install/30-server_installation_with_lvm#</font><br itxtvisited="1">
<br itxtvisited="1">
，那里有安装服务器时使用LVM选项安装的图解，也能够自行搜索更多有关lvm的资料。 <br itxtvisited="1">
我们假如选择&ldquo;向导──使用最大的连续空闲空间&rdquo;，则会出现如下图提示： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/93003480346b5c128d5543.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
我们能够看到，同Desktop CD中相同，系统自动为我们将空白分区划分为一个/主分区和一个SWAP逻辑分区。假如我们确定要让系统自动为我们划分空白分区，则选择&ldquo;是&rdquo;将改变写入磁盘。 <br itxtvisited="1">
我们来看一下怎样手动分区，在刚才&ldquo;分区方法&rdquo;处选择&ldquo;手动&rdquo;，出现： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/161617478046b5c1868542b.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择&ldquo;空闲空间&rdquo;，出现： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/104478801846b5c237ecbe6.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择&ldquo;创建新分区&rdquo;，出现： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/20599908046b5c2b522c74.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
输入新分区大小，一般直接将前面的数字修改一下就OK了，虽然能够用百分比表示，但那样不直观，反而不美，&ldquo;继续&rdquo;，出现： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/113783184946b5c41183d75.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择新分区的类型，此处因为是安装双系统，我们想要安装的/文档系统选择&ldquo;主分区&rdquo;或&ldquo;逻辑分区&rdquo;都能够： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/59538189946b5c5a1419b9.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择新分区的位置，直接用默认的&ldquo;开始&rdquo;就能够。 <br itxtvisited="1">
这时会出现如下图的&ldquo;分区配置&rdquo;： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/110784852846b5c6059eea6.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
1 回车选择文档系统，常用文档系统有ext3和ReiseFS <br itxtvisited="1">
2 回车选择挂载点 <br itxtvisited="1">
3 回车打开可启动开关（这是因为我们挂载的是/） <br itxtvisited="1">
4 分区设定结束 <br itxtvisited="1">
返回后会看到下图，我们划分的4GB的/分区已已出现在分区信息中了： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/87748392346b5c61c9545a.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
继续选择&ldquo;空闲空间&rdquo;划分挂载其他分区。 <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/104478801846b5c237ecbe6.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择&ldquo;创建新分区&rdquo;，出现： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/36108207846b5c640a8fed.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
输入新分区大小。 <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/160712345846b5c6a9a23b2.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择新分区的类型，注意除了/分区，一般选择逻辑分区就能够了。 <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/188439810246b5c6fb6a891.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择新分区的位置，还是用默认的&ldquo;开始&rdquo;就能够。 <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/117991340346b5c7a650928.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
这是我们要挂载的/home的分区配置。 <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/41726549046b5c7c492a64.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
/home也出现在分区信息中了。继续将剩余的空间划分为SWAP空间，选择&ldquo;空闲空间&rdquo;： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/205000681346b5c81e931fe.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择&ldquo;创建新分区&rdquo;，出现： <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/194379015446b5c83282243.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
输入新分区的大小，因为是最后的分区了，所以直接用默认的剩余空间大小就能够了。 <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/93215698146b5c8cd19fc5.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
选择&ldquo;新分区的类型&rdquo;，还是用逻辑分区就能够了。 <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/123475246546b5c90c9bb74.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
因为这个分区我们是要作为SWAP分区，所以这里就要选择&ldquo;交换空间&rdquo;，然后&ldquo;分区设定结束&rdquo;。 <br itxtvisited="1">
<img src="http://forum.ubuntu.org.cn/weblogs/upload/811/167323668046b5c93a7ea9a.png" border="0"><br itxtvisited="1">
<br itxtvisited="1">
这样任何的分区都划分好了，再查看一下分区信息，假如没有错误，就选择&ldquo;分区设定结束并将结果写入磁盘&rdquo;，假如有错误，就选择&ldquo;撤销对分区配置的修改&rdquo;，一旦写入磁盘，就无法修改了，慎重慎重！</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/weishuian/blog/category/Linux">Linux</a>&nbsp;<a href="http://hi.baidu.com/weishuian/blog/item/089a91d32f3910073af3cf39.html#comment">查看评论</a>]]></description>
        <pubDate>2009/01/16  09:55</pubDate>
        <category><![CDATA[Linux]]></category>
        <author><![CDATA[blocksubway]]></author>
		<guid>http://hi.baidu.com/weishuian/blog/item/089a91d32f3910073af3cf39.html</guid>
</item>


</channel>
</rss>