<?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>Sun, 18 Sep 2011 05:48:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>android应用推荐&#8211;Circle Launcher light</title>
		<link>http://www.molezz.net/drink/android-apps-circle-launcher-light/</link>
		<comments>http://www.molezz.net/drink/android-apps-circle-launcher-light/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 17:39:15 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[launcher]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=640</guid>
		<description><![CDATA[最近刷了data2ext的rom后， 装的软件越来越多，快捷方式也杂乱了， 于是想找一个方便紧凑的launcher工具， 发现了Circle Launcher light免费版，功能恰到好处。 去菜市场搜索circle launcher light 或者 https://market.android.com/details?id=de.dbware.circlelauncher.light 在此可以安装。 装完后，在桌面添加小部件，会弹出设置窗口。 在selected apps中选择将要展示的应用 在launcher icon和launcher label中可以选择图标样式和显示的名称如game，apps之类 在extra configuration中可以设置图标大小label大小，透明度等等 设置完成后可以进行备份设置操作， 最后回到home就可以看到具体的样子和进行操作了， 如果以后想增加应用或是改变外观，可以在弹出环形界面时长按中间的图标进入设置界面。]]></description>
			<content:encoded><![CDATA[<p>最近刷了data2ext的rom后， 装的软件越来越多，快捷方式也杂乱了， 于是想找一个方便紧凑的launcher工具， 发现了Circle Launcher light免费版，功能恰到好处。</p>
<p><a rel="attachment wp-att-646" href="http://www.molezz.net/drink/android-apps-circle-launcher-light/snap20110404_201125/"><img class="alignnone size-full wp-image-646" title="snap20110404_201125" src="http://www.molezz.net/wp-content/uploads/snap20110404_201125.png" alt="" width="288" height="480" /></a> <a rel="attachment wp-att-647" href="http://www.molezz.net/drink/android-apps-circle-launcher-light/snap20110404_201130/"><img class="alignnone size-full wp-image-647" title="snap20110404_201130" src="http://www.molezz.net/wp-content/uploads/snap20110404_201130.png" alt="" width="288" height="480" /></a></p>
<p>去菜市场搜索circle launcher light 或者 <a href="https://market.android.com/details?id=de.dbware.circlelauncher.light">https://market.android.com/details?id=de.dbware.circlelauncher.light</a> 在此可以安装。</p>
<p>装完后，在桌面添加小部件，会弹出设置窗口。</p>
<p><span id="more-640"></span></p>
<p><a rel="attachment wp-att-641" href="http://www.molezz.net/drink/android-apps-circle-launcher-light/snap20110404_201428/"><img class="size-full wp-image-641 alignnone" title="snap20110404_201428" src="http://www.molezz.net/wp-content/uploads/snap20110404_201428.png" alt="" width="288" height="480" /></a></p>
<p>在selected apps中选择将要展示的应用</p>
<p><a rel="attachment wp-att-642" href="http://www.molezz.net/drink/android-apps-circle-launcher-light/snap20110404_201210/"><img class="size-full wp-image-642 alignnone" title="snap20110404_201210" src="http://www.molezz.net/wp-content/uploads/snap20110404_201210.png" alt="" width="288" height="480" /></a></p>
<p>在launcher icon和launcher label中可以选择图标样式和显示的名称如game，apps之类</p>
<p><a rel="attachment wp-att-643" href="http://www.molezz.net/drink/android-apps-circle-launcher-light/snap20110404_201226/"><img class="size-full wp-image-643 alignnone" title="snap20110404_201226" src="http://www.molezz.net/wp-content/uploads/snap20110404_201226.png" alt="" width="288" height="480" /></a></p>
<p><a rel="attachment wp-att-644" href="http://www.molezz.net/drink/android-apps-circle-launcher-light/snap20110404_201236/"><img class="size-full wp-image-644 alignnone" title="snap20110404_201236" src="http://www.molezz.net/wp-content/uploads/snap20110404_201236.png" alt="" width="288" height="480" /></a></p>
<p>在extra configuration中可以设置图标大小label大小，透明度等等</p>
<p><a rel="attachment wp-att-645" href="http://www.molezz.net/drink/android-apps-circle-launcher-light/snap20110404_201303/"><img class="size-full wp-image-645 alignnone" title="snap20110404_201303" src="http://www.molezz.net/wp-content/uploads/snap20110404_201303.png" alt="" width="288" height="480" /></a></p>
<p>设置完成后可以进行备份设置操作， 最后回到home就可以看到具体的样子和进行操作了， 如果以后想增加应用或是改变外观，可以在弹出环形界面时长按中间的图标进入设置界面。</p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=640&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/android-apps-circle-launcher-light/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>android软件推荐&#8211;上海地铁 Shanghai Metro</title>
		<link>http://www.molezz.net/drink/android-app-shanghai-metro/</link>
		<comments>http://www.molezz.net/drink/android-app-shanghai-metro/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 19:06:13 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[metro]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=635</guid>
		<description><![CDATA[上海地铁 Shanghai Metro， 很方便的地铁路线查询软件， 方便外出查询和预计时间。 打开软件后， 左右滑动彩色线路能选择不同的地铁线， 滑动下面能选择站点， 最后点击[车程查询]， 能得到换乘信息和预计行车时间。 如果知道站点名称也可直接点击[ABC]按钮进行搜索. 或者点击[ABC]下面的小圈, 能直接跳到离你现在位置最近的地铁站名. 然后可以点击小圈左边的地图按钮, 调出android地图软件查询站点的位置. 通过[ABC]左边的按钮能得到全局的地铁线路信息, 点击相应站点后能下载周边的出口信息和交通图, 对于换乘公交或者寻找最近的出口也比较方便. 可以直接去android market下载, 免费 https://market.android.com/details?id=info.rguide.shmtr]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="shanghai metro" src="https://ssl.gstatic.com/android/market/info.rguide.shmtr/hi-256-1-4047f08f7c832d085059eaab3b15bfd77cb61263" alt="" width="64" height="64" /> <a href="https://market.android.com/details?id=info.rguide.shmtr" target="_blank">上海地铁 Shanghai Metro</a>， 很方便的地铁路线查询软件， 方便外出查询和预计时间。</p>
<p>打开软件后， 左右滑动彩色线路能选择不同的地铁线， 滑动下面能选择站点， 最后点击[车程查询]， 能得到换乘信息和预计行车时间。 如果知道站点名称也可直接点击[ABC]按钮进行搜索. 或者点击[ABC]下面的小圈, 能直接跳到离你现在位置最近的地铁站名. 然后可以点击小圈左边的地图按钮, 调出android地图软件查询站点的位置.</p>
<p>通过[ABC]左边的按钮能得到全局的地铁线路信息, 点击相应站点后能下载周边的出口信息和交通图, 对于换乘公交或者寻找最近的出口也比较方便.</p>
<p><a href="https://market.android.com/details?id=info.rguide.shmtr" target="_blank">可以直接去android market下载, 免费</p>
<p>https://market.android.com/details?id=info.rguide.shmtr</a></p>
<p><a href="http://sleqma.bay.livefilestore.com/y1pMTWpPe8jR261CTASZNjeiAoaM4trDTABlSLGvCAxccS2CFNU9urAgwWRMXfNO3rWqX58OhhNFs5hoTxFXCSg2D6S-eVtrgLR/Untitled%201.png?psid=1"><img class="alignnone" title="上海 metro" src="http://sleqma.bay.livefilestore.com/y1pMTWpPe8jR261CTASZNjeiAoaM4trDTABlSLGvCAxccS2CFNU9urAgwWRMXfNO3rWqX58OhhNFs5hoTxFXCSg2D6S-eVtrgLR/Untitled%201.png?psid=1" alt="" width="512" height="550" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=635&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/android-app-shanghai-metro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>将desire正式升级到2.3</title>
		<link>http://www.molezz.net/drink/htc-desire-android-gingerbread-ext/</link>
		<comments>http://www.molezz.net/drink/htc-desire-android-gingerbread-ext/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 07:44:17 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[data2ext]]></category>
		<category><![CDATA[desire]]></category>
		<category><![CDATA[Gingerbread]]></category>
		<category><![CDATA[htc]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=625</guid>
		<description><![CDATA[前天看到CM7出了2.3的RC1版本, 并且看到论坛上有人成功将data2whatever脚本用在这个版本上, 可以使空间扩大很多, 适合装游戏和各种软件, 于是也正式将我的desire升级到2.3.2, 用了2天效果不错. 最近一个月在2.3和2.2的data2ext版本刷了好几次, 这次打算安静用一段时间&#8230;. 强迫刷机症也要控制一下, 适可而止, 不刷机, 没什么好玩的, 但也不能2,3天就刷一次&#8230; 由于CM版权问题, CM rom现在都不带google app应用, 所以现在刷机要多一步, 刷入google app, 其实也很快, 如果需要超大rom安装软件的话, sd卡的ext分区不可少, 同时要刷入支持sd2ext的补丁. 具体刷机如下: 1. 进入recovery, wipe, 将前4项彻底wipe 2. 进入flash, 先刷入rom, update-cm-7.0.0-RC1-Desire-signed.zip 3. 不重启, 继续刷入google app, gapps-gb-20110120-signed.zip 4. 不重启, 继续刷入data2ext补丁, 前提是sd卡已分区ext, data2whatever-v0.4d.zip 5. 重启, 进入进行相关设置即可 上几张图]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="http://www.blogcdn.com/www.tuaw.com/media/2008/06/android.png" src="http://www.blogcdn.com/www.tuaw.com/media/2008/06/android.png" alt="" width="135" height="135" />前天看到<a href="http://bbs.gfan.com/viewthread.php?tid=703011&amp;extra=page%3D2%26amp;filter%3Dtype%26amp;typeid%3D223" target="_blank">CM7出了2.3的RC1版本</a>, 并且看到<a href="http://bbs.gfan.com/viewthread.php?tid=700413&amp;extra=&amp;page=1" target="_blank">论坛上有人成功将data2whatever脚本</a>用在这个版本上, 可以使空间扩大很多, 适合装游戏和各种软件, 于是也正式将我的desire升级到2.3.2, 用了2天效果不错.</p>
<p>最近一个月在2.3和2.2的data2ext版本刷了好几次, 这次打算安静用一段时间&#8230;. 强迫刷机症也要控制一下, 适可而止, 不刷机, 没什么好玩的, 但也不能2,3天就刷一次&#8230;</p>
<p>由于CM版权问题, CM rom现在都不带google app应用, 所以现在刷机要多一步, 刷入google app, 其实也很快, 如果需要超大rom安装软件的话, sd卡的ext分区不可少, 同时要刷入支持sd2ext的补丁. 具体刷机如下:</p>
<p>1. 进入recovery, wipe, 将前4项彻底wipe<br />
<span id="more-625"></span></p>
<p>2. 进入flash, 先刷入rom, <a href="http://mirror.teamdouche.net/get/bravo/update-cm-7.0.0-RC1-Desire-signed.zip" target="_blank">update-cm-7.0.0-RC1-Desire-signed.zip</a></p>
<p>3. 不重启, 继续刷入google app, <a href="http://goo-inside.me/google-apps/gapps-gb-20110120-signed.zip" target="_blank">gapps-gb-20110120-signed.zip</a></p>
<p>4. 不重启, 继续刷入data2ext补丁, 前提是sd卡已分区ext, <a href="http://dl.dbank.com/c0a44r0g71" target="_blank">data2whatever-v0.4d.zip</a></p>
<p>5. 重启, 进入进行相关设置即可</p>
<p>上几张图</p>
<p><a href="http://s0.i1.picplzthumbs.com/upload/img/da/c7/dc/dac7dcda8633078536c065db51d3ab213fdafef3_wmeg.jpg" target="_blank"><img class="alignnone" title="http://s0.i1.picplzthumbs.com/upload/img/da/c7/dc/dac7dcda8633078536c065db51d3ab213fdafef3_wmeg.jpg" src="http://s0.i1.picplzthumbs.com/upload/img/da/c7/dc/dac7dcda8633078536c065db51d3ab213fdafef3_wmeg.jpg" alt="" width="384" height="640" /></a></p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=625&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/htc-desire-android-gingerbread-ext/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>android使用一月</title>
		<link>http://www.molezz.net/drink/android-one-month/</link>
		<comments>http://www.molezz.net/drink/android-one-month/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 02:42:42 +0000</pubDate>
		<dc:creator>molezz</dc:creator>
				<category><![CDATA[电脑网络|network]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[desire]]></category>

		<guid isPermaLink="false">http://www.molezz.net/?p=599</guid>
		<description><![CDATA[买了desire一个多月了, 基本上能尝试的都尝试了, 比如root, 刷机等等. 感觉可玩性很高. 在成功app2ext后, desire硬件方面几乎完美了. 从黑莓转向android主要的一个原因就是应用方面更新的速度, 现在基本上一个新的web服务出来, 最先出现客户端的往往是ios和android, 黑莓方面的速度很慢, 而且民间开发的人也很少. 比如foursqure被封后, android很快就有了解决方案(api版本或vpn), 而黑莓用户只能在twitter进行无力的呼吁&#8230;.. 当然其实黑莓和android虽同为智能机, 但是定位肯定不同, 不好比较, 如果我有ios的话, 也许会写点比较. 每个人用手机的习惯不同, 自然对手机的优缺点也会有差异, 从我的使用习惯来看, 现阶段用android替换了blackberry还是明智的&#8230; 毕竟使用时间还不长, 随便总结一点. 不同手机定位不同, 所以不比较, 只小结. 优点: 1. 应用多, 更新快, 大部分免费或者很小的广告. (我对广告不反感, 不知道为什么论坛上的人对广告无法忍受). 同一个功能的应用可能有很多软件可选, 适合自己的最好. 就像Windows上那样, 既能选择自己喜欢的软件, 也能按照大家推荐的使用. 2. 自定义强. 当然这是指自己会编译封装的情况下. 不会也没关系, 网上很多民间rom, 不过刷前需慎重, 就好像当初xp的各种ghost版本, ccf, 番茄, 深度等等. 既有比较好的, 也难免会有不知道的后门. 3. 替代性. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="desire" src="http://www.htc.com/uploadedImages/WWW/Product/HTC_Desire/sec_ksp4.jpg" alt="" width="166" height="224" />买了desire一个多月了, 基本上能尝试的都尝试了, 比如root, 刷机等等. 感觉可玩性很高. 在成功app2ext后, desire硬件方面几乎完美了.</p>
<p>从黑莓转向android主要的一个原因就是应用方面更新的速度, 现在基本上一个新的web服务出来, 最先出现客户端的往往是ios和android, 黑莓方面的速度很慢, 而且民间开发的人也很少. 比如foursqure被封后, android很快就有了解决方案(api版本或vpn), 而黑莓用户只能在twitter进行无力的呼吁&#8230;.. 当然其实黑莓和android虽同为智能机, 但是定位肯定不同, 不好比较, 如果我有ios的话, 也许会写点比较.</p>
<p>每个人用手机的习惯不同, 自然对手机的优缺点也会有差异, 从我的使用习惯来看, 现阶段用android替换了blackberry还是明智的&#8230;</p>
<p>毕竟使用时间还不长, 随便总结一点. 不同手机定位不同, 所以不比较, 只小结.</p>
<p>优点:<br />
1. 应用多, 更新快, 大部分免费或者很小的广告. (我对广告不反感, 不知道为什么论坛上的人对广告无法忍受). 同一个功能的应用可能有很多软件可选, 适合自己的最好. 就像Windows上那样, 既能选择自己喜欢的软件, 也能按照大家推荐的使用.</p>
<p>2. 自定义强. 当然这是指自己会编译封装的情况下. 不会也没关系, 网上很多民间rom, 不过刷前需慎重, 就好像当初xp的各种ghost版本, ccf, 番茄, 深度等等. 既有比较好的, 也难免会有不知道的后门.</p>
<p>3. 替代性. 基本现在除了专业方面的使用, 平常的日常应用都能用android替代了, 对于web上的新应用, android上效果好于pc. 当然手机和笔记本毕竟是互补的东西, 不是替代的关系.</p>
<p>缺点:<br />
1. 电量. 这个因人而异, 我的话wifi不关, 基本2天一冲, 玩的多的话一天一冲. 对于智能机来说基本正常. 由于可更换电池的设计, 如果外出时间可能较长的话, 我会带上备用电池, 这样基本能撑3-4天.</p>
<p>2. 安全性一般. 前阵子有壁纸事件, 现今又看到汉化软件有后门. 不过我觉得更重要的倒是用户要提高自己的使用习惯, 毕竟现在大部分系统都会有或多或少的安全问题. android安装软件前都会有一个权限确定界面, 其实这个还真是不好说, 大部分人估计懒得看直接就过了, 就像vista当年那个allow一样. 毕竟不可能让每个普通用户都去关心这个. 所以root机器风险也需自摊, 刷前需谨慎.</p>
<img src="http://www.molezz.net/?ak_action=api_record_view&id=599&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.molezz.net/drink/android-one-month/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>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>1</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 <span style="color: #660033;">-qa</span><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 <span style="color: #660033;">-qa</span><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 <span style="color: #660033;">-qa</span><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 <span style="color: #660033;">-qa</span><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 <span style="color: #660033;">-qa</span><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>-<span style="color: #000000;">3</span>.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>11</slash:comments>
		</item>
	</channel>
</rss>

