<?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>molezz BAR 世界尽头 &#187; 电脑网络|network</title>
	<atom:link href="http://www.molezz.net/drink/category/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.molezz.net</link>
	<description>a man can be destroyed but not defeated -- 生物技术和计算机技术</description>
	<lastBuildDate>Thu, 15 Jul 2010 15:42:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>入手htc desire &#8211; 我的android应用记录</title>
		<link>http://www.molezz.net/drink/htc-desire-android-app/</link>
		<comments>http://www.molezz.net/drink/htc-desire-android-app/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 13:03:56 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[desire]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[手机]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=586</guid>
		<description><![CDATA[最近放弃了我的黑莓8310, 转投android阵地, 买了韩版的htc desire, 效果很不错, 虽然失去了全键实体键盘的输入快感和快捷键, 但是我觉得得到的android享受更加多些. 刚拿到手自然很有新鲜感, 真正的使用优缺点还是长久使用后再体会吧. 除了htc sense自带的软件应用. 只是记录下其他常用的日常工具应用: advanced task killer 任务管理, 其实感觉用处不是很大&#8230; 不过能显示当前剩余ram还是不错的 better terminal emulator 既然是linux, 自然需要有个terminal了&#8230; 命令行的强大~ realcalc 便于做些计算 calwidget 自定义非常高的日历widget, 能以各种布局排列, 2&#215;1, 2x2等等 connectbot 方便登录远程linux系统, 比如我的vps documents to go 虽然很少用于编辑, 但是有时还是需要看些office文档的 mytracks 通过gps记录自己的路径, 跑步时用, 可以记录里程和速度, 能导出为3种格式, 如gpx. 其实更加喜欢黑莓下的gpsed, 可惜暂时没出android版本. newsrob 看google reader的利器, 支持离线阅读, 同步 seesmic twitter应用, 支持api, [...]]]></description>
			<content:encoded><![CDATA[<p>最近放弃了<a href="http://www.molezz.net/drink/blackberry-8310/" target="_blank">我的黑莓8310</a>, 转投android阵地, 买了韩版的<a href="http://www.htc.com/www/product/desire/overview.html" target="_blank">htc desire</a>, 效果很不错, 虽然失去了全键实体键盘的输入快感和快捷键, 但是我觉得得到的android享受更加多些. 刚拿到手自然很有新鲜感, 真正的使用优缺点还是长久使用后再体会吧. 除了htc sense自带的软件应用. 只是记录下其他常用的日常工具应用:</p>
<p><strong>advanced task killer</strong><br />
任务管理, 其实感觉用处不是很大&#8230; 不过能显示当前剩余ram还是不错的<br />
<a href="http://sleqma.bay.livefilestore.com/y1p_Du7LTPg34M_XniYhVJoOrMY8jTGaKMkiVgpOgEt03KVWMDG4vBaNjmo4dbiWyoY3GEXTCLWAOFsbzkdDgDp8a3VAYhc3QBg/advancedtaskkiller.png?psid=1"><img title="advance" src="http://sleqma.bay.livefilestore.com/y1p_Du7LTPg34M_XniYhVJoOrMY8jTGaKMkiVgpOgEt03KVWMDG4vBaNjmo4dbiWyoY3GEXTCLWAOFsbzkdDgDp8a3VAYhc3QBg/advancedtaskkiller.png?psid=1" alt="" width="174" height="289" /></a></p>
<p><strong>better terminal emulator </strong><br />
既然是linux, 自然需要有个terminal了&#8230; 命令行的强大~<br />
<a href="http://sleqma.bay.livefilestore.com/y1pigtvNYvRV_1s14pGNfrZDJmUvLr4dl3Y-GgeMgIwBAK6Krru5Xzl_4bK2N-7R0jUeQ4MapNUYiBTaPukhHnGc4ifaR8k31PX/betterterminal.png?psid=1"><img class="alignnone" src="http://sleqma.bay.livefilestore.com/y1pigtvNYvRV_1s14pGNfrZDJmUvLr4dl3Y-GgeMgIwBAK6Krru5Xzl_4bK2N-7R0jUeQ4MapNUYiBTaPukhHnGc4ifaR8k31PX/betterterminal.png?psid=1" alt="" width="175" height="263" /></a></p>
<p><span id="more-586"></span><strong>realcalc</strong><br />
便于做些计算<br />
<a href="http://sleqma.bay.livefilestore.com/y1pRxieLKhkSka47eZkL5Os910lr3UPlRNWJoBetu8KlFYCSWn8p7OJjIjojlUBMnIsHLPr2iFcWF_Eq-FFwiggAqGQgREdgMdH/realcalc.jpg?psid=1"><img class="alignnone" src="http://sleqma.bay.livefilestore.com/y1pRxieLKhkSka47eZkL5Os910lr3UPlRNWJoBetu8KlFYCSWn8p7OJjIjojlUBMnIsHLPr2iFcWF_Eq-FFwiggAqGQgREdgMdH/realcalc.jpg?psid=1" alt="" width="182" height="272" /></a></p>
<p><strong>calwidget</strong><br />
自定义非常高的日历widget, 能以各种布局排列, 2&#215;1, 2x2等等<br />
<a href="http://lh3.ggpht.com/_FWaONNRW0OU/SuCVym38_GI/AAAAAAAAAsY/mWLeA_FyxwA/s400/calwidget.png"><img class="alignnone" src="http://lh3.ggpht.com/_FWaONNRW0OU/SuCVym38_GI/AAAAAAAAAsY/mWLeA_FyxwA/s400/calwidget.png" alt="" width="182" height="273" /></a></p>
<p><strong>connectbot</strong><br />
方便登录远程linux系统, 比如我的vps<br />
<a href="http://android-apps.com/images/connectbot1.png"><img class="alignnone" src="http://android-apps.com/images/connectbot1.png" alt="" width="338" height="225" /></a></p>
<p><strong>documents to go</strong><br />
虽然很少用于编辑, 但是有时还是需要看些office文档的<br />
<a href="http://www.mobiletopsoft.com/images/news/android_dataviz.jpg"><img class="alignnone" src="http://www.mobiletopsoft.com/images/news/android_dataviz.jpg" alt="" width="199" height="298" /></a></p>
<p><strong>mytracks</strong><br />
通过gps记录自己的路径, 跑步时用, 可以记录里程和速度, 能导出为3种格式, 如gpx. 其实更加喜欢黑莓下的gpsed, 可惜暂时没出android版本.<br />
<a href="http://sleqma.bay.livefilestore.com/y1puSq2SFG0D2xToMRgjvAON0_aelZDi5_ps3doP1stppfvqKwNexHRPTTLZOOqLWfRLyQyBh287-salMVhQAlatn1ZX7MNvo9I/mytrack.png?psid=1"><img class="alignnone" src="http://sleqma.bay.livefilestore.com/y1puSq2SFG0D2xToMRgjvAON0_aelZDi5_ps3doP1stppfvqKwNexHRPTTLZOOqLWfRLyQyBh287-salMVhQAlatn1ZX7MNvo9I/mytrack.png?psid=1" alt="" width="203" height="281" /></a></p>
<p><strong>newsrob</strong><br />
看google reader的利器, 支持离线阅读, 同步<br />
<a href="http://sleqma.bay.livefilestore.com/y1pKrd4EOMK5S0oqHyGdwMhK3Yt6q3_QPdluqHVyRa8HJpCxi-uEIyWTKo3rb7-MaCOJE2bOBW41kk4lcTEzy6Im_C7uC0w0Ima/newsrob-feed.jpg?psid=1"><img class="alignnone" src="http://sleqma.bay.livefilestore.com/y1pKrd4EOMK5S0oqHyGdwMhK3Yt6q3_QPdluqHVyRa8HJpCxi-uEIyWTKo3rb7-MaCOJE2bOBW41kk4lcTEzy6Im_C7uC0w0Ima/newsrob-feed.jpg?psid=1" alt="" width="194" height="291" /></a></p>
<p><strong>seesmic</strong><br />
twitter应用, 支持api, 很方便<br />
<a href="http://www.sizzledcore.com/wp-content/uploads/2010/04/seesmic-android-twitter-app.png"><img class="alignnone" src="http://www.sizzledcore.com/wp-content/uploads/2010/04/seesmic-android-twitter-app.png" alt="" width="194" height="324" /></a></p>
<p><strong>websharing</strong><br />
使自己的android成为一个web服务器, 能够上传下载, 免于插数据线<br />
<a href="http://www.androlib.com/appscreenmax/pjnD.u.cs.png"><img class="alignnone" src="http://www.androlib.com/appscreenmax/pjnD.u.cs.png" alt="" width="193" height="344" /></a></p>
<p><strong>wifi analyzer</strong><br />
分析周围wifi信号<br />
<a href="http://cdn-1.androidzoom.com/screenshots/516-1.jpg"><img class="alignnone" src="http://cdn-1.androidzoom.com/screenshots/516-1.jpg" alt="" width="196" height="295" /></a></p>
<p><strong>touchpal 触宝输入法</strong><br />
很方便的输入法, 尤其下滑操作方式能直接输入另个符号, 省却切换输入法, 并且支持中英文混合输入<br />
<a href="http://www.tigersw.cn/softwares/20098121738562/syimage.jpg"><img class="alignnone" src="http://www.tigersw.cn/softwares/20098121738562/syimage.jpg" alt="" width="200" height="301" /></a></p>
<p><strong>shanghai subway 上海地铁</strong><br />
查阅出行, 能显示各站点出口的交通环境<br />
<a href="http://fs01.androidpit.info/ass/x56/223556-1271487956165.jpg"><img class="alignnone" src="http://fs01.androidpit.info/ass/x56/223556-1271487956165.jpg" alt="" width="201" height="302" /></a></p>
<p><strong>Barcode Scanner 条码扫描器</strong><br />
方便下载一些二维码软件<br />
<a href="http://www.androidtapp.com/wp-content/uploads/2009/06/Barcode-Scanner-URL-Found-via-Embeded-QR-Code.jpg"><img class="alignnone" src="http://www.androidtapp.com/wp-content/uploads/2009/06/Barcode-Scanner-URL-Found-via-Embeded-QR-Code.jpg" alt="" width="279" height="186" /></a></p>
<p><strong>alipay 支付宝</strong><br />
充值, 付款使用, 淘宝用户必备<br />
<a href="http://sleqma.bay.livefilestore.com/y1p64qP9ASKhGLBugfaqxmlvQs-8spkAA5ZL5vb5i6eRpiiRQT61JBGSEqZ1DdHXIgM5ojw0oTKOg3Qb2GU-jFwHKMcJSl5usYn/alipay.jpg?psid=1"><img class="alignnone" src="http://sleqma.bay.livefilestore.com/y1p64qP9ASKhGLBugfaqxmlvQs-8spkAA5ZL5vb5i6eRpiiRQT61JBGSEqZ1DdHXIgM5ojw0oTKOg3Qb2GU-jFwHKMcJSl5usYn/alipay.jpg?psid=1" alt="" width="204" height="307" /></a></p>
<p><strong>battery widget</strong><br />
桌面显示当前电量, 并且点击后能快速打开关闭wifi, gps等<br />
<a href="http://www.droidapps.org/wp-content/uploads/2009/11/battery-widget-android-app-2.jpg"><img class="alignnone" src="http://www.droidapps.org/wp-content/uploads/2009/11/battery-widget-android-app-2.jpg" alt="" width="80" height="84" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=586&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/htc-desire-android-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>定时备份与nginx反向代理&#8211;vps应用(一)</title>
		<link>http://www.molezz.net/drink/backup-nginx-reverse-prxoy-vps/</link>
		<comments>http://www.molezz.net/drink/backup-nginx-reverse-prxoy-vps/#comments</comments>
		<pubDate>Sat, 29 May 2010 15:13:58 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[代理]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=560</guid>
		<description><![CDATA[最近原先的虚拟主机出现问题, 于是索性完全转到vps空间. wordpress和dokuwiki的搬家基本很顺利, 主要平时注意了备份问题, 不过还是少了一篇日志和2个评论, 等到恢复再补上. 由于图片都是外链, 所以搬家很方便,sql数据很小, 主要的问题是原先设的一些应用没有备份, 比如twitter api和dabr之类的应急应用. 设置好了域名绑定后, 主要就是设置备份, 现在molezz.net主要的就是一个wordpress blog和dokuwiki知识整理. 前者的备份用了WordPress Database Backup进行每周备份, 而dokuwiki没有这样的定期插件, 而且不是基于mysql的, 是使用txt进行记录, 不能用上面那个插件备份, 于是想到了linux下的脚本和crond进行备份. 另外由于用了nginx而不是apache, 可以直接利用nginx的reverse proxy设置twitter的api, 而不用twip之类的第三方~ (I) 定期自动备份文件夹 由于dokuwiki的记录都是保存于data/pages目录下, 所以我只要备份这个里面的数据即可, 首先是压缩这个文件夹为单个文件, 然后将其email到我的gmail邮箱备份即可. 以当日日期为文件名压缩得到tar.gz文件, 利用uuencode编成附件, 然后利用mail程序发送到邮箱. 最后删除vps上生成的临时tar.gz文件. 脚本文件如下: 1 2 3 4 5 6 #!/bin/bash # backup dokuwiki pages program &#160; tar czfP `date +&#34;%Y%m%d&#34;`_wikipages.tar.gz [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="https://www.centos.org/themes/centos/images/centos_logo_45.png" title="centos" class="alignright" width="208" height="45" />最近原先的虚拟主机出现问题, 于是索性完全转到vps空间. wordpress和dokuwiki的搬家基本很顺利, 主要平时注意了备份问题, 不过还是少了一篇日志和2个评论, 等到恢复再补上. 由于图片都是外链, 所以搬家很方便,sql数据很小, 主要的问题是原先设的一些应用没有备份, 比如twitter api和dabr之类的应急应用.</p>
<p>设置好了域名绑定后, 主要就是设置备份, 现在molezz.net主要的就是一个wordpress blog和dokuwiki知识整理. 前者的备份用了<a href="http://austinmatzko.com/wordpress-plugins/wp-db-backup/" target="_blank">WordPress Database Backup</a>进行每周备份, 而dokuwiki没有这样的定期插件, 而且不是基于mysql的, 是使用txt进行记录, 不能用上面那个插件备份, 于是想到了linux下的脚本和crond进行备份. 另外由于用了nginx而不是apache, 可以直接利用nginx的reverse proxy设置twitter的api, 而不用<a href="http://code.google.com/p/twip/" target="_blank">twip</a>之类的第三方~<br />
<span id="more-560"></span></p>
<h4>(I) 定期自动备份文件夹</h4>
<p>由于dokuwiki的记录都是保存于data/pages目录下, 所以我只要备份这个里面的数据即可, 首先是压缩这个文件夹为单个文件, 然后将其email到我的gmail邮箱备份即可. 以当日日期为文件名压缩得到tar.gz文件, 利用uuencode编成附件, 然后利用mail程序发送到邮箱. 最后删除vps上生成的临时tar.gz文件. 脚本文件如下:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># backup dokuwiki pages program</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">tar</span> czfP <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%Y%m%d&quot;</span><span style="color: #000000; font-weight: bold;">`</span>_wikipages.tar.gz wiki<span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>pages<span style="color: #000000; font-weight: bold;">/</span>
uuencode <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%Y%m%d&quot;</span><span style="color: #000000; font-weight: bold;">`</span>_wikipages.tar.gz <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%Y%m%d&quot;</span><span style="color: #000000; font-weight: bold;">`</span>_wikipages.tar.gz <span style="color: #000000; font-weight: bold;">|</span> mail <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;molezz wiki backup&quot;</span> molezz+backup<span style="color: #000000; font-weight: bold;">@</span>gmail.com
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">*</span>wikipages.tar.gz</pre></td></tr></table></div>

<p>写好脚本后要进行每周的执行, 用命令crontab -e进行设置(注意文件夹路径)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">25</span> <span style="color: #000000;">20</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">3</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>molezz<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>wikibackup.sh</pre></div></div>

<p>表示每周三20:25进行备份, 如果要每月或每天的话也可以进行相应更改, 前5个位置分别为&lt;分,时,日,月,周&gt;, 具体可以参考<a href="http://linux.vbird.org/linux_basic/0430cron.php" target="_blank">鸟哥的私房菜这章</a></p>
<h4>(II) 利用nginx反向代理设置api</h4>
<p>解决了备份问题, 接下去就是我的twitter api问题, 原先使用的twip架设的api使我的手机ubertwitter能看推. 而用了nginx后发现twip工作不正常, 原来是rewrite的问题, 上<a href="http://code.google.com/p/twip/issues/detail?id=3" target="_blank">google code</a>一看&#8230; 原来nginx可以设置reverse proxy, 于是只要将我的一个域名设置反向代理到api.twitter.com即可</p>
<p>设置域名解析, 如www.aaa.com(只是例子, 不存在), 打开nginx.conf文件, 添加</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>77
78
79
80
81
82
83
84
85
86
87
88
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"> server <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        listen       <span style="color: #000000;">80</span>;
        server_name  www.aaa.com;
&nbsp;
        location <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
            proxy_pass http:<span style="color: #000000; font-weight: bold;">//</span>api.twitter.com<span style="color: #000000; font-weight: bold;">/</span>;
            proxy_redirect off;
            proxy_set_header X-Real-IP <span style="color: #007800;">$remote_addr</span>;
            proxy_set_header X-Forwarded-For
            <span style="color: #007800;">$proxy_add_x_forwarded_for</span>;
        <span style="color: #7a0874; font-weight: bold;">&#125;</span>
    <span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>重启nginx服务后, 只要在api的地址填写www.aaa.com即可访问twitter的api了, 另外这个也可以用于其他代理, 而且还能隐藏真实的原网址.</p>
<p>vps虽然贵, 但是物有所值, 很多自定义服务都能实现.</p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=560&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/backup-nginx-reverse-prxoy-vps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>i3–Linux tiling window manager程序</title>
		<link>http://www.molezz.net/drink/i3%e2%80%93linux-tiling-window-manager/</link>
		<comments>http://www.molezz.net/drink/i3%e2%80%93linux-tiling-window-manager/#comments</comments>
		<pubDate>Tue, 11 May 2010 23:10:25 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[i3]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=552</guid>
		<description><![CDATA[可能高手都习惯了openbox和awesome, 用的人多, 网上的资料也比较全. 不过我觉得对于普通使用i3很 不错, 默认的设置就能很好的完成日常的功能. i3从wmii改进, 效果挺不错, 上手速度快. 如果想要安心的看文档, 做工作, 我觉得tiling window manager真是必备的工作环境, 能减少鼠标的操作, 键盘操作既健康又便捷. 而linux虚拟桌面的应用在i3里使用更是方便. 比如可以1号开启terminal和pdf文档, 2号开启浏览器, 3号开启其他应用IM, email等等. 切换时只要Mod1+1/2/3即可. 比起随时alt tab和调整窗口来说方便多了 ubuntu系统下只要执行sudo apt-get install i3即可, 然后注销, 在登录界面下方选择i3作为启动界面. 启动后会出现welcome界面, 如果不需要可以执行cp /etc/i3/config ~/.i3/config, 然后将最后的2行注释掉即可, 当然config文件可以进一步自定义化, 比起awesome的配置稍稍方便一点, 不过可能功能没那么强了, 够用即可. 普通的i3命令可以通过welcome界面或者man i3查到, Mod1键默认为Alt: Mod1 + 数字 切换到不同虚拟桌面(container) Mod1 + enter 启动terminal终端 Mod1 + v 启动dmenu, 可以方便启动各个程序 [...]]]></description>
			<content:encoded><![CDATA[<p>可能高手都习惯了<a href="http://openbox.org/" target="_blank">openbox</a>和<a href="http://www.calmar.ws/awesome/" target="_blank">awesome</a>, 用的人多,  网上的资料也比较全. 不过我觉得对于普通使用<a href="http://i3.zekjur.net/" target="_blank">i3</a>很 不错, 默认的设置就能很好的完成日常的功能. i3从<a href="http://wmii.suckless.org/" target="_blank">wmii</a>改进, 效果挺不错, 上手速度快.</p>
<p>如果想要安心的看文档, 做工作, 我觉得<a href="http://en.wikipedia.org/wiki/Tiling_window_manager" target="_blank">tiling window manager</a>真是必备的工作环境, 能减少鼠标的操作,  键盘操作既健康又便捷. 而linux虚拟桌面的应用在i3里使用更是方便. 比如可以1号开启terminal和pdf文档, 2号开启浏览器,  3号开启其他应用IM, email等等. 切换时只要Mod1+1/2/3即可. 比起随时alt tab和调整窗口来说方便多了</p>
<p>ubuntu系统下只要执行sudo apt-get install i3即可, 然后注销, 在登录界面下方选择i3作为启动界面.</p>
<p>启动后会出现welcome界面, 如果不需要可以执行cp /etc/i3/config ~/.i3/config,  然后将最后的2行注释掉即可, 当然config文件可以进一步自定义化, 比起awesome的配置稍稍方便一点, 不过可能功能没那么强了,  够用即可. 普通的i3命令可以通过welcome界面或者man i3查到, Mod1键默认为Alt:</p>
<p><span id="more-552"></span>Mod1 + 数字   切换到不同虚拟桌面(container)<br />
Mod1 + enter  启动terminal终端<br />
Mod1 + v   启动dmenu, 可以方便启动各个程序<br />
Mod1 + f    全屏当前程序<br />
Mod1 + 方向键  在一个虚拟桌面container里切换不同程序界面<br />
Mod1 + Shift + 数字键  将当前程序移动到指定虚拟桌面<br />
Mod1 +Shift + ;   改变窗口排列为纵向<br />
Mod1 + Shift + q   退出当前程序窗口<br />
Mod1 + Shift + r   重启i3, 不会关闭当前程序窗口, 但是会失去窗口的布局<br />
Mod1 +Shift + e   注销退出i3, 会关闭所有程序</p>
<p>鼠标拖动边缘可以调节虚拟桌面中的窗口的宽度高度, 这点似乎不如awesome内置的一些自动排列的按钮方便. 更多的命令可以通过man查询,  并且通过config文件添加更多的配置.</p>
<p><a href="http://public.bay.livefilestore.com/y1pjXfoQl1MDh8zIzGZ5uzZ9qYCgGom0TMVA5dys94sFkLsn2O7nMlaWIVD0G2gJ6vSiH9ym1dWi9af10C1gTETQg/i3-1.JPG"><img title="i3-1" src="http://public.bay.livefilestore.com/y1pjXfoQl1MDh8zIzGZ5uzZ9qYCgGom0TMVA5dys94sFkLsn2O7nMlaWIVD0G2gJ6vSiH9ym1dWi9af10C1gTETQg/i3-1.JPG" alt="" width="500" height="260" /></a></p>
<p><a href="http://public.bay.livefilestore.com/y1p7I9ZJJFrGBKUTrj_a4vsmpt5JnyOBByJ3Rdt1WD6FS7t8DvgDDBR7D4lKaCzpS3qJX4e6aOaPUguQLlB7JWQgg/i3-3.JPG"><img title="i3-2" src="http://public.bay.livefilestore.com/y1p7I9ZJJFrGBKUTrj_a4vsmpt5JnyOBByJ3Rdt1WD6FS7t8DvgDDBR7D4lKaCzpS3qJX4e6aOaPUguQLlB7JWQgg/i3-3.JPG" alt="" width="500" height="260" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=552&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/i3%e2%80%93linux-tiling-window-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>凑点老配件装linux</title>
		<link>http://www.molezz.net/drink/hardware-linux-fedora/</link>
		<comments>http://www.molezz.net/drink/hardware-linux-fedora/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 16:23:52 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=544</guid>
		<description><![CDATA[前阵子的vps热度还没褪去, 一直用的虚拟机在本地测试, 然后才用于远程vps&#8230;. 不过开始不满足于此, 借了正规的教程, 学习系统的linux命令系统管理, &#60;鸟哥的linux私房菜&#62;打算先看完. 为了好好接触, 于是打算在真机上装linux实战. 为此, 特地东凑西凑老配件, 本来想用自己的老barton2500的, 可惜主板一直没搞定, 于是问同学那搞来了p41.7g, 凑上256Mx2的内存, 迈拓的40g硬盘, 老cd, 由于主板不集成, 又搞了8139网卡和MX400显卡, 开始安装, 选了fedora12系统. 下载了netinstall镜像, 从网络安装, 可能由于选了gnome的环境, 装了1小时多&#8230;. 当时虚拟机里只用了半小时, 可能没装xWindows环境的问题. 真机上我还是选了gnome, 毕竟考虑到不只是远程上去练习命令行. 有时也需要桌面环境熟悉一下, 另外可以利用realVNC进行远程桌面. 40g专门划出10g挂载/, 200M的/boot, 15g挂载/home, 1g的swap, 另外几g挂载了/var和/usr, 现在发现似乎划给/usr的有些少&#8230;&#8230;装完不启动gnome的话, 内存还好, 有一半free, 启动了gnome的话130free, 不过很少启动, 大部分还是通过ssh去管理. 今天ubuntu10.04发布了&#8230; 虽然从beta起一直在用, 不过还是打算只在虚拟机里跑了, 毕竟主机4核4g内存跑虚拟机不成问题, 512的这个老主机就不敢说了. 打算看完了私房菜后, 看The Linux Command Line, 发现主要还是要多用, 当年初一时把dos命令背的烂熟&#8230;. 现在一对比bash&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://public.bay.livefilestore.com/y1pZGUL6H0LRsjCE-Z4YA6zdR0-dc8TmDxvxIe0EJC8Z_fft6t553QqMwX59Hl4f5u2HrsIDAeKU8fSfNB70UV3Ww/linux1.JPG" target="_blank"><img class="alignright" title="http://public.bay.livefilestore.com/y1pZGUL6H0LRsjCE-Z4YA6zdR0-dc8TmDxvxIe0EJC8Z_fft6t553QqMwX59Hl4f5u2HrsIDAeKU8fSfNB70UV3Ww/linux1.JPG" src="http://public.bay.livefilestore.com/y1pZGUL6H0LRsjCE-Z4YA6zdR0-dc8TmDxvxIe0EJC8Z_fft6t553QqMwX59Hl4f5u2HrsIDAeKU8fSfNB70UV3Ww/linux1.JPG" alt="" width="200" height="150" /></a>前阵子的vps热度还没褪去, 一直用的虚拟机在本地测试, 然后才用于远程vps&#8230;. 不过开始不满足于此, 借了正规的教程, 学习系统的linux命令系统管理, <a href="http://book.douban.com/subject/2208530/" target="_blank">&lt;鸟哥的linux私房菜&gt;</a>打算先看完. 为了好好接触, 于是打算在真机上装linux实战.</p>
<p>为此, 特地东凑西凑老配件, 本来想用自己的老barton2500的, 可惜主板一直没搞定, 于是问同学那搞来了p41.7g, 凑上256Mx2的内存, 迈拓的40g硬盘, 老cd, 由于主板不集成, 又搞了8139网卡和MX400显卡, 开始安装, 选了fedora12系统. 下载了netinstall镜像, 从网络安装, 可能由于选了gnome的环境, 装了1小时多&#8230;. 当时虚拟机里只用了半小时, 可能没装xWindows环境的问题. 真机上我还是选了gnome, 毕竟考虑到不只是远程上去练习命令行. 有时也需要桌面环境熟悉一下, 另外可以利用<a href="http://www.realvnc.com/products/free/4.1/index.html" target="_blank">realVNC</a>进行远程桌面.</p>
<p>40g专门划出10g挂载/, 200M的/boot, 15g挂载/home, 1g的swap, 另外几g挂载了/var和/usr, 现在发现似乎划给/usr的有些少&#8230;&#8230;装完不启动gnome的话, 内存还好, 有一半free, 启动了gnome的话130free, 不过很少启动, 大部分还是通过ssh去管理.<br />
<span id="more-544"></span><br />
<a href="http://public.bay.livefilestore.com/y1pA9fSdeg6-qoD-vry-NIQbd1SflkpRz-4yHE3DpamU4Z-rKDR8rc_oqSihAsu2t071LpOZL7eI3WS6cgBRzQXIw/fedora.jpg" target="_blank"><img class="alignnone" title="http://public.bay.livefilestore.com/y1pA9fSdeg6-qoD-vry-NIQbd1SflkpRz-4yHE3DpamU4Z-rKDR8rc_oqSihAsu2t071LpOZL7eI3WS6cgBRzQXIw/fedora.jpg" src="http://public.bay.livefilestore.com/y1pA9fSdeg6-qoD-vry-NIQbd1SflkpRz-4yHE3DpamU4Z-rKDR8rc_oqSihAsu2t071LpOZL7eI3WS6cgBRzQXIw/fedora.jpg" alt="" width="300" height="250" /></a></p>
<p>今天ubuntu10.04发布了&#8230; 虽然从beta起一直在用, 不过还是打算只在虚拟机里跑了, 毕竟主机4核4g内存跑虚拟机不成问题, 512的这个老主机就不敢说了.</p>
<p>打算看完了私房菜后, 看<a href="http://linuxcommand.gds.tuwien.ac.at/tlcl.php" target="_blank">The Linux Command Line</a>, 发现主要还是要多用, 当年初一时把dos命令背的烂熟&#8230;. 现在一对比bash&#8230; 那真是太少了&#8230;..</p>
<p><a href="http://public.bay.livefilestore.com/y1puGddV_EVRLi8uzJ-iOkeg9wasJNZBxSlNzN_9f5D8X_ag2kFujyGFgNSXwUTmWOScCX4Ie9j_WYKfJ5YLmZiCg/linux2.JPG" target="_blank"><img class="alignnone" title="http://public.bay.livefilestore.com/y1puGddV_EVRLi8uzJ-iOkeg9wasJNZBxSlNzN_9f5D8X_ag2kFujyGFgNSXwUTmWOScCX4Ie9j_WYKfJ5YLmZiCg/linux2.JPG" src="http://public.bay.livefilestore.com/y1puGddV_EVRLi8uzJ-iOkeg9wasJNZBxSlNzN_9f5D8X_ag2kFujyGFgNSXwUTmWOScCX4Ie9j_WYKfJ5YLmZiCg/linux2.JPG" alt="" width="200" height="150" /></a> <a href="http://public.bay.livefilestore.com/y1pBkrQTEpRWtbHIWYR3PPUxhsdfjxCX6Pz7dgMTthmMV9Hh3yKHitRE0-emwCX2-zZng-vROOxmgjFczycbe6FMQ/linux3.JPG" target="_blank"><img class="alignnone" title="http://public.bay.livefilestore.com/y1pBkrQTEpRWtbHIWYR3PPUxhsdfjxCX6Pz7dgMTthmMV9Hh3yKHitRE0-emwCX2-zZng-vROOxmgjFczycbe6FMQ/linux3.JPG" src="http://public.bay.livefilestore.com/y1pBkrQTEpRWtbHIWYR3PPUxhsdfjxCX6Pz7dgMTthmMV9Hh3yKHitRE0-emwCX2-zZng-vROOxmgjFczycbe6FMQ/linux3.JPG" alt="" width="200" height="150" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=544&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/hardware-linux-fedora/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>我的第一个脚本-centos5.4-nginx-php-mysql-自动安装</title>
		<link>http://www.molezz.net/drink/shell-centos5-4-nginx-php-mysql/</link>
		<comments>http://www.molezz.net/drink/shell-centos5-4-nginx-php-mysql/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 08:09:19 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=526</guid>
		<description><![CDATA[由于最近买了一个burst的vps, 于是开始看些linux下的东西, 挺有意思, 开始在网上进行一些centos的设置, 并且记录在我的wiki上, 最近开始接触到脚本, 发现很强大, 省得学习时重装系统后繁琐的重复设置, 于是自己尝试写了一点, 主要为了偷懒, 而且写得十分粗燥, 不过总算在centos5.4和fedora12中测试通过. 如果安装成功, 能在最后看到各种服务的启动[OK]或是successfully, 由于不是编译安装, 所以基本不是最新版, 但应该是稳定版, 而且由于是默认安装, 以后升级也方便, 出了问题也容易google排查, 因为都是默认安装路径, 不会出现找不到文件的情况. 当然也可以选择LNMP之类的一键包, 只要有人维护, 这类包升级也方便. OK, 安装很简单, 尽量在新装的系统中应用, 如果原先装过mysql, 则可能造成root密码为原先的密码. 1. 首先下载脚本centos.sh 2. 更改权限 chmod +x centos.sh 3. 运行./centos.sh 4. 输入mysql root的密码 5. 等待完成, 最后一排绿色[OK]和一个spawn-fcgi的successfully的字样就完成了 在fedora12和centos5.4中成功, 如果是debian或是ubuntu的话, 可能改成apt-get就行了, 暂时没有测试 1 2 3 4 5 6 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sleqma.bay.livefilestore.com/y1p6OhN8SxTDkIDtJMpJ4zkZ5XBAWakzGgRvgRpb0vumXYxkpY1AjAwDbikKA3aHWe3V_lh-Bo3wpkDM_1wbwMDJJLE3bxTYZOT/centos0.2.JPG" target="_blank"><img class="alignright" title="CentOS-5.4-Nginx+php+mysql" src="http://sleqma.bay.livefilestore.com/y1p6OhN8SxTDkIDtJMpJ4zkZ5XBAWakzGgRvgRpb0vumXYxkpY1AjAwDbikKA3aHWe3V_lh-Bo3wpkDM_1wbwMDJJLE3bxTYZOT/centos0.2.JPG" alt="" width="168" height="158" /></a> 由于最近买了一个<a href="https://www.burst.net/" target="_blank">burst</a>的vps, 于是开始看些linux下的东西, 挺有意思, 开始在网上进行一些centos的设置, 并且记录在<a href="http://www.molezz.net/wiki/doku.php?id=linux:centos" target="_blank">我的wiki</a>上, 最近开始接触到脚本, 发现很强大, 省得学习时重装系统后繁琐的重复设置, 于是自己尝试写了一点, 主要为了偷懒, 而且写得十分粗燥, 不过总算在centos5.4和fedora12中测试通过.<br />
如果安装成功, 能在最后看到各种服务的启动[OK]或是successfully, 由于不是编译安装, 所以基本不是最新版, 但应该是稳定版, 而且由于是默认安装, 以后升级也方便, 出了问题也容易google排查, 因为都是默认安装路径, 不会出现找不到文件的情况. 当然也可以选择LNMP之类的一键包, 只要有人维护, 这类包升级也方便.<br />
OK, 安装很简单, 尽量在新装的系统中应用, 如果原先装过mysql, 则可能造成root密码为原先的密码.<br />
1. 首先下载脚本<a href="http://www.molezz.net/wiki/doku.php?do=export_code&#038;id=linux:shell&#038;codeblock=0" target="_blank">centos.sh</a><br />
<span id="more-526"></span><br />
2. 更改权限  chmod +x centos.sh<br />
3. 运行./centos.sh<br />
4. 输入mysql root的密码<br />
5. 等待完成, 最后一排绿色[OK]和一个spawn-fcgi的successfully的字样就完成了<br />
在fedora12和centos5.4中成功, 如果是debian或是ubuntu的话, 可能改成apt-get就行了, 暂时没有测试</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#   molezz centos shell: http://www.molezz.net/</span>
<span style="color: #666666; font-style: italic;">#   version: 0.2</span>
<span style="color: #666666; font-style: italic;">#   2010-04-23</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#   Reference:</span>
<span style="color: #666666; font-style: italic;">#   http://www.centospub.com/</span>
<span style="color: #666666; font-style: italic;">#   http://www.atans.cn/post/93/</span>
<span style="color: #666666; font-style: italic;">#   http://www.zquan.me/article.asp?id=31</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># check root</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">id</span> -u<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ERROR: You are not root, please use root&quot;</span>
        <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;---------------------set mysql root password--------------------&quot;</span>
<span style="color: #007800;">mysqlrootpasswd</span>=<span style="color: #ff0000;">&quot;root&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;please input the mysql root password: &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;(defalt password: root):&quot;</span> mysqlrootpasswd
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$mysqlrootpasswd</span>&quot;</span> = <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		mysqlrootpasswd = <span style="color: #ff0000;">&quot;root&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;---------------------installation start-------------------------&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># update and clear</span>
yum <span style="color: #660033;">-y</span> update
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>zoneinfo<span style="color: #000000; font-weight: bold;">/</span>Asia<span style="color: #000000; font-weight: bold;">/</span>Shanghai <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>localtime
rpm -qa<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> httpd
rpm <span style="color: #660033;">-e</span> httpd
rpm -qa<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> nginx
rpm <span style="color: #660033;">-e</span> nginx
rpm -qa<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> spawn-fcgi
rpm <span style="color: #660033;">-e</span> spawn-fcgi
rpm -qa<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> php
rpm <span style="color: #660033;">-e</span> php-mysql
rpm -qa<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> mysql
rpm <span style="color: #660033;">-e</span> mysql-server
rpm <span style="color: #660033;">-e</span> perl-DBD-MySQL
rpm <span style="color: #660033;">-e</span> mysql
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;--------------------------install nginx-------------------------&quot;</span>
rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.fedora.redhat.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>epel<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>epel-release-<span style="color: #000000;">5</span>-3.noarch.rpm
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> nginx
chkconfig <span style="color: #660033;">--level</span> <span style="color: #000000;">235</span> nginx on
service nginx start
&nbsp;
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;--------------------------install mysql-------------------------&quot;</span>
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server
chkconfig <span style="color: #660033;">--level</span> <span style="color: #000000;">235</span> mysqld on
&nbsp;
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;-----------------install php and spawn-fcgi-----------------------&quot;</span>
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php-cgi php-mysql
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> spawn-fcgi
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;spawn-fcgi -C 5 -a 127.0.0.1 -p 9000 -u nginx -g nginx -f /usr/bin/php-cgi&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local
&nbsp;
<span style="color: #666666; font-style: italic;"># modify the nginx.conf, I hope I can write beautiful later................</span>
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'104,111s/#//g'</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf.out
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf.out  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/index.html index.htm/index.html index.htm index.php/g'</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf.out
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf.out  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s:/scripts:/usr/share/nginx/html:g'</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf.out
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf.out  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx.conf
&nbsp;
&nbsp;
service mysqld start
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqladmin <span style="color: #660033;">-u</span> root password <span style="color: #007800;">$mysqlrootpasswd</span>
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'/22 -j/{h;p;g;s/22 -j/80 -j/g}'</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysconfig<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysconfig<span style="color: #000000; font-weight: bold;">/</span>iptables.out
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysconfig<span style="color: #000000; font-weight: bold;">/</span>iptables.out <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysconfig<span style="color: #000000; font-weight: bold;">/</span>iptables
service iptables restart
spawn-fcgi <span style="color: #660033;">-C</span> <span style="color: #000000;">5</span> <span style="color: #660033;">-a</span> 127.0.0.1 <span style="color: #660033;">-p</span> <span style="color: #000000;">9000</span> <span style="color: #660033;">-u</span> nginx <span style="color: #660033;">-g</span> nginx <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php-cgi
service nginx restart
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&lt;?php phpinfo(); ?&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/</span>test.php
&nbsp;
&nbsp;
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;********************************************************************&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;********************************************************************&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**                             completed!                         **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;********************************************************************&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**                                                                **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**           php info:           http://127.0.0.1/test.php        **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**           nginx config file:  /etc/nginx/nginx.conf            **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**           web dir:            /usr/share/nginx/html            **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**           mysql dir:          /usr/bin                         **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**           mysql database dir: /var/lib/mysql                   **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**           php location:       /usr/bin                         **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**                                                                **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;********************************************************************&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**                                                                **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**        for mysql security, you should run secure setting       **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**        /usr/bin/mysql_secure_installation                      **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;**                                                                **&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;********************************************************************&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;mysql root password :  <span style="color: #007800;">$mysqlrootpasswd</span>              &quot;</span></pre></td></tr></table></div>

<img src="http://www.molezz.net/?ak_action=api_record_view&id=526&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/shell-centos5-4-nginx-php-mysql/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>virtualbox网络连接解释 &#8211; 如何让virtualbox中客机与主机互通</title>
		<link>http://www.molezz.net/drink/virtualbox-network-host-guest-lan/</link>
		<comments>http://www.molezz.net/drink/virtualbox-network-host-guest-lan/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 14:20:51 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[虚拟机]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=517</guid>
		<description><![CDATA[最近一直在研究virtualbox的网络模式, 主要是4种, NAT, Bridged, Internal和Host-only. Internal模式基本就是单机运行, 这里不讨论. 如果主客机之间无需互通的话, 只要默认用NAT模式就行, 在这种模式下, 假设主机连接路由, 路由网关为192.168.1.1, 主机的IP为192.168.1.2, virtualbox网卡IP一般为192.168.56.1, 而虚拟机中的系统(客机)的IP一般为10.0.2.15. 此时主客机都能访问外网, 但是外网和主机都无法访问客机, 情况为2个局域网. 如图 如果主客机需要互访, 或是外网也能访问客机, 则必须要使3者位于一个局域网, 即客机的IP也位于192.168.1.x范围. 开始我尝试了Bridged模式, 在主机能访问的情况下, 将主机的网卡和virtualbox网卡进行桥接(如图), 此时网桥的IP为192.168.1.2. 将virtualbox的网络连接方式选择Bridged, 名称选择网桥(Mac Bridged). 启动虚拟机后, 客机的IP分配为192.168.1.3, 位于一个局域网. 理论上这时主客机都能上网, 并且应该能互访, 但是我实际情况试下来, 客机无法上网也无法访问主机和网关, 非常奇怪. 最后我尝试了Host-only模式, 在主机网卡与virtualbox网卡桥接的情况下(同上), virtualbox连接方式选择Host-only, 名称选择virtualbox网卡(VirtualBox Host-Only Ethernet Adapter) (如果客机是xp, 则在advanced里选择PRO/1000 T server, 这样客机能自己装驱动), 如下图. 启动虚拟机后, 由于选的是host only模式, 客机不会自己分配合适的IP地址, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="vbox_logo" src="http://www.virtualbox.org/graphics/vbox_logo2_gradient.png" alt="" width="108" height="139" /> 最近一直在研究<a href="http://www.virtualbox.org/wiki/Downloads" target="_blank">virtualbox</a>的网络模式, 主要是4种, NAT, Bridged, Internal和Host-only. Internal模式基本就是单机运行, 这里不讨论.</p>
<p>如果主客机之间无需互通的话, 只要默认用NAT模式就行, 在这种模式下, 假设主机连接路由, 路由网关为192.168.1.1, 主机的IP为192.168.1.2, virtualbox网卡IP一般为192.168.56.1, 而虚拟机中的系统(客机)的IP一般为10.0.2.15. 此时主客机都能访问外网, 但是外网和主机都无法访问客机, 情况为2个局域网. 如图<br />
<span id="more-517"></span><br />
<a href="http://sleqma.bay.livefilestore.com/y1pC3OFq-owR8e3upFCGC3vw0oECQrcrMsS0_cqECGfYZx3NUE8_9gbmGDpaiVU2zkcuJJlFKboJc4wOC69YNYWsGdvoi_VgGdE/virtualbox-nat-ip.jpg" target="_blank"><img class="alignnone" title="virtualbox-nat-ip" src="http://sleqma.bay.livefilestore.com/y1pC3OFq-owR8e3upFCGC3vw0oECQrcrMsS0_cqECGfYZx3NUE8_9gbmGDpaiVU2zkcuJJlFKboJc4wOC69YNYWsGdvoi_VgGdE/virtualbox-nat-ip.jpg" alt="" width="591" height="181" /></a></p>
<p>如果主客机需要互访, 或是外网也能访问客机, 则必须要使3者位于一个局域网, 即客机的IP也位于192.168.1.x范围. 开始我尝试了Bridged模式, 在主机能访问的情况下, 将主机的网卡和virtualbox网卡进行桥接(如图), 此时网桥的IP为192.168.1.2. 将virtualbox的网络连接方式选择Bridged, 名称选择网桥(Mac Bridged). 启动虚拟机后, 客机的IP分配为192.168.1.3, 位于一个局域网. 理论上这时主客机都能上网, 并且应该能互访, 但是我实际情况试下来, 客机无法上网也无法访问主机和网关, 非常奇怪.<br />
<a href="http://sleqma.bay.livefilestore.com/y1pFdHz7w9rRVN0FUh36f9GnE_pZtUX3QziJktNEVyfCEim_i65KFanys16fhBCnpG7aOP6LycM0FnK6Fu1MUd-8vpG01jDHSqo/virtualbox-xp-bridge.JPG" target="_blank"><img class="alignnone" title="virtualbox-xp-bridge" src="http://sleqma.bay.livefilestore.com/y1pFdHz7w9rRVN0FUh36f9GnE_pZtUX3QziJktNEVyfCEim_i65KFanys16fhBCnpG7aOP6LycM0FnK6Fu1MUd-8vpG01jDHSqo/virtualbox-xp-bridge.JPG" alt="" width="582" height="56" /></a></p>
<p>最后我尝试了Host-only模式, 在主机网卡与virtualbox网卡桥接的情况下(同上), virtualbox连接方式选择Host-only, 名称选择virtualbox网卡(VirtualBox Host-Only Ethernet Adapter) (如果客机是xp, 则在advanced里选择PRO/1000 T server, 这样客机能自己装驱动), 如下图. 启动虚拟机后, 由于选的是host only模式, 客机不会自己分配合适的IP地址, 手动将客机网卡IP设置为192.168.1.3, 网关为192.168.1.1. 尝试ping网关, 主机都能通, 并且主客机都能访问外网, 此时主客机地位基本等同, 如果外网需要分别访问不同服务, 只需在路由处设置端口映射.<br />
<a href="http://sleqma.bay.livefilestore.com/y1pvHQlRiUg0Jm0IouT05oaBceiIRULUbQbnXmBksY0rZo1GHRnZ2HjwXulBFQ92feLGYPtFjOu0xRk8MvykkvecSQVbVxuk88r/virtualbox-xp-lan.JPG" target="_blank"><img class="alignnone" title="virtualbox-xp-lan" src="http://sleqma.bay.livefilestore.com/y1pvHQlRiUg0Jm0IouT05oaBceiIRULUbQbnXmBksY0rZo1GHRnZ2HjwXulBFQ92feLGYPtFjOu0xRk8MvykkvecSQVbVxuk88r/virtualbox-xp-lan.JPG" alt="" width="579" height="436" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=517&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/virtualbox-network-host-guest-lan/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>入手PRS-600电子书一周小记</title>
		<link>http://www.molezz.net/drink/sony-prs-600-reader-week/</link>
		<comments>http://www.molezz.net/drink/sony-prs-600-reader-week/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 12:42:02 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[e-ink]]></category>
		<category><![CDATA[prs-600]]></category>
		<category><![CDATA[reader]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=508</guid>
		<description><![CDATA[买了sony的prs-600一周了,由于网上有比较详尽的评测和显示效果图,所以我主要还是从主观上谈自己对这个产品的理解&#8230;.(打算看文献的,结果现在都用来看小说和教程了&#8230;用起来很方便很high) 缺点: 1.需要有光源的地方,而且不能太暗,如果太暗的话显示效果一般般,越亮看着越舒服(有钱可以买prs700,有LED辅助光源,但是价格高&#8230;.也可以买个带灯的皮套500RMB) 2.由于600是触摸屏,在灯光下稍有反光,自然光下无此问题,稍微调整角度即可 3.打开txt文件需要20-30秒的排版时间,pdf则没这个问题,一般建议用office或是acrobat存为pdf,6寸书雅黑字体模板 4.性价比很低,附件很贵,皮套250RMB&#8230;produo也贵&#8230;还好支持SD卡 5.不适合看扫描的pdf,比如各种扫描16开杂志.适合看文字pdf,能调节字体大小,自动排版,切除白边,可以看16开双排文字pdf,比如文献,论文,能自动排版. 鉴于现在电子书阅读器还算是新兴东西(第一款好像是sony于2006年出的,amazon于2007年推出kindle并流行),价格很高,功能单一,所以买之前必须要确定自己为什么需要这个东东&#8230;..之所以先列举缺点,主要是想说,如果拿这个和真书比的话,除了显示效果还没法完全及得上,其他都不算是具体缺点. 如果你坐地铁或是闲暇时喜欢玩游戏或是看视频,那么肯定没有必要买这个,毕竟1k就能买到既能游戏又能视频的PSP,或是几百直接买个mp4.所以除非你的闲暇喜欢看书,否则绝对不值得花2k买个只能黑白文字的电子书. 我喜欢看书,初中时每周必去书店一次,高中起开始住宿生涯,所以网购变多.虽然我有个12寸的1.3kg的x40,但是每当我想在这上面看书时,发现很难找到一个合适的姿势&#8230;.就算这是x40T平板,我想我的手也很难长时间支持1.3kg的重量(iPAD似乎也是700g左右)&#8230;但是有了prs-600,我能在床上或是沙发上舒服的看书,大小合适(32开小),重量相当于300页的书(280g).sony的工业设计在这上面也不错,最常用的翻页基本在中间,不管是左手还是右手单持底部都能轻松翻页,就算是拿边上,由于触摸屏支持手势,所以大拇指一划即可翻页(如图)&#8230;之所以选择sony而不是kindle,也有触摸的原因,kindle是全键盘,适合输入,但是我主要是看,所以面积小点更好,对我来说全键盘太多余了,3G网络也用不上,感觉触摸更实在更拉风~~~ 机器有400多M空,如果不看漫画,可以放200本文字书(2M一本pdf的话),漫画就比较少,不过支持SD卡,我插了一个8G的SD卡,估计放满我也看不完,所以容量问题不大.耗电问题,由于没有用过其他的型号不好说,据说触摸屏会比其他型号稍高,我用下来感觉很少,一周到现在就冲过一次电,还剩很多(一天2-3小时),这也是优势吧. 2000RMB可以买100本左右书(20-30一本的话),不过这点还是看个人用途了,电子书相当便携,厚度1cm不到,放在包里几乎没有感觉.虽然我的x40本本也很小巧,但不至于到可以忽略的地步&#8230;. 触摸屏的优势就是相当于一个可以随便画的白板,记录和标记都十分方便,虽然对于我这个只看书的人来说基本用处不大.另一个mp3的功能对我来说更是没用,我自己有mp3听&#8230; 现在我出去,基本就是mp3,黑莓和电子书,12寸本本则看情况了.听歌,上网,看书都能搞定了&#8230;. 最近iPAD的出现似乎对e-ink冲击很大,其实我觉得是完全不同功能的东西&#8230;mp4出来多少年了?mp3淘汰了吗?&#8230;.我还是用mp3听歌&#8230;我想也不会有人用ipad看书&#8230;多是看电影玩游戏&#8230;诱惑太多,静心看书的话还是e-ink&#8230;.当然能降价的话更好~~~如果平板电脑能达到这样的体积重量和续航,也许e-ink就消逝了&#8230; 最后还是提醒,除非喜欢或是想要专心看书,否则2000的电子书(kindle,sony,iriver)不适合你&#8230;.最后是介绍视频]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/zhangzheng/4478077275/" target="_blank"><img class="alignright" title="prs-600" src="http://farm3.static.flickr.com/2785/4478077275_854d279fff_m.jpg" alt="" width="240" height="180" /></a>买了sony的<a href="http://www.sonystyle.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10551&amp;storeId=10151&amp;langId=-1&amp;productId=8198552921665921192" target="_blank">prs-600</a>一周了,由于网上有比较详尽的评测和显示效果图,所以我主要还是从主观上谈自己对这个产品的理解&#8230;.(打算看文献的,结果现在都用来看小说和教程了&#8230;用起来很方便很high)</p>
<p>缺点:<br />
1.需要有光源的地方,而且不能太暗,如果太暗的话显示效果一般般,越亮看着越舒服(有钱可以买<a href="http://www.sonystyle.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10551&amp;storeId=10151&amp;langId=-1&amp;productId=8198552921665562069" target="_blank">prs700</a>,有LED辅助光源,但是价格高&#8230;.也可以买个<a href="http://search.taobao.com/search?commend=all&amp;isnew=2&amp;q=prs+600+%B5%C6&amp;source=search1" target="_blank">带灯的皮套</a>500RMB)<br />
2.由于600是触摸屏,在灯光下稍有反光,自然光下无此问题,稍微调整角度即可<br />
3.打开txt文件需要20-30秒的排版时间,pdf则没这个问题,一般建议用office或是acrobat存为pdf,<a href="http://www.hi-pda.com/forum/viewthread.php?tid=466333" target="_blank">6寸书雅黑字体模板</a><br />
4.性价比很低,附件很贵,皮套250RMB&#8230;produo也贵&#8230;还好支持SD卡<br />
5.不适合看扫描的pdf,比如各种扫描16开杂志.适合看文字pdf,能调节字体大小,自动排版,切除白边,可以看16开双排文字pdf,比如文献,论文,能自动排版.</p>
<p>鉴于现在电子书阅读器还算是新兴东西(第一款好像是sony于2006年出的,amazon于2007年推出<a href="http://www.amazon.com/Kindle-Wireless-Reading-Display-Generation/dp/B0015T963C/ref=dp_ob_title_def" target="_blank">kindle</a>并流行),价格很高,功能单一,所以买之前必须要确定自己为什么需要这个东东&#8230;..之所以先列举缺点,主要是想说,如果拿这个和真书比的话,除了显示效果还没法完全及得上,其他都不算是具体缺点.<br />
<span id="more-508"></span><br />
如果你坐地铁或是闲暇时喜欢玩游戏或是看视频,那么肯定没有必要买这个,毕竟1k就能买到既能游戏又能视频的PSP,或是几百直接买个mp4.所以除非你的闲暇喜欢看书,否则绝对不值得花2k买个只能黑白文字的电子书.</p>
<p>我喜欢看书,初中时每周必去书店一次,高中起开始住宿生涯,所以网购变多.虽然我有个12寸的1.3kg的<a href="http://www.thinkwiki.org/wiki/Category:X40" target="_blank">x40</a>,但是每当我想在这上面看书时,发现很难找到一个合适的姿势&#8230;.就算这是x40T平板,我想我的手也很难长时间支持1.3kg的重量(iPAD似乎也是700g左右)&#8230;但是有了prs-600,我能在床上或是沙发上舒服的看书,大小合适(32开小),重量相当于300页的书(280g).sony的工业设计在这上面也不错,最常用的翻页基本在中间,不管是左手还是右手单持底部都能轻松翻页,就算是拿边上,由于触摸屏支持手势,所以大拇指一划即可翻页(如图)&#8230;之所以选择sony而不是kindle,也有触摸的原因,kindle是全键盘,适合输入,但是我主要是看,所以面积小点更好,对我来说全键盘太多余了,3G网络也用不上,感觉触摸更实在更拉风~~~<br />
<a href="http://sleqma.bay.livefilestore.com/y1pQD-iasR_t_zpSjyYth8_yUf85uioMhuLa8cugMJw3u1tN2b4-DmcqrCnoZg9a29hz8zXZDhs5hUfSbOQGbv2yMjNmA2H-DBq/prs-600-hand.JPG" target="_blank"><img class="alignnone" title="prs600-hand" src="http://sleqma.bay.livefilestore.com/y1pQD-iasR_t_zpSjyYth8_yUf85uioMhuLa8cugMJw3u1tN2b4-DmcqrCnoZg9a29hz8zXZDhs5hUfSbOQGbv2yMjNmA2H-DBq/prs-600-hand.JPG" alt="" width="610" height="165" /></a></p>
<p>机器有400多M空,如果不看漫画,可以放200本文字书(2M一本pdf的话),漫画就比较少,不过支持SD卡,我插了一个8G的SD卡,估计放满我也看不完,所以容量问题不大.耗电问题,由于没有用过其他的型号不好说,据说触摸屏会比其他型号稍高,我用下来感觉很少,一周到现在就冲过一次电,还剩很多(一天2-3小时),这也是优势吧.</p>
<p>2000RMB可以买100本左右书(20-30一本的话),不过这点还是看个人用途了,电子书相当便携,厚度1cm不到,放在包里几乎没有感觉.虽然我的x40本本也很小巧,但不至于到可以忽略的地步&#8230;.</p>
<p>触摸屏的优势就是相当于一个可以随便画的白板,记录和标记都十分方便,虽然对于我这个只看书的人来说基本用处不大.另一个mp3的功能对我来说更是没用,我自己有mp3听&#8230;</p>
<p>现在我出去,基本就是mp3,黑莓和电子书,12寸本本则看情况了.听歌,上网,看书都能搞定了&#8230;.</p>
<p>最近iPAD的出现似乎对e-ink冲击很大,其实我觉得是完全不同功能的东西&#8230;mp4出来多少年了?mp3淘汰了吗?&#8230;.我还是用mp3听歌&#8230;我想也不会有人用ipad看书&#8230;多是看电影玩游戏&#8230;诱惑太多,静心看书的话还是e-ink&#8230;.当然能降价的话更好~~~如果平板电脑能达到这样的体积重量和续航,也许e-ink就消逝了&#8230;</p>
<p>最后还是提醒,除非喜欢或是想要专心看书,否则2000的电子书(kindle,sony,iriver)不适合你&#8230;.最后是介绍视频<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="middle" /><param name="src" value="http://player.youku.com/player.php/sid/XMTE1Njg4MjIw/v.swf" /><param name="quality" value="high" /><embed type="application/x-shockwave-flash" width="480" height="400" src="http://player.youku.com/player.php/sid/XMTE1Njg4MjIw/v.swf" quality="high" align="middle"></embed></object><br />
<a href="http://blogkindle.com/wp-content/uploads/2009/10/sony-reader-prs-600-touch-edition.jpg" target="_blank"><img class="alignleft" title="touch" src="http://blogkindle.com/wp-content/uploads/2009/10/sony-reader-prs-600-touch-edition.jpg" alt="" width="271" height="295" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=508&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/sony-prs-600-reader-week/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>DD-WRT中设置wep加密的无线信号中继</title>
		<link>http://www.molezz.net/drink/dd-wrt-wep/</link>
		<comments>http://www.molezz.net/drink/dd-wrt-wep/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 02:52:35 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[ddwrt]]></category>
		<category><![CDATA[中继]]></category>
		<category><![CDATA[无线]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=495</guid>
		<description><![CDATA[利用无线路由对信号弱的无线进行中继比用一个大功率的网卡会方便很多, 毕竟原先需要在靠近信号的地方上网, 而中继之后,整个屋子都能有信号,甚至卫生间里, 中继的原理就是在client和server中间加个无线中继路由. 当然可以买专用的中继设备, 但花费太高, 不如利用现有的设备刷第三方设置中继. toamto还没研究过, 不过DD-WRT还是比较方便的. 对于没有加密的无线中继, 只需要填写相应的SSID即可, 而如果加了密, 首先获得的密码, 然后需要填写, 当时摸索了一下. DD-WRT中首先要将DHCP设为自动获得, local IP设置一个与server不同的IP段, 而gateway处则填写server的local IP地址. 在wireless中将DDWRT设为repeater, SSID填写server的名称, 这一步如果不清楚的话, 可以在status-&#62;wireless里点击site survey进行搜索, 然后选择需要中继的信号点击join, 自动回头跳到这步并自动填写SSID. 由于是中继, 于是在线面的virtual interfaces 里添加一个自己想要的虚拟无线信号SSID, 至于是否broadcast 可以自己选择. 其他勿改. 然后点击security这栏设置, 这步比较重要, 上面一栏是填写server路由的密码, 选择加密模式和加密方式. 然后在底下的pass和key1都填上同样的密码(当然你得预先知道这个密码, 不是自己随意设置). 然后在virtual SSID那栏设置自己喜欢的加密方式, 密码随意. 如果不能连接, 请尝试关闭firewall那栏中的SPI firewall 如果正确连上, 可以在status的WAN中看到合理的IP分配地址, server的IP是192.168.18.1 , 而中继的DDWRT被分配到18.4 另外需要验证一下中继无线channel是否和server一致, 在status的wireless一栏可以看到, 如果server是11, 那么DDWRT中也应该是11 [...]]]></description>
			<content:encoded><![CDATA[<p>利用无线路由对信号弱的无线进行中继比用一个大功率的网卡会方便很多, 毕竟原先需要在靠近信号的地方上网, 而中继之后,整个屋子都能有信号,甚至卫生间里, 中继的原理就是在client和server中间加个无线中继路由. 当然可以买专用的中继设备, 但花费太高, 不如利用现有的设备<a href="http://www.molezz.net/drink/wrt54g-tomato-dd/" target="_blank">刷第三方</a>设置中继. toamto还没研究过, 不过<a href="http://www.molezz.net/drink/wrt54g-tomato-dd/" target="_blank">DD-WRT</a>还是比较方便的.</p>
<p><a href="http://sleqma.bay.livefilestore.com/y1p7WarndXItGJcU7ONXrQ8gz1hus-lZwkqxW-CfHFOJHnAEzh_O_p6_dBh7D9BjCR6cu-JvY0n8KYvtdHw1oyu01GT-Bv7tUbs/ddwrt0.jpg"><img class="alignnone" title="ddwrt0" src="http://sleqma.bay.livefilestore.com/y1p7WarndXItGJcU7ONXrQ8gz1hus-lZwkqxW-CfHFOJHnAEzh_O_p6_dBh7D9BjCR6cu-JvY0n8KYvtdHw1oyu01GT-Bv7tUbs/ddwrt0.jpg" alt="" width="279" height="197" /></a></p>
<p>对于<a href="http://www.jhsjf.com/read.php/23.htm" target="_blank">没有加密的无线中继</a>, 只需要填写相应的SSID即可, 而如果加了密, 首先获得的密码, 然后需要填写, 当时摸索了一下. DD-WRT中首先要将DHCP设为自动获得, local IP设置一个与server不同的IP段, 而gateway处则填写server的local IP地址.</p>
<p><span id="more-495"></span><a href="http://public.bay.livefilestore.com/y1ppWy0FXA4lqryryqEifvZfTXHjr83Dsvn4D1sd_soPA8Ca4ME_4nvr-bJ9P_YTUHRonCPblULQQ-LLAm0RA2oWw/1.jpg"><img class="alignnone" title="ddwrt1" src="http://public.bay.livefilestore.com/y1ppWy0FXA4lqryryqEifvZfTXHjr83Dsvn4D1sd_soPA8Ca4ME_4nvr-bJ9P_YTUHRonCPblULQQ-LLAm0RA2oWw/1.jpg" alt="" width="310" height="284" /></a></p>
<p>在wireless中将DDWRT设为repeater, SSID填写server的名称, 这一步如果不清楚的话, 可以在status-&gt;wireless里点击site survey进行搜索, 然后选择需要中继的信号点击join, 自动回头跳到这步并自动填写SSID. 由于是中继, 于是在线面的virtual interfaces 里添加一个自己想要的虚拟无线信号SSID, 至于是否broadcast 可以自己选择. 其他勿改.</p>
<p><a href="http://public.bay.livefilestore.com/y1p_ul-zVt8JyclLVzw8lIpn8coBoP8JHi5AjuS_6bs0UMdHSwTgr6a_AO4enytlyoGWwCW22UnfF-jli-NaQ3iNA/2.jpg"><img class="alignnone" title="ddwrt2" src="http://public.bay.livefilestore.com/y1p_ul-zVt8JyclLVzw8lIpn8coBoP8JHi5AjuS_6bs0UMdHSwTgr6a_AO4enytlyoGWwCW22UnfF-jli-NaQ3iNA/2.jpg" alt="" width="310" height="265" /></a></p>
<p><a href="http://sleqma.bay.livefilestore.com/y1pWpUxqz2YRY8_1He6OLXff86ztPbAx9-AZ534RKIvJZXWdfyTZkoXHouP8_9ELtP-q05HIgULiDvvn6SEFwIQap8eUCHlMeUv/ddwrt9.jpg"><img class="alignnone" title="ddwrt9" src="http://sleqma.bay.livefilestore.com/y1pWpUxqz2YRY8_1He6OLXff86ztPbAx9-AZ534RKIvJZXWdfyTZkoXHouP8_9ELtP-q05HIgULiDvvn6SEFwIQap8eUCHlMeUv/ddwrt9.jpg" alt="" width="309" height="109" /></a></p>
<p>然后点击security这栏设置, 这步比较重要, 上面一栏是填写server路由的密码, 选择加密模式和加密方式. 然后在底下的pass和key1都填上同样的密码(当然你得预先知道这个密码, 不是自己随意设置).<br />
然后在virtual SSID那栏设置自己喜欢的加密方式, 密码随意.</p>
<p><a href="http://public.bay.livefilestore.com/y1pKZjUw4TDqgajF0wbQtc5eVeyoDWVTQJ6AfOMDOd2oSRtiZ6bQ3qpLHAnLLn-g3Twr9u1QBGOPW5UxJscOrfH9g/3.jpg"><img class="alignnone" title="ddwrt3" src="http://public.bay.livefilestore.com/y1pKZjUw4TDqgajF0wbQtc5eVeyoDWVTQJ6AfOMDOd2oSRtiZ6bQ3qpLHAnLLn-g3Twr9u1QBGOPW5UxJscOrfH9g/3.jpg" alt="" width="310" height="268" /></a></p>
<p>如果不能连接, 请尝试关闭firewall那栏中的SPI firewall</p>
<p><a href="http://public.bay.livefilestore.com/y1pKZjUw4TDqgYu4R7pWtqbhyWcXRdqrgbrk8GLmhR9M2PJYWwxn_QSudAasz9hsXWVbZrH9cb-o0tJQMDPemnUvw/4.jpg"><img class="alignnone" title="ddwrt4" src="http://public.bay.livefilestore.com/y1pKZjUw4TDqgYu4R7pWtqbhyWcXRdqrgbrk8GLmhR9M2PJYWwxn_QSudAasz9hsXWVbZrH9cb-o0tJQMDPemnUvw/4.jpg" alt="" width="310" height="183" /></a></p>
<p>如果正确连上, 可以在status的WAN中看到合理的IP分配地址, server的IP是192.168.18.1 , 而中继的DDWRT被分配到18.4</p>
<p><a href="http://public.bay.livefilestore.com/y1pxcle8-gEZYhGtBzmFnppsU2DYHGJM5NC56Oa6Ne2qY0NhxoxjmxDP6WZFqqqJoetEHsrlHWDJoEPXUzGv7lnEg/5.jpg"><img class="alignnone" title="ddwrt5" src="http://public.bay.livefilestore.com/y1pxcle8-gEZYhGtBzmFnppsU2DYHGJM5NC56Oa6Ne2qY0NhxoxjmxDP6WZFqqqJoetEHsrlHWDJoEPXUzGv7lnEg/5.jpg" alt="" width="310" height="263" /></a></p>
<p>另外需要验证一下中继无线channel是否和server一致, 在status的wireless一栏可以看到, 如果server是11, 那么DDWRT中也应该是11</p>
<p><a href="http://public.bay.livefilestore.com/y1pvI3j-MQ13uT-ZFMIz9At_kTFfMHwzG63HUnIFRv0s1p-uYLZXW0Q3-1QZFmIOJXvNuSlvGOH_QgTdJbLExVueQ/6.jpg"><img class="alignnone" title="ddwrt6" src="http://public.bay.livefilestore.com/y1pvI3j-MQ13uT-ZFMIz9At_kTFfMHwzG63HUnIFRv0s1p-uYLZXW0Q3-1QZFmIOJXvNuSlvGOH_QgTdJbLExVueQ/6.jpg" alt="" width="310" height="198" /></a><a href="http://public.bay.livefilestore.com/y1pvI3j-MQ13uTY1uo7M41KozunD501Xg0ALDw3BpSWBsE0RSBU6g6f5RrUlr_MEjHj68jGydlC6zFrWrVAn1r21g/7.jpg"></a></p>
<p>中继的LAN IP为192.168.1.1, 与server一定要不同, 笔记本在连接上中继后分配的地址应该为192.168.1.x而非18.x</p>
<p><a href="http://public.bay.livefilestore.com/y1pvI3j-MQ13uT-ZFMIz9At_kTFfMHwzG63HUnIFRv0s1p-uYLZXW0Q3-1QZFmIOJXvNuSlvGOH_QgTdJbLExVueQ/6.jpg"></a><a href="http://public.bay.livefilestore.com/y1pvI3j-MQ13uTY1uo7M41KozunD501Xg0ALDw3BpSWBsE0RSBU6g6f5RrUlr_MEjHj68jGydlC6zFrWrVAn1r21g/7.jpg"><img class="alignnone" title="ddwrt7" src="http://public.bay.livefilestore.com/y1pvI3j-MQ13uTY1uo7M41KozunD501Xg0ALDw3BpSWBsE0RSBU6g6f5RrUlr_MEjHj68jGydlC6zFrWrVAn1r21g/7.jpg" alt="" width="309" height="382" /></a></p>
<p>下图2个信号一个是原先能收到的真实信号(较弱), 上方的则是中继后发射的虚拟信号, 可见非常强, 这样如果你的房间比较大, 也能到处上网了, 这一中继对于家里房子很大的用户来说也非常方便.</p>
<p><a href="http://public.bay.livefilestore.com/y1pAH26llC_5YMmvk0ilvJmTy6IuM8rttWcpZd51l3T3AGTLID1_Jo4rWWpef1SCsub_AobJvKQifLq-yh6n8Jhhg/8.jpg"><img class="alignnone" title="ddwrt8" src="http://public.bay.livefilestore.com/y1pAH26llC_5YMmvk0ilvJmTy6IuM8rttWcpZd51l3T3AGTLID1_Jo4rWWpef1SCsub_AobJvKQifLq-yh6n8Jhhg/8.jpg" alt="" width="374" height="101" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=495&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/dd-wrt-wep/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>wrt54g路由刷tomato和dd-wrt小记</title>
		<link>http://www.molezz.net/drink/wrt54g-tomato-dd/</link>
		<comments>http://www.molezz.net/drink/wrt54g-tomato-dd/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 07:04:59 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[ddwrt]]></category>
		<category><![CDATA[tomato]]></category>
		<category><![CDATA[无线]]></category>
		<category><![CDATA[路由]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=484</guid>
		<description><![CDATA[最近实验室的路由不稳定,而且由于人多了,经常碰到网速很慢,猜测有人使用p2p大量下载,于是想试试控制,看了一下实验室的路由,靠,居然是WRT54G v4版本,简直是史上最经典路由啊,于是打算刷路由的第三方固件. 现在第三方比较流行的是dd-wrt和tomato,网上征询后,主要的意见是,稳定找tomato,功能全可玩性用dd-wrt,由于主要是实验室用,于是打算刷tomato,另外查了一下刷机方法,tomato也方便一些,可以直接用web端刷.于是下了tomato 1.25版本开刷, 虽然有比较经典的1.19等版本, 不过我还是喜欢新的. 刷机过程很容易,reset原先的路由后,直接从web端刷,2分钟就搞定了, 上去大致浏览了一下功能,带宽监控,Qos,流量统计等等一应俱全, 果然强大. 将实验室网络浏览设置为high, 其他非标准下载端口设为low,以保证上网正常,文献下载正常.当然无线扩展功能也很强大, 不过在实验室就用不上了, 主要保证正常上网浏览. 其他诸如客户端显示也很详细, 保证不至于路由负担太重. 由于内存不是很大, 关闭了一些不需要的功能, 比如telnet等等, 使得路由的空余内存稍大, 保证稳定性. 可能由于这个路由比较老了(4年左右了),信号的稳定性一般般,不知道是不是tomato造成的.原先的估计信号基本比较平稳. 另外尝试在WRT54G2 v1上刷了一下dd-wrt,效果也不错,过程比tomato复杂些,由于害怕砖头,于是严格按照readme上做,甚至需要等2分钟的地方我等了3分钟.当中还是比较担心的,不过还好一次成功了.简述一下步骤和摘要: 1. Reset the router to defaults on the Linksys Admin page, and let it reboot or manually reboot it after its finished. 这步我除了进入web重置了下外,还按了reset按钮 2.Set your computer to a static IP address of [...]]]></description>
			<content:encoded><![CDATA[<p>最近实验室的路由不稳定,而且由于人多了,经常碰到网速很慢,猜测有人使用p2p大量下载,于是想试试控制,看了一下实验室的路由,靠,居然是<a href="http://en.wikipedia.org/wiki/Linksys_WRT54G_series" target="_blank">WRT54G v4</a>版本,简直是史上最经典路由啊,于是打算刷路由的第三方固件.</p>
<p>现在第三方比较流行的是<a href="http://www.dd-wrt.com" target="_blank">dd-wrt</a>和<a href="http://www.polarcloud.com/tomato" target="_blank">tomato</a>,网上征询后,主要的意见是,稳定找tomato,功能全可玩性用dd-wrt,由于主要是实验室用,于是打算刷tomato,另外查了一下刷机方法,tomato也方便一些,可以直接用web端刷.于是下了tomato 1.25版本开刷, 虽然有比较经典的1.19等版本, 不过我还是喜欢新的. 刷机过程很容易,reset原先的路由后,直接从web端刷,2分钟就搞定了, 上去大致浏览了一下功能,带宽监控,<a href="http://zh.wikipedia.org/wiki/QoS" target="_blank">Qos</a>,流量统计等等一应俱全, 果然强大. 将实验室网络浏览设置为high, 其他非标准下载端口设为low,以保证上网正常,文献下载正常.当然无线扩展功能也很强大, 不过在实验室就用不上了, 主要保证正常上网浏览. 其他诸如客户端显示也很详细, 保证不至于路由负担太重. 由于内存不是很大, 关闭了一些不需要的功能, 比如telnet等等, 使得路由的空余内存稍大, 保证稳定性.</p>
<p><a href="http://public.bay.livefilestore.com/y1pXNzebpvxaLFDsChnt7X1QUVqdiIVk_o6NWxFz-sSXkn5hta2GxOg83BSAkyEc4eCjxm_ex64aIZjrJBG3ToTSQ/tomato.jpg"><img class="alignnone" title="tomato" src="http://public.bay.livefilestore.com/y1pXNzebpvxaLFDsChnt7X1QUVqdiIVk_o6NWxFz-sSXkn5hta2GxOg83BSAkyEc4eCjxm_ex64aIZjrJBG3ToTSQ/tomato.jpg" alt="" width="421" height="187" /></a><br />
<span id="more-484"></span></p>
<p><a href="http://public.bay.livefilestore.com/y1pj2pCCiWUxH4Mk9YsTIOBzfvlMc6XQwTdYOecBpcyk4RP_epV8C4F80z0te0uitbEbvZ0s4kDiAADmWijGgrFTg/tomato%202.jpg"><img class="alignnone" title="t2" src="http://public.bay.livefilestore.com/y1pj2pCCiWUxH4Mk9YsTIOBzfvlMc6XQwTdYOecBpcyk4RP_epV8C4F80z0te0uitbEbvZ0s4kDiAADmWijGgrFTg/tomato%202.jpg" alt="" width="420" height="229" /></a></p>
<p><a href="http://public.bay.livefilestore.com/y1pmduNLlIKYEVjAq7NafOfMpwiTSPbsC3848Su4YpkP8KNEiBDNHs0AFs1Wy49ZnWkE_4R-3MRhRcanbXbJmjtmw/tomato%203.jpg"><img class="alignnone" title="t3" src="http://public.bay.livefilestore.com/y1pmduNLlIKYEVjAq7NafOfMpwiTSPbsC3848Su4YpkP8KNEiBDNHs0AFs1Wy49ZnWkE_4R-3MRhRcanbXbJmjtmw/tomato%203.jpg" alt="" width="414" height="287" /></a></p>
<p>可能由于这个路由比较老了(4年左右了),信号的稳定性一般般,不知道是不是tomato造成的.原先的估计信号基本比较平稳.</p>
<p><a href="http://public.bay.livefilestore.com/y1pmduNLlIKYEWpWIXfuixS-hMmtugi63t5_COFE4plVfyGtlZFGDQe5mSui24Sfq8-XYm_Vc2iyVcoJWHb1z85zw/tomato%204.jpg"><img class="alignnone" title="t4" src="http://public.bay.livefilestore.com/y1pmduNLlIKYEWpWIXfuixS-hMmtugi63t5_COFE4plVfyGtlZFGDQe5mSui24Sfq8-XYm_Vc2iyVcoJWHb1z85zw/tomato%204.jpg" alt="" width="416" height="96" /></a></p>
<p>另外尝试在<a href="http://en.wikipedia.org/wiki/Linksys_WRT54G_series#WRT54G2" target="_blank">WRT54G2 v1</a>上刷了一下<a href="http://www.dd-wrt.com/wiki/index.php/Linksys_WRT54G2" target="_blank">dd-wrt</a>,效果也不错,过程比tomato复杂些,由于害怕砖头,于是严格按照readme上做,甚至需要等2分钟的地方我等了3分钟.当中还是比较担心的,不过还好一次成功了.简述一下步骤和摘要:<br />
1. Reset the router to defaults on the Linksys Admin page, and let it reboot or manually reboot it after its finished.<br />
<span style="color: #0000ff;">这步我除了进入web重置了下外,还按了reset按钮</span></p>
<p>2.Set your computer to a static IP address of 192.168.1.10 and 255.255.255.0 for a mask and plug ethernet cable into LAN port of the G2v1 unit.<br />
<span style="color: #0000ff;">完全照做就行</span></p>
<p>3. Log in admin page (username is blank, password = admin) and navigate to firmware upgrade page. Browse to the VxWorksKiller-G2V1-new.bin file, press Upgrade and wait 60 seconds for it to reboot on its own, if it does not, then powercycle the router manually.Wait another 60 seconds and reboot it again. Router should now be listening for tftp transfer of dd-wrt firmware.<br />
<span style="color: #0000ff;">这步当时让我心理咯噔一下,在点选VxWorksKiller-G2V1-new.bin并update后,进度条到一半时,浏览器显示无连接了,路由电源灯一闪一闪,192.168.1.1无法ping通,等了60s并没有重启,于是又等了2分钟,按照上面所说手动重启,并且等了2分钟,再ping了一下,ok了.还好还好.</span></p>
<p>4. Tftp the DD-WRT firmware to the router, use &#8220;dd-wrt.v24-10709_NEWD_micro.bin&#8221; from the folder where you got these instructions;  after sucessful tftp, wait 3 min for the router to finish writing new nvram deafults, etc&#8230; It should reboot on its own at<br />
least two times, so give it 3 min and then go to http://192.168.1.1 (If it not reboot on its own, wait another 1 min, and then power cycle it)<br />
<span style="color: #0000ff;">打开tftp上传dd-wrt.v24-10709_NEWD_micro.bin成功后,关闭tftp,耐心等待,自动重启了,等待了3分钟后,能够ping通,没出错</span></p>
<p>5. When if finishes booting up&#8230;do a hard reset on the unit&#8230;let it boot again, and configure.<br />
6. Don&#8217;t forget to set your computer back to automatically obtaining DHCP and DNS.<br />
<span style="color: #0000ff;">这2步没什么问题,我按了reset并重启电源了一次,保证reset.打开浏览器登入修改密码,一切ok.</span></p>
<p>dd-wrt界面分布和原先的类似,操作也方便,不过save只是表示确定,各栏save后最后需要apply一下才会使设置生效.</p>
<p><a href="http://public.bay.livefilestore.com/y1p44CdTVm6LEXZtyTb7VTQ5_awGrGjPOjqHNOYGZN2qMczWpmufukTxSs1AQlaiE7pY5h_Lo_vkVtF404KnJYLDg/ddwrt.jpg"><img class="alignnone" title="ddwrt" src="http://public.bay.livefilestore.com/y1p44CdTVm6LEXZtyTb7VTQ5_awGrGjPOjqHNOYGZN2qMczWpmufukTxSs1AQlaiE7pY5h_Lo_vkVtF404KnJYLDg/ddwrt.jpg" alt="" width="399" height="209" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=484&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/wrt54g-tomato-dd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wordpress改变固定链接及301重定向搞定&#8230;</title>
		<link>http://www.molezz.net/drink/wordpress-permalink-301-redirection/</link>
		<comments>http://www.molezz.net/drink/wordpress-permalink-301-redirection/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 15:11:02 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[redirection]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[重定向]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=391</guid>
		<description><![CDATA[先总结301重定向心情: 人生在于折腾&#8230;&#8230; 自从转到wordpress程序后当时没注意一直用的数字后缀日志&#8230;结果在Google analytics和yahoo量子中经常不知道哪篇日志的统计, 常常要自己点过去才知道, 于是打算把日志名的固定链接改了, 改成便于识别的方式即postname. 好在由于刚刚转到wordpress, 日志不多, 于是打算直接全部301&#8230;.当然如果日志很多, 那么建议还是使用睡到自然醒介绍的advanced permalinks比较好, advanced permalinks能根据指定日志ID范围进行定向, 并且使一篇日志的多个固定链接同时作用. 这两天看了下, google的收录基本上已经从原先的数字变成了日志名. 我主要使用了redirection这个插件, 这个插件在301方面看上去比较方便, 既有可视化的定向方式, 也可以直接修改.htaccess. 我原先的地址是 /archives/%post_id%/ 的形式, 现在改成了 /drink/%postname%/ 的形式. 只要在redirection中添加相关新的固定链接即可搞定, 后来看到沙渺很忙的介绍发现还是使用 /archives/106(.*) 更好, 由于对我没太大影响, 一般收录评论的可能性较小, 我也就懒得改了&#8230;. 另外由于archives改成了drink, 即类似文件夹这段的域名结构也改变了, 所以很多tag及分类也变了&#8230;所以需要一个通配符形式的301定向, 由于redirection支持直接修改.htaccess, 省却了登录ftp修改, 添加了相应代码即可. RedirectMatch 301 /archives/tag/(.*)$ http://www.molezz.net/drink/tag/$1 RedirectMatch 301 /archives/category/(.*)$ http://www.molezz.net/drink/category/$1 另外redirection还支持统计等功能, 便于知道何时几乎没人访问旧的地址, 以便删除相关设定记录. 其他之类的功能也可以自己去发掘, 不过对我来说暂时只需要这些功能. 最后就像首行写的, 搞这个太折腾了, [...]]]></description>
			<content:encoded><![CDATA[<p>先总结301重定向心情: 人生在于折腾&#8230;&#8230;</p>
<p>自从转到wordpress程序后当时没注意一直用的数字后缀日志&#8230;结果在<a href="http://www.google.com/analytics/" target="blank">Google analytics</a>和<a href="http://www.linezing.com/" target="blank">yahoo量子</a>中经常不知道哪篇日志的统计, 常常要自己点过去才知道, 于是打算把日志名的固定链接改了, 改成便于识别的方式即postname. 好在由于刚刚转到wordpress, 日志不多, 于是打算直接全部301&#8230;.当然如果日志很多, 那么建议还是使用<a href="http://www.dreamfreeblog.com/2009/03/advanced-permalinks.html" target="blank">睡到自然醒介绍的advanced permalinks</a>比较好, <a href="http://wordpress.org/extend/plugins/advanced-permalinks/">advanced permalinks</a>能根据指定日志ID范围进行定向, 并且使一篇日志的多个固定链接同时作用. 这两天看了下, google的收录基本上已经从原先的数字变成了日志名.</p>
<p>我主要使用了<a href="http://wordpress.org/extend/plugins/redirection/" target="blank">redirection</a>这个插件, 这个插件在301方面看上去比较方便, 既有可视化的定向方式, 也可以直接修改.htaccess. 我原先的地址是 /archives/%post_id%/ 的形式, 现在改成了 /drink/%postname%/ 的形式.<br />
<span id="more-391"></span><br />
只要在redirection中添加相关新的固定链接即可搞定, 后来看到<a href="http://shamiao.com/redirection.htm" target="_blank">沙渺很忙的介绍</a>发现还是使用 /archives/106<span style="color: #ff00ff;">(.*)</span> 更好, 由于对我没太大影响, 一般收录评论的可能性较小, 我也就懒得改了&#8230;.<br />
<a href="http://picasaweb.google.com/lh/photo/AXVibpr31JCL8kk2cOIo1Q?feat=embedwebsite" target="_blank"><img src="http://lh6.ggpht.com/_V0J--7o30w4/SkoiqJlXJsI/AAAAAAAAAFw/ijIARiJaJPM/s800/301-1.jpg" alt="" /></a></p>
<p>另外由于archives改成了drink, 即类似文件夹这段的域名结构也改变了, 所以很多tag及分类也变了&#8230;所以需要一个通配符形式的301定向, 由于redirection支持直接修改.htaccess, 省却了登录ftp修改, 添加了相应代码即可.</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">RedirectMatch 301 /archives/tag/(.*)$ http://www.molezz.net/drink/tag/$1
RedirectMatch 301 /archives/category/(.*)$ http://www.molezz.net/drink/category/$1</pre></div></div>

<p><a href="http://picasaweb.google.com/lh/photo/YL5gwJ-ioQ81trO1DvYI_g?feat=embedwebsite" target="_blank"><img src="http://lh4.ggpht.com/_V0J--7o30w4/SkoiqHM5KNI/AAAAAAAAAF4/Xco7qPyK6Gw/s800/301-3.jpg" alt="" /></a></p>
<p>另外redirection还支持统计等功能, 便于知道何时几乎没人访问旧的地址, 以便删除相关设定记录. 其他之类的功能也可以自己去发掘, 不过对我来说暂时只需要这些功能. 最后就像首行写的, 搞这个太折腾了, 尤其文章多时, 还是在建站之初就定好比较节约时间&#8230;不过也许每个自己建站的都会经历一次简单的seo了解和学习之路&#8230;.<br />
<a href="http://picasaweb.google.com/lh/photo/ydEp8zvo0o_65dvT7Lacww?feat=embedwebsite" target="_blank"><img src="http://lh6.ggpht.com/_V0J--7o30w4/SkoiqIK_M_I/AAAAAAAAAF0/3lG7jD3vVcs/s800/301-2.jpg" alt="" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=391&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/wordpress-permalink-301-redirection/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
