<?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>Up's Blog &#187; kukat</title>
	<atom:link href="http://www.upblog.net/author/admin/feed" rel="self" type="application/rss+xml" />
	<link>http://www.upblog.net</link>
	<description>一个人在战斗</description>
	<lastBuildDate>Sun, 28 Mar 2010 05:10:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>把路由器打造成下载机+NAS</title>
		<link>http://www.upblog.net/2010/03/%e6%8a%8a%e8%b7%af%e7%94%b1%e5%99%a8%e6%89%93%e9%80%a0%e6%88%90%e4%b8%8b%e8%bd%bd%e6%9c%banas.html</link>
		<comments>http://www.upblog.net/2010/03/%e6%8a%8a%e8%b7%af%e7%94%b1%e5%99%a8%e6%89%93%e9%80%a0%e6%88%90%e4%b8%8b%e8%bd%bd%e6%9c%banas.html#comments</comments>
		<pubDate>Sun, 28 Mar 2010 05:10:23 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[Uncategory]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=159</guid>
		<description><![CDATA[以 ASUS RT-N16 为例 刷 DD-WRT DD-WRT 的安装教程：http://dd-wrt.com/wiki/index.php/Installation Hard reset：http://dd-wrt.com/wiki/index.php/Hard_reset_or_30/30/30 两种刷机方法： 下载 RT-N16 专用的 mini 版, 这个版本可以直接从 RT-N16 自带的 WEB 管理界面 “UPGRADE FIRMWARE” 下载 通用的 mini 版（.bin）, 然后用 TFTP 方式刷 完成后再刷功能更多的 big 版 可以到发布区看看是否有新版 配置你的 DD-WRT 通常情况下，网络默认就可以工作了，或者根据你的情况进行设置 开启 SSH 开启 &#8230; <a href="http://www.upblog.net/2010/03/%e6%8a%8a%e8%b7%af%e7%94%b1%e5%99%a8%e6%89%93%e9%80%a0%e6%88%90%e4%b8%8b%e8%bd%bd%e6%9c%banas.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>以 ASUS RT-N16 为例</p>
<h3>刷 DD-WRT</h3>
<ol>
<li>DD-WRT 的安装教程：http://dd-wrt.com/wiki/index.php/Installation</li>
<li>Hard reset：http://dd-wrt.com/wiki/index.php/Hard_reset_or_30/30/30</li>
<li>两种刷机方法：</li>
<ol>
<li>下载 <a href="http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/V24-K26/svn13575/dd-wrt.v24-13575_NEWD-2_K2.6_mini_RT-N16.trx">RT-N16 专用的 mini 版</a>, 这个版本可以直接从 RT-N16 自带的 WEB 管理界面 “UPGRADE FIRMWARE”</li>
<li>下载 <a href="http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/V24-K26/svn13575/dd-wrt.v24-13575_NEWD-2_K2.6_mini.bin">通用的 mini 版（.bin）</a>, 然后用 <a href="http://www.dd-wrt.com/wiki/index.php/Tftp_flash">TFTP 方式刷</a></li>
</ol>
<li>完成后再刷<a href="http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/V24-K26/svn13575/dd-wrt.v24-13575_NEWD-2_K2.6_big.bin">功能更多的 big 版</a></li>
</ol>
<p>可以到<a href="http://www.dd-wrt.com/site/support/other-downloads?path=others%2Feko%2FV24-K26%2F">发布区</a>看看是否有新版</p>
<h3>配置你的 DD-WRT</h3>
<ol>
<li>通常情况下，网络默认就可以工作了，或者根据你的情况进行设置</li>
<li>开启 SSH</li>
<li>开启 JFFS 挂载</li>
</ol>
<h3>移动硬盘 和 Optware</h3>
<p>刚装上的 DD-WRT 对于作路由肯定是够了，但如果想进一步的挖掘路由的潜力，就需要 Optware 了</p>
<p>但首先你得挂载上外接的硬盘，要不路由器自带的那点存储空间可不够折腾。<a href="http://dd-wrt.com/wiki/index.php/USB_storage">USB 存储</a> 和 <a href="http://dd-wrt.com/wiki/index.php/How_to_-_Format_and_Partition_External_Storage_Device">格式化硬盘</a></p>
<p>挂载上硬盘后就可以 <a href="http://dd-wrt.com/wiki/index.php/Optware,_the_Right_Way">安装 Optware</a></p>
<h3>下载工具 MLDonkey 和 Transmission</h3>
<h3>NAS 和 samba</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2010/03/%e6%8a%8a%e8%b7%af%e7%94%b1%e5%99%a8%e6%89%93%e9%80%a0%e6%88%90%e4%b8%8b%e8%bd%bd%e6%9c%banas.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Android on HTC Kaiser</title>
		<link>http://www.upblog.net/2009/12/android-on-htc-kaiser.html</link>
		<comments>http://www.upblog.net/2009/12/android-on-htc-kaiser.html#comments</comments>
		<pubDate>Sun, 27 Dec 2009 09:25:06 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[Kaiser]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=152</guid>
		<description><![CDATA[先申明： 我不是开发者，更不是原创者，我只是懒人用户。所有的功劳归伟大的社区，所有的风险用户自己负责 首先，你得有一部 HTC Kaiser/TyTN II/Dopod P4550 你的系统可以是 Windows Mobile 6.1 或者 6.5，这里推荐 Solace V3.1 分 有Manila 和 无Manila 两个版本 HardSPL 我用的是3.34 下载 HardSPL 3.34 Radio 推荐 1.71.09.01 SD卡 最少有512M的剩余空间，最好是个高速卡，class 4 或者 class 6的 下载 basefile basefiles-20091116.zip (你可以到 这里 点开以日期命名的目录下载最新的) &#8230; <a href="http://www.upblog.net/2009/12/android-on-htc-kaiser.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>先申明：</p>
<blockquote><p>我不是开发者，更不是原创者，我只是懒人用户。所有的功劳归伟大的社区，所有的风险用户自己负责</p></blockquote>
<p>首先，你得有一部 HTC Kaiser/TyTN II/Dopod P4550<br />
你的系统可以是 Windows Mobile 6.1 或者 6.5，这里推荐 <a href="http://forum.xda-developers.com/showthread.php?t=516142">Solace V3.1</a> 分 <a href="http://www.mediafire.com/download.php?zzijylgcmut">有Manila</a> 和 <a href="http://www.mediafire.com/download.php?mumzweytytv">无Manila</a> 两个版本<br />
HardSPL 我用的是3.34 <a href="http://forum.xda-developers.com/showthread.php?t=498320">下载 HardSPL 3.34</a><br />
Radio 推荐 <a href="http://forum.xda-developers.com/showthread.php?t=393182">1.71.09.01</a></p>
<p><span id="more-152"></span></p>
<h3>SD卡</h3>
<p> 最少有512M的剩余空间，最好是个高速卡，class 4 或者 class 6的</p>
<h3>下载 basefile</h3>
<p> <a href="http://sourceforge.net/projects/androidhtc/files/2009-11-16/basefiles-20091116.zip/download">basefiles-20091116.zip</a> (你可以到 <a href="http://sourceforge.net/projects/androidhtc/files/">这里</a> 点开以日期命名的目录下载最新的)<br />
解压，复制到你SD卡的根目录</p>
<h3>下载 system.sqsh</h3>
<p> <a href="http://www.4shared.com/file/181397446/2a5944d9/system.html">UPDATE 2.0.1 v2 25 Dec</a> （如果下载的文件名不叫 system.sqsh 就改成 system.sqsh）</p>
<h3>下载 rootfs.img</h3>
<p> <a href="http://www.4shared.com/file/181394967/75052a70/rootfs-kaiser-custom.html ">UPDATE 2.0.1 v2 25 Dec</a>（如果下载的文件名不叫 rootfs.img 就改成 rootfs.img）</p>
<h3>下载 zImage</h3>
<p> <a href="http://it029000.massey.ac.nz/vogue/files/zImage-15-12-09 ">zImage-15-12-09</a>（如果下载的文件名不叫 zImage 就改成 zImage）</p>
<p>把这3个文件放到SD卡根目录，覆盖掉原来的</p>
<p>删除掉SD卡根目录里的 default.txt 和 default-polaris.txt<br />
重命名 default-kaiser.txt 为 default.txt<br />
编辑 default.txt</p>
<blockquote><p>set cmdline 那行改成</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">set</span> cmdline <span style="color: #ff0000;">&quot;board-htckaiser.panel_type=0 ppp.nostart=0 pm.sleep_mode=1 mddi.width=320 mddi.height=428 no_console_suspend board-kaiser-keypad.atttilt=0&quot;</span></div></td></tr></tbody></table></div>
</blockquote>
<p>用你的手机上的文件管理器，执行SD卡里的 haret.exe，run<br />
第一次启动会生成data.img，请耐性等待</p>
<p>后记：此文的 Android 版本是 2.0.1 （<a href="http://forum.xda-developers.com/showthread.php?t=600154">原帖</a>），如果你感兴趣，可以关注 <a href="http://forum.xda-developers.com/forumdisplay.php?f=378">xda 上的更多的讨论</a><br />
另外，<a href="http://www.tytnii.cn/">KingShui 同学</a> 的博客也必须关注<br />
Android on HTC 项目<a href="http://sourceforge.net/apps/trac/androidhtc/wiki/WikiStart">wiki</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2009/12/android-on-htc-kaiser.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>让 SmartSVN 显示中文</title>
		<link>http://www.upblog.net/2009/11/let-smartsvn-show-chinese-characters.html</link>
		<comments>http://www.upblog.net/2009/11/let-smartsvn-show-chinese-characters.html#comments</comments>
		<pubDate>Sun, 01 Nov 2009 15:46:45 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SmartSVN]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=149</guid>
		<description><![CDATA[ubuntu 9.10 + SmartSVN 6.0.7, 不能正常显示中文。 应该是 SmartSVN 默认的选用的字体不支持中文，google了下没发现有人说 SmartSVN 不支持中文的问题，难道我这是特例？！ 去官方查文档发现可以指定界面字体，修改smartsvn/bin/smartsvn.sh 在最后一行的上面加上 1_VM_PROPERTIES=&#34;$_VM_PROPERTIES -Dsmartsvn.uifont=Sans&#34; #注意我的 Sans 的是在 fontconfig 配置过的，默认使用“文泉驿微米黑”，你可以根据你的情况而定。 保存，重启SmartSVN，问题解决]]></description>
			<content:encoded><![CDATA[<p>ubuntu 9.10 + SmartSVN 6.0.7, 不能正常显示中文。<br />
应该是 SmartSVN 默认的选用的字体不支持中文，google了下没发现有人说 SmartSVN 不支持中文的问题，难道我这是特例？！<br />
去官方查文档发现可以指定界面字体，修改smartsvn/bin/smartsvn.sh<br />
在最后一行的上面加上</p>
<div class="codecolorer-container ini vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000099;">_VM_PROPERTIES</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;$_VM_PROPERTIES -Dsmartsvn.uifont=Sans&quot;</span></div></td></tr></tbody></table></div>
<p>#注意我的 Sans 的是在 fontconfig 配置过的，默认使用“文泉驿微米黑”，你可以根据你的情况而定。</p>
<p>保存，重启SmartSVN，问题解决</p>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2009/11/let-smartsvn-show-chinese-characters.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>搭建简单的本地DNS服务</title>
		<link>http://www.upblog.net/2009/10/how-to-local-dns-service.html</link>
		<comments>http://www.upblog.net/2009/10/how-to-local-dns-service.html#comments</comments>
		<pubDate>Sun, 18 Oct 2009 16:40:28 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[Technologies]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=143</guid>
		<description><![CDATA[搭建本地dns解析环境，用作本地web开发调试环境 系统自带的hosts解析（/etc/hosts）不支持泛解析（*.domain.com） 安装札记 安装域名服务器bind9和相关工具 sudo aptitude install bind9 dnsutils 修改配置文件，named.conf.local是本地环境的配置文件 sudo vi /etc/bind/named.conf.local 加入 123456789zone &#34;wordpress.mu&#34; IN &#123; type master; file &#34;/etc/bind/wordpress.mu&#34;; &#125;; zone &#34;1.1.127.in-addr.arpa&#34; IN &#123; type master; file &#34;/etc/bind/wordpress.mu&#34;; &#125;; sudo vi /etc/bind/wordpress.mu 12345678910111213141516; ; BIND reverse data &#8230; <a href="http://www.upblog.net/2009/10/how-to-local-dns-service.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>搭建本地dns解析环境，用作本地web开发调试环境<br />
系统自带的hosts解析（/etc/hosts）不支持泛解析（*.domain.com）</p>
<p>安装札记</p>
<h3>安装域名服务器bind9和相关工具</h3>
<p>sudo aptitude install bind9 dnsutils</p>
<h3>修改配置文件，named.conf.local是本地环境的配置文件</h3>
<p>sudo vi /etc/bind/named.conf.local<br />
加入</p>
<div class="codecolorer-container ini vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">zone <span style="color: #933;">&quot;wordpress.mu&quot;</span> IN <span style="">&#123;</span><br />
type master<span style="color: #666666; font-style: italic;">;</span><br />
file <span style="color: #933;">&quot;/etc/bind/wordpress.mu&quot;</span><span style="color: #666666; font-style: italic;">;</span><br />
<span style="">&#125;</span><span style="color: #666666; font-style: italic;">;</span><br />
<br />
zone <span style="color: #933;">&quot;1.1.127.in-addr.arpa&quot;</span> IN <span style="">&#123;</span><br />
type master<span style="color: #666666; font-style: italic;">;</span><br />
file <span style="color: #933;">&quot;/etc/bind/wordpress.mu&quot;</span><span style="color: #666666; font-style: italic;">;</span><br />
<span style="">&#125;</span><span style="color: #666666; font-style: italic;">;</span></div></td></tr></tbody></table></div>
<p>sudo vi /etc/bind/wordpress.mu</p>
<div class="codecolorer-container ini vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">;</span><br />
<span style="color: #666666; font-style: italic;">; BIND reverse data file for local loopback interface</span><br />
<span style="color: #666666; font-style: italic;">;</span><br />
$TTL &nbsp; &nbsp;<span style="">86400</span><br />
@ &nbsp; &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;SOA &nbsp; &nbsp; wordpress.mu. root.localhost. <span style="">&#40;</span><br />
<span style="">1</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Serial</span><br />
<span style="">604800</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Refresh</span><br />
<span style="">86400</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Retry</span><br />
<span style="">2419200</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">; Expire</span><br />
<span style="">86400</span><span style="">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">; Negative Cache TTL</span><br />
<span style="color: #666666; font-style: italic;">;</span><br />
@ &nbsp; &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;NS &nbsp; &nbsp; &nbsp;www<br />
@ &nbsp; &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;A &nbsp; &nbsp; &nbsp; 127.0.0.1<br />
* &nbsp; &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;A &nbsp; &nbsp; &nbsp; 127.0.0.1<br />
<span style="">120</span> &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;PTR &nbsp; &nbsp; www.wordpress.mu<br />
<span style="">120</span> &nbsp; &nbsp; IN &nbsp; &nbsp; &nbsp;PTR &nbsp; &nbsp; *.wordpress.mu</div></td></tr></tbody></table></div>
<h3>更改你机器的dns服务器ip</h3>
<p>sudo vi /etc/resolv.conf</p>
<div class="codecolorer-container ini vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">nameserver 127.0.0.1</div></td></tr></tbody></table></div>
<h3>重启bind9服务</h3>
<p>sudo /etc/init.d/bind9 restart</p>
<h3>看看是否生效</h3>
<blockquote><p>alex@alex-laptop:~$ nslookup<br />
&gt; wordpress.mu<br />
Server:		127.0.0.1<br />
Address:	127.0.0.1#53</p>
<p>Name:	wordpress.mu<br />
Address: 127.0.0.1<br />
&gt; whatever.wordpress.mu<br />
Server:		127.0.0.1<br />
Address:	127.0.0.1#53</p>
<p>Name:	whatever.wordpress.mu<br />
Address: 127.0.0.1<br />
&gt;</p></blockquote>
<h3>完成</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2009/10/how-to-local-dns-service.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决 Mac 下 netbeans 中文乱码</title>
		<link>http://www.upblog.net/2009/10/%e8%a7%a3%e5%86%b3-mac-%e4%b8%8b-netbeans-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81.html</link>
		<comments>http://www.upblog.net/2009/10/%e8%a7%a3%e5%86%b3-mac-%e4%b8%8b-netbeans-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81.html#comments</comments>
		<pubDate>Mon, 05 Oct 2009 04:55:25 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[Uncategory]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=141</guid>
		<description><![CDATA[Mac: Snow Leopard Netbeans: Netbeans for PHP 6.8m1 项目内文件编码默认为UTF-8，中文正常。 但 include_path 里的类库(UTF-8)乱码，不管是php doc还是直接打开都不能显示中文。 解决办法如下： 命令行下 vi /Applications/NetBeans/NetBeans 6.8 M1.app/Contents/Resources/NetBeans/etc/netbeans.conf netbeans_default_options=&#8221;&#8230;&#8221; 加上 -J-Dfile.encoding=UTF-8 看起来像是这样 1netbeans_default_options=&#34;-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dfile.encoding=UTF-8&#34; 保存，重启netbeans 问题解决]]></description>
			<content:encoded><![CDATA[<p>Mac: Snow Leopard<br />
Netbeans: Netbeans for PHP 6.8m1</p>
<p>项目内文件编码默认为UTF-8，中文正常。<br />
但 include_path 里的类库(UTF-8)乱码，不管是php doc还是直接打开都不能显示中文。<br />
解决办法如下：</p>
<blockquote><p>命令行下<br />
vi /Applications/NetBeans/NetBeans 6.8 M1.app/Contents/Resources/NetBeans/etc/netbeans.conf<br />
netbeans_default_options=&#8221;&#8230;&#8221; 加上 -J-Dfile.encoding=UTF-8<br />
看起来像是这样</p>
<div class="codecolorer-container ini vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000099;">netbeans_default_options</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Dfile.encoding=UTF-8&quot;</span></div></td></tr></tbody></table></div>
<p>保存，重启netbeans
</p></blockquote>
<p>问题解决</p>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2009/10/%e8%a7%a3%e5%86%b3-mac-%e4%b8%8b-netbeans-%e4%b8%ad%e6%96%87%e4%b9%b1%e7%a0%81.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 中文环境下中文 NetBeans 编辑器字体无 AA</title>
		<link>http://www.upblog.net/2009/07/ubuntu-%e4%b8%ad%e6%96%87%e7%8e%af%e5%a2%83%e4%b8%8b%e4%b8%ad%e6%96%87-netbeans-%e7%bc%96%e8%be%91%e5%99%a8%e5%ad%97%e4%bd%93%e6%97%a0-aa.html</link>
		<comments>http://www.upblog.net/2009/07/ubuntu-%e4%b8%ad%e6%96%87%e7%8e%af%e5%a2%83%e4%b8%8b%e4%b8%ad%e6%96%87-netbeans-%e7%bc%96%e8%be%91%e5%99%a8%e5%ad%97%e4%bd%93%e6%97%a0-aa.html#comments</comments>
		<pubDate>Sat, 11 Jul 2009 12:35:00 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[Technologies]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=123</guid>
		<description><![CDATA[这个问题不是 JDK 中文支持的问题，JDK 中文支持问题请点这里 名词解释 AA: Anti-Aliasing 字体抗锯齿平滑技术，具体请 Google 话说以前一直用英文 Ubuntu＋英文版 NetBeans，字体用 YaHei Consolas Hybrid，AA 完全正常 最近想换到中文环境，安装了中文支持，安装了中文版 NetBeans，打开 NetBeans 后界面中文字体完全正常，但是代码编辑区域的字体没有 AA 了。 怀疑是安装中文支持时改动了字体配置，检查 /etc/fonts/conf.d 下的文件，折腾了好久都没搞定 偶然想到换回到英文 locale 试试看 切换中英文环境的方法： 菜单：系统 > 系统管理 > 语言支持，选则英文就行 再打开 NetBeans，这下又有 AA 了，而且 NetBeans 主页面也回到英文了。 &#8230; <a href="http://www.upblog.net/2009/07/ubuntu-%e4%b8%ad%e6%96%87%e7%8e%af%e5%a2%83%e4%b8%8b%e4%b8%ad%e6%96%87-netbeans-%e7%bc%96%e8%be%91%e5%99%a8%e5%ad%97%e4%bd%93%e6%97%a0-aa.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>这个问题不是 JDK 中文支持的问题，JDK 中文支持问题请<a href="http://www.upblog.net/2009/04/linux%e4%b8%8bnetbeans%e8%b0%83%e8%af%95%e7%aa%97%e5%8f%a3%e7%9a%84%e4%b9%b1%e7%a0%81%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95.html">点这里</a></p>
<p>名词解释<br />
AA: Anti-Aliasing 字体抗锯齿平滑技术，具体请 Google</p>
<p>话说以前一直用英文 Ubuntu＋英文版 NetBeans，字体用 YaHei Consolas Hybrid，AA 完全正常<br />
最近想换到中文环境，安装了中文支持，安装了中文版 NetBeans，打开 NetBeans 后界面中文字体完全正常，但是代码编辑区域的字体没有 AA 了。</p>
<p><a href="http://www.upblog.net/wp-content/uploads/2009/07/screenshot_008.png"><img src="http://www.upblog.net/wp-content/uploads/2009/07/screenshot_008.png" alt="screenshot_008" title="screenshot_008" width="420" height="153" class="alignnone size-full wp-image-124" /></a></p>
<p>怀疑是安装中文支持时改动了字体配置，检查 /etc/fonts/conf.d 下的文件，折腾了好久都没搞定</p>
<p>偶然想到换回到英文 locale 试试看</p>
<blockquote><p>切换中英文环境的方法：<br />
菜单：系统 > 系统管理 > 语言支持，选则英文就行</p></blockquote>
<p>再打开 NetBeans，这下又有 AA 了，而且 NetBeans 主页面也回到英文了。<br />
这也就是说 NetBeans 是会自动检查当前系统 locale 而决定显示的语言。同时，编辑区域的字体 AA 应该也是跟 locale 有关。</p>
<p>google 后找到指定 NetBeans locale 的办法：<br />
netbeans.conf 里 netbeans_default_options 后面加上： <code class="codecolorer text vibrant"><span class="text">--locale en_US</span></code></p>
<p>再切换 Ubuntu 中文环境，打开 NetBeans，已经是英文界面了，编辑区域字体也正常<br />
这只是临时的解决办法，期待完美解决办法</p>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2009/07/ubuntu-%e4%b8%ad%e6%96%87%e7%8e%af%e5%a2%83%e4%b8%8b%e4%b8%ad%e6%96%87-netbeans-%e7%bc%96%e8%be%91%e5%99%a8%e5%ad%97%e4%bd%93%e6%97%a0-aa.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ssh 代理</title>
		<link>http://www.upblog.net/2009/07/ssh-prox.html</link>
		<comments>http://www.upblog.net/2009/07/ssh-prox.html#comments</comments>
		<pubDate>Sun, 05 Jul 2009 09:52:26 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[Technologies]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=113</guid>
		<description><![CDATA[关键字：翻墙，加速，绕过封锁 如果你有ssh帐号（最好是国外的），那么你就可以打造自己专用的代理了 Windows: plink putty的一个组件 然后新建一个快捷方式，指向PLINK.EXE -C -D 127.0.0.1:7777 -N -pw SSH密码 SSH用户名@SSH的IP地址 把快捷方式的运行方式改成：最小化，好了，双击快捷方式启动PLINK，这个时候你的电脑本地回环（Loopback）已经建立起了一个Socks5代理，地址是 127.0.0.1，端口是7777 Linux: 1. linux下也可以使用plink ubuntu用户可以直接安装 1sudo apt-get install putty 安装完成后执行 1plink -C -D 127.0.0.1:7777 -N -pw 密码 用户名@服务器地址 为了使用方便，我们可以在桌面创建一个启动器，如图 命令处填 plink -C -D 127.0.0.1:7777 -N -pw &#8230; <a href="http://www.upblog.net/2009/07/ssh-prox.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>关键字：翻墙，加速，绕过封锁</p>
<p>如果你有ssh帐号（最好是国外的），那么你就可以打造自己专用的代理了</p>
<h3>Windows:</h3>
<p><a href="http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe">plink</a> putty的一个组件<br />
然后新建一个快捷方式，指向<code class="codecolorer bash vibrant"><span class="bash">PLINK.EXE <span style="color: #660033;">-C</span> <span style="color: #660033;">-D</span> 127.0.0.1:<span style="color: #000000;">7777</span> <span style="color: #660033;">-N</span> <span style="color: #660033;">-pw</span> SSH密码 SSH用户名<span style="color: #000000; font-weight: bold;">@</span>SSH的IP地址</span></code><br />
把快捷方式的运行方式改成：最小化，好了，双击快捷方式启动PLINK，这个时候你的电脑本地回环（Loopback）已经建立起了一个Socks5代理，地址是 127.0.0.1，端口是7777</p>
<h3>Linux:</h3>
<h4>1. linux下也可以使用plink</h4>
<p>ubuntu用户可以直接安装</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> putty</div></td></tr></tbody></table></div>
<p>安装完成后执行</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">plink <span style="color: #660033;">-C</span> <span style="color: #660033;">-D</span> 127.0.0.1:<span style="color: #000000;">7777</span> <span style="color: #660033;">-N</span> <span style="color: #660033;">-pw</span> 密码 用户名<span style="color: #000000; font-weight: bold;">@</span>服务器地址</div></td></tr></tbody></table></div>
<p>为了使用方便，我们可以在桌面创建一个启动器，如图<a href="http://www.upblog.net/wp-content/uploads/2009/07/screenshot_003.png"><img class="alignnone size-medium wp-image-114" title="screenshot_003" src="http://www.upblog.net/wp-content/uploads/2009/07/screenshot_003-300x166.png" alt="screenshot_003" width="300" height="166" /></a><br />
命令处填 plink -C -D 127.0.0.1:7777 -N -pw 密码 用户名@服务器地址</p>
<h4>2. 当然也可以使用系统自带的ssh</h4>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-CfNg</span> <span style="color: #660033;">-D</span> 127.0.0.1:<span style="color: #000000;">7777</span> 用户名<span style="color: #000000; font-weight: bold;">@</span>服务器地址</div></td></tr></tbody></table></div>
<h3>Mac:</h3>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-CfNg</span> <span style="color: #660033;">-D</span> 127.0.0.1:<span style="color: #000000;">7777</span> 用户名<span style="color: #000000; font-weight: bold;">@</span>服务器地址</div></td></tr></tbody></table></div>
<p>firefox设置代理（图片来自<a href="http://sprayfly.com/2009/07/05/%E5%9C%A8-linux-%E4%B8%8B%E4%BD%BF%E7%94%A8%E4%BD%A0%E7%9A%84%E7%BD%91%E7%AB%99%E4%B8%BB%E6%9C%BA%E4%BD%9C%E4%B8%BA%E5%8A%A0%E5%AF%86%E4%BB%A3%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8/">Jonathan Lumb</a>）<br />
<a class="tt-flickr tt-flickr-Medium" title="firefox_proxy.png" href="http://www.flickr.com/photos/jonolumb/3689657500/"><img class="alignnone" src="http://farm3.static.flickr.com/2536/3689657500_4c7c03d871.jpg" alt="firefox_proxy.png" width="488" height="500" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2009/07/ssh-prox.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>有惊无险，修复 grub</title>
		<link>http://www.upblog.net/2009/06/fix-grub.html</link>
		<comments>http://www.upblog.net/2009/06/fix-grub.html#comments</comments>
		<pubDate>Mon, 29 Jun 2009 14:03:00 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[Uncategory]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=110</guid>
		<description><![CDATA[昨天无聊，忍不住又想折腾 Archlinux。下载了archboot，但是再安装过程中因为不能识别我的无限网卡而可耻的失败鸟，看看时间不早了就放弃了。 结果今天开机发现grub坏掉了 -_-＃ 手头上资源有： Archlinux 2008.6 CD Ubuntu 7.10 CD Windows 2003 冷风精简版 具体的失败步骤就不写了，只说结果 Archlinux grub进命令行模式，kernel识别不了 Ubuntu 7.10 不认识 EXT4文件格式 Windows 2003 冷风精简版没有修复模式 实在想不出别的办法，只能先启动到位于(hd0,0)的windows了，这需要用到Archlinux CD，因为它有grub菜单 在grub界面按c进入命令行模式 > rootnoverify (hd0,0) > makeactive > chainloader +1 > boot 然后就进入windows引导菜单了，惊喜的发现有安装过grub for dos &#8230; <a href="http://www.upblog.net/2009/06/fix-grub.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>昨天无聊，忍不住又想折腾 Archlinux。下载了archboot，但是再安装过程中因为不能识别我的无限网卡而可耻的失败鸟，看看时间不早了就放弃了。<br />
结果今天开机发现grub坏掉了 -_-＃<br />
手头上资源有：</p>
<ol>
<li>Archlinux 2008.6 CD</li>
<li>Ubuntu 7.10 CD</li>
<li>Windows 2003 冷风精简版</li>
</ol>
<p>具体的失败步骤就不写了，只说结果</p>
<ol>
<li>Archlinux grub进命令行模式，kernel识别不了</li>
<li>Ubuntu 7.10 不认识 EXT4文件格式</li>
<li>Windows 2003 冷风精简版没有修复模式</li>
</ol>
<p>实在想不出别的办法，只能先启动到位于(hd0,0)的windows了，这需要用到Archlinux CD，因为它有grub菜单<br />
在grub界面按c进入命令行模式<br />
> rootnoverify (hd0,0)<br />
> makeactive<br />
> chainloader +1<br />
> boot<br />
然后就进入windows引导菜单了，惊喜的发现有安装过grub for dos<br />
进入grub for dos<br />
按c进命令行模式<br />
> root (hd0,11) //我的/boot分区<br />
> kernel /vmlinuz-2.6.28-13-generic root=/dev/sda15 ro quiet splash<br />
> initrd /initrd.img-2.6.28-13-generic<br />
> boot</p>
<p>偶也，成功引导了。<br />
进入系统后，在终端执行sudo grub<br />
> find /grub/menu.lst<br />
输出的 hd(x,y)就是你的/boot位置了<br />
> root (hdx,y)<br />
> setup(hdx)<br />
如果这里输出的有success那就是说成功了<br />
> quit //退出</p>
<p>然后重启就能看到grub已经修复了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2009/06/fix-grub.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>推荐 SPlayer 射手播放器</title>
		<link>http://www.upblog.net/2009/06/splayer.html</link>
		<comments>http://www.upblog.net/2009/06/splayer.html#comments</comments>
		<pubDate>Wed, 10 Jun 2009 04:02:18 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[Uncategory]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=105</guid>
		<description><![CDATA[暴风影音的无耻就不多说了，今天来推荐下这个 SPlayer 射手播放器。 亮点： 自动匹配字幕（类似千千静听的智能匹配歌词） 3M尺寸竟然支持绝大多数编码格式，据官方说是&#8220;所有影音格式全能解码&#8221; 开源，免费，无插件，无后门，无菊花。 作者很勤快，可以看到每天都在更新 http://blog.svplayer.cn/ 不足： 目前还是 Beta 版本 目前只有 Windows 版本，未发现作者有开发其他平台版本的意图 软件功能和用户操作上还待增强 简介： 射手影音播放器是由 射手网 创建与维护的开源播放器项目。 内核基于MPC（感谢Gabest）、MPC-HC与ffmpeg。同时加入更多真正符合中国用户习惯的功能，旨在改进华人的数字影视观赏体验，建立和维护一个真正属于中文用户的开源播放器。 主要功能特色： H.264、x264、Divx、Xvid、RMVB、PMP &#8230; 所有影音格式全能解码。 智能化网络字幕匹配[?]。抛弃浏览器，也不必再收集。只要一人播放过且同意共享，全球华人都可在启动播放的同时下载到恰好匹配影片的字幕。 双字幕显示，同时显示中英双语，共同学习提高。 被分割为多段的视频，可以直接使用未分割的字幕来播放[?]。New! 智能识别简体或繁体字幕。告别乱码，也不用再手动转码。 自动减小英文字码，双语字幕更美观优雅。 根据使用习惯优化右键菜单，方便快速切换字幕和显示模式。 更加易用、精简的控制面板，更方便且易于理解的设置选项。 改变了字幕的默认字体颜色，减少视觉疲劳。 绿色版免安装，同时支持海量视频格式。 自动升级随时更新最新版本、体验最新功能。 用未分割的1段字幕看被分割为多段的视频[?] 支持2种GPU加速：DXVA和CUDA[?] 链接 官方网站：http://www.splayer.org/ &#8230; <a href="http://www.upblog.net/2009/06/splayer.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>暴风影音的无耻就不多说了，今天来推荐下这个 <a href="http://www.splayer.org/">SPlayer</a> 射手播放器。</p>
<h3>亮点：</h3>
<ul>
<li>自动匹配字幕（类似千千静听的智能匹配歌词）</li>
<li>3M尺寸竟然支持绝大多数编码格式，据官方说是&ldquo;所有影音格式全能解码&rdquo;</li>
<li>开源，免费，无插件，无后门，无菊花。</li>
<li>作者很勤快，可以看到每天都在更新 http://blog.svplayer.cn/</li>
</ul>
<h3>不足：</h3>
<ul>
<li>目前还是 Beta 版本</li>
<li>目前只有 Windows 版本，未发现作者有开发其他平台版本的意图</li>
<li>软件功能和用户操作上还待增强</li>
</ul>
<h3>简介：</h3>
<p>射手影音播放器是由 <a href="http://shooter.cn/">射手网</a> 创建与维护的开源播放器项目。  </p>
<p>内核基于MPC（感谢Gabest）、MPC-HC与ffmpeg。同时加入更多真正符合中国用户习惯的功能，旨在改进华人的数字影视观赏体验，建立和维护一个真正属于中文用户的开源播放器。</p>
<h3>主要功能特色：</h3>
<ul>
<li>H.264、x264、Divx、Xvid、RMVB、PMP &#8230; 所有影音格式全能解码。</li>
<li>智能化网络字幕匹配[?]。抛弃浏览器，也不必再收集。只要一人播放过且同意共享，全球华人都可在启动播放的同时下载到恰好匹配影片的字幕。</li>
<li>双字幕显示，同时显示中英双语，共同学习提高。</li>
<li>被分割为多段的视频，可以直接使用未分割的字幕来播放[?]。New!</li>
<li>智能识别简体或繁体字幕。告别乱码，也不用再手动转码。</li>
<li>自动减小英文字码，双语字幕更美观优雅。</li>
<li>根据使用习惯优化右键菜单，方便快速切换字幕和显示模式。</li>
<li>更加易用、精简的控制面板，更方便且易于理解的设置选项。</li>
<li>改变了字幕的默认字体颜色，减少视觉疲劳。</li>
<li>绿色版免安装，同时支持海量视频格式。</li>
<li>自动升级随时更新最新版本、体验最新功能。</li>
<li>用未分割的1段字幕看被分割为多段的视频[?]</li>
<li>支持2种GPU加速：DXVA和CUDA[?]</li>
</ul>
<h3>链接</h3>
<ul>
<li>官方网站：<a href="http://www.splayer.org/">http://www.splayer.org/</a></li>
<li>下载安装版：<a href="http://www.splayer.org/files/SPlayerSetup.exe">http://www.splayer.org/files/SPlayerSetup.exe</a></li>
<li>下载绿色版：<a href="http://www.splayer.org/files/svplayer.rar">http://www.splayer.org/files/svplayer.rar</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2009/06/splayer.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux系统信息查看命令大全</title>
		<link>http://www.upblog.net/2009/06/linux-sysinfo-commands.html</link>
		<comments>http://www.upblog.net/2009/06/linux-sysinfo-commands.html#comments</comments>
		<pubDate>Tue, 09 Jun 2009 03:01:10 +0000</pubDate>
		<dc:creator>kukat</dc:creator>
				<category><![CDATA[Technologies]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.upblog.net/?p=99</guid>
		<description><![CDATA[版权声明：可以任意转载，但转载时必须标明原作者charlee、原始链接http://tech.idv2.com/2008/01/11/linux-sysinfo-cmds/以及本声明。 这里还有非常多的命令，可以作为参考。 系统 12345678# uname -a &#160; &#160; &#160; &#160; &#160; &#160; &#160; # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue &#160; # 查看操作系统版本 # cat /proc/cpuinfo &#160; &#160; &#160;# 查看CPU信息 # hostname &#160; &#160; &#160; &#160; &#160; &#160; &#160; # &#8230; <a href="http://www.upblog.net/2009/06/linux-sysinfo-commands.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>版权声明：可以任意转载，但转载时必须标明原作者charlee、原始链接http://tech.idv2.com/2008/01/11/linux-sysinfo-cmds/以及本声明。</em><br />
<a href="http://www.pixelbeat.org/cmdline.html">这里</a>还有非常多的命令，可以作为参考。</p>
<h3>系统</h3>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># uname -a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看内核/操作系统/CPU信息<br />
# head -n 1 /etc/issue &nbsp; # 查看操作系统版本<br />
# cat /proc/cpuinfo &nbsp; &nbsp; &nbsp;# 查看CPU信息<br />
# hostname &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看计算机名<br />
# lspci -tv &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 列出所有PCI设备<br />
# lsusb -tv &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 列出所有USB设备<br />
# lsmod &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 列出加载的内核模块<br />
# env &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看环境变量</div></td></tr></tbody></table></div>
<p><span id="more-99"></span></p>
<h3>资源</h3>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># free -m &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看内存使用量和交换区使用量<br />
# df -h &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看各分区使用情况<br />
# du -sh &lt;目录名&gt; &nbsp; &nbsp; &nbsp; &nbsp;# 查看指定目录的大小<br />
# grep MemTotal /proc/meminfo &nbsp; # 查看内存总量<br />
# grep MemFree /proc/meminfo &nbsp; &nbsp;# 查看空闲内存量<br />
# uptime &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看系统运行时间、用户数、负载<br />
# cat /proc/loadavg &nbsp; &nbsp; &nbsp;# 查看系统负载</div></td></tr></tbody></table></div>
<h3>磁盘和分区</h3>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mount | column -t &nbsp; &nbsp; &nbsp;# 查看挂接的分区状态<br />
# fdisk -l &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看所有分区<br />
# swapon -s &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看所有交换分区<br />
# hdparm -i /dev/hda &nbsp; &nbsp; # 查看磁盘参数(仅适用于IDE设备)<br />
# dmesg | grep IDE &nbsp; &nbsp; &nbsp; # 查看启动时IDE设备检测状况</div></td></tr></tbody></table></div>
<h3>网络</h3>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># ifconfig &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看所有网络接口的属性<br />
# iptables -L &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看防火墙设置<br />
# route -n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看路由表<br />
# netstat -lntp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看所有监听端口<br />
# netstat -antp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看所有已经建立的连接<br />
# netstat -s &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看网络统计信息</div></td></tr></tbody></table></div>
<h3>进程</h3>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># ps -ef &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看所有进程<br />
# top &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 实时显示进程状态</div></td></tr></tbody></table></div>
<h3>用户</h3>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># w &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看活动用户<br />
# id &lt;用户名&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看指定用户信息<br />
# last &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看用户登录日志<br />
# cut -d: -f1 /etc/passwd &nbsp; # 查看系统所有用户<br />
# cut -d: -f1 /etc/group &nbsp; &nbsp;# 查看系统所有组<br />
# crontab -l &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # 查看当前用户的计划任务</div></td></tr></tbody></table></div>
<h3>服务</h3>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># chkconfig --list &nbsp; &nbsp; &nbsp; # 列出所有系统服务<br />
# chkconfig --list | grep on &nbsp; &nbsp;# 列出所有启动的系统服务</div></td></tr></tbody></table></div>
<h3>程序</h3>
<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># rpm -qa &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# 查看所有安装的软件包</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.upblog.net/2009/06/linux-sysinfo-commands.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
