<?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>SoundGhost</title>
	<atom:link href="http://www.soundghost.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.soundghost.com</link>
	<description>By Your Side</description>
	<lastBuildDate>Mon, 08 Aug 2011 02:33:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>operamini 再次失效</title>
		<link>http://www.soundghost.com/operamini-fail-again.html</link>
		<comments>http://www.soundghost.com/operamini-fail-again.html#comments</comments>
		<pubDate>Mon, 08 Aug 2011 02:33:02 +0000</pubDate>
		<dc:creator>weeper</dc:creator>
				<category><![CDATA[背后议论]]></category>
		<category><![CDATA[乱弹]]></category>

		<guid isPermaLink="false">http://www.soundghost.com/operamini-%e5%86%8d%e6%ac%a1%e5%a4%b1%e6%95%88.html</guid>
		<description><![CDATA[【特价限时秒杀】Panasonic/松下DMC-FP1GK 正品联保 假一罚十 看情形新一轮对operamini的干扰又开始了，目前我的自驾中转服务器能正常打开，但支持自定义服务器的operamini却无法连接成功，总是显... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://s.click.taobao.com/t_1?i=rEmXTxVQqmJkYQ%3D%3D&p=mm_11576151_0_0&n=11">促銷中Acer Aspire Revo R3610,330双核R3600升级,离子,无线键鼠</a></-> <p>看情形新一轮对operamini的干扰又开始了，目前我的自驾中转服务器能正常打开，但支持自定义服务器的operamini却无法连接成功，总是显示无法连接到internet。</p>
<p>如果不是服务器端ban掉我的手机ip的话，那就是防火墙又威猛了。</p>
<p>如果真的是这样的话，除了换手机之外，别无它法了。</p>
<p>后记：</p>
<p>诡异的事情发生了，傍晚的时候又恢复了正常。谁能给个解释？</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://www.soundghost.com/modify-the-default-mailbox.html" title="修改默认邮箱">修改默认邮箱</a></li><li><a href="http://www.soundghost.com/mobile-payment-no-way.html" title="手机支付搞得成功不？">手机支付搞得成功不？</a></li><li><a href="http://www.soundghost.com/abchina-invalid-certificate.html" title="农行给自己发证书">农行给自己发证书</a></li><li><a href="http://www.soundghost.com/talk-about-the-3g-network-card.html" title="谈谈3G上网卡">谈谈3G上网卡</a></li><li><a href="http://www.soundghost.com/letter-to-japanese-students.html" title="日本留学生的一封信">日本留学生的一封信</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.soundghost.com/operamini-fail-again.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>北京 我记得你</title>
		<link>http://www.soundghost.com/beijing-i-remember-you.html</link>
		<comments>http://www.soundghost.com/beijing-i-remember-you.html#comments</comments>
		<pubDate>Sat, 04 Jun 2011 12:34:20 +0000</pubDate>
		<dc:creator>weeper</dc:creator>
				<category><![CDATA[乱冒火花]]></category>

		<guid isPermaLink="false">http://www.soundghost.com/%e5%8c%97%e4%ba%ac-%e6%88%91%e8%ae%b0%e5%be%97%e4%bd%a0.html</guid>
		<description><![CDATA[WD/西部数据/ 
Elements320G 全国联保/ 3年免费换新 北京
我记得你
随机日志从amd.streamload.com无法登陆谈起用timthumb.php给WordPress添加缩略图修改CSSipTIME路由器不错日本留学生的一封... ]]></description>
			<content:encoded><![CDATA[<p>北京<br />
我记得你</p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://www.soundghost.com/mobile.html" title="手机">手机</a></li><li><a href="http://www.soundghost.com/strange-phenomena.html" title="怪现象">怪现象</a></li><li><a href="http://www.soundghost.com/shortcoming-aggressive-of-google.html" title="缺少霸气的Google">缺少霸气的Google</a></li><li><a href="http://www.soundghost.com/having-received-benq-e2400hd-but-i-have-problems-of-this.html" title="收到BenQ E2400HD了，可是我的这台有问题">收到BenQ E2400HD了，可是我的这台有问题</a></li><li><a href="http://www.soundghost.com/mourn-my-brother-wei-chun-yan.html" title="悼韦哥">悼韦哥</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.soundghost.com/beijing-i-remember-you.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSS 安装 Transmission</title>
		<link>http://www.soundghost.com/mss-installation-of-transmission.html</link>
		<comments>http://www.soundghost.com/mss-installation-of-transmission.html#comments</comments>
		<pubDate>Tue, 24 May 2011 06:44:31 +0000</pubDate>
		<dc:creator>weeper</dc:creator>
				<category><![CDATA[学点技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MSS]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.soundghost.com/?p=393</guid>
		<description><![CDATA[前几篇文章已经把MSS里的 openmsscn 1.05 一键安装包中的大多数下载软件升级到了新版。由于 rtorrent 有 4G 大小限制的问题，所以按别人所说的，只有换成别的客户端才能解决。而现在大家几乎都... ]]></description>
			<content:encoded><![CDATA[<p>前几篇文章已经把MSS里的 openmsscn 1.05 一键安装包中的大多数下载软件升级到了新版。由于 rtorrent 有 4G 大小限制的问题，所以按别人所说的，只有换成别的客户端才能解决。而现在大家几乎都是推荐用 Transmission 来替代 rtorrent 的。</p>
<p>在写这篇文章之前，我装过 Transmission ，的确很好看也很漂亮，可它也不是十全十美的，CPU资源占用率比较高，进程多，有时候能看到7-8个进程，不知道是不是因为我的设置错误造成的，另外还有权限问题&mdash;&mdash;即下载的文件不能在网上邻居删除。</p>
<p>现在把过程写下来，有什么错误就纠正它，或者高手也可以留言指正我。</p>
<p>首先，在安装任何软件前，都应该</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">ipkg update</li></ol></div>
<p>一下，以便获得最新的软件列表。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">ipkg install adduser</li></ol></div>
<p>然后，先升级一下adduser，MSS自带的那个adduser版本号看不出来，估计应该是比较老了，无法查看使用帮助，升级到新版的adduser后，输入</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"># adduser</li>
<li>BusyBox v1.10.3 (2010-07-07 21:02:30 UTC) multi-call binary</li>
<li>&nbsp;</li>
<li>Usage: adduser [OPTIONS] user_name</li>
<li>&nbsp;</li>
<li>Add an user</li>
<li>&nbsp;</li>
<li>Options:</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-h DIR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Home directory</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-g GECOS&nbsp; &nbsp; &nbsp; &nbsp; GECOS field</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-s SHELL&nbsp; &nbsp; &nbsp; &nbsp; Login shell</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-G GROUP&nbsp; &nbsp; &nbsp; &nbsp; Add user to existing group</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-S&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Create a system user</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-D&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do not assign a password</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;-H&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Do not create home directory</li></ol></div>
<p>可以看到有帮助文档出来的，这个文档有助于我们解决权限问题。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">ipkg install transmission</li></ol></div>
<p>然后find一下，可以得知系统在&nbsp;/shares/mss-hdd/__opt/share/transmission ，也就是 /opt/share/transmission 建立了文件夹。</p>
<p>增加一个用户：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">adduser -h /opt/share/transmission -s /opt/bin/sh -G users -D transmission</li></ol></div>
<p>这一句跟论坛里的教程相比，多了一句 -G users ，这句的意思是把这个新建的 transmission 用户放在 users 这个组里面，而这个组里的其他成员可以在 /etc/group 里查看，另外执行之后，mss 会提示目录已经存在。</p>
<p>顺便说一下两个地方，第一是 openmsscn 的 1.05 固件包有一个 BUG ，执行 passwd 后不能修改密码，这是因为 /etc/passwd 这个文件里多了一行空白所致，baoyinet 的包没有这个 BUG 。解决的办法是用 vi 删掉多余的那行就好了。第二个地方是 /etc/group 这个文件里， users 组里有一个不明身份的 yan 用户，这个用户不管是openmsscn的包还是baoyinet的包，都存在，解决办法：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">vi /tmp/group</li></ol></div>
<p>删掉那个users组里的yan用户，然后把transmission加在里面，看起来象下面这样。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"># cat /etc/group</li>
<li>domadmins::42002:root</li>
<li>root::0:root</li>
<li>users::42000:root,guest,transmission</li>
<li>openmsscn:x:35004:</li></ol></div>
<p>修改passwd文件里的数字ID成下面这样：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"># vi /etc/passwd</li>
<li>……略……</li>
<li>guest::35002:42000:guest:/dev/null:/bin/false</li>
<li>……略……</li>
<li>transmission:x:35002:42000:BT User:/opt/share/transmission/:/opt/bin/sh</li></ol></div>
<p>接着查看 /opt/share/ 的属性，得知其默认的属性为755，将其修改为777，同时将 transmission 文件夹归属给 transmission 用户：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">chmod 777 /opt/share</li>
<li>chown -R transmission:users /opt/share/transmission/</li></ol></div>
<p>这样切换到 transmission 用户时才能在 /opt/share/transmission/ 下创建配置文件。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">su transmission</li></ol></div>
<p>这里我给设置的 shell 是 /opt/bin/sh ，不是教程里的 /opt/bin/bash ，所以 su 为 transmission 后，shell 就是（如果你升级了busybox的话）：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">BusyBox v1.10.3 (2010-05-21 00:50:16 UTC) built-in shell (ash)</li>
<li>Enter 'help' for a list of built-in commands.</li>
<li>&nbsp;</li>
<li>$</li></ol></div>
<p>然后执行</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">$ transmission-daemon -a &quot;127.0.0.1,*.*.*.*&quot; -B</li></ol></div>
<p>用 ps 看一下，应该会看到 4 个 transmission 进程，同时在 /opt/share/transmission/ 下应该已经生成了隐藏的配置文件了：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">$ ls -al /opt/share/transmission/</li>
<li>drwxr-xr-x&nbsp; &nbsp; 4 guest&nbsp; &nbsp; users&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 96 May 16 15:03 .</li>
<li>drwxr-xr-x&nbsp; &nbsp;20 root&nbsp; &nbsp; &nbsp;root&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 496 May 22&nbsp; 2010 ..</li>
<li>drwxrwxrwx&nbsp; &nbsp; 3 guest&nbsp; &nbsp; users&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 88 May 16 15:03 .config</li>
<li>drwxr-xr-x&nbsp; &nbsp; 5 guest&nbsp; &nbsp; users&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;192 May 16 14:56 web</li></ol></div>
<p>那个.config就表示配置文件生成了，此时可以杀掉进程：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">killall transmission-da</li></ol></div>
<p>修改配置文件：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cd /opt/share/transmission/.config/transmission-daemon/</li></ol></div>
<p>为了避免手误改错，先备份一下：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cp -a settings.json settings.json.bak</li>
<li>vi settings.json</li></ol></div>
<p>需要修改下面几处：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&quot;download-dir&quot;: &quot;/opt/share/transmission/Downloads&quot;, 改为 &quot;download-dir&quot;: &quot;/pub/bt/transmission&quot;, </li>
<li>&quot;preallocation&quot;: 1, 改为 &quot;preallocation&quot;: 2,</li></ol></div>
<p>保存退出。</p>
<p>最后</p>
<p>至此，transmission 安装设置完毕。并且圆满解决了 transmission 下载的文件不能在网上邻居删除的问题。</p>
<p>参考资料：</p>
<p><a target="_blank" href="http://bbs.baoyinet.com/viewthread.php?tid=2469&#038;from=favorites">在1.05包上安装 amule 2.2.5 和 Transmission 1.7.3 详细步骤</a></p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://www.soundghost.com/mss-of-rtorrent-to-0-8-6-upgrade.html" title="升级MSS的rtorrent到0.8.6">升级MSS的rtorrent到0.8.6</a></li><li><a href="http://www.soundghost.com/mss-root-password-ssh-file-name-in-chinese.html" title="MSS root password ssh 中文文件名">MSS root password ssh 中文文件名</a></li><li><a href="http://www.soundghost.com/mss-the-amule-upgrade.html" title="升级mss上的amule">升级mss上的amule</a></li><li><a href="http://www.soundghost.com/white-lists-and-blacklists.html" title="白名单和黑名单">白名单和黑名单</a></li><li><a href="http://www.soundghost.com/command-line-to-set-routeros-sharing-network.html" title="命令行设置RouterOS共享上网">命令行设置RouterOS共享上网</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.soundghost.com/mss-installation-of-transmission.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>升级MSS的rtorrent到0.8.6</title>
		<link>http://www.soundghost.com/mss-of-rtorrent-to-0-8-6-upgrade.html</link>
		<comments>http://www.soundghost.com/mss-of-rtorrent-to-0-8-6-upgrade.html#comments</comments>
		<pubDate>Thu, 12 May 2011 15:18:12 +0000</pubDate>
		<dc:creator>weeper</dc:creator>
				<category><![CDATA[学点技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MSS]]></category>
		<category><![CDATA[硬件]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.soundghost.com/?p=392</guid>
		<description><![CDATA[虽然我几乎从未用过 rtorrent 这款 BT 软件，但是我就喜欢折腾，今天想把 openmsscn 的 1.0.5 一键安装包里包含的rtorrent升级一下。
我已经通过修改 /optetc/init.d/settings.ini 把开机启动服务改成了如下... ]]></description>
			<content:encoded><![CDATA[<p>虽然我几乎从未用过 rtorrent 这款 BT 软件，但是我就喜欢折腾，今天想把 openmsscn 的 1.0.5 一键安装包里包含的rtorrent升级一下。</p>
<p>我已经通过修改 /optetc/init.d/settings.ini 把开机启动服务改成了如下这样：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"># cat /opt/etc/init.d/settings.ini</li>
<li>dropbear=1</li>
<li>amuled=1</li>
<li>vsftpd=0</li>
<li>mlnet=0</li>
<li>local=1</li>
<li>rtorrent=0</li></ol></div>
<p>然后查看源里最新的rtorrent的版本号为0.8.6，要比自带的新一些（自带版本号是多少我忘了），于是决定升级它。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">ipkg install rtorrent</li>
<li>ipkg install screen</li></ol></div>
<p>然后修改/opt/etc/rtorrent.conf，源文件里的路径是什么忘记备份了，要做的就是把里面错误的路径改为正确的路径而已，因为一键安装包已经在 /pub/bt 下建好了 rtorrent 这个文件夹，并且里面已经有了work、dl、session这三个文件夹了，你只需要在rtorrent.conf文件里把他们修改为正确的路径就可以了，否则的话启动会报错：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">vi /opt/etc/rtorrent.conf</li>
<li>directory = /pub/bt/rtorrent/work/</li>
<li>schedule = watch_directory,5,5,load_start=/pub/bt/rtorrent/dl/*.torrent</li>
<li>session = /pub/bt/rtorrent/session</li></ol></div>
<p>然后尝试启动一下rtorrent看能否启动？</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">/opt/etc/init.d/S99rtorrent start</li></ol></div>
<p>如果提示成功，那么再把位于/opt/etc/init.d/的settings.ini中rtorrent=0改为rtorrent=1，reboot。</p>
<p>你成功了没？我升级成功，重启后能看到rtorrent的进程了！</p>
<p>接下来又出现一个大问题，由于我没有备份原始的rtorrent.conf文件，所以导致了我无法用ntorrent客户端连接，百思不得其解，后来找到对岸同胞hannahmo的帖子，看了下他的配置文件发现新的配置文件少一行代码：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">scgi_port = localhost:5000</li></ol></div>
<p>把这一行代码加在/opt/etc/rtorrent.conf里以后</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">/opt/etc/init.d/S99rtorrent restart</li></ol></div>
<p>再用ntorrent去连接，圆满成功&mdash;&mdash;不过我可能还是不会用这个BT客户端的。</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://www.soundghost.com/mss-installation-of-transmission.html" title="MSS 安装 Transmission">MSS 安装 Transmission</a></li><li><a href="http://www.soundghost.com/mss-the-amule-upgrade.html" title="升级mss上的amule">升级mss上的amule</a></li><li><a href="http://www.soundghost.com/command-line-to-set-routeros-sharing-network.html" title="命令行设置RouterOS共享上网">命令行设置RouterOS共享上网</a></li><li><a href="http://www.soundghost.com/install-xenserver5.html" title="安装XenServer5">安装XenServer5</a></li><li><a href="http://www.soundghost.com/mss-jtag-repair.html" title="jtag修复mss">jtag修复mss</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.soundghost.com/mss-of-rtorrent-to-0-8-6-upgrade.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YuchBerry的发信时间设置</title>
		<link>http://www.soundghost.com/yuchberryu002639s-letter-time-setting.html</link>
		<comments>http://www.soundghost.com/yuchberryu002639s-letter-time-setting.html#comments</comments>
		<pubDate>Tue, 10 May 2011 07:18:11 +0000</pubDate>
		<dc:creator>weeper</dc:creator>
				<category><![CDATA[学点技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[黑莓]]></category>

		<guid isPermaLink="false">http://www.soundghost.com/?p=390</guid>
		<description><![CDATA[YuchBerry里有一个文件signature.txt，里面有一行
&#8211;send from my yuchberry @$time$&#160;
这就是当你用黑莓手机回复邮件时附带的一个小尾巴，如果你不喜欢这个小尾巴，你可以把这个文件删除，或者你... ]]></description>
			<content:encoded><![CDATA[<p>YuchBerry里有一个文件signature.txt，里面有一行</p>
<p>&#8211;send from my yuchberry @$time$&nbsp;</p>
<p>这就是当你用黑莓手机回复邮件时附带的一个小尾巴，如果你不喜欢这个小尾巴，你可以把这个文件删除，或者你也可以在里面增加点别的东西当做你的邮件签名。</p>
<p>当我测试发邮件时，发现显示邮件的发出时间不正确，这应该是由于debian的时区设置错误造成的。</p>
<p>登陆终端，输入</p>
<p>data</p>
<p>看看时间和本地时间是否一致？不同的话需要重设debian的时区。</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">dpkg-reconfigure tzdata</li></ol></div>
</p>
<p>选择Asia，Hong_Kong就好了（香港也是东八区）。</p>
<p>再用data命令看看时间，这下对了吧？</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://www.soundghost.com/debian-configuration-yuchberry-process.html" title="Debian 配置 YuchBerry 过程">Debian 配置 YuchBerry 过程</a></li><li><a href="http://www.soundghost.com/optimization-debian-notes.html" title="优化debian笔记">优化debian笔记</a></li><li><a href="http://www.soundghost.com/mss-installation-of-transmission.html" title="MSS 安装 Transmission">MSS 安装 Transmission</a></li><li><a href="http://www.soundghost.com/mss-of-rtorrent-to-0-8-6-upgrade.html" title="升级MSS的rtorrent到0.8.6">升级MSS的rtorrent到0.8.6</a></li><li><a href="http://www.soundghost.com/mss-root-password-ssh-file-name-in-chinese.html" title="MSS root password ssh 中文文件名">MSS root password ssh 中文文件名</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.soundghost.com/yuchberryu002639s-letter-time-setting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian 配置 YuchBerry 过程</title>
		<link>http://www.soundghost.com/debian-configuration-yuchberry-process.html</link>
		<comments>http://www.soundghost.com/debian-configuration-yuchberry-process.html#comments</comments>
		<pubDate>Tue, 10 May 2011 05:46:44 +0000</pubDate>
		<dc:creator>weeper</dc:creator>
				<category><![CDATA[学点技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[手机]]></category>
		<category><![CDATA[黑莓]]></category>

		<guid isPermaLink="false">http://www.soundghost.com/?p=389</guid>
		<description><![CDATA[在Joyful Thinking上有一篇文章教怎么在64MB CentOS VPS 上配置YuchBerry工作的文章，写得非常好，基本上如果正好你用的 CentOS 的话，全部照做就可以成功了。
我买的VPS，内存128MB，安装的Debian，我希... ]]></description>
			<content:encoded><![CDATA[<p>在<a target="_blank" href="http://www.geektu.com/">Joyful Thinking</a>上有一篇文章教怎么<a target="_blank" href="http://www.geektu.com/?p=641">在64MB CentOS VPS 上配置YuchBerry工作</a>的文章，写得非常好，基本上如果正好你用的 CentOS 的话，全部照做就可以成功了。</p>
<p>我买的VPS，内存128MB，安装的Debian，我希望YuchBerry也能够在Debian上运行成功，于是开始如下的折腾：</p>
<p>更新系统：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">apt-get update</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">apt-get upgrade</li></ol></div>
</p>
<p>设置locale：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;&quot; &gt;&gt; /etc/profile</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo export LC_ALL=\&quot;zh_CN.utf8\&quot; &gt;&gt; /etc/profile</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo export LC_CTYPE=\&quot;zh_CN.utf8\&quot; &gt;&gt; /etc/profile</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo export LANG=\&quot;zh_CN.utf8\&quot; &gt;&gt; /etc/profile</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;&quot; &gt;&gt; /etc/profile</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;&quot; &gt;&gt; /etc/bash.bashrc</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo export LC_ALL=\&quot;zh_CN.utf8\&quot; &gt;&gt; /etc/bash.bashrc</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo export LC_CTYPE=\&quot;zh_CN.utf8\&quot; &gt;&gt; /etc/bash.bashrc</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo export LANG=\&quot;zh_CN.utf8\&quot; &gt;&gt; /etc/bash.bashrc</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;&quot; &gt;&gt; /etc/bash.bashrc</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">dpkg-reconfigure locales</li></ol></div>
</p>
<p>随后选择zh_CN.uft8，然后重启VPS，再登录查看locale：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">locale</li>
<li>LANG=zh_CN.utf8</li>
<li>LC_CTYPE=&quot;zh_CN.utf8&quot;</li>
<li>LC_NUMERIC=&quot;zh_CN.utf8&quot;</li>
<li>LC_TIME=&quot;zh_CN.utf8&quot;</li>
<li>LC_COLLATE=&quot;zh_CN.utf8&quot;</li>
<li>LC_MONETARY=&quot;zh_CN.utf8&quot;</li>
<li>LC_MESSAGES=&quot;zh_CN.utf8&quot;</li>
<li>LC_PAPER=&quot;zh_CN.utf8&quot;</li>
<li>LC_NAME=&quot;zh_CN.utf8&quot;</li>
<li>LC_ADDRESS=&quot;zh_CN.utf8&quot;</li>
<li>LC_TELEPHONE=&quot;zh_CN.utf8&quot;</li>
<li>LC_MEASUREMENT=&quot;zh_CN.utf8&quot;</li>
<li>LC_IDENTIFICATION=&quot;zh_CN.utf8&quot;</li>
<li>LC_ALL=zh_CN.utf8</li></ol></div>
</p>
<p>不过我输入data查看日期时发现中文不能正常显示，后面是空格，不知道是什么原因。</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">date</li>
<li>2011&nbsp; 05&nbsp; 10&nbsp; &nbsp; &nbsp; 08:55:29 MSD</li></ol></div>
</p>
<p>下载IBM JRE：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cd /usr/</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">wget http://dl.dropbox.com/u/182853/ibm-java-i386-jre-6.0-9.0.i386.rpm</li></ol></div>
</p>
<p>安装Alien：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">apt-get install alien</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">alien -d ibm-java-i386-jre-6.0-9.0.i386.rpm</li></ol></div>
</p>
<p>上面这一步会把rpm包转换成deb包，时间稍微有点长，请耐心等待。</p>
<p>安装转换的IBM JRE：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">dpkg -i ibm-java-i386-jre_6.0-10_i386.deb</li></ol></div>
</p>
<p>设置环境变量：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;&quot; &gt;&gt; /etc/profile</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;export PATH=/opt/ibm/java-i386-60/jre/bin:\$PATH&quot; &gt;&gt; /etc/profile</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;&quot; &gt;&gt; /etc/profile</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;&quot; &gt;&gt; /etc/bash.bashrc</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;export PATH=/opt/ibm/java-i386-60/jre/bin:\$PATH&quot; &gt;&gt; /etc/bash.bashrc</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">echo &quot;&quot; &gt;&gt; /etc/bash.bashrc</li></ol></div>
</p>
<p>下载YuchBerry：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cd /usr</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">wget http://yuchberry.googlecode.com/files/yuchberry_server_1.1.716.zip</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">unzip yuchberry_server_1.1.716.zip</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">mv yuchberry_server_1.1.716 yuch</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cd yuch</li></ol></div>
</p>
<p>如果你仅仅只是供自己收取邮件，那么可以删除一些不用的文件：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">rm commonMailSvr.ini frame.jar *.bat *.html timeupMail.txt *.url</li></ol></div>
</p>
<p>如果你只有一个邮箱帐户，可以直接vi修改config.xml文件，怎么改，请参考YuchBerry的<a target="_blank" href="http://code.google.com/p/yuchberry/wiki/fill_config_ini">填写服务器 config.xml 文件</a>一章。</p>
<p>如果邮箱账户比较多，可以在Windows下用notepad++修改然后上传覆盖，记得保存时编码选择UTF8并且转换为UNIX格式。</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cd /usr/yuch</li></ol></div>
</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">nohup java -jar svr.jar &amp;</li></ol></div>
</p>
<p>查看端口：</p>
<p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">netstat -antl</li></ol></div>
</p>
<p>如果看到9716端口的状态是LISTEN就表示服务已经运行起来了。剩下的事就是在手机或者模拟器上安装YuchBerry的客户端测试邮件是否正常。</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://www.soundghost.com/yuchberryu002639s-letter-time-setting.html" title="YuchBerry的发信时间设置">YuchBerry的发信时间设置</a></li><li><a href="http://www.soundghost.com/optimization-debian-notes.html" title="优化debian笔记">优化debian笔记</a></li><li><a href="http://www.soundghost.com/mss-installation-of-transmission.html" title="MSS 安装 Transmission">MSS 安装 Transmission</a></li><li><a href="http://www.soundghost.com/mss-of-rtorrent-to-0-8-6-upgrade.html" title="升级MSS的rtorrent到0.8.6">升级MSS的rtorrent到0.8.6</a></li><li><a href="http://www.soundghost.com/mss-root-password-ssh-file-name-in-chinese.html" title="MSS root password ssh 中文文件名">MSS root password ssh 中文文件名</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.soundghost.com/debian-configuration-yuchberry-process.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

