<?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>稀饭的国度 &#187; Linux</title>
	<atom:link href="http://blog.thematice.com/html/ycategory/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.thematice.com</link>
	<description>发现自己的脑袋不好使了，用blog来记录真的很好用。</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:33:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>用自动wget或ftp提高工作效率</title>
		<link>http://blog.thematice.com/html/y2010/1102_1102.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=1102</link>
		<comments>http://blog.thematice.com/html/y2010/1102_1102.html#comments</comments>
		<pubDate>Sun, 18 Jul 2010 15:57:51 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/html/y2010/07/18/1102/1102.html</guid>
		<description><![CDATA[wget ftp://username:password@ip_address/dir/file_name 比自动FTP的SHELL脚本的方法方便多了. 例如获取FTP服务器上文件名是昨天日期的文件,如filename_20040608_001,filename_20040608_002,&#8230;&#8230; #!/bin/sh rq=`date &#8211;date &#8217;1 days ago&#8217; “+%Y%m%d”` wget -q ftp://username:password@ip_address/filename_$rq* 有的时候,FTP站点用wget可以进行目录浏览,也可以下载固定文件名的文件, 却不能把文件名是昨天日期的文件取下来时. 我想了一个方法: #!/bin/sh rq=`date &#8211;date &#8217;1 days ago&#8217; “+%Y%m%d”` wget -nr ftp://username:password@ip_address/filename_$rq* grep filename_$rq .listing &#62; 1.txt cat 1.txt&#124;while read LINE do file_name=`echo $LINE&#124;awk &#8216;{print $9}&#8217;` wget -q ftp://username:password@ip_address/$file_name done 原理是在目录浏览.listing文件里查找到昨天生成的文件名到临时文件1.txt里 -rw-r&#8211;r&#8211;    1 fengyu   fengyu     106880 Jun  9 11:44 file_name_20040608001 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/1102_1102.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用 cURL 度量 Web 站点的响应时间</title>
		<link>http://blog.thematice.com/html/y2010/1077_use-curl-check-web-connect-time.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=use-curl-check-web-connect-time</link>
		<comments>http://blog.thematice.com/html/y2010/1077_use-curl-check-web-connect-time.html#comments</comments>
		<pubDate>Wed, 21 Apr 2010 09:56:28 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux  web]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[liinux]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1077</guid>
		<description><![CDATA[[root@web-little-opt-146 NginxSoftware]# time curl -o /dev/null -s -w %{time_connect}:%{time_starttransfer}:%{time_total} http://image.kaluli.net/index/images/index/20100416/127141246304.gif 1.259:1.281:1.392 real    0m1.394s user    0m0.002s sys     0m0.003s 　　清单 1 给出对一个流行的新闻站点执行 curl 命令的情况。输出通常是 HTML 代码，通过 -o 参数发送到 /dev/null。-s 参数去掉所有状态信息。-w 参数让 curl 写出表 1 列出的计时器的状态信息： 表 1. curl 使用的计时器 计时器 描述 time_connect 建立到服务器的 TCP 连接所用的时间 time_starttransfer 在发出请求之后，Web 服务器返回数据的第一个字节所用的时间 time_total 完成请求所用的时间 　　这些计时器都相对于事务的起始时间，甚至要先于 Domain Name Service（DNS）查询。因此，在发出请求之后，         Web 服务器处理请求并开始发回数据所用的时间是 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/1077_use-curl-check-web-connect-time.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sed1line_zh-CN</title>
		<link>http://blog.thematice.com/html/y2010/1035_sed1line_zh-cn.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=sed1line_zh-cn</link>
		<comments>http://blog.thematice.com/html/y2010/1035_sed1line_zh-cn.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:13:11 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[sed&swk&shell]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=1035</guid>
		<description><![CDATA[?Download shell.sh1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/1035_sed1line_zh-cn.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>图片服务器的linux文件系统选型[转]</title>
		<link>http://blog.thematice.com/html/y2010/611_%e5%9b%be%e7%89%87%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e9%80%89%e5%9e%8b%e8%bd%ac.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%259b%25be%25e7%2589%2587%25e6%259c%258d%25e5%258a%25a1%25e5%2599%25a8%25e7%259a%2584linux%25e6%2596%2587%25e4%25bb%25b6%25e7%25b3%25bb%25e7%25bb%259f%25e9%2580%2589%25e5%259e%258b%25e8%25bd%25ac</link>
		<comments>http://blog.thematice.com/html/y2010/611_%e5%9b%be%e7%89%87%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e9%80%89%e5%9e%8b%e8%bd%ac.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 16:01:09 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[文件系统]]></category>
		<category><![CDATA[系统管理]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=611</guid>
		<description><![CDATA[近来工作中要构建一个能够存储10T级左右别图片文件的图片存储系统，日增长6G左右的图片。面对这个系统，我又碰到了那个老问题，就是文件系统的选型。早在两年前，我就针对linux系统中几种流行的文件系统进行过考察和测试工作。当时的reiserfs 3.x 是让我非常满意的文件系统，reiserfs文件系统没有inode的局限，使用B+tree的索引形势来查找文件，效率是非常德高，特别是在小文件的存储效率上明显超出ext3很多（iozone测试佐证）。格式化效率和支持最大8T的文件系统容量上也都非常的不错，只是mount reiserfs的时候稍微显得有些缓慢。当时的reiserfs 3.x版本是对于linux 图片文件系统非常理想的选择。 然而，就在我们期盼着reiser4的成熟之时，namesys的灵魂，reiser之父 Hans Reiser 因为感情问题翻了错误。（程序员还是应该多关心人家啊！）谋杀罪名成立，被判入狱。在我这次选型的时候，还是首先选择了reiser4，但是由于reiser4没有被众多的linux kernel引入，虽然据说官方网站有介绍用reiserfs 3.x的内核模块修改后来支持reiser4的文章，但是在我想做测试的时候官方网站也挂掉了，目前reiser4的小组仍然保持开发，但是有评价代码效率和质量都不够理想。个人能力有限，在AS5 64bit系统上尝试编译reiserfs 3.19的progs的时候也碰到了问题，没有人维护的代码我最终还是放弃了选型候选。 那么让我们来看看现在我们还有什么可以选择吧。ext3 ext4 jfs xfs这四种文件系统中ext4现在还只有beta版本，所以暂时放弃列入候选，不过目前从口碑上来看ext4并没有什么让大家眼前一亮的性能提升。下面再来看xfs，这个文件系统诞生于sgi图形工作站上，被移植到linux上依赖表现还是比较稳定的，特别是在500M以上大文件的IO性能上非常突出，然而，我们今天要选型的是图片文件系统，我们常用的网络图片尺寸在16K~256K之间。而且xfs的大量删除效率非常差，所以在这个系统的选择中，我也放弃了xfs，备份系统上针对大文件的存储到是非常不错的选择。 剩下就是ext3和jfs了，ext3大家再熟悉不过了，一个中庸的文件系统，但是广为流传。jfs是来自于IBM的手笔，早在5，6年前在AIX上面使用它的时候，我就对他的动态伸缩扩展能力表示钦佩，下面我们用测试数据来说明我们的选择吧。在展示结果之前，我先介绍一下两个文件系统，ext3最大支持8T的linux文件系统，是一个基于预分配inode的文件系统，由于linux文件系统最大的block为4K，所以他在linux最大支持8T，另外也是由于它的inode是预分配死的。所以如果你大量存储小于4K的文件，你文件系统的空间利用率会非常的低。从实践中大家也都有所了解吧？用df -h看看你们的大文件系统吧，你们就清楚了。另外在创建6.9T的测试ext3文件系统的时候，我实在无法忍受创建inode table的速度，6.9T文件系统，要创建5万多个inode table 在一台双志强，4G内存的 HP DL 360G5 RedHat AS5 64的服务器上，花去了足足15分钟以上去做inode table的创建，这一点实在是难以忍受。相反的同样的环境条件下jfs的创建速度不超过5S，这和他的动态文件系统，动态inode创建的设计优势不无关系。另外jfs是64bit unix上面移植而来，真正的64bit文件系统，可以支持最大512T的文件系统，动态扩展收缩文件系统。这些优势都是ext3所不能媲美的。 测试命令/usr/local/bin/iozone -g 256k -n 16k -a 针对16K致256K的文件测试。 Using maximum file size of 256 kilobytes. Using minimum file size of 16 kilobytes. Auto Mode Command [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/611_%e5%9b%be%e7%89%87%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e9%80%89%e5%9e%8b%e8%bd%ac.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux超级终端minicom设置</title>
		<link>http://blog.thematice.com/html/y2010/635_linux%e8%b6%85%e7%ba%a7%e7%bb%88%e7%ab%afminicom%e8%ae%be%e7%bd%ae.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux%25e8%25b6%2585%25e7%25ba%25a7%25e7%25bb%2588%25e7%25ab%25afminicom%25e8%25ae%25be%25e7%25bd%25ae</link>
		<comments>http://blog.thematice.com/html/y2010/635_linux%e8%b6%85%e7%ba%a7%e7%bb%88%e7%ab%afminicom%e8%ae%be%e7%bd%ae.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:59:07 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[minicom]]></category>
		<category><![CDATA[超级终端]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=635</guid>
		<description><![CDATA[linux minicom 是linux 下串口调试工具，类似于windows下的超级终端。 一、安装minicom： 确认一下系统是否已经安装minicom，如果没有请自行安装。 [root@web Server]# rpm -q minicom minicom-2.1-3 二、配置（需要root用户） 执行minicom –s后出现配置界面 ========================== [configuration] Filename and paths File transfer and protocols Serial port setup Modem and dialing Screen and keyboard Save setup as df1 Save setup as…… Exit Exit from minicom ========================== 使用向下键选择serial port setup（串口设置），按回车出现设置界面 ========================== A — Serial Device: /dev/ttyS0 B [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/635_linux%e8%b6%85%e7%ba%a7%e7%bb%88%e7%ab%afminicom%e8%ae%be%e7%bd%ae.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用awk进行大小写转换</title>
		<link>http://blog.thematice.com/html/y2010/938_%e4%bd%bf%e7%94%a8awk%e8%bf%9b%e8%a1%8c%e5%a4%a7%e5%b0%8f%e5%86%99%e8%bd%ac%e6%8d%a2.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e4%25bd%25bf%25e7%2594%25a8awk%25e8%25bf%259b%25e8%25a1%258c%25e5%25a4%25a7%25e5%25b0%258f%25e5%2586%2599%25e8%25bd%25ac%25e6%258d%25a2</link>
		<comments>http://blog.thematice.com/html/y2010/938_%e4%bd%bf%e7%94%a8awk%e8%bf%9b%e8%a1%8c%e5%a4%a7%e5%b0%8f%e5%86%99%e8%bd%ac%e6%8d%a2.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:58:08 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[sed&swk&shell]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[echo]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=938</guid>
		<description><![CDATA[echo abc&#124;tr a-z A-Z 文件大小写转换 awk &#8216;{print tolower($1)}&#8217; up.txt awk &#8216;{print toupper($1)}&#8217; up.txt]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/938_%e4%bd%bf%e7%94%a8awk%e8%bf%9b%e8%a1%8c%e5%a4%a7%e5%b0%8f%e5%86%99%e8%bd%ac%e6%8d%a2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FUNC &#124; Fedora特性-Smolt 解决硬件兼容烦恼</title>
		<link>http://blog.thematice.com/html/y2010/987_fedora%e7%89%b9%e6%80%a7-smolt-%e8%a7%a3%e5%86%b3%e7%a1%ac%e4%bb%b6%e5%85%bc%e5%ae%b9%e7%83%a6%e6%81%bc.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fedora%25e7%2589%25b9%25e6%2580%25a7-smolt-%25e8%25a7%25a3%25e5%2586%25b3%25e7%25a1%25ac%25e4%25bb%25b6%25e5%2585%25bc%25e5%25ae%25b9%25e7%2583%25a6%25e6%2581%25bc</link>
		<comments>http://blog.thematice.com/html/y2010/987_fedora%e7%89%b9%e6%80%a7-smolt-%e8%a7%a3%e5%86%b3%e7%a1%ac%e4%bb%b6%e5%85%bc%e5%ae%b9%e7%83%a6%e6%81%bc.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:44:21 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[certmaster]]></category>
		<category><![CDATA[func]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[系统管理]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[python-ctypes]]></category>
		<category><![CDATA[python-paste]]></category>
		<category><![CDATA[python-simplejson]]></category>
		<category><![CDATA[smolt]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=987</guid>
		<description><![CDATA[许多Linux爱好者购买新电脑时首先考虑的就是硬件配置是否与Linux系统兼容，实际上更多的人只是购买自己喜欢的外形和配置的电脑硬件，当他们回家安装Linux发行版时却发现很多硬件不能被系统识别和正确支持。情理之中，这些人可能就会到论坛和别人抱怨Linux是一个如何土的系统，“怎么连xx都不支持？”。 如果有一个软件能够跟踪和记录所有硬件对Linux发行版的支持和兼容性，那对用户将是一个非常体贴和诱人的事。在Fedora里，你的需求就能够得到满足。 Fedora里面有个叫做Smolt的项目，他的详细描述可以在http://smolts.org/wiki/Main_Page 得到，已经收集超过7万9000个硬件配置信息。所有数据都可以在Smolt网站看到，这些配置信息将用于促进厂商合作，改进用户的硬件使用体验，评测系统和更好的报告工具，并为常用硬件提高开发和质量检测优先级。访问Smolt主页：http://smolt.fedoraproject.org/ Smolt and Func: Fedora Unified Network Controller Smolt是一款常用硬件剖析工具, 现在已经收集超过7万9000个硬件配置信息. 所有数据都可以在Smolt网站看到. 这些配置信息将用于促进厂商合作, 改进用户的硬件使用体验, 评测系统和更好的报告工具, 并为常用硬件提高开发和质量检测优先级 当前状态: http://smolt.fedoraproject.org/ 项目主页: https://hosted.fedoraproject.org/projects/smolt/ https://fedorahosted.org/func/wiki]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/987_fedora%e7%89%b9%e6%80%a7-smolt-%e8%a7%a3%e5%86%b3%e7%a1%ac%e4%bb%b6%e5%85%bc%e5%ae%b9%e7%83%a6%e6%81%bc.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下如何安装 *.src.rpm 这样格式的软件包</title>
		<link>http://blog.thematice.com/html/y2010/960_linux%e4%b8%8b%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85-src-rpm-%e8%bf%99%e6%a0%b7%e6%a0%bc%e5%bc%8f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux%25e4%25b8%258b%25e5%25a6%2582%25e4%25bd%2595%25e5%25ae%2589%25e8%25a3%2585-src-rpm-%25e8%25bf%2599%25e6%25a0%25b7%25e6%25a0%25bc%25e5%25bc%258f%25e7%259a%2584%25e8%25bd%25af%25e4%25bb%25b6%25e5%258c%2585</link>
		<comments>http://blog.thematice.com/html/y2010/960_linux%e4%b8%8b%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85-src-rpm-%e8%bf%99%e6%a0%b7%e6%a0%bc%e5%bc%8f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 07:56:08 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[rpmbuild]]></category>
		<category><![CDATA[src.rpm]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=960</guid>
		<description><![CDATA[有些软件包是以.src.rpm结尾的, 这类软件包是包含了源代码的rpm包, 在安装时需要进行编译. 这类软件包有两种安装方法. 方法一: ?Download shell.sh1 2 3 4 5 6 7 1. 执行 rpm -i your-package.src.rpm 2. cd /usr/src/redhat/SPECS 3. rpmbuild -bp your-package.specs 一个和软件包同名的specs文件 4. cd /usr/src/redhat/BUILD/your-package/ 一个和软件包同名的目录 5. ./configure 这一步和编译普通的源码软件一样, 可以加上参数, 也可以具体看该目录下的INSTALL文件, 按照指导进行安装 6. make 7. make install 方法二: ?Download shell.sh1 2 3 4 5 6 1. 执行 rpm -i you-package.src.rpm 2. [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/960_linux%e4%b8%8b%e5%a6%82%e4%bd%95%e5%ae%89%e8%a3%85-src-rpm-%e8%bf%99%e6%a0%b7%e6%a0%bc%e5%bc%8f%e7%9a%84%e8%bd%af%e4%bb%b6%e5%8c%85.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>easyLife, Fedora 下的 Ubuntu Tweak</title>
		<link>http://blog.thematice.com/html/y2010/942_easylife-fedora-%e4%b8%8b%e7%9a%84-ubuntu-tweak.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=easylife-fedora-%25e4%25b8%258b%25e7%259a%2584-ubuntu-tweak</link>
		<comments>http://blog.thematice.com/html/y2010/942_easylife-fedora-%e4%b8%8b%e7%9a%84-ubuntu-tweak.html#comments</comments>
		<pubDate>Tue, 12 Jan 2010 14:13:10 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[easyLife]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=942</guid>
		<description><![CDATA[easyLife 是一款专为 Fedora 开发的快速配置工具，相当于 TualatriX 为 Ubuntu 开发的 Ubuntu Tweak ，它可以帮助 Fedora 新手顺利搞定新装系统配置，帮助老手节约时间，不过，鉴于 Ubuntu Tweak 的强大功能，将 easyLife 跟 Lazybuntu 对比更贴切与准确一点。 Fedora 12 将在 2 天后发布，作为全球最受欢迎的第三大 Linux 桌面发行版，届时肯定会掀起另一波下载、安装、测评、体验狂潮，这样的快速配置工具对新手还是非常有用的，有了它，新手不会对复杂的配置望而生畏，如果有兴趣，请帮助该项目完成汉化工作。 easyLife 的主要功能，是帮助 Fedora 新手在全新安装的 Fedora 系统上，顺利、快速、简单的安装和配置软件，将复杂的事情简单化，通过鼠标点击就能轻松完成一大堆复杂的任务。 easyLife 主要特性有： Sets &#8220;sudo&#8221; command up for your regular user; 对普通用户启用 &#8220;sudo&#8221; 命令； Configures RPMFusion repository for extra and non-free software; 为 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2010/942_easylife-fedora-%e4%b8%8b%e7%9a%84-ubuntu-tweak.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux大于2T的磁盘使用GPT分区方式</title>
		<link>http://blog.thematice.com/html/y2009/936_linux%e5%a4%a7%e4%ba%8e2t%e7%9a%84%e7%a3%81%e7%9b%98%e4%bd%bf%e7%94%a8gpt%e5%88%86%e5%8c%ba%e6%96%b9%e5%bc%8f.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux%25e5%25a4%25a7%25e4%25ba%258e2t%25e7%259a%2584%25e7%25a3%2581%25e7%259b%2598%25e4%25bd%25bf%25e7%2594%25a8gpt%25e5%2588%2586%25e5%258c%25ba%25e6%2596%25b9%25e5%25bc%258f</link>
		<comments>http://blog.thematice.com/html/y2009/936_linux%e5%a4%a7%e4%ba%8e2t%e7%9a%84%e7%a3%81%e7%9b%98%e4%bd%bf%e7%94%a8gpt%e5%88%86%e5%8c%ba%e6%96%b9%e5%bc%8f.html#comments</comments>
		<pubDate>Mon, 28 Dec 2009 13:02:29 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[GPT]]></category>
		<category><![CDATA[MBR]]></category>
		<category><![CDATA[parted]]></category>
		<category><![CDATA[分区]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=936</guid>
		<description><![CDATA[GUID Partion Table 一种由基于 Itanium 计算机中的可扩展固件接口 (EFI) 使用的磁盘分区架构。与主启动记录 (MBR) 分区方法相比，GPT 具有更多的优点，因为它允许每个磁盘有多达 128 个分区，支持高达 18 千兆兆字节的卷大小，允许将主磁盘分区表和备份磁盘分区表用于冗余，还支持唯一的磁盘和分区 ID (GUID)。 与支持最大卷为 2 TB (terabytes) 并且每个磁盘最多有 4 个主分区（或 3 个主分区，1 个扩展分区和无限制的逻辑驱动器）的主启动记录 (MBR) 磁盘分区的样式相比，GUID 分区表 (GPT) 磁盘分区样式支持最大卷为 18 EB (exabytes) 并且每磁盘最多有 128 个分区。与 MBR 分区的磁盘不同，至关重要的平台操作数据位于分区，而不是位于非分区或隐藏扇区。另外，GPT 分区磁盘有多余的主要及备份分区表来提高分区数据结构的完整性。 所以在超过2TB时,我不能使用交互很好的Fdisk命令,只能磁盘转化为GPT格式。由于GPT格式的磁盘相当于原来MBR磁盘中原来保留4个 partition table的4*16个字节只留第一个16个字节，其它的类似于扩展分区，真正的partition table在512字节之后，所以对GPT磁盘表来讲没有四个主分区的限制。 对GPT磁盘分区表进行操作，我们要使用parted命令。其实parted功能很强大，它可以象fdisk一样既可用命令行也可以用于交互式。 下面我们就来实际操作吧，在提示符下输入parted就会进入交互式模式 # parted /dev/sdb GNU Parted 1.8.1 Using /dev/sdb [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/936_linux%e5%a4%a7%e4%ba%8e2t%e7%9a%84%e7%a3%81%e7%9b%98%e4%bd%bf%e7%94%a8gpt%e5%88%86%e5%8c%ba%e6%96%b9%e5%bc%8f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash Shell 快捷键的学习使用</title>
		<link>http://blog.thematice.com/html/y2009/932_bash-shell-%e5%bf%ab%e6%8d%b7%e9%94%ae%e7%9a%84%e5%ad%a6%e4%b9%a0%e4%bd%bf%e7%94%a8.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bash-shell-%25e5%25bf%25ab%25e6%258d%25b7%25e9%2594%25ae%25e7%259a%2584%25e5%25ad%25a6%25e4%25b9%25a0%25e4%25bd%25bf%25e7%2594%25a8</link>
		<comments>http://blog.thematice.com/html/y2009/932_bash-shell-%e5%bf%ab%e6%8d%b7%e9%94%ae%e7%9a%84%e5%ad%a6%e4%b9%a0%e4%bd%bf%e7%94%a8.html#comments</comments>
		<pubDate>Sun, 27 Dec 2009 12:47:51 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Shortcuts]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=932</guid>
		<description><![CDATA[这篇 Bash Shell Shortcuts 的快捷键总结的非常好。值得学习。下面内容大多数是拷贝粘贴与总结. CTRL 键相关的快捷键: Ctrl + a &#8211; Jump to the start of the line Ctrl + b &#8211; Move back a char Ctrl + c &#8211; Terminate the command //用的最多了吧? Ctrl + d &#8211; Delete from under the cursor Ctrl + e &#8211; Jump to the end of the line Ctrl [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/932_bash-shell-%e5%bf%ab%e6%8d%b7%e9%94%ae%e7%9a%84%e5%ad%a6%e4%b9%a0%e4%bd%bf%e7%94%a8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>理解 Linux 的处理器负载均值（翻译）</title>
		<link>http://blog.thematice.com/html/y2009/923_understanding-of-the-processor-load-linux-average.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=understanding-of-the-processor-load-linux-average</link>
		<comments>http://blog.thematice.com/html/y2009/923_understanding-of-the-processor-load-linux-average.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 10:30:17 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[load Average]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=923</guid>
		<description><![CDATA[原文链接： http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages 你可能对于 Linux 的负载均值（load averages）已有了充分的了解。负载均值在 uptime 或者 top 命令中可以看到，它们可能会显示成这个样子： ?Download shell.sh1 load average: 0.09, 0.05, 0.01 很多人会这样理解负载均值：三个数分别代表不同时间段的系统平均负载（一分钟、五 分钟、以及十五分钟），它们的数字当然是越小越好。数字越高，说明服务器的负载越 大，这也可能是服务器出现某种问题的信号。 而事实不完全如此，是什么因素构成了负载均值的大小，以及如何区分它们目前的状况是 “好”还是“糟糕”？什么时候应该注意哪些不正常的数值？ 回答这些问题之前，首先需要了解下这些数值背后的些知识。我们先用最简单的例子说明， 一台只配备一块单核处理器的服务器。 行车过桥 一只单核的处理器可以形象得比喻成一条单车道。设想下，你现在需要收取这条道路的过桥 费 &#8212; 忙于处理那些将要过桥的车辆。你首先当然需要了解些信息，例如车辆的载重、以及 还有多少车辆正在等待过桥。如果前面没有车辆在等待，那么你可以告诉后面的司机通过。 如果车辆众多，那么需要告知他们可能需要稍等一会。 因此，需要些特定的代号表示目前的车流情况，例如： 0.00 表示目前桥面上没有任何的车流。 实际上这种情况与 0.00 和 1.00 之间是相同的，总而言之很通畅，过往的车辆可以丝毫不用等待的通过。 1.00 表示刚好是在这座桥的承受范围内。 这种情况不算糟糕，只是车流会有些堵，不过这种情况可能会造成交通越来越慢。 超过 1.00，那么说明这座桥已经超出负荷，交通严重的拥堵。 那么情况有多糟糕？ 例如 2.00 的情况说明车流已经超出了桥所能承受的一倍，那么将有多余过桥一倍的车辆正在焦急的等待。3.00 的话情况就更不妙了，说明这座桥基本上已经快承受不了，还有超出桥负载两倍多的车辆正在等待。 上面的情况和处理器的负载情况非常相似。一辆汽车的过桥时间就好比是处理器处理某线程 的实际时间。Unix 系统定义的进程运行时长为所有处理器内核的处理时间加上线程 在队列中等待的时间。 和收过桥费的管理员一样，你当然希望你的汽车（操作）不会被焦急的等待。所以，理想状态 下，都希望负载平均值小于 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/923_understanding-of-the-processor-load-linux-average.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>理解Load Average做好压力测试</title>
		<link>http://blog.thematice.com/html/y2009/919_load-average-good-understanding-of-stress-testing.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=load-average-good-understanding-of-stress-testing</link>
		<comments>http://blog.thematice.com/html/y2009/919_load-average-good-understanding-of-stress-testing.html#comments</comments>
		<pubDate>Fri, 18 Dec 2009 10:27:08 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[load Average]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=919</guid>
		<description><![CDATA[最近刚接手的产品问题很多，主要是集中在产品设计和性能上，另外代码的可维护性也很差，这两周处理故障和问题的时间比较多，博客更新的也少了，下面的这篇文章是解释开发小组成员介绍并发编程的一些基本原理而收集到的一篇比较好的文章，作者以浅显易懂的方式介绍了比较复杂的概念。我觉得如果我们能够把一个复杂、抽象的概念如果能够通过生活中常见的场景来加以说明和描述出来，那么我们就真正理解了这个概念。 SIP的第四期结束了，因为控制策略的丰富，早先的的压力测试结果已经无法反映在高并发和高压力下SIP的运行状况，因此需要重新作压力测试。跟在测试人员后面做了快一周的压力测试，压力测试的报告也正式出炉，本来也就算是告一段落，但第二天测试人员说要修改报告，由于这次作压力测试的同学是第一次作，有一个指标没有注意，因此需要修改几个测试结果。那个没有注意的指标就是load average，他和我一样开始只是注意了CPU，内存的使用状况，而没有太注意这个指标，这个指标与他们通常的限制（10左右）有差别。重新测试的结果由于这个指标被要求压低，最后的报告显然不如原来的好看。自己也没有深入过压力测试，但是觉得不搞明白对将来机器配置和扩容都会有影响，因此去问了DBA和SA，得到的结果相差很大，看来不得不自己去找找问题的根本所在了。 通过下面的几个部分的了解，可以一步一步的找出Load Average在压力测试中真正的作用。 CPU时间片 为了提高程序执行效率，大家在很多应用中都采用了多线程模式，这样可以将原来的序列化执行变为并行执行，任务的分解以及并行执行能够极大地提高程序的运行效率。但这都是代码级别的表现，而硬件是如何支持的呢？那就要靠CPU的时间片模式来说明这一切。程序的任何指令的执行往往都会要竞争CPU这个最宝贵的资源，不论你的程序分成了多少个线程去执行不同的任务，他们都必须排队等待获取这个资源来计算和处理命令。先看看单CPU的情况。下面两图描述了时间片模式和非时间片模式下的线程执行的情况： 图 1 非时间片线程执行情况 图 2 非时间片线程执行情况 在图一中可以看到，任何线程如果都排队等待CPU资源的获取，那么所谓的多线程就没有任何实际意义。图二中的CPU Manager只是我虚拟的一个角色，由它来分配和管理CPU的使用状况，此时多线程将会在运行过程中都有机会得到CPU资源，也真正实现了在单CPU的情况下实现多线程并行处理。 多CPU的情况只是单CPU的扩展，当所有的CPU都满负荷运作的时候，就会对每一个CPU采用时间片的方式来提高效率。 在Linux的内核处理过程中，每一个进程默认会有一个固定的时间片来执行命令（默认为1/100秒），这段时间内进程被分配到CPU，然后独占使用。如果使用完，同时未到时间片的规定时间，那么就主动放弃CPU的占用，如果到时间片尚未完成工作，那么CPU的使用权也会被收回，进程将会被中断挂起等待下一个时间片。 CPU利用率和Load Average的区别 压力测试不仅需要对业务场景的并发用户等压力参数作模拟，同时也需要在压力测试过程中随时关注机器的性能情况，来确保压力测试的有效性。当服务器长期处于一种超负荷的情况下运行，所能接收的压力并不是我们所认为的可接受的压力。就好比项目经理在给一个人估工作量的时候，每天都让这个人工作12个小时，那么所制定的项目计划就不是一个合理的计划，那个人迟早会垮掉，而影响整体的项目进度。 CPU利用率在过去常常被我们这些外行认为是判断机器是否已经到了满负荷的一个标准，看到50%-60%的使用率就认为机器就已经压到了临界了。CPU利用率，顾名思义就是对于CPU的使用状况，这是对一个时间段内CPU使用状况的统计，通过这个指标可以看出在某一个时间段内CPU被占用的情况，如果被占用时间很高，那么就需要考虑CPU是否已经处于超负荷运作，长期超负荷运作对于机器本身来说是一种损害，因此必须将CPU的利用率控制在一定的比例下，以保证机器的正常运作。 Load Average是CPU的Load，它所包含的信息不是CPU的使用率状况，而是在一段时间内CPU正在处理以及等待CPU处理的进程数之和的统计信息，也就是CPU使用队列的长度的统计信息。为什么要统计这个信息，这个信息的对于压力测试的影响究竟是怎么样的，那就通过一个类比来解释CPU利用率和Load Average的区别以及对于压力测试的指导意义。 我们将CPU就类比为电话亭，每一个进程都是一个需要打电话的人。现在一共有4个电话亭（就好比我们的机器有4核），有10个人需要打电话。现在使用电话的规则是管理员会按照顺序给每一个人轮流分配1分钟的使用电话时间，如果使用者在1分钟内使用完毕，那么可以立刻将电话使用权返还给管理员，如果到了1分钟电话使用者还没有使用完毕，那么需要重新排队，等待再次分配使用。 图 3 电话使用场景 上图中对于使用电话的用户又作了一次分类，1min的代表这些使用者占用电话时间小于等于1min，2min表示使用者占用电话时间小于等于2min，以此类推。根据电话使用规则，1min的用户只需要得到一次分配即可完成通话，而其他两类用户需要排队两次到三次。 电话的利用率 = sum (active use cpu time)/period 每一个分配到电话的使用者使用电话时间的总和去除以统计的时间段。这里需要注意的是是使用电话的时间总和(sum(active use cpu time))，这与占用时间的总和(sum(occupy cpu time))是有区别的。（例如一个用户得到了一分钟的使用权，在10秒钟内打了电话，然后去查询号码本花了20秒钟，再用剩下的30秒打了另一个电话，那么占用了电话1分钟，实际只是使用了40秒） 电话的Average Load体现的是在某一统计时间段内，所有使用电话的人加上等待电话分配的人一个平均统计。 电话利用率的统计能够反映的是电话被使用的情况，当电话长期处于被使用而没有的到足够的时间休息间歇，那么对于电话硬件来说是一种超负荷的运作，需要调整使用频度。而电话Average Load却从另一个角度来展现对于电话使用状态的描述，Average Load越高说明对于电话资源的竞争越激烈，电话资源比较短缺。对于资源的申请和维护其实也是需要很大的成本，所以在这种高Average Load的情况下电话资源的长期“热竞争”也是对于硬件的一种损害。 低利用率的情况下是否会有高Load Average的情况产生呢？理解占有时间和使用时间就可以知道，当分配时间片以后，是否使用完全取决于使用者，因此完全可能出现低利用率高Load Average的情况。由此来看，仅仅从CPU的使用率来判断CPU是否处于一种超负荷的工作状态还是不够的，必须结合Load Average来全局的看CPU的使用情况和申请情况。 所以回过头来再看测试部对于Load Average的要求，在我们机器为8个CPU的情况下，控制在10 Load左右，也就是每一个CPU正在处理一个请求，同时还有2个在等待处理。看了看网上很多人的介绍一般来说Load简单的计算就是2* [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/919_load-average-good-understanding-of-stress-testing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux sort 命令详解</title>
		<link>http://blog.thematice.com/html/y2009/907_linux-sort-%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux-sort-%25e5%2591%25bd%25e4%25bb%25a4%25e8%25af%25a6%25e8%25a7%25a3</link>
		<comments>http://blog.thematice.com/html/y2009/907_linux-sort-%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3.html#comments</comments>
		<pubDate>Fri, 11 Dec 2009 16:06:31 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/html/y2009/12/12/907_linux-sort-%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3.html</guid>
		<description><![CDATA[&#160; &#160;sort命令的功能是对文件中的各行进行排序。sort命令有许多非常实用的选项，这些选项最初是用来对数据库格式的文件内容进行各种排序操作的。实际上，sort命令可以被认为是一个非常强大的数据管理工具，用来管理内容类似数据库记录的文件。 　　Sort命令将逐行对文件中的内容进行排序，如果两行的首字符相同，该命令将继续比较这两行的下一字符，如果还相同，将继续进行比较。 　　语法： 　　sort ［选项］ 文件 　　说明：sort命令对指定文件中所有的行进行排序，并将结果显示在标准输出上。如不指定输入文件或使用”- “，则表示排序内容来自标准输入。 &#160;　　sort排序是根据从输入行抽取的一个或多个关键字进行比较来完成的。排序关键字定义了用来排序的最小的字符序列。缺省情况下以整行为关键字按ASCII字符顺序进行排序。 &#160;　　改变缺省设置的选项主要有： &#160;　　- m 若给定文件已排好序，合并文件。 &#160;　　- c 检查给定文件是否已排好序，如果它们没有都排好序，则打印一个出错信息，并以状态值1退出。 &#160;　　- u 对排序后认为相同的行只留其中一行。 &#160;　　- o 输出文件 将排序输出写到输出文件中而不是标准输出，如果输出文件是输入文件之一，sort先将该文件的内容写入一个临时文件，然后再排序和写输出结果。 &#160;　　改变缺省排序规则的选项主要有： &#160;　　- d 按字典顺序排序，比较时仅字母、数字、空格和制表符有意义。 &#160;　　- f 将小写字母与大写字母同等对待。 &#160;　　- I 忽略非打印字符。 &#160;　　- M 作为月份比较：”JAN”]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/907_linux-sort-%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>更改/etc/fstab里的LABEL名字</title>
		<link>http://blog.thematice.com/html/y2009/761_fstab-etcfstab-label-name.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fstab-etcfstab-label-name</link>
		<comments>http://blog.thematice.com/html/y2009/761_fstab-etcfstab-label-name.html#comments</comments>
		<pubDate>Fri, 06 Nov 2009 14:12:32 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[e2label]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[LABEL]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=761</guid>
		<description><![CDATA[更改/etc/fstab里的LABEL名字的步骤如下： 准确的说，应该是叫修改“卷标” 这里以修改“LABEL=/pip1 /pip1 ext3 defaults”为例子： 1.umount /pip1 2.e2label /dev/hdb1 /newbatpip1 3.mount LABEL=/newbatpip1 /newbatpip1 4.修改并写入/etc/fstab 例如： LABEL=/newbatpip1 /newbatpip1 ext3 defaults 1 2]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/761_fstab-etcfstab-label-name.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KVM&amp;OpenVZ虚拟化和使用Proxmox VE进行云计算</title>
		<link>http://blog.thematice.com/html/y2009/856_kvm-openvz-proxmox-ve.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=kvm-openvz-proxmox-ve</link>
		<comments>http://blog.thematice.com/html/y2009/856_kvm-openvz-proxmox-ve.html#comments</comments>
		<pubDate>Mon, 02 Nov 2009 17:01:11 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[Proxmox VE]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=856</guid>
		<description><![CDATA[Proxmox VE 是一个基于Debian Etch (x86_64) 版本的虚拟环境；它提供了一个可运行OpenVZ和KVM虚拟机的开源虚拟化平台。同时，其拥有一个强大的基于web界面的控制面板（这个控制面板包含了一个web化的图形控制终端，你可以通过这个终端，连接并使用虚拟机。 使用Proxmox VE，你甚至可以通过控制面板创建虚拟主机集群，并且在远程的主机上创建和控制虚拟机。Proxmox VE，同时也支持把一个运行的虚拟机从一个主机中镜像到另一个。这个教程将向你展示如何使用Proxmox VE控制KVM和OpenVZ虚拟机，和怎样通过Proxmox VE创建一个小的计算机云。 我不能保证这篇文章对你完全有效。 1 前言 Proxmox VE是一个基于x86_64的版本，因此你不能把它安装到一个i386系统上。并且，如果你使用的是KVM，那么你的CPU就必须支持类似于Intel VT或者是AMD-V的硬件虚拟化技术，但是如果你想使用OpenVZ的话，就不需要CPU的支持了。 在这个教程中，我将创建拥有两个机器的小集群，Proxmox master(主机名 server1.example.com ip地址 192.168.0.100)和一个slave（主机名 server2.example.com ip地址 192.168.0.101），以方便我展示在线镜像和通过Proxmox VE在远程主机上创建并管理虚拟机的功能。当然，Proxmox VE在一台主机上也能够很好地运行。 2 在server1.example.com(Master)上安装Proxmox VE 从http://pve.proxmox.com/wiki/Downloads网站下载最新的Proxmox VE的ISO镜像，把这个镜像烧录成CD光盘，并在你的计算机上引导启动这个CD光盘。在启动时按ENTER键： 接受Proxmox的证书许可（GPL） 选择你想安装Proxmox的硬盘。在这里需要注意的是被选择的硬盘上所有已经存在的分区和数据都将会丢失！ 选择你的国家，时区，和键盘布局： 输入一个密码（这是一个可以使你登陆shell和Proxmox Web管理界面的root密码）和你的Email地址： 现在我们就进入到了网络配置的阶段。输入主机名（例如server1.example.com）,IP地址（例如192.168.0.100），子网掩码（例如255.255.255.0），网关（例如192.168.0.1），和域名服务器（例如145.253.2.75）： 然后，Proxmox就会被安装到计算机上了，安装过程将会使用LVM自动分区你的硬盘-这就是为什么在安装的过程中没有出现分区的对话框的原因。Proxmox使用LVM是因为它可以允许为虚拟机创建snapshot backups。 最后重启系统： 在server1主机重启过后，你就可以在浏览器中输入并打开http://192.168.0.100/-浏览器将会重新指向https://192.168.0.100/。 如果你使用的是Firefox 3在使用HTTPS时，Firefox会抱怨说没有self-signed certificate，因此你必须告诉Firefox接受这个证书-点击Or you can add exception…链接即可： 点击Add Exception&#8230;: 这时添加Security Exception的窗口就会打开，在这个窗口中，先点击Get Certificate按钮，然后Confirm Security [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/856_kvm-openvz-proxmox-ve.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LINUX的du命令详解</title>
		<link>http://blog.thematice.com/html/y2009/786_linux%e7%9a%84du%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux%25e7%259a%2584du%25e5%2591%25bd%25e4%25bb%25a4%25e8%25af%25a6%25e8%25a7%25a3</link>
		<comments>http://blog.thematice.com/html/y2009/786_linux%e7%9a%84du%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3.html#comments</comments>
		<pubDate>Sun, 01 Nov 2009 08:44:08 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[du]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=786</guid>
		<description><![CDATA[命令用途 du(disk usage)命令可以计算文件或目录所占的磁盘空间。没有指定任何选项时，它会测量当前工作目录与其所有子目录，分别显示各个目录所占的快数，最后才显示工作目录所占总快数。 命令格式 ?Download shell1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 du [OPTION]... [FILE]... -a, --all 包括了所有的文件，而不只是目录 --apparent-size print apparent sizes, rather than disk usage; although the apparent size is usually smaller, it may be larger [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/786_linux%e7%9a%84du%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[ubuntu]安装vmware时找不到c header files的小问题</title>
		<link>http://blog.thematice.com/html/y2009/798_ubuntu-install-vmware-not-foundc-header-files-qa.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ubuntu-install-vmware-not-foundc-header-files-qa</link>
		<comments>http://blog.thematice.com/html/y2009/798_ubuntu-install-vmware-not-foundc-header-files-qa.html#comments</comments>
		<pubDate>Sun, 01 Nov 2009 02:59:49 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[虚拟化]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[ven]]></category>
		<category><![CDATA[全虚拟化]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=798</guid>
		<description><![CDATA[授权方式：署名，非商业用途，保持一致，转载时请务必以超链接(http://blog.thematice.com/html/y2009/11/01/798_ubuntu-install-vmware-not-foundc-header-files-qa.html)的形式标明文章原始出处和作者信息及本声明。 很多人都是用xp作主系统，然后用vmware虚拟一个linux学习，我现在的做法却恰恰相反，我用ubuntu作主系统，然后虚拟一个xp用于工作 。 vmware下载和安装就不说了，安装完成之后，运行vmware-config.pl的时候，会有一步是询问内核的头文件在哪里： What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] 由于ubuntu 6.06 dapper的内核版本是，2.6.15，所以就没法找到，网上说这是vmware自己的问题，到http://ftp.cvut.cz/vmware/下载一个vmware-any-any-updatexxx.tar.gz装上，然后再次运行vmware-config.pl就能够找到正确的地址了： What is the location of the directory of C header files that match your running kernel? [/lib/modules/2.6.15-22-386/build/include] 参考1，参考2（这里还有关于安装鼠标的讨论），参考3。 可怜我一开始没有安装linux-headers，而是傻傻的下载安装了一个linux-source-2.6，70多M，下载了1个多小时啊。。。 （注意安装的headers版本要和当前运行的一样，386和686版本要分清） vmware 5.5.1 19175 linux 版的注册码： J3E6J-V6G4M-Y84DY-4YXQQ GC4K9-FMC0A-1A0FV-4YEX2 附上一张截图，哈哈。 update @ 20060510: [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/798_ubuntu-install-vmware-not-foundc-header-files-qa.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>screen命令在centos&#124;freebsd安装和使用,好爽的命令</title>
		<link>http://blog.thematice.com/html/y2009/788_screen-command-in-centos-freebsd-install-and-use-thrilled-the-command.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=screen-command-in-centos-freebsd-install-and-use-thrilled-the-command</link>
		<comments>http://blog.thematice.com/html/y2009/788_screen-command-in-centos-freebsd-install-and-use-thrilled-the-command.html#comments</comments>
		<pubDate>Wed, 28 Oct 2009 10:09:09 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/html/y2009/10/28/788_screen%e5%91%bd%e4%bb%a4%e5%9c%a8centosfreebsd%e5%ae%89%e8%a3%85%e5%92%8c%e4%bd%bf%e7%94%a8%e5%a5%bd%e7%88%bd%e7%9a%84%e5%91%bd%e4%bb%a4.html</guid>
		<description><![CDATA[以前在freebsd下使用SSH远程登录linux时，如果连接非正常中断，重新连接时，系统将开一个新的session，无法恢复原来的 session.screen命令可以解决这个问题。Screen工具是一个终端多路转接器，在本质上，这意味着你能够使用一个单一的终端窗口运行多终端的应用。 早点知道这命令就好了，在往时在ssh搞东西时，有时不能关掉终端，所以要开多一部电脑，麻烦，现在这样爽了。 安装 # cd /usr/ports/sysutils/screen # make install clean 安装 # yum install screen* -y 使用 # screen //以下^A表示同按“Ctrl + A”键 # ^A c //Create，开出新的 window # ^A n //Next，切换到下个 window # ^A p //Previous，前一个 window # ^A ^A //在两个 window 间切换 # ^A w //Windows，列出已开启的 windows 有那些 # ^A 0…9 //切换到第 0..9 [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/788_screen-command-in-centos-freebsd-install-and-use-thrilled-the-command.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>今天把简单的OPENVZ和HYPERVM的安装过程写一个,留下做个记号！</title>
		<link>http://blog.thematice.com/html/y2009/771_%e4%bb%8a%e5%a4%a9%e6%8a%8a%e7%ae%80%e5%8d%95%e7%9a%84openvz%e5%92%8chypervm%e7%9a%84%e5%ae%89%e8%a3%85%e8%bf%87%e7%a8%8b%e5%86%99%e4%b8%80%e4%b8%aa%e7%95%99%e4%b8%8b%e5%81%9a%e4%b8%aa%e8%ae%b0.html#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e4%25bb%258a%25e5%25a4%25a9%25e6%258a%258a%25e7%25ae%2580%25e5%258d%2595%25e7%259a%2584openvz%25e5%2592%258chypervm%25e7%259a%2584%25e5%25ae%2589%25e8%25a3%2585%25e8%25bf%2587%25e7%25a8%258b%25e5%2586%2599%25e4%25b8%2580%25e4%25b8%25aa%25e7%2595%2599%25e4%25b8%258b%25e5%2581%259a%25e4%25b8%25aa%25e8%25ae%25b0</link>
		<comments>http://blog.thematice.com/html/y2009/771_%e4%bb%8a%e5%a4%a9%e6%8a%8a%e7%ae%80%e5%8d%95%e7%9a%84openvz%e5%92%8chypervm%e7%9a%84%e5%ae%89%e8%a3%85%e8%bf%87%e7%a8%8b%e5%86%99%e4%b8%80%e4%b8%aa%e7%95%99%e4%b8%8b%e5%81%9a%e4%b8%aa%e8%ae%b0.html#comments</comments>
		<pubDate>Fri, 23 Oct 2009 23:34:48 +0000</pubDate>
		<dc:creator>稀饭</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux tools]]></category>
		<category><![CDATA[云计算]]></category>
		<category><![CDATA[HYPERVM]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://blog.thematice.com/?p=771</guid>
		<description><![CDATA[今天把简单的OPENVZ和HYPERVM的安装过程写一个,留下做个记号！ 系统:CentOS 5.1 for vmware6.0 系统安装就不说了，选最简单的安装就行，还有把防火墙，SELinux关闭就了！ [root@localhost ~]# uname -r 2.6.18-53.el5 [root@localhost ~]# cat /boot/grub/menu.lst # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE:  You have a /boot partition.  This means that #          all kernel and initrd paths are relative [...]]]></description>
		<wfw:commentRss>http://blog.thematice.com/html/y2009/771_%e4%bb%8a%e5%a4%a9%e6%8a%8a%e7%ae%80%e5%8d%95%e7%9a%84openvz%e5%92%8chypervm%e7%9a%84%e5%ae%89%e8%a3%85%e8%bf%87%e7%a8%8b%e5%86%99%e4%b8%80%e4%b8%aa%e7%95%99%e4%b8%8b%e5%81%9a%e4%b8%aa%e8%ae%b0.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

