<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Way To Master Linux</title>
	<atom:link href="http://www.masterlinux.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.masterlinux.cn</link>
	<description></description>
	<lastBuildDate>Thu, 03 Nov 2011 09:48:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>在android使用wordpress客户端发博客</title>
		<link>http://www.masterlinux.cn/wordpress/admin-2011-11-03-%e5%9c%a8android%e4%bd%bf%e7%94%a8wordpress%e5%ae%a2%e6%88%b7%e7%ab%af%e5%8f%91%e5%8d%9a%e5%ae%a2.html</link>
		<comments>http://www.masterlinux.cn/wordpress/admin-2011-11-03-%e5%9c%a8android%e4%bd%bf%e7%94%a8wordpress%e5%ae%a2%e6%88%b7%e7%ab%af%e5%8f%91%e5%8d%9a%e5%ae%a2.html#comments</comments>
		<pubDate>Thu, 03 Nov 2011 09:48:38 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/wordpress/admin-2011-11-03-%e5%9c%a8android%e4%bd%bf%e7%94%a8wordpress%e5%ae%a2%e6%88%b7%e7%ab%af%e5%8f%91%e5%8d%9a%e5%ae%a2.html</guid>
		<description><![CDATA[
在android使用wordpress客户端发博客，非常好玩！
以后在家里就可以用手机发博客了。
]]></description>
			<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://www.masterlinux.cn/wp-content/uploads/2011/11/wpid-20111103_174601.jpg" /></p>
<p>在android使用wordpress客户端发博客，非常好玩！<br />
以后在家里就可以用手机发博客了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/wordpress/admin-2011-11-03-%e5%9c%a8android%e4%bd%bf%e7%94%a8wordpress%e5%ae%a2%e6%88%b7%e7%ab%af%e5%8f%91%e5%8d%9a%e5%ae%a2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QT的潜力</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2011-02-22-qt%e7%9a%84%e6%bd%9c%e5%8a%9b.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2011-02-22-qt%e7%9a%84%e6%bd%9c%e5%8a%9b.html#comments</comments>
		<pubDate>Tue, 22 Feb 2011 02:55:57 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/?p=212</guid>
		<description><![CDATA[潜力。Qt将无所不在。Qt正在大力向低端的Linux设备和版本开疆拓土。Qt还在其他更广阔的领域支撑创新，比如梦工厂（DreamWorks）就将所有内部的动画工具都切换到Qt上了，他们已经用Qt制作了《驯龙记》（How to Train Your Dragon）和《超级大坏蛋》（MegaMind）那样超酷的电影！
]]></description>
			<content:encoded><![CDATA[<p>潜力。Qt将无所不在。Qt正在大力向低端的Linux设备和版本开疆拓土。Qt还在其他更广阔的领域支撑创新，比如梦工厂（DreamWorks）就将所有内部的动画工具都切换到Qt上了，他们已经用Qt制作了《驯龙记》（How to Train Your Dragon）和《超级大坏蛋》（MegaMind）那样超酷的电影！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2011-02-22-qt%e7%9a%84%e6%bd%9c%e5%8a%9b.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINUX中文乱码问题-gbk-utf-8</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2010-10-26-linux%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98-gbk-utf-8.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2010-10-26-linux%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98-gbk-utf-8.html#comments</comments>
		<pubDate>Tue, 26 Oct 2010 07:01:07 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/uncategorized/admin-2010-10-26-linux%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98-gbk-utf-8.html</guid>
		<description><![CDATA[&#160;最近，公司在XP系统于LINUX之间传数据时出现了中文乱码问题!&#160;首先，解释一下字符集：
汉字编码:
*
 GB2312字集是简体字集，全称为GB2312(80)字集，共包括国标简体汉字6763个。 *
BIG5字集是台湾繁体字集，共包括国标繁体汉字13053个。 *
GBK字集是简繁字集，包括了GB字集、BIG5字集和一些符号，共包括21003个字符。 *
GB18030是国家制定的一个强制性大字集标准，全称为GB18030-2000，它的推出使汉字集有了一个“大一统”的标准。&#160;
ASCII:
American
 Standard Code for Information Interchange，美国信息交换标准码。
目前计算机中用得最广泛的字符集及其编码，由美国国家标准局(ANSI)制定。 它已被国际标准化组织(ISO)定为国际标准，称为ISO 646标准。
 ASCII字符集由控制字符和图形字符组成。
在计算机的存储单元中，一个ASCII码值占一个字节(8个二进制位)，其最高位(b7)用作奇偶校验位。
所谓奇偶校验，是指在代码传送过程中用来检验是否出现错误的一种方法，一般分奇校验和偶校验两种。
奇校验规定:正确的代码一个字节中1的个数必须是奇数，若非奇数，则在最高位b7添1。
偶校验规定:正确的代码一个字节中1的个数必须是偶数，若非偶数，则在最高位b7添1。
UTF:
Unicode
 的实现方式不同于编码方式。
一个字符的Unicode编码是确定的，但是在实际传输过程中，由于不同系统平台的设计不一定一致，以及出于节省空间的目的，对Unicode编码的实现
方式有所不同。 Unicode的实现方式称为Unicode转换格式(Unicode Translation Format，简称为 UTF)。 *
 UTF-8:
8bit变长编码，对于大多数常用字符集(ASCII中0~127字符)它只使用单字节，而对其它常用字符(特别是朝鲜和汉语会意文字)，它使用3字节。
 * UTF-16:
16bit编码，是变长码，大致相当于20位编码，值在0到0&#215;10FFFF之间，基本上就是unicode编码的实现，与CPU字序有关。&#160;注意：ASCII&#160; char (2)&#160; ;UTF-8 宽字符&#160; wchar&#160; 4倍 。兼容性最好的编码就是UTF-8! 毕竟GBK/GB2312是国内的标准，当我们大量使用国外的开源软件时，UTF-8才是编码界最通用的语言。


在Linux中通过locale来设置程序运行的不同语言环境，locale由ANSI C提供支持。locale的命名规则为&#60;语言&#62;_&#60;地区&#62;.&#60;字符集编码&#62;，如zh_CN.UTF-8，zh代表中文，CN代表大陆地区，UTF-8表示字符集。在locale环境中，有一组变量，代表国际化环境中的不同设置：
1.&#160;&#160;&#160;&#160;LC_COLLATE定义该环境的排序和比较规则
2.&#160;&#160;&#160;&#160;LC_CTYPE用于字符分类和字符串处理，控制所有字符的处理方式，包括字符编码，字符是单字节还是多字节，如何打印等。是最重要的一个环境变量。
3.&#160;&#160;&#160;&#160;LC_MONETARY货币格式
4.&#160;&#160;&#160;&#160;LC_NUMERIC非货币的数字显示格式
5.&#160;&#160;&#160;&#160;LC_TIME时间和日期格式
6.&#160;&#160;&#160;&#160;LC_MESSAGES提示信息的语言。另外还有一个LANGUAGE参数，它与LC_MESSAGES相似，但如果该参数一旦设置，则LC_MESSAGES参数就会失效。LANGUAGE参数可同时设置多种语言信息，如LANGUANE=&#8221;zh_CN.GB18030:zh_CN.GB2312:zh_CN&#8221;。
7.&#160;&#160;&#160;&#160;LANGLC_*的默认值，是最低级别的设置，如果LC_*没有设置，则使用该值。类似于&#160;LC_ALL。
8.&#160;&#160;&#160;&#160;LC_ALL它是一个宏，如果该值设置了，则该值会覆盖所有LC_*的设置值。注意，LANG的值不受该宏影响。
一个例子：
&#60;span&#62;设置前，使用默认&#60;span&#62;locale&#60;/span&#62;：
&#60;/span&#62;&#60;span&#62;[root@db-wanggaofei ~]# locale
&#60;/span&#62;&#60;span&#62;LANG="POSIX"
&#60;/span&#62;&#60;span&#62;LC_CTYPE="POSIX"
&#60;/span&#62;&#60;span&#62;LC_NUMERIC="POSIX"
&#60;/span&#62;&#60;span&#62;LC_TIME="POSIX"
&#60;/span&#62;&#60;span&#62;LC_COLLATE="POSIX"
&#60;/span&#62;&#60;span&#62;LC_MONETARY="POSIX"
&#60;/span&#62;&#60;span&#62;LC_MESSAGES="POSIX"
&#60;/span&#62;&#60;span&#62;LC_PAPER="POSIX"
&#60;/span&#62;&#60;span&#62;LC_NAME="POSIX"
&#60;/span&#62;&#60;span&#62;LC_ADDRESS="POSIX"
&#60;/span&#62;&#60;span&#62;LC_TELEPHONE="POSIX"
&#60;/span&#62;&#60;span&#62;LC_MEASUREMENT="POSIX"
&#60;/span&#62;&#60;span&#62;LC_IDENTIFICATION="POSIX"
&#60;/span&#62;&#60;span&#62;LC_ALL=&#60;/span&#62;&#160;
&#60;span&#62;设置后，使用&#60;span&#62;zh_CN.GDK&#60;/span&#62;中文&#60;span&#62;locale&#60;/span&#62;：&#60;/span&#62;
&#60;span&#62;[root@db-wanggaofei ~]# export LC_ALL=zh_CN.GBK&#60;br /&#62;&#60;/span&#62;&#60;span&#62;[root@db-wanggaofei ~]# locale&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LANG=zh_CN.UTF-8&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_CTYPE="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_NUMERIC="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_TIME="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_COLLATE="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_MONETARY="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_MESSAGES="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_PAPER="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_NAME="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_ADDRESS="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_TELEPHONE="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_MEASUREMENT="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_IDENTIFICATION="zh_CN.GBK"&#60;br /&#62;&#60;/span&#62;&#60;span&#62;LC_ALL=zh_CN.GBK&#60;/span&#62;
&#8220;C&#8221;是系统默认的locale，&#8220;POSIX&#8221;是&#8220;C&#8221;的别名。所以当我们新安装完一个系统时，默认的locale就是C或POSIX。
在Debian中安装locales的方法如下：
·&#160;通过apt-get install locales命令安装locales包·&#160;安装完成locales包后，系统会自动进行locale配置，你只要选择所需的locale，可以多选。最后指定一个系统默认的locale。这样系统就会帮你自动生成相应的locale和配置好系统的locale。
·&#160;增加新的locale也很简单，用dpkp-reconfigure [...]]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="color: rgb(16, 62, 123); font-family: Verdana,Arial,Helvetica,宋体,sans-serif; line-height: 23px;">&nbsp;最近，公司在XP系统于LINUX之间传数据时出现了中文乱码问题!&nbsp;<br />首先，解释一下字符集：<br />
<h3 style="margin: 0px auto; padding: 0px; border-width: 0px;">汉字编码:</h3>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">*<br />
 GB2312字集是简体字集，全称为GB2312(80)字集，共包括国标简体汉字6763个。 *<br />
BIG5字集是台湾繁体字集，共包括国标繁体汉字13053个。 *<br />
GBK字集是简繁字集，包括了GB字集、BIG5字集和一些符号，共包括21003个字符。 *<br />
GB18030是国家制定的一个强制性大字集标准，全称为GB18030-2000，它的推出使汉字集有了一个“大一统”的标准。&nbsp;</div>
<h3 style="margin: 0px auto; padding: 0px; border-width: 0px;">ASCII:</h3>
<p>American<br />
 Standard Code for Information Interchange，美国信息交换标准码。<br />
目前计算机中用得最广泛的字符集及其编码，由美国国家标准局(ANSI)制定。 它已被国际标准化组织(ISO)定为国际标准，称为ISO 646标准。<br />
 ASCII字符集由控制字符和图形字符组成。<br />
在计算机的存储单元中，一个ASCII码值占一个字节(8个二进制位)，其最高位(b7)用作奇偶校验位。<br />
所谓奇偶校验，是指在代码传送过程中用来检验是否出现错误的一种方法，一般分奇校验和偶校验两种。<br />
奇校验规定:正确的代码一个字节中1的个数必须是奇数，若非奇数，则在最高位b7添1。<br />
偶校验规定:正确的代码一个字节中1的个数必须是偶数，若非偶数，则在最高位b7添1。<br />
<h3 style="margin: 0px auto; padding: 0px; border-width: 0px;">UTF:</h3>
<p>Unicode<br />
 的实现方式不同于编码方式。<br />
一个字符的Unicode编码是确定的，但是在实际传输过程中，由于不同系统平台的设计不一定一致，以及出于节省空间的目的，对Unicode编码的实现<br />
方式有所不同。 Unicode的实现方式称为Unicode转换格式(Unicode Translation Format，简称为 UTF)。 *<br />
 UTF-8:<br />
8bit变长编码，对于大多数常用字符集(ASCII中0~127字符)它只使用单字节，而对其它常用字符(特别是朝鲜和汉语会意文字)，它使用3字节。<br />
 * UTF-16:<br />
16bit编码，是变长码，大致相当于20位编码，值在0到0&#215;10FFFF之间，基本上就是unicode编码的实现，与CPU字序有关。&nbsp;<br />注意：ASCII&nbsp; char (2)&nbsp; ;UTF-8 宽字符&nbsp; wchar&nbsp; 4倍 。兼容性最好的编码就是UTF-8! 毕竟GBK/GB2312是国内的标准，当我们大量使用国外的开源软件时，UTF-8才是编码界最通用的语言。
<div class="postTitle" style="margin: 0px auto; padding: 0px; border-width: 0px;">
<div class="postText" style="margin: 0px auto; padding: 0px; border-width: 0px;">
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span>在<span>Linux</span>中通过<span>locale</span>来设置程序运行的不同语言环境，<span>locale</span>由<span>ANSI C</span>提供支持。<span>locale</span>的命名规则为<span>&lt;</span>语言<span>&gt;_&lt;</span>地区<span>&gt;.&lt;</span>字符集编码<span>&gt;</span>，如<span>zh_CN.UTF-8</span>，<span>zh</span>代表中文，<span>CN</span>代表大陆地区，<span>UTF-8</span>表示字符集。在<span>locale</span>环境中，有一组变量，代表国际化环境中的不同设置：</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>1.<span>&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span>LC_COLLATE<br /></span><span>定义该环境的排序和比较规则</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>2.<span>&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span>LC_CTYPE<br /></span><span>用于字符分类和字符串处理，控制所有字符的处理方式，包括字符编码，字符是单字节还是多字节，如何打印等。是最重要的一个环境变量。</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>3.<span>&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span>LC_MONETARY<br /></span><span>货币格式</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>4.<span>&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span>LC_NUMERIC<br /></span><span>非货币的数字显示格式</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>5.<span>&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span>LC_TIME<br /></span><span>时间和日期格式</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>6.<span>&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span>LC_MESSAGES<br /></span><span>提示信息的语言。另外还有一个<span>LANGUAGE</span>参数，它与<span>LC_MESSAGES</span>相似，但如果该参数一旦设置，则<span>LC_MESSAGES</span>参数就会失效。<span>LANGUAGE</span>参数可同时设置多种语言信息，如<span>LANGUANE=&#8221;zh_CN.GB18030:zh_CN.GB2312:zh_CN&#8221;</span>。</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>7.<span>&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span>LANG<br /></span><span>LC_*</span><span>的默认值，是最低级别的设置，如果<span>LC_*</span>没有设置，则使用该值。类似于<span>&nbsp;LC_ALL</span>。</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>8.<span>&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><span>LC_ALL<br /></span><span>它是一个宏，如果该值设置了，则该值会覆盖所有<span>LC_*</span>的设置值。注意，<span>LANG</span>的值不受该宏影响。</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span>一个例子：</span></div>
<pre>&lt;span&gt;设置前，使用默认&lt;span&gt;locale&lt;/span&gt;：
&lt;/span&gt;&lt;span&gt;[root@db-wanggaofei ~]# locale
&lt;/span&gt;&lt;span&gt;LANG="POSIX"
&lt;/span&gt;&lt;span&gt;LC_CTYPE="POSIX"
&lt;/span&gt;&lt;span&gt;LC_NUMERIC="POSIX"
&lt;/span&gt;&lt;span&gt;LC_TIME="POSIX"
&lt;/span&gt;&lt;span&gt;LC_COLLATE="POSIX"
&lt;/span&gt;&lt;span&gt;LC_MONETARY="POSIX"
&lt;/span&gt;&lt;span&gt;LC_MESSAGES="POSIX"
&lt;/span&gt;&lt;span&gt;LC_PAPER="POSIX"
&lt;/span&gt;&lt;span&gt;LC_NAME="POSIX"
&lt;/span&gt;&lt;span&gt;LC_ADDRESS="POSIX"
&lt;/span&gt;&lt;span&gt;LC_TELEPHONE="POSIX"
&lt;/span&gt;&lt;span&gt;LC_MEASUREMENT="POSIX"
&lt;/span&gt;&lt;span&gt;LC_IDENTIFICATION="POSIX"
&lt;/span&gt;&lt;span&gt;LC_ALL=&lt;/span&gt;&nbsp;</pre>
<pre>&lt;span&gt;设置后，使用&lt;span&gt;zh_CN.GDK&lt;/span&gt;中文&lt;span&gt;locale&lt;/span&gt;：&lt;/span&gt;</pre>
<pre>&lt;span&gt;[root@db-wanggaofei ~]# export LC_ALL=zh_CN.GBK&lt;br /&gt;&lt;/span&gt;&lt;span&gt;[root@db-wanggaofei ~]# locale&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LANG=zh_CN.UTF-8&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_CTYPE="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_NUMERIC="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_TIME="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_COLLATE="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_MONETARY="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_MESSAGES="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_PAPER="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_NAME="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_ADDRESS="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_TELEPHONE="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_MEASUREMENT="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_IDENTIFICATION="zh_CN.GBK"&lt;br /&gt;&lt;/span&gt;&lt;span&gt;LC_ALL=zh_CN.GBK&lt;/span&gt;</pre>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span>&#8220;C&#8221;</span><span>是系统默认的<span>locale</span>，<span>&#8220;POSIX&#8221;</span>是<span>&#8220;C&#8221;</span>的别名。所以当我们新安装完一个系统时，默认的<span>locale</span>就是<span>C</span>或P<span>OSIX</span>。</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span>在<span>Debian</span>中安装<span>locales</span>的方法如下：</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>·<span>&nbsp;</span></span></span><span>通过<span>apt-get install locales</span>命令安装<span>locales</span>包<br /></span><span><span>·<span>&nbsp;</span></span></span><span>安装完成<span>locales</span>包后，系统会自动进行<span>locale</span>配置，你只要选择所需的<span>locale</span>，可以多选。最后指定一个系统默认的<span>locale</span>。这样系统就会帮你自动生成相应的<span>locale</span>和配置好系统的<span>locale</span>。</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>·<span>&nbsp;</span></span></span><span>增加新的<span>locale</span>也很简单，用<span>dpkp-reconfigure locales</span>重新配置<span>locale</span>即可。</span></div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span><span>·&nbsp;</span></span><span>我们也可手动增加<span>locale</span>，只要把新的<span>locale</span>增加到<span>/etc/locale.gen</span>文件中，再运行<span>locale-gen</span>命令即可生成新的<span>locale</span>。再通<span>过设置</span>上面介绍的<span>LC_*</span>变量就可设置系统的<span>locale</span>了。下是一个<span>locale.gen</span>文件的样例。</span></div>
<pre>&lt;span&gt;&lt;span&gt;·&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;# This file lists locales that you wish to have built. You can find a list&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;·&lt;span&gt;&nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;# of valid supported locales at /usr/share/i18n/SUPPORTED. Other&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;·&lt;span&gt;&nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;# combinations are possible, but may not be well tested. If you change&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;·&lt;span&gt;&nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;# this file, you need to rerun locale-gen.&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;·&lt;span&gt;&nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;#&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;·&lt;/span&gt;&lt;/span&gt;&lt;span&gt;zh_CN.GBK GBK&lt;br /&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;·&lt;/span&gt;&lt;/span&gt;&lt;span&gt;zh_CN.UTF-8 UTF-8&lt;/span&gt;</pre>
<pre>&lt;span&gt;-----------------------------------------&lt;/span&gt;</pre>
<pre>&lt;span&gt;在我看来只要搞清楚LANG和SUPPORTED就OK了，其他可能平时也用不太多。再参考篇文章，如下，是讲如何设置环境变量的。&lt;/span&gt;</pre>
<pre>&lt;span&gt;-------------------------------------------&lt;/span&gt;</pre>
<pre>修改 /etc/sysconfig/i18n 文件，如&lt;br /&gt;LANG="en_US.UTF-8"，xwindow会显示英文界面，&lt;br /&gt;LANG="zh_CN.GB18030"，xwindow会显示中文界面。 &lt;br /&gt;还有一种方法 cp /etc/sysconfig/i18n $HOME/.i18n &lt;br /&gt;修改 $HOME/.i18n 文件，如&lt;br /&gt;LANG="en_US.UTF-8"，xwindow会显示英文界面，&lt;br /&gt;LANG="zh_CN.GB18030"，xwindow会显示中文界面。&lt;br /&gt;这样就可以改变个人的界面语言，而不影响别的用户&lt;br /&gt;&lt;br /&gt;修改后的/etc/sysconfig/i18n 文件为：&lt;br /&gt;LANG="en_US.UTF-8"&lt;br /&gt;SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"&lt;br /&gt;SYSFONT="latarcyrheb-sun16"&lt;br /&gt;LC_ALL="en_US.UTF-8"&lt;br /&gt;export LC_ALL&lt;br /&gt;&lt;br /&gt;设置完毕后重启或者用rc.local使生效</pre>
</div>
</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">或修改登录用户的.bash_profile文件加入<br />export LANG=zh_CN.GB18030<br />export LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">&nbsp;</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">&nbsp;</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">一定要知道Windows XP 是GB2312的编码，如果你的服务器字符集不是这个，估计就会是乱码，所以要调整。</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">&nbsp;</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">有些人在调整的时候，说我改了系统环境变量，结果造成用户内容显示乱码，无非解决的方法就是两个：</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">1.用iconv转化为目前的编码</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">2.用你原来使用的编码</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">&nbsp;</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">看了这两条，你肯定必须要明确，你原来的字符编码是如何的。说来说去，无非就是LANG SUPPORTED 和你原文件字符集的编码：）</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">当然了locale -a你可以看看目前系统里支持的字符集，如果不支持，还要安装奥。</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;">如果不支持可以安装以下四个包：</div>
<div style="margin: 0px auto; padding: 0px; border-width: 0px;"><span class="Apple-style-span" style="white-space: pre;">&nbsp;     </span><span class="Apple-style-span" style="color: rgb(42, 42, 42); font-family: Tahoma,Helvetica,Arial,sans-serif; font-size: 14px; line-height: 25px;">fonts-chinese-2.15-2.noarch.rpm&nbsp;</span></div>
<p><span class="Apple-style-span" style="color: rgb(42, 42, 42); font-family: Tahoma,Helvetica,Arial,sans-serif; font-size: 14px; line-height: 25px;">　　fonts-ISO8859-2-1.0-14.noarch.rpm&nbsp;<br />　　fonts-ISO8859-2-75dpi-1.0-14.noarch.rpm&nbsp;<br />　　fonts-ISO8859-2-100dpi-1.0-14.noarch.rpm <br /></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2010-10-26-linux%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98-gbk-utf-8.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fedora8安装VMware Tools后鼠标滚轮不能用的问题的解决方法</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2010-10-26-fedora8%e5%ae%89%e8%a3%85vmware-tools%e5%90%8e%e9%bc%a0%e6%a0%87%e6%bb%9a%e8%bd%ae%e4%b8%8d%e8%83%bd%e7%94%a8%e7%9a%84%e9%97%ae%e9%a2%98%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2010-10-26-fedora8%e5%ae%89%e8%a3%85vmware-tools%e5%90%8e%e9%bc%a0%e6%a0%87%e6%bb%9a%e8%bd%ae%e4%b8%8d%e8%83%bd%e7%94%a8%e7%9a%84%e9%97%ae%e9%a2%98%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html#comments</comments>
		<pubDate>Tue, 26 Oct 2010 03:47:29 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/uncategorized/admin-2010-10-26-fedora8%e5%ae%89%e8%a3%85vmware-tools%e5%90%8e%e9%bc%a0%e6%a0%87%e6%bb%9a%e8%bd%ae%e4%b8%8d%e8%83%bd%e7%94%a8%e7%9a%84%e9%97%ae%e9%a2%98%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html</guid>
		<description><![CDATA[在虚拟机VM中安装完Fedora8后，提示安装VMware Tools，在根据提示安装完VMware Tools后结果原来可以用的鼠标滚轮不会动了，不管怎样在什么程序下鼠标滚轮都不能用。
后来经过查找终于发现是VMware Tools修改了 /etc/X11/xorg.conf 文件，在终端中输入 sudo gedit /etc/X11/xorg.conf，以root权限打开文件可以看到文件如下：
# Xorg configuration created by system-config-display
Section &#8220;ServerLayout&#8221;
    Identifier     &#8220;single head configuration&#8221;
    Screen      0  &#8220;Screen0&#8243; 0 0
    InputDevice    &#8220;Keyboard0&#8243; &#8220;CoreKeyboard&#8221;
    InputDevice   [...]]]></description>
			<content:encoded><![CDATA[<p>在虚拟机VM中安装完Fedora8后，提示安装VMware Tools，在根据提示安装完VMware Tools后结果原来可以用的鼠标滚轮不会动了，不管怎样在什么程序下鼠标滚轮都不能用。</p>
<p>后来经过查找终于发现是VMware Tools修改了 /etc/X11/xorg.conf 文件，在终端中输入 sudo gedit /etc/X11/xorg.conf，以root权限打开文件可以看到文件如下：</p>
<p># Xorg configuration created by system-config-display</p>
<p>Section &#8220;ServerLayout&#8221;<br />
    Identifier     &#8220;single head configuration&#8221;<br />
    Screen      0  &#8220;Screen0&#8243; 0 0<br />
    InputDevice    &#8220;Keyboard0&#8243; &#8220;CoreKeyboard&#8221;<br />
    InputDevice    &#8220;VMMouse&#8221; &#8220;CorePointer&#8221;<br />
    #InputDevice    &#8220;XWorkAround&#8221;<br />
EndSection</p>
<p>Section &#8220;InputDevice&#8221;<br />
    Identifier  &#8220;Keyboard0&#8243;<br />
    Driver      &#8220;kbd&#8221;<br />
    Option        &#8220;XkbModel&#8221; &#8220;pc105&#8243;<br />
    Option        &#8220;XkbLayout&#8221; &#8220;us+inet&#8221;<br />
EndSection</p>
<p>Section &#8220;InputDevice&#8221;<br />
    Identifier  &#8220;VMMouse&#8221;<br />
    Driver      &#8220;vmmouse&#8221;<br />
    Option        &#8220;Device&#8221; &#8220;/dev/input/mice&#8221;<br />
    Option        &#8220;Emulate3Buttons&#8221; &#8220;yes&#8221;<br />
EndSection</p>
<p><font color="Red">#Section &#8220;InputDevice&#8221;<br />
    #Identifier  &#8220;XWorkAround&#8221;<br />
    #Driver      &#8220;void&#8221;<br />
#EndSection</font></p>
<p>Section &#8220;Monitor&#8221;<br />
    Identifier   &#8220;vmware&#8221;<br />
    VendorName   &#8220;VMware, Inc&#8221;<br />
    HorizSync    1.0 &#8211; 10000.0<br />
    VertRefresh  1.0 &#8211; 10000.0<br />
EndSection</p>
<p>Section &#8220;Device&#8221;<br />
    Identifier  &#8220;VMware SVGA&#8221;<br />
    Driver      &#8220;vmware&#8221;<br />
EndSection</p>
<p>Section &#8220;Screen&#8221;</p>
<p>    # Don&#8217;t specify DefaultColorDepth unless you know what you&#8217;re<br />
    # doing. It will override the driver&#8217;s preferences which can<br />
    # cause the X server not to run if the host doesn&#8217;t support the<br />
    # depth.<br />
    Identifier &#8220;Screen0&#8243;<br />
    Device     &#8220;VMware SVGA&#8221;<br />
    Monitor    &#8220;vmware&#8221;<br />
    DefaultDepth     16<br />
    SubSection &#8220;Display&#8221;</p>
<p>        # VGA mode: better left untouched<br />
        Viewport   0 0<br />
        Depth     4<br />
        Modes    &#8220;640&#215;480&#8243;<br />
    EndSubSection<br />
    SubSection &#8220;Display&#8221;<br />
        Viewport   0 0<br />
        Depth     8<br />
        Modes    &#8220;1024&#215;768&#8243;<br />
    EndSubSection<br />
    SubSection &#8220;Display&#8221;<br />
        Viewport   0 0<br />
        Depth     15<br />
        Modes    &#8220;1024&#215;768&#8243;<br />
    EndSubSection<br />
    SubSection &#8220;Display&#8221;<br />
        Viewport   0 0<br />
        Depth     16<br />
        Modes    &#8220;800&#215;600&#8243; &#8220;720&#215;400&#8243; &#8220;640&#215;480&#8243; &#8220;640&#215;400&#8243; &#8220;640&#215;350&#8243;<br />
    EndSubSection<br />
    SubSection &#8220;Display&#8221;<br />
        Viewport   0 0<br />
        Depth     24<br />
        Modes    &#8220;1024&#215;768&#8243;<br />
    EndSubSection<br />
EndSection</p>
<p>注意看上面文件中的红色部份，原来前面没有＃符号，就是因为VMWare<br />
Tools多此一举加了这个XWorkAround驱动导致鼠标滚轮不能使用。现在可以在前面加上＃符号让系统不去执行该行代码，或者干脆删除这四行，然<br />
后保存退出，接着再注销后重新启动XWindow后鼠标滚轮就可以用了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2010-10-26-fedora8%e5%ae%89%e8%a3%85vmware-tools%e5%90%8e%e9%bc%a0%e6%a0%87%e6%bb%9a%e8%bd%ae%e4%b8%8d%e8%83%bd%e7%94%a8%e7%9a%84%e9%97%ae%e9%a2%98%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fedora-14-release-in-8-days</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2010-10-26-fedora-14-release-in-8-days.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2010-10-26-fedora-14-release-in-8-days.html#comments</comments>
		<pubDate>Tue, 26 Oct 2010 03:45:18 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/uncategorized/admin-2010-10-26-fedora-14-release-in-8-days.html</guid>
		<description><![CDATA[fedora-14 release in 8 days



2010-10-122010-10-19  
 Compose Release Candidate



 2010-10-262010-11-02  
  Fedora 14 Final Release



很快可以使用Fedora 14了。哈哈。
]]></description>
			<content:encoded><![CDATA[<p>fedora-14 release in 8 days<br />
<table>
<tbody>
<tr>
<td><strike>2010-10-12</strike><br />2010-10-19  </td>
<td> Compose Release Candidate
</td>
</tr>
<tr>
<td> <strike>2010-10-26</strike><br />2010-11-02  </td>
<td> <a href="https://fedoraproject.org/wiki/Fedora_14_Final_Release_Criteria" title="Fedora 14 Final Release Criteria"> Fedora 14 Final Release</a></td>
</tr>
</tbody>
</table>
<p>很快可以使用Fedora 14了。哈哈。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2010-10-26-fedora-14-release-in-8-days.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>libglade中的Notebook控件不要有空页</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2010-08-13-libglade%e4%b8%ad%e7%9a%84notebook%e6%8e%a7%e4%bb%b6%e4%b8%8d%e8%a6%81%e6%9c%89%e7%a9%ba%e9%a1%b5.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2010-08-13-libglade%e4%b8%ad%e7%9a%84notebook%e6%8e%a7%e4%bb%b6%e4%b8%8d%e8%a6%81%e6%9c%89%e7%a9%ba%e9%a1%b5.html#comments</comments>
		<pubDate>Fri, 13 Aug 2010 07:17:08 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/?p=204</guid>
		<description><![CDATA[在主窗口上加一个NoteBook控件。准备在登录中显示那个动画的页，登录成功则显示好友列表的页。
用glade画好Notebook控件后。程序加载后显示有一个警告：
(italk:31101): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)’ failed
（http://lists.ximian.com/pipermail/glade-users/2004-August/002014.html）（查到的资料地址,解决方案）google一下才知道。这是因为我画的Notebook控件有三页，而我只用了其中两页。就是有一页为空。而 libglademm处理这个空页时产生的这个警告。只需要去掉这个空页，或者在空页里随便加一个Vbox控件令它不为空就行了。这问题在 Notebook页设为0时也会出现。这对于libglade也是一样。所以标题用这个。我看用C和libglade的人会比用C++和 libglademm的人多吧。
]]></description>
			<content:encoded><![CDATA[<p>在主窗口上加一个NoteBook控件。准备在登录中显示那个动画的页，登录成功则显示好友列表的页。<br />
用glade画好Notebook控件后。程序加载后显示有一个警告：<br />
(italk:31101): Gtk-CRITICAL **: gtk_notebook_set_tab_label: assertion `GTK_IS_WIDGET (child)’ failed<br />
（http://lists.ximian.com/pipermail/glade-users/2004-August/002014.html）（查到的资料地址,解决方案）google一下才知道。这是因为我画的Notebook控件有三页，而我只用了其中两页。就是有一页为空。而 libglademm处理这个空页时产生的这个警告。只需要去掉这个空页，或者在空页里随便加一个Vbox控件令它不为空就行了。这问题在 Notebook页设为0时也会出现。这对于libglade也是一样。所以标题用这个。我看用C和libglade的人会比用C++和 libglademm的人多吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2010-08-13-libglade%e4%b8%ad%e7%9a%84notebook%e6%8e%a7%e4%bb%b6%e4%b8%8d%e8%a6%81%e6%9c%89%e7%a9%ba%e9%a1%b5.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>fedora-13-menubar-is-gone</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2010-07-31-fedora-13-menubar-is-gone.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2010-07-31-fedora-13-menubar-is-gone.html#comments</comments>
		<pubDate>Sat, 31 Jul 2010 08:26:41 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/?p=202</guid>
		<description><![CDATA[fedora13，安装了一些软件后，文件管理器和其他软件的菜单栏都不见了。
google后，发现是gnome-globalmenu-common &#038; gnome-applet-globalmenu的问题。
只需yum remove gnome-globalmenu-common 就OK了！
]]></description>
			<content:encoded><![CDATA[<p>fedora13，安装了一些软件后，文件管理器和其他软件的菜单栏都不见了。<br />
google后，发现是gnome-globalmenu-common &#038; gnome-applet-globalmenu的问题。<br />
只需yum remove gnome-globalmenu-common 就OK了！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2010-07-31-fedora-13-menubar-is-gone.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>139邮箱自写短信要收费</title>
		<link>http://www.masterlinux.cn/%e6%89%8b%e6%9c%ba/admin-2010-07-27-139%e9%82%ae%e7%ae%b1%e8%87%aa%e5%86%99%e7%9f%ad%e4%bf%a1%e8%a6%81%e6%94%b6%e8%b4%b9.html</link>
		<comments>http://www.masterlinux.cn/%e6%89%8b%e6%9c%ba/admin-2010-07-27-139%e9%82%ae%e7%ae%b1%e8%87%aa%e5%86%99%e7%9f%ad%e4%bf%a1%e8%a6%81%e6%94%b6%e8%b4%b9.html#comments</comments>
		<pubDate>Tue, 27 Jul 2010 02:21:43 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[手机]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/?p=200</guid>
		<description><![CDATA[139邮箱自写短信要收费，
本条共0字,将以0条计费,本月已发7条，按0.1元/ 条计费。关闭计费提醒
    如果发送的短信要收费，您可以设置是否显示计费提醒。（王八蛋，这句话被隐藏了起来。）
温馨提示：一天内最多发送50条，一月内最多发送2000条
]]></description>
			<content:encoded><![CDATA[<p>139邮箱自写短信要收费，</p>
<p>本条共0字,将以0条计费,本月已发7条，按0.1元/ 条计费。关闭计费提醒</p>
<p>    如果发送的短信要收费，您可以设置是否显示计费提醒。（王八蛋，这句话被隐藏了起来。）</p>
<p>温馨提示：一天内最多发送50条，一月内最多发送2000条</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/%e6%89%8b%e6%9c%ba/admin-2010-07-27-139%e9%82%ae%e7%ae%b1%e8%87%aa%e5%86%99%e7%9f%ad%e4%bf%a1%e8%a6%81%e6%94%b6%e8%b4%b9.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fedora-13-Linux下使用局域网中windows 共享打印机</title>
		<link>http://www.masterlinux.cn/linux/admin-2010-07-27-fedora-13-linux%e4%b8%8b%e4%bd%bf%e7%94%a8%e5%b1%80%e5%9f%9f%e7%bd%91%e4%b8%adwindows-%e5%85%b1%e4%ba%ab%e6%89%93%e5%8d%b0%e6%9c%ba.html</link>
		<comments>http://www.masterlinux.cn/linux/admin-2010-07-27-fedora-13-linux%e4%b8%8b%e4%bd%bf%e7%94%a8%e5%b1%80%e5%9f%9f%e7%bd%91%e4%b8%adwindows-%e5%85%b1%e4%ba%ab%e6%89%93%e5%8d%b0%e6%9c%ba.html#comments</comments>
		<pubDate>Tue, 27 Jul 2010 02:18:20 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/?p=198</guid>
		<description><![CDATA[环境：Fedora 13+windows xp+hp laserjet 1018
1、查看共享打印机名：
     使用windows查看网络打印机属性。控制面板-》打印机和传真-》看看有没有你要添加的windows网络中共享的打印机，我的是 hp laserjet 1018,没有的话添加网络打印机，有的话直接在其之上单击右键-属性，第二个共享属性选项卡中有其共享名：网络 。（或者直接到共享的那台上看看它叫啥，就是不知道有没有办法在linux下只知道打印机服务器ip的情况下查询到打印机名称的办法。
2、安装samba 貌似我的直接安装好了的~没有的话终端下 sudo yum install samba
3、添加打印机：
     系统-》系统管理-》打印，点新打印机-在弹出的窗口中选择 windows printer via samba ，右边填写打印机ip及打印机名称或者浏览（我的浏览不到打印机服务器，但是竟然浏览到了打印机服务器上的网络狗了~郁闷的要死），我填写的是：smb：//192.168.1.1.08/网络   如何是字母这里一定注意大小写~以前没有成功就是这里的问题~
选择需要验证，用户名填写 guest 密码空（这里看你的实际情况了，一般默认下windows网络共享打印机都是guest用户访问打印的），然后测试下，点下“验证”，如果出现“已验证”，表示认证通过。恭喜^_^
4、安装驱动：选择相应厂商的相应打印机驱动程序，我的是hp laserjet 1018,自然就选择hp laserjet 1018。
打印测试成功！！呵呵
]]></description>
			<content:encoded><![CDATA[<p>环境：Fedora 13+windows xp+hp laserjet 1018<br />
1、查看共享打印机名：<br />
     使用windows查看网络打印机属性。控制面板-》打印机和传真-》看看有没有你要添加的windows网络中共享的打印机，我的是 hp laserjet 1018,没有的话添加网络打印机，有的话直接在其之上单击右键-属性，第二个共享属性选项卡中有其共享名：网络 。（或者直接到共享的那台上看看它叫啥，就是不知道有没有办法在linux下只知道打印机服务器ip的情况下查询到打印机名称的办法。</p>
<p>2、安装samba 貌似我的直接安装好了的~没有的话终端下 sudo yum install samba</p>
<p>3、添加打印机：<br />
     系统-》系统管理-》打印，点新打印机-在弹出的窗口中选择 windows printer via samba ，右边填写打印机ip及打印机名称或者浏览（我的浏览不到打印机服务器，但是竟然浏览到了打印机服务器上的网络狗了~郁闷的要死），我填写的是：smb：//192.168.1.1.08/网络   如何是字母这里一定注意大小写~以前没有成功就是这里的问题~<br />
选择需要验证，用户名填写 guest 密码空（这里看你的实际情况了，一般默认下windows网络共享打印机都是guest用户访问打印的），然后测试下，点下“验证”，如果出现“已验证”，表示认证通过。恭喜^_^<br />
4、安装驱动：选择相应厂商的相应打印机驱动程序，我的是hp laserjet 1018,自然就选择hp laserjet 1018。</p>
<p>打印测试成功！！呵呵</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/linux/admin-2010-07-27-fedora-13-linux%e4%b8%8b%e4%bd%bf%e7%94%a8%e5%b1%80%e5%9f%9f%e7%bd%91%e4%b8%adwindows-%e5%85%b1%e4%ba%ab%e6%89%93%e5%8d%b0%e6%9c%ba.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>tun虚拟网卡不能设置MAC地址</title>
		<link>http://www.masterlinux.cn/linux/admin-2010-06-19-tun%e8%99%9a%e6%8b%9f%e7%bd%91%e5%8d%a1%e4%b8%8d%e8%83%bd%e8%ae%be%e7%bd%aemac%e5%9c%b0%e5%9d%80.html</link>
		<comments>http://www.masterlinux.cn/linux/admin-2010-06-19-tun%e8%99%9a%e6%8b%9f%e7%bd%91%e5%8d%a1%e4%b8%8d%e8%83%bd%e8%ae%be%e7%bd%aemac%e5%9c%b0%e5%9d%80.html#comments</comments>
		<pubDate>Sat, 19 Jun 2010 04:53:03 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/linux/admin-2010-06-19-tun%e8%99%9a%e6%8b%9f%e7%bd%91%e5%8d%a1%e4%b8%8d%e8%83%bd%e8%ae%be%e7%bd%aemac%e5%9c%b0%e5%9d%80.html</guid>
		<description><![CDATA[tun虚拟网卡是点对点设备tap是虚拟以太网设备，
tun虚拟网卡不支持设置MAC地址。ifconfig tun0 hw ether XX:XX:XX:XX:XX:XX,会报错：SIOCSIFHWADDR: Operation not supported。

]]></description>
			<content:encoded><![CDATA[<p>tun虚拟网卡是点对点设备<br />tap是虚拟以太网设备，</p>
<p>tun虚拟网卡不支持设置MAC地址。<br />ifconfig tun0 hw ether XX:XX:XX:XX:XX:XX,会报错：SIOCSIFHWADDR: Operation not supported。</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=2d91954d-0720-8532-a69c-c2185f6697d5" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/linux/admin-2010-06-19-tun%e8%99%9a%e6%8b%9f%e7%bd%91%e5%8d%a1%e4%b8%8d%e8%83%bd%e8%ae%be%e7%bd%aemac%e5%9c%b0%e5%9d%80.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我的网站-MasterLinux.cn-升级了-wap-microblog-livechat-translate</title>
		<link>http://www.masterlinux.cn/wordpress/admin-2010-06-05-%e6%88%91%e7%9a%84%e7%bd%91%e7%ab%99-masterlinux-cn-%e5%8d%87%e7%ba%a7%e4%ba%86-wap-microblog-livechat-translate.html</link>
		<comments>http://www.masterlinux.cn/wordpress/admin-2010-06-05-%e6%88%91%e7%9a%84%e7%bd%91%e7%ab%99-masterlinux-cn-%e5%8d%87%e7%ba%a7%e4%ba%86-wap-microblog-livechat-translate.html#comments</comments>
		<pubDate>Sat, 05 Jun 2010 07:50:58 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/?p=194</guid>
		<description><![CDATA[我的网站,MasterLinux.cn,Linux发财之路，升级了。
WordPress的最新版本：2.9.2
添加了wap插件，只需在手机浏览器上输入&#8221;masterlinux.cn/wap&#8221;,便可以访问我的网站。
添加了微博
添加了在线客服。
]]></description>
			<content:encoded><![CDATA[<p>我的网站,MasterLinux.cn,Linux发财之路，升级了。<br />
WordPress的最新版本：2.9.2<br />
添加了wap插件，只需在手机浏览器上输入&#8221;masterlinux.cn/wap&#8221;,便可以访问我的网站。<br />
添加了微博<br />
添加了在线客服。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/wordpress/admin-2010-06-05-%e6%88%91%e7%9a%84%e7%bd%91%e7%ab%99-masterlinux-cn-%e5%8d%87%e7%ba%a7%e4%ba%86-wap-microblog-livechat-translate.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我是Fedora的忠实用户</title>
		<link>http://www.masterlinux.cn/linux/admin-2010-05-27-%e6%88%91%e6%98%affedora%e7%9a%84%e5%bf%a0%e5%ae%9e%e7%94%a8%e6%88%b7.html</link>
		<comments>http://www.masterlinux.cn/linux/admin-2010-05-27-%e6%88%91%e6%98%affedora%e7%9a%84%e5%bf%a0%e5%ae%9e%e7%94%a8%e6%88%b7.html#comments</comments>
		<pubDate>Thu, 27 May 2010 06:43:54 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/linux/admin-2010-05-27-%e6%88%91%e6%98%affedora%e7%9a%84%e5%bf%a0%e5%ae%9e%e7%94%a8%e6%88%b7.html</guid>
		<description><![CDATA[按照当前的计划，Fedora 14将在10月26日发布，采用GNOME 3.0, KDE 4.5, the  Linux 2.6.35/2.6.36 kernel, GCC 4.5, and X.Org Server 1.9。
　　以上即将被整合的新技术，不少也还处在开发阶段，所以Fedora时常被指责不够稳定。但这样的指责并没有削弱 用户的体验热情，很多用户依旧是Fedora最忠实的粉丝。屏幕前面的你是否也正期待着Fedora 13的到来呢?
我是Fedora的忠实用户。

]]></description>
			<content:encoded><![CDATA[<p><font size="2">按照当前的计划，Fedora 14将在10月26日发布，采用GNOME 3.0, KDE 4.5, the  Linux 2.6.35/2.6.36 kernel, GCC 4.5, and X.Org Server 1.9。</font>
<p><font size="2">　　以上即将被整合的新技术，不少也还处在开发阶段，所以Fedora时常被指责不够稳定。但这样的指责并没有削弱 用户的体验热情，很多用户依旧是Fedora最忠实的粉丝。屏幕前面的你是否也正期待着Fedora 13的到来呢?</font></p>
<p><font size="2">我是Fedora的忠实用户。<br /></font></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=dd21404b-7752-89e3-9475-c6fdfe40adea" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/linux/admin-2010-05-27-%e6%88%91%e6%98%affedora%e7%9a%84%e5%bf%a0%e5%ae%9e%e7%94%a8%e6%88%b7.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>下载了Fedora13的64位版本-在VMware居然不能安装</title>
		<link>http://www.masterlinux.cn/linux/admin-2010-05-26-%e4%b8%8b%e8%bd%bd%e4%ba%86fedora13%e7%9a%8464%e4%bd%8d%e7%89%88%e6%9c%ac-%e5%9c%a8vmware%e5%b1%85%e7%84%b6%e4%b8%8d%e8%83%bd%e5%ae%89%e8%a3%85.html</link>
		<comments>http://www.masterlinux.cn/linux/admin-2010-05-26-%e4%b8%8b%e8%bd%bd%e4%ba%86fedora13%e7%9a%8464%e4%bd%8d%e7%89%88%e6%9c%ac-%e5%9c%a8vmware%e5%b1%85%e7%84%b6%e4%b8%8d%e8%83%bd%e5%ae%89%e8%a3%85.html#comments</comments>
		<pubDate>Wed, 26 May 2010 09:22:08 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/linux/admin-2010-05-26-%e4%b8%8b%e8%bd%bd%e4%ba%86fedora13%e7%9a%8464%e4%bd%8d%e7%89%88%e6%9c%ac-%e5%9c%a8vmware%e5%b1%85%e7%84%b6%e4%b8%8d%e8%83%bd%e5%ae%89%e8%a3%85.html</guid>
		<description><![CDATA[原来是这个原因：VMWare WorkStation 6.0可以支持安装64位操作系统，网上看了不少帖子说宿主的机器操作系统也需要是64位的，其实也不是，可以通过打开CPU的 Virtualization Technology支持，这个一般在BIOS的Performance选项中，记住，即使宿主机器使用的是64位操作系统，也需要打开这一选项才能在虚拟机中安装64位操作系统。
&#160;&#160;&#160;&#160;&#160; 如果你的机器是intel芯片，不支持VT，很遗憾，无法在VMWare中安装64位的系统。
&#160;&#160;&#160;&#160;&#160; VMWare的官方网站指出，支持在VMWare中安装64位的系统的芯片有以下几种：
AMD Athlon 64, revision D or laterAMD Opteron, revision E or laterAMD Turion 64, revision E or laterAMD Sempron, 64-bit-capable revision D or later (experimental support)Intel EM64T VT-enabled processors (experimental support)
看来我要把这64位的系统装在笔记本上才行。或者下载一个live光盘，装在虚拟机里面尝尝鲜。

]]></description>
			<content:encoded><![CDATA[<p>原来是这个原因：<br />VMWare WorkStation 6.0可以支持安装64位操作系统，网上看了不少帖子说宿主的机器操作系统也需要是64位的，其实也不是，可以通过打开CPU的 Virtualization Technology支持，这个一般在BIOS的Performance选项中，记住，即使宿主机器使用的是64位操作系统，也需要打开这一选项才能在虚拟机中安装64位操作系统。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果你的机器是intel芯片，不支持VT，很遗憾，无法在VMWare中安装64位的系统。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VMWare的官方网站指出，支持在VMWare中安装64位的系统的芯片有以下几种：</p>
<p>AMD Athlon 64, revision D or later<br />AMD Opteron, revision E or later<br />AMD Turion 64, revision E or later<br />AMD Sempron, 64-bit-capable revision D or later (experimental support)<br />Intel EM64T VT-enabled processors (experimental support)</p>
<p>看来我要把这64位的系统装在笔记本上才行。或者下载一个live光盘，装在虚拟机里面尝尝鲜。</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=f40c5cc0-05bc-88cf-b4b6-728ccc343fdb" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/linux/admin-2010-05-26-%e4%b8%8b%e8%bd%bd%e4%ba%86fedora13%e7%9a%8464%e4%bd%8d%e7%89%88%e6%9c%ac-%e5%9c%a8vmware%e5%b1%85%e7%84%b6%e4%b8%8d%e8%83%bd%e5%ae%89%e8%a3%85.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vmware下安装redhat9-在redhat9里不能上网-eth0不能启动</title>
		<link>http://www.masterlinux.cn/linux/admin-2010-05-26-vmware%e4%b8%8b%e5%ae%89%e8%a3%85redhat9-%e5%9c%a8redhat9%e9%87%8c%e4%b8%8d%e8%83%bd%e4%b8%8a%e7%bd%91-eth0%e4%b8%8d%e8%83%bd%e5%90%af%e5%8a%a8.html</link>
		<comments>http://www.masterlinux.cn/linux/admin-2010-05-26-vmware%e4%b8%8b%e5%ae%89%e8%a3%85redhat9-%e5%9c%a8redhat9%e9%87%8c%e4%b8%8d%e8%83%bd%e4%b8%8a%e7%bd%91-eth0%e4%b8%8d%e8%83%bd%e5%90%af%e5%8a%a8.html#comments</comments>
		<pubDate>Wed, 26 May 2010 09:00:44 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/linux/admin-2010-05-26-vmware%e4%b8%8b%e5%ae%89%e8%a3%85redhat9-%e5%9c%a8redhat9%e9%87%8c%e4%b8%8d%e8%83%bd%e4%b8%8a%e7%bd%91-eth0%e4%b8%8d%e8%83%bd%e5%90%af%e5%8a%a8.html</guid>
		<description><![CDATA[red hat 9装在虚拟机vmware上之后，连接网络是出现问题&#160;Determining IP information for eth0&#8230; failed; no link present. Check cable？&#160;&#160; vmware设置的是nat的上网方式。//无论是桥接bridge或NAT,eth0都不能启动。
证明是redhat9的bug。。。。无语了解决方法：到/etc/sysconfig/network-scripts/ifcfg-eth&#60;n&#62;&#160;/etc/sysconfig/networking/devices/ifcfg-eth&#60;n&#62;&#160; &#160;其中&#60;n&#62;表示Ethernet adapter的标识数字，一般为0。当为零的时候，就是/etc/sysconfig/network-scripts/ifcfg-eth0&#160;/etc/sysconfig/networking/devices/ifcfg-eth0&#160; &#160;这两个文件中加入check_link_down () {return 1;}//其实只需/etc/sysconfig/network-scripts/ifcfg-eth0就行了。///etc/sysconfig/networking/devices/ifcfg-eth0&#160;&#160; 会自动跟着更改的。最后在root用户下，service network restart，就行了。另外如果存在/etc/sysconfig/networking/profiles/default/ifcfg-eth0 文件，则同样在其中加入这一段东西即可，然后重启系统。不行的话再手动配置下DNS 如主DNS:192.168.1.1 就OK了

]]></description>
			<content:encoded><![CDATA[<p><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="color: rgb(98, 91, 73); font-family: Arial; font-size: 17px; line-height: 24px;">red hat 9装在虚拟机vmware上之后，连接网络是出现<span class="t_tag" href="http://bbs.phpchina.com/tag.php?name=%CE%CA%CC%E2" style="line-height: normal;">问题</span><span class="Apple-converted-space">&nbsp;</span>Determining IP information for eth0&#8230; failed; no link present. Check cable？&nbsp;&nbsp; <br />vmware设置的是nat的上网方式。//无论是桥接bridge或NAT,eth0都不能启动。</p>
<p>证明是redhat9的bug。。。。无语了<br style="line-height: normal;" /><span class="t_tag" href="http://bbs.phpchina.com/tag.php?name=%BD%E2%BE%F6" style="line-height: normal;">解决</span>方法：<br style="line-height: normal;" />到/etc/sysconfig/network-scripts/ifcfg-eth&lt;n&gt;<span class="Apple-converted-space">&nbsp;</span><br style="line-height: normal;" />/etc/sysconfig/networking/devices/ifcfg-eth&lt;n&gt;&nbsp; &nbsp;<br style="line-height: normal;" />其中&lt;n&gt;表示Ethernet adapter的标识数字，一般为0。当为零的时候，就是<br style="line-height: normal;" />/etc/sysconfig/network-scripts/ifcfg-eth0<span class="Apple-converted-space">&nbsp;</span><br style="line-height: normal;" />/etc/sysconfig/networking/devices/ifcfg-eth0&nbsp; &nbsp;<br style="line-height: normal;" />这两个<span class="t_tag" href="http://bbs.phpchina.com/tag.php?name=%CE%C4%BC%FE" style="line-height: normal;">文件</span>中加入<br style="line-height: normal;" />check_link_down () {<br style="line-height: normal;" />return 1;<br style="line-height: normal;" />}<br />//其实只需</span></span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="color: rgb(98, 91, 73); font-family: Arial; font-size: 17px; line-height: 24px;">/etc/sysconfig/network-scripts/ifcfg-eth0就行了。<br />//</span></span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="color: rgb(98, 91, 73); font-family: Arial; font-size: 17px; line-height: 24px;">/etc/sysconfig/networking/devices/ifcfg-eth0&nbsp;&nbsp; 会自动跟着更改的。<br />最后在root用户下，service network restart，就行了。<br /><br style="line-height: normal;" /></span></span><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Simsun; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="color: rgb(98, 91, 73); font-family: Arial; font-size: 17px; line-height: 24px;">另外如果存在/etc/sysconfig/networking/profiles/default/ifcfg-eth0 文件，则同样在其中加入这一段东西即可，然后重<br style="line-height: normal;" />启<span class="t_tag" href="http://bbs.phpchina.com/tag.php?name=%CF%B5%CD%B3" style="line-height: normal;">系统</span>。不行的话再手动配置下DNS 如主DNS:192.168.1.1 就OK了</span></span></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=84fa5d24-3a36-835a-b9fa-c8dafb6bb455" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/linux/admin-2010-05-26-vmware%e4%b8%8b%e5%ae%89%e8%a3%85redhat9-%e5%9c%a8redhat9%e9%87%8c%e4%b8%8d%e8%83%bd%e4%b8%8a%e7%bd%91-eth0%e4%b8%8d%e8%83%bd%e5%90%af%e5%8a%a8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 8升级Linux内核到2.6.25</title>
		<link>http://www.masterlinux.cn/linux/admin-2010-05-26-fedora-8%e5%8d%87%e7%ba%a7linux%e5%86%85%e6%a0%b8%e5%88%b02625.html</link>
		<comments>http://www.masterlinux.cn/linux/admin-2010-05-26-fedora-8%e5%8d%87%e7%ba%a7linux%e5%86%85%e6%a0%b8%e5%88%b02625.html#comments</comments>
		<pubDate>Wed, 26 May 2010 03:31:31 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/linux/admin-2010-05-26-fedora-8%e5%8d%87%e7%ba%a7linux%e5%86%85%e6%a0%b8%e5%88%b02625.html</guid>
		<description><![CDATA[Linux 2.6内核编译比以前方便多了，本文描述了在Fedora 8下升级linux内核为2.6.25的详细步骤.
1. 首先从如下网址得到linux-2.6.25.
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.tar.bz2
2. 然后在/usr/src下untar这个包.
tar -xjfv linux-2.6.25.tar.bz2
3. 配置内核
cd /usr/src/linux-2.6.25
make mrproper(删除一些stable的文件,针对刚download下来的包这一步没必要)
make menuconfig(以菜单的方式显示, 可以定制Linux模块, 在菜单顶部有命令帮助)
3. 编译内核
make (这一步花的时间最多,我用了将近40分钟)
make modules_install
make install(系统将会把vmlinuz和System.map复制到/boot目录下同时修改grub)
在2.6以前需要make bzImage make modules, 而且还需要将vmlinuz和System.map复制到/boot目录.
要想得到更详细关于编译的描述, 可以参考/usr/src/linux-2.6.25的README. 每个Linux内核的发行都有这个文件.
4. 重启机器
shutdown -r now
这样在开始的grub菜单里你可以选择用新的内核来启动linux
进入系统后，可以sudo vi /boot/grub/menu.lst
将刚编译的kernel2.6.25设置为默认启动。
//没碰到一下情况。
如果启动时遇到这个错：
&#8220;Enforcing mode requested but no policy loaded. Halting now.&#8221;
Kernel panic: Attempted to kill init!
可以用如下方法解决：
Try adding enforcing=0 to your grub.conf.
kernel /boot/bzImage-2.6.5 ro root=/dev/hda5 enforcing=0
或者在/etc/selinux/config文件中，将SELINUX的值设为disabled.
]]></description>
			<content:encoded><![CDATA[<p>Linux 2.6内核编译比以前方便多了，本文描述了在Fedora 8下升级linux内核为2.6.25的详细步骤.</p>
<p>1. 首先从如下网址得到linux-2.6.25.</p>
<p>http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.tar.bz2</p>
<p>2. 然后在/usr/src下untar这个包.</p>
<p>tar -xjfv linux-2.6.25.tar.bz2</p>
<p>3. 配置内核<br />
cd /usr/src/linux-2.6.25<br />
make mrproper(删除一些stable的文件,针对刚download下来的包这一步没必要)<br />
make menuconfig(以菜单的方式显示, 可以定制Linux模块, 在菜单顶部有命令帮助)</p>
<p>3. 编译内核</p>
<p>make (这一步花的时间最多,我用了将近40分钟)<br />
make modules_install<br />
make install(系统将会把vmlinuz和System.map复制到/boot目录下同时修改grub)</p>
<p>在2.6以前需要make bzImage make modules, 而且还需要将vmlinuz和System.map复制到/boot目录.</p>
<p>要想得到更详细关于编译的描述, 可以参考/usr/src/linux-2.6.25的README. 每个Linux内核的发行都有这个文件.</p>
<p>4. 重启机器<br />
shutdown -r now<br />
这样在开始的grub菜单里你可以选择用新的内核来启动linux</p>
<p>进入系统后，可以sudo vi /boot/grub/menu.lst<br />
将刚编译的kernel2.6.25设置为默认启动。</p>
<p>//没碰到一下情况。<br />
如果启动时遇到这个错：<br />
&#8220;Enforcing mode requested but no policy loaded. Halting now.&#8221;<br />
Kernel panic: Attempted to kill init!</p>
<p>可以用如下方法解决：<br />
Try adding enforcing=0 to your grub.conf.<br />
kernel /boot/bzImage-2.6.5 ro root=/dev/hda5 enforcing=0</p>
<p>或者在/etc/selinux/config文件中，将SELINUX的值设为disabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/linux/admin-2010-05-26-fedora-8%e5%8d%87%e7%ba%a7linux%e5%86%85%e6%a0%b8%e5%88%b02625.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora13今天发布啦</title>
		<link>http://www.masterlinux.cn/linux/admin-2010-05-26-fedora13%e4%bb%8a%e5%a4%a9%e5%8f%91%e5%b8%83%e5%95%a6.html</link>
		<comments>http://www.masterlinux.cn/linux/admin-2010-05-26-fedora13%e4%bb%8a%e5%a4%a9%e5%8f%91%e5%b8%83%e5%95%a6.html#comments</comments>
		<pubDate>Wed, 26 May 2010 02:37:47 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/linux/admin-2010-05-26-fedora13%e4%bb%8a%e5%a4%a9%e5%8f%91%e5%b8%83%e5%95%a6.html</guid>
		<description><![CDATA[今天是2010年5月26日，早上上网，去到Fedora网站一看，Fedora13已经发布了。
赶紧用迅雷下载下来，试用试用。
又是新的开始！
]]></description>
			<content:encoded><![CDATA[<p>今天是2010年5月26日，早上上网，去到Fedora网站一看，Fedora13已经发布了。<br />
赶紧用迅雷下载下来，试用试用。<br />
又是新的开始！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/linux/admin-2010-05-26-fedora13%e4%bb%8a%e5%a4%a9%e5%8f%91%e5%b8%83%e5%95%a6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下换了飞信软件-OpenFetion</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2010-05-13-linux%e4%b8%8b%e6%8d%a2%e4%ba%86%e9%a3%9e%e4%bf%a1%e8%bd%af%e4%bb%b6-openfetion.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2010-05-13-linux%e4%b8%8b%e6%8d%a2%e4%ba%86%e9%a3%9e%e4%bf%a1%e8%bd%af%e4%bb%b6-openfetion.html#comments</comments>
		<pubDate>Thu, 13 May 2010 02:21:01 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/uncategorized/admin-2010-05-13-linux%e4%b8%8b%e6%8d%a2%e4%ba%86%e9%a3%9e%e4%bf%a1%e8%bd%af%e4%bb%b6-openfetion.html</guid>
		<description><![CDATA[我之前使用libfetion，这几天发觉有问题，总是不能发送信息到好友。

今天上网google一下，原来还有另外一个开源飞信,叫做Openfetion，是基于GTK+ 2.0的IM客户端，使用中国移动飞信v4版本协议。其代码是完全开放的。该客户端对飞信协议的支持比libFetion要好，但程序的稳定性还需加强。

Openfetion目前可以作者博客上下载： http://basiccoder.com/openfetion/ 

我下载用了一下，挺好用的，界面比libfetion好用多了。很好！
]]></description>
			<content:encoded><![CDATA[<p>我之前使用libfetion，这几天发觉有问题，总是不能发送信息到好友。</p>
<p>
今天上网google一下，原来还有另外一个开源飞信,叫做Openfetion，是基于GTK+ 2.0的IM客户端，使用中国移动飞信v4版本协议。其代码是完全开放的。该客户端对飞信协议的支持比libFetion要好，但程序的稳定性还需加强。</p>
<p>
Openfetion目前可以作者博客上下载： <a href="http://basiccoder.com/openfetion/ ">http://basiccoder.com/openfetion/ </a></p>
<p>
我下载用了一下，挺好用的，界面比libfetion好用多了。很好！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2010-05-13-linux%e4%b8%8b%e6%8d%a2%e4%ba%86%e9%a3%9e%e4%bf%a1%e8%bd%af%e4%bb%b6-openfetion.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fedora-13-延期到5月25日发布</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2010-05-12-fedora-13-%e5%bb%b6%e6%9c%9f%e5%88%b05%e6%9c%8825%e6%97%a5%e5%8f%91%e5%b8%83.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2010-05-12-fedora-13-%e5%bb%b6%e6%9c%9f%e5%88%b05%e6%9c%8825%e6%97%a5%e5%8f%91%e5%b8%83.html#comments</comments>
		<pubDate>Wed, 12 May 2010 08:08:33 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/uncategorized/admin-2010-05-12-fedora-13-%e5%bb%b6%e6%9c%9f%e5%88%b05%e6%9c%8825%e6%97%a5%e5%8f%91%e5%b8%83.html</guid>
		<description><![CDATA[真搞不懂Red Hat,怎么现在又跳票了呢？

发现了什么重大问题？

现在Final Release已经跳票了2次了。希望这个最后一次。因为Ubuntu已经发布一个月了。
]]></description>
			<content:encoded><![CDATA[<p>真搞不懂Red Hat,怎么现在又跳票了呢？</p>
<p>
发现了什么重大问题？</p>
<p>
现在Final Release已经跳票了2次了。希望这个最后一次。因为Ubuntu已经发布一个月了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2010-05-12-fedora-13-%e5%bb%b6%e6%9c%9f%e5%88%b05%e6%9c%8825%e6%97%a5%e5%8f%91%e5%b8%83.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一定要登陆后才看得到别人的微博吗？</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2010-05-11-%e4%b8%80%e5%ae%9a%e8%a6%81%e7%99%bb%e9%99%86%e5%90%8e%e6%89%8d%e7%9c%8b%e5%be%97%e5%88%b0%e5%88%ab%e4%ba%ba%e7%9a%84%e5%be%ae%e5%8d%9a%e5%90%97%ef%bc%9f.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2010-05-11-%e4%b8%80%e5%ae%9a%e8%a6%81%e7%99%bb%e9%99%86%e5%90%8e%e6%89%8d%e7%9c%8b%e5%be%97%e5%88%b0%e5%88%ab%e4%ba%ba%e7%9a%84%e5%be%ae%e5%8d%9a%e5%90%97%ef%bc%9f.html#comments</comments>
		<pubDate>Tue, 11 May 2010 11:09:23 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/uncategorized/admin-2010-05-11-%e4%b8%80%e5%ae%9a%e8%a6%81%e7%99%bb%e9%99%86%e5%90%8e%e6%89%8d%e7%9c%8b%e5%be%97%e5%88%b0%e5%88%ab%e4%ba%ba%e7%9a%84%e5%be%ae%e5%8d%9a%e5%90%97%ef%bc%9f.html</guid>
		<description><![CDATA[以新浪微博举例，是否登陆才可以看见，决定于站点的考虑和设置；

新浪对于V认证的用户是开放游客浏览的；非认证的暂时没有开放。

估计是考虑内容发布的责任监控。。


你可以比较下V用户，非V用户的区别。

我之前非V，结果很多人看不到，我就V认证了。

希望满意。 
]]></description>
			<content:encoded><![CDATA[<p>以新浪微博举例，是否登陆才可以看见，决定于站点的考虑和设置；</p>
<p>
新浪对于V认证的用户是开放游客浏览的；非认证的暂时没有开放。</p>
<p>
估计是考虑内容发布的责任监控。。</p>
</p>
<p>
你可以比较下V用户，非V用户的区别。</p>
<p>
我之前非V，结果很多人看不到，我就V认证了。</p>
<p>
希望满意。 </p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2010-05-11-%e4%b8%80%e5%ae%9a%e8%a6%81%e7%99%bb%e9%99%86%e5%90%8e%e6%89%8d%e7%9c%8b%e5%be%97%e5%88%b0%e5%88%ab%e4%ba%ba%e7%9a%84%e5%be%ae%e5%8d%9a%e5%90%97%ef%bc%9f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>accept函数-Linux-Socket编程</title>
		<link>http://www.masterlinux.cn/uncategorized/admin-2010-05-11-accept%e5%87%bd%e6%95%b0-linux-socket%e7%bc%96%e7%a8%8b.html</link>
		<comments>http://www.masterlinux.cn/uncategorized/admin-2010-05-11-accept%e5%87%bd%e6%95%b0-linux-socket%e7%bc%96%e7%a8%8b.html#comments</comments>
		<pubDate>Tue, 11 May 2010 07:36:25 +0000</pubDate>
		<dc:creator>super</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.masterlinux.cn/uncategorized/admin-2010-05-11-accept%e5%87%bd%e6%95%b0-linux-socket%e7%bc%96%e7%a8%8b.html</guid>
		<description><![CDATA[int accept(int sockfd,struct sockaddr *addr,socklen_t *addrlen)

accept函数用语面向连接类型的套接字类型(SOCK_STREAM和SOCK_SEQPACKET)，accept函数将从连接请求队列中获得连接信息，创建新的套接字，并返回该套接字的文件描述符。
]]></description>
			<content:encoded><![CDATA[<p>int accept(int sockfd,struct sockaddr *addr,socklen_t *addrlen)</p>
<p>
accept函数用语面向连接类型的套接字类型(SOCK_STREAM和SOCK_SEQPACKET)，accept函数将从连接请求队列中获得连接信息，创建新的套接字，并返回该套接字的文件描述符。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masterlinux.cn/uncategorized/admin-2010-05-11-accept%e5%87%bd%e6%95%b0-linux-socket%e7%bc%96%e7%a8%8b.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->

