<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6646984953855535719</id><updated>2020-02-29T02:43:25.283+08:00</updated><category term="IT"/><category term="Linux"/><category term="杂记"/><category term="软件应用"/><category term="ACGMN"/><category term="HowTo"/><category term="煩心事"/><category term="Google"/><category term="Windows"/><category term="瑣碎事"/><category term="debian"/><category term="FEZ"/><category term="x264"/><category term="搞笑"/><category term="購物"/><category term="輕小說"/><category term="Home Server"/><category term="初音未來"/><category term="動漫展"/><category term="視頻"/><category term="CJK"/><category term="FLAC"/><category term="dnsmasq"/><category term="tag"/><category term="小技巧"/><category term="我的妹妹哪有這麼可愛"/><category term="攝影"/><category term="笨蛋測驗召喚獸"/><category term="電波女與青春男"/><category term="A.D.S.L."/><category term="AAC"/><category term="ADSL"/><category term="ATM"/><category term="CMD"/><category term="CSS"/><category term="Cosplay"/><category term="DHCP"/><category term="DNS"/><category term="FFmpeg"/><category term="Flash"/><category term="Foobar"/><category term="Game"/><category term="MAC"/><category term="MKV"/><category term="MP4"/><category term="Music"/><category term="PXE"/><category term="Samba"/><category term="Script"/><category term="TFTP"/><category term="Transmission"/><category term="UPnP"/><category term="YouTube"/><category term="error"/><category term="iSCSI"/><category term="meGUI"/><category term="东方Project"/><category term="中國銀行"/><category term="仰望半月的夜空"/><category term="利市錢"/><category term="大事"/><category term="手辦"/><category term="文學少女"/><category term="日本"/><category term="服務器"/><category term="涼宮春日"/><category term="灼眼的夏娜"/><category term="知識"/><category term="碧陽学園生徒会議事録"/><title type='text'>I&#39;m kaysiness</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://imoe.tk/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/-/IT'/><link rel='alternate' type='text/html' href='http://imoe.tk/search/label/IT'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/-/IT/-/IT?start-index=26&amp;max-results=25'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>99</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-8541974647069863771</id><published>2011-09-28T00:20:00.001+08:00</published><updated>2011-09-28T10:10:14.238+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="Home Server"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Samba"/><category scheme="http://www.blogger.com/atom/ns#" term="UPnP"/><title type='text'>我的Home Server（第三部分）</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;文件服务器&lt;/h2&gt;&lt;p&gt;文件服务器我是使用Samba来实现。&lt;/p&gt;&lt;p&gt;安装：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# aptitude install samba&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;编辑配置文件：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# mv /etc/samba/smb.conf /etc/samba/smb.conf.backup&lt;br /&gt;# vi /etc/samba/smb.conf&lt;br /&gt;&lt;pre class=&quot;brush: bash shell&quot;&gt;#====== Global Settings ======&lt;br /&gt;[global]&lt;br /&gt;#设置工作组名字、主机名、最大连接数&lt;br /&gt;   workgroup = WORKGROUP&lt;br /&gt;   server string = %h server&lt;br /&gt;   dns proxy = no&lt;br /&gt;   max connections = 10&lt;br /&gt;&lt;br /&gt;#只监听来自eth0网卡的请求&lt;br /&gt;   interfaces = eth0&lt;br /&gt;   bind interfaces only = yes&lt;br /&gt;&lt;br /&gt;#日志文件位置和大小&lt;br /&gt;   log file = /var/log/samba/log.%m&lt;br /&gt;   max log size = 500&lt;br /&gt;&lt;br /&gt;#采用输入用户密码才能访问共享的方式&lt;br /&gt;   security = user&lt;br /&gt;   encrypt passwords = true&lt;br /&gt;   passdb backend = tdbsam&lt;br /&gt;   obey pam restrictions = yes&lt;br /&gt;&lt;br /&gt;#设置用户Samba密码和系统密码同步，同步的方向是改变Samba密码，系统密码跟着改变（没有做测试，猜得）&lt;br /&gt;   unix password sync = yes&lt;br /&gt;   passwd program = /usr/bin/passwd %u&lt;br /&gt;   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .&lt;br /&gt;   pam password change = yes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#====== Share Definitions ======&lt;br /&gt;[homes]&lt;br /&gt;   comment = Home Directories&lt;br /&gt;   browseable = no&lt;br /&gt;   read only = no&lt;br /&gt;   create mask = 0644&lt;br /&gt;   directory mask = 0755&lt;br /&gt;   valid users = %S&lt;br /&gt;&lt;br /&gt;[download]&lt;br /&gt;   comment = Download Directories&lt;br /&gt;   path = /media/download&lt;br /&gt;   browseable = yes&lt;br /&gt;   read only = no&lt;br /&gt;   create mask = 0644&lt;br /&gt;   directory mask = 0755&lt;br /&gt;   valid users = kaysiness&lt;/pre&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;解析一下 Share Definitions 部分的含义：（更多的含义可以查看 man smb.conf 手册）&lt;/p&gt;&lt;ul&gt;&lt;li&gt;comment = Home Directories&lt;br /&gt;&lt;blockquote&gt;设置共享的注释说明&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;path = /media/download&lt;br /&gt;&lt;blockquote&gt;共享的路径&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;browseable = yes&lt;br /&gt;&lt;blockquote&gt;设置是否让该共享可见&lt;/li&gt;&lt;li&gt;read only = no&lt;br /&gt;&lt;blockquote&gt;设置共享目录是否只读&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;create mask = 0644&lt;br /&gt;&lt;blockquote&gt;创建文件时的默认权限&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;directory mask = 0755&lt;br /&gt;&lt;blockquote&gt;创建文件夹时的默认权限&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;valid users = kaysiness&lt;br /&gt;&lt;blockquote&gt;允许访问该共享目录的用户名，如果在前面加@这个符号，例如@kaysiness，即表示kaysiness这个组&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;设置kaysiness用户的Samba密码，&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;&lt;b&gt;以普通用户运行：&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;$ smbpasswd&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;如果出现下面的错误提示，尝试把密码的长度加到6位以上&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;machine 127.0.0.1 rejected the password change: Error was : Password restriction.&lt;br /&gt;Failed to change password for kaysiness&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;或者用root运行：&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# smbpasswd -a kaysiness&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;重启Samba服务：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# /etc/init.d/samba restart&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;现在可以到其他机器上输入 &lt;code&gt;\\HOMESERVER\download&lt;/code&gt; 来访问共享了。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-Z9t2gzfhWMM/ToHgTAI1hDI/AAAAAAAAJRU/vzhacdBCuVs/s1600/network-neighborhood-2011-9-27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;333&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-Z9t2gzfhWMM/ToHgTAI1hDI/AAAAAAAAJRU/vzhacdBCuVs/s400/network-neighborhood-2011-9-27.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;UPnP&lt;/h2&gt;&lt;p&gt;&lt;a href=&quot;http://zh.wikipedia.org/wiki/Upnp&quot; rel=&quot;nofollow&quot;&gt;UPnP协议能实现的功能很多&lt;/a&gt;，不过我只是用来做内网机器的自动端口映射而已，而在Linux下做这件事的正是linux-igd。&lt;/p&gt;&lt;p&gt;安装：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# aptitude install linux-igd&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;设置外网端口和内网端口：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# vi /etc/default/linux-igd&lt;br /&gt;&lt;blockquote&gt;EXTIFACE=ppp0&lt;br /&gt;INTIFACE=eth0&lt;br /&gt;ALLOW_MULTICAST=&quot;yes&quot;&lt;/blockquote&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;解析一下含义：&lt;/p&gt;&lt;ul&gt;&lt;li&gt;EXTIFACE=ppp0&lt;br /&gt;&lt;blockquote&gt;连接外网的端口&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;INTIFACE=eth0&lt;br /&gt;&lt;blockquote&gt;连接内网的端口&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;ALLOW_MULTICAST=&quot;yes&quot;&lt;br /&gt;&lt;blockquote&gt;打开&lt;a href=&quot;http://zh.wikipedia.org/wiki/%E5%A4%9A%E6%92%AD&quot; rel=&quot;nofollow&quot;&gt;多播&lt;/a&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;启动linux-igd服务：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# /etc/init.d/linux-igd start&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;把linux-igd添加到启动列表里：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# update-rc.d linux-igd defaults&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;下图是内网一台机器上的eMule使用UPnP协议实现的自动端口映射。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/--k-Snm-LLMs/ToGGiIX328I/AAAAAAAAJRM/2xPpc5wTDiE/s1600/iptables-nat-2011-9-27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;234&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/--k-Snm-LLMs/ToGGiIX328I/AAAAAAAAJRM/2xPpc5wTDiE/s400/iptables-nat-2011-9-27.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;第三部分完&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;相关文章&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://imoe.tk/2011/09/home-server.html&quot;&gt;我的Home Server（第一部分）&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imoe.tk/2011/09/home-server_16.html&quot;&gt;我的Home Server（第二部分）&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/8541974647069863771/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/09/home-server_28.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/8541974647069863771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/8541974647069863771'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/09/home-server_28.html' title='我的Home Server（第三部分）'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-Z9t2gzfhWMM/ToHgTAI1hDI/AAAAAAAAJRU/vzhacdBCuVs/s72-c/network-neighborhood-2011-9-27.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-610933505275416161</id><published>2011-09-25T13:12:00.000+08:00</published><updated>2011-09-25T13:12:07.213+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Transmission"/><title type='text'>配置Transmission-cli和WebUI访问</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;前言&lt;/h2&gt;&lt;p&gt;最近一直在寻找Linux CLI命令行下好用的BT客户端，首先试用的是这篇文章的主角：Transmission-cli，于是便有了这篇文章。&lt;/p&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;软件环境&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;OS：Debian stable（squeeze 6.0.2）&lt;/li&gt;&lt;li&gt;Transmission-cli 2.03&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;名词解释&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;10.0.0.1&lt;br /&gt;&lt;blockquote&gt;文章里的 10.0.0.1 这个IP地址是指运行着Transmission-cli服务端的主机IP地址。&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;Transmission-cli&lt;br /&gt;&lt;blockquote&gt;Transmission-cli是BitTorrent分享软件“&lt;a href=&quot;http://zh.wikipedia.org/wiki/Transmission&quot; rel=&quot;nofollow&quot;&gt;Transmission&lt;/a&gt;”的命令行版本，可以不依赖X11运行。&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;WebUI&lt;br /&gt;&lt;blockquote&gt;通过Transmission提供的接口，利用网页控制Transmission主程序。&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;配置&lt;/h2&gt;&lt;p&gt;安装&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# aptitude install transmission-cli transmission-daemon&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;先停止Transmission-cli的守护进程&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# /etc/init.d/transmission-daemon stop&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;编辑配置文件&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# vi /etc/transmission-daemon/settings.json&lt;br /&gt;&lt;blockquote&gt;&quot;download-dir&quot;: &quot;/media/download/bt/&quot;,&lt;br /&gt;&quot;rpc-password&quot;: &quot;密码&quot;,&lt;br /&gt;&quot;rpc-username&quot;: &quot;kaysiness&quot;,&lt;br /&gt;&quot;rpc-port&quot;: 9091,&lt;br /&gt;&quot;rpc-whitelist&quot;: &quot;127.0.0.1,10.0.0.*&quot;,&lt;br /&gt;&quot;rpc-whitelist-enabled&quot;: true,&lt;/blockquote&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;download-dir&lt;br /&gt;&lt;blockquote&gt;设置默认的下载存放目录&lt;br /&gt;&lt;b&gt;注意：&lt;/b&gt;在Debian里transmission-daemon是以debian-transmission用户运行的，所以&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;需要确保debian-transmission用户必须对下载存放目录有写权限！&lt;/span&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;rpc-password&lt;br /&gt;&lt;blockquote&gt;设置登录密码，可以直接用明文填写，当运行Transmission-cli后会自动转换成哈希的形式&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;rpc-username&lt;br /&gt;&lt;blockquote&gt;设置登录的用户名&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;rpc-port&lt;br /&gt;&lt;blockquote&gt;设置监听的端口&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;rpc-whitelist&lt;br /&gt;&lt;blockquote&gt;设置可以访问的白名单IP地址，多个地址可以用英文逗号隔开&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;rpc-whitelist-enabled&lt;br /&gt;&lt;blockquote&gt;让白名单生效&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;p&gt;重新运行Transmission-cli的守护进程&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# /etc/init.d/transmission-daemon start&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;Webui访问&lt;/h2&gt;&lt;p&gt;在浏览器里输入 &lt;abbr title=&quot;换成自己的IP地址&quot;&gt;http://10.0.0.1&lt;/abbr&gt;:9091 ，登录后就能看到下面的界面了。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-Ow6GTrt3_Xo/Tn6g3CQKKKI/AAAAAAAAJPU/HPbzTKFlaxE/s1600/transmission-cli-webui-2011-9-25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-Ow6GTrt3_Xo/Tn6g3CQKKKI/AAAAAAAAJPU/HPbzTKFlaxE/s400/transmission-cli-webui-2011-9-25.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;下面是Webui的一些截图&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-qh11Weov3VI/Tn6hYiHZy0I/AAAAAAAAJPc/ghvz4h2-qAk/s1600/transmission-cli-webui-configure-01-2011-9-25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;154&quot; width=&quot;200&quot; src=&quot;http://4.bp.blogspot.com/-qh11Weov3VI/Tn6hYiHZy0I/AAAAAAAAJPc/ghvz4h2-qAk/s200/transmission-cli-webui-configure-01-2011-9-25.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-VhN3UyiqPBo/Tn6hY0qDeZI/AAAAAAAAJPk/3VtWQkiW1ZY/s1600/transmission-cli-webui-configure-02-2011-9-25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;154&quot; width=&quot;200&quot; src=&quot;http://3.bp.blogspot.com/-VhN3UyiqPBo/Tn6hY0qDeZI/AAAAAAAAJPk/3VtWQkiW1ZY/s200/transmission-cli-webui-configure-02-2011-9-25.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-_aQlBxVTmrU/Tn6hYz9mErI/AAAAAAAAJPs/mNcoBZywVs4/s1600/transmission-cli-webui-configure-03-2011-9-25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;154&quot; width=&quot;200&quot; src=&quot;http://2.bp.blogspot.com/-_aQlBxVTmrU/Tn6hYz9mErI/AAAAAAAAJPs/mNcoBZywVs4/s200/transmission-cli-webui-configure-03-2011-9-25.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;Transmission-remote-dotnet访问&lt;/h2&gt;&lt;p&gt;Transmission-remote-dotnet是一个Windows下远程控制Transmission的客户端程序。&lt;/p&gt;&lt;p&gt;首先到&lt;a href=&quot;http://code.google.com/p/transmission-remote-dotnet/&quot; rel=&quot;nofollow&quot;&gt;项目主页&lt;/a&gt;里下载最新版的Transmission-remote-dotnet，安装后运行。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-06psYVOMRV0/Tn6jqKAZklI/AAAAAAAAJP0/yoixoYAlA5w/s1600/transmission-remote-dotnet-01-2011-9-25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;251&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-06psYVOMRV0/Tn6jqKAZklI/AAAAAAAAJP0/yoixoYAlA5w/s400/transmission-remote-dotnet-01-2011-9-25.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;在“本地设置”里添加 10.0.0.1:9091 并设置验证&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-2_MPPPezQ4o/Tn6kAk5GGDI/AAAAAAAAJP8/9s-WgJliG7E/s1600/transmission-remote-dotnet-02-2011-9-25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; width=&quot;200&quot; src=&quot;http://1.bp.blogspot.com/-2_MPPPezQ4o/Tn6kAk5GGDI/AAAAAAAAJP8/9s-WgJliG7E/s200/transmission-remote-dotnet-02-2011-9-25.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-noYa619G8GY/Tn6kA84uXjI/AAAAAAAAJQE/cTkqINZCIDk/s1600/transmission-remote-dotnet-03-2011-9-25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; width=&quot;200&quot; src=&quot;http://2.bp.blogspot.com/-noYa619G8GY/Tn6kA84uXjI/AAAAAAAAJQE/cTkqINZCIDk/s200/transmission-remote-dotnet-03-2011-9-25.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;然后点菜单里的“连接”，即可连接到远程的Transmission-cli。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-pbjXWshri70/Tn6lsRv8cmI/AAAAAAAAJQM/UqqA3ig3zb4/s1600/transmission-remote-dotnet-04-2011-9-25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-pbjXWshri70/Tn6lsRv8cmI/AAAAAAAAJQM/UqqA3ig3zb4/s400/transmission-remote-dotnet-04-2011-9-25.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;更多的Transmission-remote-dotnet截图可以访问&lt;a href=&quot;http://code.google.com/p/transmission-remote-dotnet/wiki/Screenshots&quot; rel=&quot;nofollow&quot;&gt;项目主页里的介绍&lt;/a&gt;。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;全文完&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/610933505275416161/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/09/transmission-cliwebui.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/610933505275416161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/610933505275416161'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/09/transmission-cliwebui.html' title='配置Transmission-cli和WebUI访问'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-Ow6GTrt3_Xo/Tn6g3CQKKKI/AAAAAAAAJPU/HPbzTKFlaxE/s72-c/transmission-cli-webui-2011-9-25.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-4065007732604175644</id><published>2011-09-22T23:51:00.000+08:00</published><updated>2011-09-22T23:51:46.029+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="dnsmasq"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="PXE"/><category scheme="http://www.blogger.com/atom/ns#" term="TFTP"/><title type='text'>搭建Debian的网络引导安装环境（PXE+TFTP）</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;前言&lt;/h2&gt;&lt;p&gt;因为最近要为家里一台没有光驱、没有任何操作系统（新硬盘）、不支持USB启动的机器上安装Debian，还好这破主板的集成网卡支持PXE启动，于是便准备用PXE+TFTP来引导安装。维基百科上的&lt;a href=&quot;http://zh.wikipedia.org/wiki/TFTP&quot; rel=&quot;nofollow&quot;&gt;TFTP&lt;/a&gt;和&lt;a href=&quot;http://zh.wikipedia.org/wiki/PXE&quot; rel=&quot;nofollow&quot;&gt;PXE&lt;/a&gt;解析。&lt;/p&gt;&lt;p&gt;注意:要实现TFTP，需要网内必须有一台能工作的DHCP服务器，而且该DHCP服务器必须支持TFTP协议。&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;TFTP&lt;/h2&gt;&lt;p&gt;我是使用我&lt;a href=&quot;http://imoe.tk/2011/09/home-server.html&quot;&gt;家里的Home Server&lt;/a&gt;里的Dnsmasq来实现的，可以通过运行 &lt;code&gt;dnsmasq -v&lt;/code&gt; 命令来查看你的Dnsmasq是不是支持TFTP，留意下图红色方框部分。（话说Dnsmasq真是个好东东，更多的Dnsmasq使用方法可以看看我的另一篇文章《&lt;a href=&quot;http://imoe.tk/2011/09/home-server_16.html&quot;&gt;我的Home Server（第二部分）&lt;/a&gt;》）&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-mIH9W0Q7yNE/TntPQEG9MlI/AAAAAAAAJO0/eKWIY22N_cQ/s1600/dnsmasq-version-2011-9-22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-mIH9W0Q7yNE/TntPQEG9MlI/AAAAAAAAJO0/eKWIY22N_cQ/s400/dnsmasq-version-2011-9-22.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;确认支持TFTP后，先新建TFTP的配置文件并填写下面的内容：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# vi /etc/dnsmasq.d/tftp.conf&lt;br /&gt;&lt;blockquote&gt;enable-tftp&lt;br /&gt;tftp-root=/opt/tftpboot&lt;br /&gt;dhcp-boot=pxelinux.0,boothost,10.0.0.1&lt;/blockquote&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;解析一下 tftp.conf 里的一些设置：&lt;/p&gt;&lt;ul&gt;&lt;li&gt;enable-tftp&lt;br /&gt;&lt;blockquote&gt;打开Dnsmasq内置的TFTP支持&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;tftp-root=/opt/tftpboot&lt;br /&gt;&lt;blockquote&gt;设置TFTP文件的存放位置&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;dhcp-boot=pxelinux.0,boothost,10.0.0.1&lt;br /&gt;&lt;blockquote&gt;设置启动文件，格式为 syslinux启动文件名,,tftp服务器IP地址&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;然后从自己喜欢的Debian源里下载 netboot.tar.gz 文件（&lt;a href=&quot;http://mirrors.163.com/debian/dists/stable/main/installer-i386/current/images/netboot/netboot.tar.gz&quot;&gt;例如这个地址&lt;/a&gt;），把里面的所有文件解压到上面设置的TFTP存放位置里，例如本例子是：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# tar xzvf netboot.tar.gz -C /opt/tftpboot&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;文件都准备完成了，现在是时候启动Dnsmasq了&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# /etc/init.d/dnsmasq start&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;至此，TFTP服务器准备完成。不过有一点必须注意：如果你是自己写的Dnsmasq启动脚本，必须确保启动Dnsmasq的用户对TFTP的文件有读权限。&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;PXE引导安装Debian&lt;/h2&gt;&lt;p&gt;把需要安装Debian的机器接上网线，确保网络没问题后，在机器的BIOS里设置由网络启动，等待加载后，你将会看到下面的安装界面了，接着按照向导安装即可。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-gLla8HQd62A/TntWZh3FWdI/AAAAAAAAJO8/0xp9rEMxRVU/s1600/starting-debian-install-guide-2011-9-22.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-gLla8HQd62A/TntWZh3FWdI/AAAAAAAAJO8/0xp9rEMxRVU/s400/starting-debian-install-guide-2011-9-22.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;注意：在一些奇怪的主板上，可能需要用到安装向导里的 Advanced Options &gt; Expert install 来安装，例如我这块破主板，不然会卡在上图的界面没有响应。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;全文完&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/4065007732604175644/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/09/debianpxetftp.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4065007732604175644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4065007732604175644'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/09/debianpxetftp.html' title='搭建Debian的网络引导安装环境（PXE+TFTP）'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-mIH9W0Q7yNE/TntPQEG9MlI/AAAAAAAAJO0/eKWIY22N_cQ/s72-c/dnsmasq-version-2011-9-22.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-1634249645408450389</id><published>2011-09-16T17:30:00.001+08:00</published><updated>2011-09-28T00:23:29.364+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="DHCP"/><category scheme="http://www.blogger.com/atom/ns#" term="DNS"/><category scheme="http://www.blogger.com/atom/ns#" term="dnsmasq"/><category scheme="http://www.blogger.com/atom/ns#" term="Home Server"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><title type='text'>我的Home Server（第二部分）</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;DHCP &amp; DNS&lt;/h2&gt;&lt;p&gt;这部分我是使用Dnsmasq来实现，如果你刷过&lt;a href=&quot;http://zh.wikipedia.org/wiki/DD-WRT&quot; rel=&quot;nofollow&quot;&gt;DD-WRT&lt;/a&gt;或&lt;a href=&quot;http://zh.wikipedia.org/wiki/Tomato&quot; rel=&quot;nofollow&quot;&gt;Tomato&lt;/a&gt;这些路由器固件的话应该对Dnsmasq不陌生。首先是安装Dnsmasq：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# aptitude install dnsmasq&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;为了日后维护方便，推荐在 /etc/dnsmasq.d/ 目录下新建一些配置文件，比如针对DNS部分的 dns.conf，针对DHCP的 dhcp.conf。（这些文件名只是举例而已，你可以取任何喜欢的文件名。）&lt;/p&gt;&lt;p&gt;首先是DNS的配置文件&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# vi /etc/dnsmasq.d/dns.conf&lt;br /&gt;&lt;blockquote&gt;## DNS缓存&lt;br /&gt;resolv-file=/etc/resolv_dnsmasq.conf&lt;br /&gt;&lt;br /&gt;## 对域名指定DNS服务器&lt;br /&gt;server=/twitter.com/8.8.4.4&lt;br /&gt;server=/facebook.com/8.8.4.4&lt;br /&gt;&lt;br /&gt;## 域名泛解析&lt;br /&gt;address=/google.com/10.0.0.130&lt;br /&gt;address=/ggpht.com/10.0.0.130&lt;/blockquote&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;解析一下 dns.conf 里的一些设置：&lt;/p&gt;&lt;ul&gt;&lt;li&gt;DNS缓存&lt;br /&gt;&lt;blockquote&gt;顾名思义就是将DNS查询的结果在本地做缓存，等下次再查询该域名时可以直接返回本地缓存的结果以加快解析速度（&lt;a href=&quot;http://zh.wikipedia.org/wiki/Dns#.E6.9F.A5.E8.AF.A2.E6.96.B9.E5.BC.8F&quot; rel=&quot;nofollow&quot;&gt;这里有一个例子说明&lt;/a&gt;）。要实现这个功能首先要新建 /etc/resolv_dnsmasq.conf 这个配置文件，然后在里面填上常用的DNS服务器，例如：&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;# vi /etc/resolv_dnsmasq.conf&lt;br /&gt;&lt;blockquote&gt;nameserver 8.8.4.4&lt;br /&gt;nameserver 208.67.222.222&lt;/blockquote&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;对域名指定DNS服务器&lt;br /&gt;&lt;blockquote&gt;因为一些&lt;b&gt;奇怪的问题&lt;/b&gt;，我是不会使用国内的DNS服务器的，而是使用国外的DNS服务器，这时一些国内的网站解析出来的IP地址可能是国外的地址，这样就造成了访问速度降低（我用国内的IP去访问这个网站的国外IP）。这种情况确实存在，例如国内某个&lt;i&gt;渣雷看看&lt;/i&gt;。为了避免这种情况，可以在Dnsmasq里为特定的域名设置一个特定的DNS服务器来解析。配置的格式是：&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;server=/网站域名/DNS服务器地址&lt;/code&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;域名泛解析&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;这个泛解析可以实现的功能可多了，例如例子里对 google.com 解析为 10.0.0.130，这时我无论是查询 www.google.com、还是 mail.google.com，都会返回10.0.0.130这个地址，&lt;b&gt;在某些情况下可是很有用的&lt;/b&gt;。配置的格式是：&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;address=/网站域名/指定的IP地址&lt;/code&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;下面是DHCP的配置文件&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# vi /etc/dnsmasq.d/dhcp.conf&lt;br /&gt;&lt;blockquote&gt;# 监听固定的网卡端口&lt;br /&gt;interface=eth0&lt;br /&gt;bind-interfaces&lt;br /&gt;&lt;br /&gt;# IP分配&lt;br /&gt;dhcp-range=10.0.0.100,10.0.0.120,24h    # IP分配范围和租约时长&lt;br /&gt;dhcp-option=3,10.0.0.1                  # 分配的网关&lt;br /&gt;dhcp-option=6,10.0.0.1                  # 分配的DNS&lt;br /&gt;&lt;br /&gt;# 固定主机&lt;br /&gt;dhcp-host=00:11:22:33:44:55,10.0.0.10   # 为某MAC地址分配固定的IP地址&lt;br /&gt;dhcp-host=00:66:77:88:99:aa,10.0.0.20&lt;/blockquote&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;解析一下 dhcp.conf 里的一些设置：&lt;/p&gt;&lt;ul&gt;&lt;li&gt;监听固定的网卡端口&lt;br /&gt;&lt;blockquote&gt;顾名思义，就是只回应 eth0 网卡接收到的 dhcp 和 dns 请求。&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;IP分配&lt;br /&gt;&lt;blockquote&gt;这里是配置分配的IP地址范围、网关、DNS和租约时长。配置的格式是：&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;dhcp-range=起始IP地址,结束IP地址,租约时长&lt;br /&gt;dhcp-option=3,网关IP地址&lt;br /&gt;dhcp-option=6,DNS服务器IP地址&lt;/code&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;固定主机&lt;br /&gt;&lt;blockquote&gt;为固定的MAC地址分配固定的IP地址，可以方便日后管理。配置的格式是：&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;dhcp-host=MAC地址,IP地址&lt;/code&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;最后运行下面命令重启Dnsmasq服务即可生效。&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# /etc/init.d/dnsmasq restart&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;p&gt;第二部分完&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;相关文章&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://imoe.tk/2011/09/home-server.html&quot;&gt;我的Home Server（第一部分）&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imoe.tk/2011/09/home-server_28.html&quot;&gt;我的Home Server（第三部分）&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/1634249645408450389/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/09/home-server_16.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/1634249645408450389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/1634249645408450389'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/09/home-server_16.html' title='我的Home Server（第二部分）'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-6680068903767917972</id><published>2011-09-14T14:13:00.002+08:00</published><updated>2011-09-28T00:22:51.491+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADSL"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="Home Server"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><title type='text'>我的Home Server（第一部分）</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;前言&lt;/h2&gt;&lt;p&gt;Home Server，顾名思义，就是一台负责为家里的局域网内所有终端提供各种服务的电脑。&lt;/p&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;我要求Home Server必须具有的功能&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;ADSL拨号与共享&lt;/li&gt;&lt;li&gt;DHCP &amp; DNS&lt;/li&gt;&lt;li&gt;P2P文件共享&lt;/li&gt;&lt;li&gt;文件服务器&lt;/li&gt;&lt;li&gt;UPnP&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;系统方面我选择Debian stable，毕竟稳定是第一前提。╮(￣▽￣)╭&lt;/p&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;网络环境&lt;/h3&gt;&lt;p&gt;Home Server主机有两个网卡，eth0接家里的局域网交换机，eth1接ADSL modem。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-cg3KoS7B3xw/TnAzr6bXvXI/AAAAAAAAJOE/prhF61S0KC8/s1600/home-network-%25E7%25BD%2591%25E7%25BB%259C%25E6%258B%2593%25E6%2589%2591%25E5%259B%25BE.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;286&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-cg3KoS7B3xw/TnAzr6bXvXI/AAAAAAAAJOE/prhF61S0KC8/s400/home-network-%25E7%25BD%2591%25E7%25BB%259C%25E6%258B%2593%25E6%2589%2591%25E5%259B%25BE.png&quot; /&gt;&lt;/a&gt;&lt;p&gt;网络拓扑图&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;Debian的安装&lt;/h2&gt;&lt;p&gt;从自己喜欢的源里下载 netboot.tar.gz 文件（例如&lt;a href=&quot;http://mirrors.163.com/debian/dists/stable/main/installer-i386/current/images/netboot/netboot.tar.gz&quot;&gt;这个地址&lt;/a&gt;），解压后得到 linux 和 initrd.gz 两个文件，然后在引导管理器（我使用Grub4Dos）里添加：&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;title Debian Install i386&lt;br /&gt;	find --set-root /linux&lt;br /&gt;	kernel /linux&lt;br /&gt;	initrd /initrd.gz&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;即可硬盘（U盘）安装Debian stable了（这是网络安装，需要网络支持）。具体的安装过程就不写了，Google可以搜索到一大把。&lt;/p&gt;&lt;p&gt;安装完Debian后，先安装一些必须的软件包：&lt;/p&gt;&lt;code&gt;&lt;ul&gt;&lt;li&gt;SSH&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# aptitude install openssh-server&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;screen&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# aptitude install screen&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;vim&lt;br /&gt;&lt;ul&gt;&lt;li&gt;# aptitude install vim&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/code&gt;&lt;br /&gt;&lt;p&gt;然后对Debian进行配置&lt;/p&gt;&lt;code&gt;&lt;ul&gt;&lt;li&gt;# vi /etc/network/interfaces（网卡的IP地址）&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;allow-hotplug eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt;  address 10.0.0.1&lt;br /&gt;  netmask 255.255.255.0&lt;br /&gt;  broadcast 10.0.0.255&lt;br /&gt;&lt;br /&gt;allow-hotplug eth1&lt;br /&gt;iface eth1 inet manual&lt;/code&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;# dpkg-reconfigure locales（系统locale）&lt;/li&gt;&lt;/ul&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;ADSL拨号与共享&lt;/h2&gt;&lt;p&gt;首先安装pppoeconf软件包&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# aptitude install pppoeconf&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;然后配置pppoeconf，运行下面的命令然后根据向导配置即可，向导最后会询问是否开机自动拨号，根据需要选择吧，也可以到 /etc/network/interfaces 下修改。&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# pppoeconf&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;如果需要共享ADSL链接给局域网内的机器，需要打开ipv4的地址转发功能&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# vi /etc/sysctl.conf&lt;br /&gt;&lt;blockquote&gt;net.ipv4.ip_forward=1（把这句话前的#号去掉）&lt;/blockquote&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;添加一条iptables规则&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;# iptables -t nat -A POSTROUTING -s &lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;10.0.0.0/24&lt;/span&gt; -o ppp0 -j MASQUERADE（注意红字部分为我的局域网IP段）&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;然后在局域网其他电脑里设置网关为10.0.0.1，然后再填一个DNS地址即可上网了（当然，还是推荐用DHCP分配）。&lt;/p&gt;&lt;br /&gt;&lt;p&gt;第一部分完&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;相关文章&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://imoe.tk/2011/09/home-server_16.html&quot;&gt;我的Home Server（第二部分）&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://imoe.tk/2011/09/home-server_28.html&quot;&gt;我的Home Server（第三部分）&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/6680068903767917972/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/09/home-server.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/6680068903767917972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/6680068903767917972'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/09/home-server.html' title='我的Home Server（第一部分）'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-cg3KoS7B3xw/TnAzr6bXvXI/AAAAAAAAJOE/prhF61S0KC8/s72-c/home-network-%25E7%25BD%2591%25E7%25BB%259C%25E6%258B%2593%25E6%2589%2591%25E5%259B%25BE.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-7894430461373127729</id><published>2011-08-11T19:26:00.000+08:00</published><updated>2011-08-11T19:26:29.959+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iSCSI"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>Debian上的iSCSI target配置</title><content type='html'>&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;前言&lt;/h2&gt;&lt;p&gt;其实我一直有个想法，在自己家的局域网里建一个文件服务器/Fire Server，把所有的相片、视频和音乐都放在这个文件服务器上，从而无需考虑每台PC之间同步等问题。而iSCSI就是实现这个目的的方法之一。（&lt;a href=&quot;http://en.wikipedia.org/wiki/ISCSI&quot;&gt;维基百科上的iSCSI介绍&lt;/a&gt;）&lt;/p&gt;&lt;p&gt;&lt;b&gt;虽然iSCSI看上去好像很完美，不过我最后还是放弃了这个方法，文章尾部我有写原因，写本文的目的也只是把配置的过程记录下来而已。&lt;/b&gt;&lt;/p&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;测试环境&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;OS：&lt;ul&gt;&lt;li&gt;Debian 6.0.2 i686（iSCSI target）&lt;/li&gt;&lt;li&gt;Archlinux i686（iSCSI initiator）&lt;/li&gt;&lt;li&gt;Windows 7 Home Premium sp1 x86（iSCSI initiator）&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;iscsitarget 1.4.20.2-1&lt;/li&gt;&lt;li&gt;open-iscsi 2.0.871.3-1&lt;/li&gt;&lt;li&gt;IP地址 &lt;ul&gt;&lt;li&gt;iSCSI target：10.0.0.32/24&lt;/li&gt;&lt;li&gt;iSCSI initiator：10.0.0.0/24&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;名词解释&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;iSCSI target：iSCSI的server，也就是提供存储空间的服务器端，本文使用 /dev/sdb 作为例子（Ext4文件系统）。&lt;/li&gt;&lt;li&gt;iSCSI initiator：iSCSI的client。&lt;/li&gt;&lt;/ul&gt; &lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;在Debian上安装iSCSI target&lt;/h2&gt;&lt;p&gt;安装必须的软件包&lt;/p&gt;&lt;blockquote&gt;# aptitude install iscsitarget iscsitarget-dkms&lt;/blockquote&gt;&lt;p&gt;加载内核模块&lt;/p&gt;&lt;blockquote&gt;# modprobe iscsi_trgt&lt;/blockquote&gt;&lt;p&gt;编辑 &lt;i&gt;/etc/default/iscsitarget&lt;/i&gt; 文件，改为下面内容，注意红色的部分。&lt;/p&gt;&lt;blockquote&gt;ISCSITARGET_ENABLE=&lt;span style=&quot;color: red;&quot;&gt;true&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;编辑 &lt;i&gt;/etc/iet/ietd.conf&lt;/i&gt; 文件，增加下面的内容。&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash shell&quot;&gt;Target iqn.2001-04.local.kaysiness:storage.disk2.sys1.xyz&lt;br /&gt;    Lun 0 Path=/dev/sdb,Type=fileio,ScsiId=xyz,ScsiSN=xyz&lt;br /&gt;    MaxConnections 1&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;编辑 &lt;i&gt;/etc/iet/initiators.allow&lt;/i&gt; 文件，增加下面的内容，&lt;b&gt;红色部分为允许访问的网段&lt;/b&gt;，改为自己需要的。&lt;/p&gt;&lt;blockquote&gt;iqn.2001-04.local.kaysiness:storage.disk2.sys1.xyz &lt;span style=&quot;color: red;&quot;&gt;10.0.0.0/24&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;启动iSCSI target&lt;/p&gt;&lt;blockquote&gt;# /etc/init.d/iscsitarget start&lt;/blockquote&gt; &lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;连接到iSCSI target（iSCSI initiator）&lt;/h2&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;Archlinux&lt;/h3&gt;&lt;p&gt;安装必须的软件包&lt;/p&gt;&lt;blockquote&gt;# yaourt -S open-iscsi&lt;/blockquote&gt;&lt;p&gt;加载内核模块&lt;/p&gt;&lt;blockquote&gt;# modprobe crc32c&lt;/blockquote&gt;&lt;p&gt;编辑 &lt;i&gt;/etc/conf.d/open-iscsi&lt;/i&gt; 文件，在SERVER栏填上你的iSCSI target的IP地址，例如我的是10.0.0.32。&lt;/p&gt;&lt;blockquote&gt;SERVER=&quot;10.0.0.32&quot;&lt;/blockquote&gt;&lt;p&gt;启动open-iscsi&lt;/p&gt;&lt;blockquote&gt;# /etc/rc.d/open-iscsi start&lt;/blockquote&gt;&lt;p&gt;连接到iSCSI target&lt;/p&gt;&lt;blockquote&gt;# iscsiadm -m discovery -t st -p 10.0.0.32 -P 1&lt;br /&gt;# iscsiadm -m node -T iqn.2001-04.local.kaysiness:storage.disk2.sys1.xyz -l&lt;br /&gt;# fdisk -l&lt;/blockquote&gt;&lt;p&gt;这时将会多出一个/dev/sdb的磁盘（每台PC得出的结果都有可能不相同），之后需要做的事情就是挂载它。&lt;/p&gt;&lt;blockquote&gt;# mount /dev/sdb1 /media/iscsi&lt;/blockquote&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-RRAV2VIkQSs/TkO4K8X70sI/AAAAAAAAI44/PR383q02uRQ/s1600/iscsi-on-archlinux-2011-8-11.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/-RRAV2VIkQSs/TkO4K8X70sI/AAAAAAAAI44/PR383q02uRQ/s400/iscsi-on-archlinux-2011-8-11.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;Windows&lt;/h3&gt;&lt;p&gt;比较悲剧，因为Windows不能直接读取Ext4文件系统的内容，即使找到Debian上的iSCSI target也不能做任何操作，要想使用的话只有两种方法：&lt;/p&gt;&lt;ol&gt;&lt;li&gt;将iSCSI target的文件系统从Ext4换成NTFS&lt;/li&gt;&lt;li&gt;使用CIFS/smb来共享Ext4文件系统上的内容&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;第一种方法虽然可行，但稳定性大打折扣。例如多个不同的iscsi client访问文件时，网上的说法是要么出现读取错误，要么根本就看不到其他iscsi client创建的文件（想想为什么用Windows自带的远程桌面时，每次远程登陆都需要注销当前用户），所以不推荐第一种方法。&lt;/p&gt;&lt;p&gt;第二种方法，既然都使用到CIFS/smb这些网络传输协议了，那还用iSCSI干嘛(-_-#)，何不直接用CIFS/smb共享出去算了。&lt;/p&gt;&lt;p&gt;对于我这种既有Windows也有Linux的情况下，基本上可以放弃iSCSI了。&lt;/p&gt; &lt;p&gt;全文完&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/7894430461373127729/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/08/debianiscsi-target.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/7894430461373127729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/7894430461373127729'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/08/debianiscsi-target.html' title='Debian上的iSCSI target配置'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-RRAV2VIkQSs/TkO4K8X70sI/AAAAAAAAI44/PR383q02uRQ/s72-c/iscsi-on-archlinux-2011-8-11.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-8723357932711901589</id><published>2011-08-05T09:35:00.000+08:00</published><updated>2011-08-05T09:35:20.545+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CJK"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Music"/><category scheme="http://www.blogger.com/atom/ns#" term="tag"/><title type='text'>解决Google Music里的标签乱码问题</title><content type='html'>&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;前言&lt;/h2&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;一些说明&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Google Music：这里&lt;b&gt;并不是&lt;/b&gt;指&lt;a href=&quot;http://www.google.cn/music&quot;&gt;谷歌音乐搜索&lt;/a&gt;（www.google.cn/music），而是2011年5月10日发布的&lt;a href=&quot;http://music.google.com&quot;&gt;Music Beta by Google&lt;/a&gt;（music.google.com），&lt;b&gt;下文的Google Music都是指后者&lt;/b&gt;。&lt;/li&gt;&lt;li&gt;下文所示范的音乐都是后缀为mp3的音频文件，&lt;b&gt;并且所有音频信息（如：专辑名、作曲家等）都是内嵌在音频文件中而非外挂cue方式&lt;/b&gt;。&lt;/li&gt;&lt;li&gt;CJK：中文（Chinese）、日文（Japanese）和韩文（Korean）的首字母简称。&lt;/li&gt;&lt;li&gt;ID3：mp3文件标签编码的其中一种，有v1、v2.3、v2.4等多个版本。&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;注意：&lt;/b&gt;目前因为Google Music会自动将flac无损音频格式转换成320kbps的mp3（&lt;a href=&quot;http://www.google.com/support/music/bin/answer.py?hl=en&amp;answer=1100462&amp;topic=1234609&quot;&gt;via&lt;/a&gt;），所以没必要上传巨大的无损音频文件了，转换成mp3再上传吧。&lt;/p&gt;&lt;p&gt;下图为测试用的两首音乐，一首是ID3v1编码，另一首是ID3v2.3 UTF-16编码。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-oI8qeLzImBY/TjfWj7C8ldI/AAAAAAAAInI/OJFzIKhekqU/s1600/mp3tag-screenshots-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;273&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-oI8qeLzImBY/TjfWj7C8ldI/AAAAAAAAInI/OJFzIKhekqU/s400/mp3tag-screenshots-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;乱码的由来&lt;/h2&gt;&lt;p&gt;开始把上面的那两首歌上传到Google Music。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-mdID85rdxk0/TjerzOw4VnI/AAAAAAAAImY/jPPWlh3Ev6I/s1600/google-music-manager-upload-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-mdID85rdxk0/TjerzOw4VnI/AAAAAAAAImY/jPPWlh3Ev6I/s400/google-music-manager-upload-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-6IcjIKtey6k/TjerzWUqTWI/AAAAAAAAImg/qlmkOGiqEjo/s1600/google-music-web-screenshots-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;176&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-6IcjIKtey6k/TjerzWUqTWI/AAAAAAAAImg/qlmkOGiqEjo/s400/google-music-web-screenshots-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;虽然ID3v1标签的mp3在某些播放器（泛指PC端播放软件和手持设备）里能显示中文，但ID3v1并不是真正支持中文，因为ID3v1默认是用ISO-8859-1编码的，然而ID3（包括ID3v1和ID3v2）并不强制按照要求用指定的编码来写标签，所以只要你喜欢，你仍然可以用GBK/Big5等非标准的编码来写标签，当一个播放器用默认的ISO-8859-1编码来读取那些按GBK/Big5编码写入的ID3v1标签时，就会遇到乱码。一些“聪明”的播放器自己会猜这些标签的编码类型，如果猜对了（GBK, Big5,…）就能正确显示，不然也是乱码，这就是为什么总是有人问为什么某某播放器会显示乱码的原因，其实错不在那些播放器上。&lt;/p&gt;&lt;p&gt;从上面可以得知：&lt;/p&gt;&lt;ol&gt;&lt;li&gt;ID3并没有强制只能使用默认的编码&lt;/li&gt;&lt;li&gt;要防止乱码出现，必须按照ID3默认的编码方式来写入标签&lt;/li&gt;&lt;/ol&gt;所以，想要真真正正完完全全彻彻底底的杜绝mp3乱码问题，我个人建议使用ID3v2.3 UTF-16的编码方式，虽然ID3v2.4 UTF-8和APEv2也可以，但前者的兼容性目前明显比后两者要高，详细的可以参考另一篇文章《&lt;a href=&quot;http://imoe.tk/2011/07/mp3cjk.html&quot;&gt;关于mp3文件CJK标签编码的问题&lt;/a&gt;》。&lt;br /&gt;&lt;p&gt;&lt;b&gt;注意&lt;/b&gt;：ISO-8859-1编码并不包含CJK支持，所以ID3v1和ID3v2.3 ISO-8859-1都不能正常显示CJK字符。（&lt;a href=&quot;http://zh.wikipedia.org/wiki/ISO-8859-1&quot;&gt;via&lt;/a&gt;）&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;解决乱码问题&lt;/h2&gt;&lt;p&gt;如果还没开始玩Google Music，那么建议先将自己想上传的所有mp3都转换成ID3v2.3 UTF-16的编码吧。&lt;/p&gt;&lt;p&gt;下面说说如何重新上传改好标签编码后的mp3。因为如果一首mp3已经上传过了，然后又在本地改了这首mp3的标签，这时Music Manager是&lt;b&gt;不会自动重新上传的&lt;/b&gt;（至少 v1.0.13.4485的Windows版不会），&lt;b&gt;即使将Google Music端所以乱码的音乐都删除，Music Manager仍然不会上传改动后的mp3文件。&lt;/b&gt;个人觉得以后的版本会改掉这个问题的，或许你使用时已经没有这种烦恼了 ＼(^ω^＼)&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-dtpJqut3gtY/Tje6JRGmyqI/AAAAAAAAImo/UMDvHrZhIac/s1600/google-music-manager-sync-problem-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;204&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-dtpJqut3gtY/Tje6JRGmyqI/AAAAAAAAImo/UMDvHrZhIac/s400/google-music-manager-sync-problem-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;为了能重新上传，这时只能先暂时改变Music Manager监视的目录，比如改成监视My Music folder文件夹（里面最好没有任何音频文件），点Apply。然后再改回原来的目录，这时Music Manager能正常的上传改动后的mp3了。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-uN6nS-kwHuk/Tje-sFAo_fI/AAAAAAAAImw/lgMtNGQcvg0/s1600/google-music-manager-upload-02-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-uN6nS-kwHuk/Tje-sFAo_fI/AAAAAAAAImw/lgMtNGQcvg0/s400/google-music-manager-upload-02-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-Yra6S3vufXs/Tje_Bv6nHTI/AAAAAAAAIm4/-bJBQ1o2G6g/s1600/google-music-web-screenshots-fix-tags-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-Yra6S3vufXs/Tje_Bv6nHTI/AAAAAAAAIm4/-bJBQ1o2G6g/s400/google-music-web-screenshots-fix-tags-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;截图&lt;/h2&gt;&lt;p&gt;最后上一张我的Google Music截图&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/--3X-quROn_8/TjfKTyFMn7I/AAAAAAAAInA/ET7BzWltnKs/s1600/google-music-web-2011-8-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/--3X-quROn_8/TjfKTyFMn7I/AAAAAAAAInA/ET7BzWltnKs/s400/google-music-web-2011-8-2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/8723357932711901589/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/08/google-music.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/8723357932711901589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/8723357932711901589'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/08/google-music.html' title='解决Google Music里的标签乱码问题'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-oI8qeLzImBY/TjfWj7C8ldI/AAAAAAAAInI/OJFzIKhekqU/s72-c/mp3tag-screenshots-2011-7-31.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-4168761321705190800</id><published>2011-07-31T23:13:00.002+08:00</published><updated>2011-08-05T18:40:51.857+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CJK"/><category scheme="http://www.blogger.com/atom/ns#" term="Foobar"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="tag"/><title type='text'>关于mp3文件CJK标签编码的问题</title><content type='html'>&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;前言&lt;/h2&gt;&lt;p&gt;mp3音轨文件正确显示CJK（中日韩）标签一直是个老问题，下面说说我对CJK标签编码问题的一些看法。&lt;/p&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;试验环境&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Windows 7 32bit&lt;/li&gt;&lt;li&gt;Foobar v1.1.7&lt;/li&gt;&lt;li&gt;Mp3tag v2.45a&lt;/li&gt;&lt;li&gt;iTunes 10.4.0.80&lt;/li&gt;&lt;li&gt;Amarok 2.4.1&lt;/li&gt;&lt;li&gt;mp3文件若干个&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;修订记录&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;2011-8-5 17:51&lt;br /&gt;&lt;ul&gt;&lt;li&gt;新增内容：截图。添加了Google Music、Foobar2000、Android 2.1下的CJK标签截图。&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;mp3文件的标签编码格式&lt;/h2&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;ID3&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;ID3v1&lt;br /&gt;&lt;p style=&quot;text-indent:2em;&quot;&gt;因为ID3v1&lt;b&gt;只能&lt;/b&gt;用ISO-8859-1编码，严格来说它是不支持中文的（但你仍然可以储存GB2312/GBK/GB18030编码的中文信息），而一些播放器和手持设备默认是用ISO-8859-1来读取ID3v1标签的，所以会遇到乱码的问题。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;ID3v2&lt;br /&gt;&lt;p style=&quot;text-indent:2em;&quot;&gt;ID3v2又分为ID3v2.2、ID3v2.3、ID3v2.4三个版本（据说还有一个ID3v2.1，但找不到相关的资料），编码方式有ISO-8859-1、UTF-16和UTF-8&lt;/p&gt;&lt;ul&gt;&lt;li&gt;ID3v2.2 UTF-16LE：iTunes默认使用该编码&lt;/li&gt;&lt;li&gt;ID3v2.3 UTF-16BE：Windows Media Player默认使用该编码&lt;/li&gt;&lt;li&gt;ID3v2.3 ISO-8859-1：和ID3v1一样&lt;/li&gt;&lt;li&gt;ID3v2.4 UTF-8：2.3的升级版。iTunes支持，但Windows全系列&lt;b&gt;不支持&lt;/b&gt;（包括Windows 7）&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;APEv2&lt;/h3&gt;&lt;p style=&quot;text-indent:2em;&quot;&gt;因为和ID3v2.4一样，也是使用UTF-8编码，但Windows全系列都不支持，相对于ID3v2.3没有优势。&lt;/p&gt;&lt;br /&gt;&lt;span style=&quot;color: #f00; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;最后的选择&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;ID3v2.3 UTF-16&lt;/b&gt;。这样Windows、iTunes、Amarok和手持设备都不会出现乱码。&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;批量把mp3文件修改成ID3v2.3标签编码格式&lt;/h2&gt;&lt;p&gt;可以批量修改标签编码格式的软件我只知道有Foobar2000和Mp3tag两款，没有使用过Linux下的工具，不清楚。&lt;/p&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;Foobar2000&lt;/h3&gt;&lt;p&gt;一、按 &lt;i&gt;Ctrl+P&lt;/i&gt; 打开选项，然后按照图一设置&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-NxtU744vPOE/TjVYR-rzVnI/AAAAAAAAIlY/2bwPiUI_KUQ/s1600/foobar-setting-tag-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;289&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-NxtU744vPOE/TjVYR-rzVnI/AAAAAAAAIlY/2bwPiUI_KUQ/s400/foobar-setting-tag-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;p&gt;↑ 图一&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;二、由于新版的Foobar2000（v1.1.7）在右键菜单里隐藏了Rewrite file tags命令，所以需要先为这个命令设置一个快捷键&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-Z288exWuN9o/TjVaOGwYHSI/AAAAAAAAIlg/6tKlhz_H2dE/s1600/foobar-setting-key-shortcuts-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;290&quot; width=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/-Z288exWuN9o/TjVaOGwYHSI/AAAAAAAAIlg/6tKlhz_H2dE/s400/foobar-setting-key-shortcuts-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;p&gt;↑ 图二&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;三、然后去到播放列表里，将所以需要转换的mp3都添加进来&lt;b&gt;并全选&lt;/b&gt;，按下图二里第四步设置的快捷键（例如我设置为 &lt;i&gt;Win+0&lt;/i&gt;），然后等待Foobar2000处理完成即可。&lt;/p&gt;&lt;br /&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;Mp3tag&lt;/h3&gt;&lt;p&gt;一、按 &lt;i&gt;Ctrl+O&lt;/i&gt; 打开选项，然后按照图三设置（因为只需要ID3v2.3，所以其他如ID3v1、APEv2都不选）&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-xKTtMYuJBpA/TjVI6NO1IGI/AAAAAAAAIkw/IWc3gewMZcc/s1600/mp3tag--tags-settings-screenshots-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;335&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-xKTtMYuJBpA/TjVI6NO1IGI/AAAAAAAAIkw/IWc3gewMZcc/s400/mp3tag--tags-settings-screenshots-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;p&gt;↑ 图三&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;二、修改工作目录&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-O6ATt8DcBUU/TjVMNV1EeHI/AAAAAAAAIk4/NSBF538Kny8/s1600/mp3tag-screenshots-change-working-directory-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;168&quot; width=&quot;300&quot; src=&quot;http://1.bp.blogspot.com/-O6ATt8DcBUU/TjVMNV1EeHI/AAAAAAAAIk4/NSBF538Kny8/s400/mp3tag-screenshots-change-working-directory-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;p&gt;↑ 图四&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-4ZRh9Xw_4ew/TjVMNYWVctI/AAAAAAAAIlA/hqKdkDTW7IM/s1600/mp3tag-all-songs-screenshot-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-4ZRh9Xw_4ew/TjVMNYWVctI/AAAAAAAAIlA/hqKdkDTW7IM/s400/mp3tag-all-songs-screenshot-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;p&gt;↑ 图五&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;三、写入标签。首先全选所有音轨文件，右键选择“保存标签”&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-6qMDqqsUkv8/TjVQZmHc-iI/AAAAAAAAIlI/63aoV6JSM0U/s1600/mp3tag-save-tag-screenshot-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-6qMDqqsUkv8/TjVQZmHc-iI/AAAAAAAAIlI/63aoV6JSM0U/s400/mp3tag-save-tag-screenshot-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;p&gt;↑ 图六&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;如果出现如图七所示，一个音轨文件有多种标签，可以选择这个音轨文件，右键选择“清除标签”（当然也可以批量处理），这里的清除标签是按照图三里第三步的设置清除的。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-q6pn2AxCZ90/TjVWBDQ2hBI/AAAAAAAAIlQ/tqWziE3C0dA/s1600/mp3tag-screenshots-one-song-more-tag-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;104&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-q6pn2AxCZ90/TjVWBDQ2hBI/AAAAAAAAIlQ/tqWziE3C0dA/s400/mp3tag-screenshots-one-song-more-tag-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;p&gt;↑ 图七&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;等待Mp3tag处理完成后，所以的音轨文件都只剩下ID3v2.3标签了。&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;截图&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-8Uz3Wvoe-b8/TjvGkhurQyI/AAAAAAAAIuo/vlXrrUg7nnA/s1600/google-music-screenshot-2011-8-5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-8Uz3Wvoe-b8/TjvGkhurQyI/AAAAAAAAIuo/vlXrrUg7nnA/s400/google-music-screenshot-2011-8-5.jpg&quot; /&gt;&lt;/a&gt;&lt;p&gt;Google Music&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-k8tESL_vNE4/TjvGkpeXUWI/AAAAAAAAIuw/h0HTKTxMulM/s1600/foobar2000-screenshot-2010-8-5.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;332&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-k8tESL_vNE4/TjvGkpeXUWI/AAAAAAAAIuw/h0HTKTxMulM/s400/foobar2000-screenshot-2010-8-5.jpg&quot; /&gt;&lt;/a&gt;&lt;p&gt;Foobar2000&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-_C8__4-_9Jo/TjvGk_1WOtI/AAAAAAAAIu4/QSNath276gw/s1600/android-screenshot-2011-8-5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; width=&quot;267&quot; src=&quot;http://3.bp.blogspot.com/-_C8__4-_9Jo/TjvGk_1WOtI/AAAAAAAAIu4/QSNath276gw/s400/android-screenshot-2011-8-5.png&quot; /&gt;&lt;/a&gt;&lt;p&gt;Android 2.1&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;题外话：各类标签编码的测试&lt;/h2&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;Amarok与ID3v1&lt;/h3&gt;&lt;p&gt;设置音轨只有一个ID3v1的标签&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-3eX4-2-ZDdg/TjYEScalf9I/AAAAAAAAImA/EBGI2ZKwqyM/s1600/mp3tag-screenshots-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;273&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-3eX4-2-ZDdg/TjYEScalf9I/AAAAAAAAImA/EBGI2ZKwqyM/s400/mp3tag-screenshots-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;标准情况下，Amarok是使用ISO-8859-1来读取ID3v1的，所以遇到中文的情况就会乱码，而且遗憾的是，Amarok 2.4.1还不支持读取内嵌封面图片。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-pZKhYHpieDM/TjYFVHtWSDI/AAAAAAAAImI/yRZvvZxl11I/s1600/amarok-screenshots-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-pZKhYHpieDM/TjYFVHtWSDI/AAAAAAAAImI/yRZvvZxl11I/s400/amarok-screenshots-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;这样的乱码情况同样会出现在一些手持设备上，除非这些手持设备是特别为兲朝“优化”了的。&lt;/p&gt;&lt;br /&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;Windows和iTunes对ID3v2.4的支持问题&lt;/h3&gt;&lt;p&gt;&lt;i style=&quot;font-size:small;color:#f00;&quot;&gt;本来想做ID3v1、ID3v2.3、ID3v2.4三个版本的对比，但由于ID3v1不支持内嵌封面图片，所以只测试ID3v2.3、ID3v2.4两个&lt;/i&gt;&lt;/p&gt;&lt;p&gt;先用Mp3tag修改了三个音轨的编码格式&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-FWbr8Ir8reg/TjYA56d0WYI/AAAAAAAAIlo/SJd9kRCGUJU/s1600/mp3tag-add-songs-screenshots-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;278&quot; width=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/-FWbr8Ir8reg/TjYA56d0WYI/AAAAAAAAIlo/SJd9kRCGUJU/s400/mp3tag-add-songs-screenshots-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;在Windows Explorer下，ID3v2.3正常显示音轨信息，连内嵌图片也正常；但ID3v2.4却不能显示。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-Regk1hkUjw8/TjYBoqui5zI/AAAAAAAAIlw/PswR-CkaXpE/s1600/windows-explorer-id3v2.4-test-screenshots-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;368&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/-Regk1hkUjw8/TjYBoqui5zI/AAAAAAAAIlw/PswR-CkaXpE/s400/windows-explorer-id3v2.4-test-screenshots-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;iTunes下则两个都正常显示&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-_70fMYD0_Mk/TjYBxsPAjMI/AAAAAAAAIl4/abyDRs9CKRU/s1600/itunes-screenshots-2011-7-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;341&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/-_70fMYD0_Mk/TjYBxsPAjMI/AAAAAAAAIl4/abyDRs9CKRU/s400/itunes-screenshots-2011-7-31.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;全文完&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/4168761321705190800/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/07/mp3cjk.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4168761321705190800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4168761321705190800'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/07/mp3cjk.html' title='关于mp3文件CJK标签编码的问题'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-NxtU744vPOE/TjVYR-rzVnI/AAAAAAAAIlY/2bwPiUI_KUQ/s72-c/foobar-setting-tag-2011-7-31.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-2295356727570202484</id><published>2011-07-23T12:04:00.001+08:00</published><updated>2011-08-18T01:13:33.306+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><title type='text'>将google.com设为默认搜索</title><content type='html'>&lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;前言&lt;/h2&gt;&lt;p&gt;众所周知，要在兲朝使用谷歌搜索，在浏览器输入&lt;a href=&quot;http://www.google.com&quot;&gt;google.com&lt;/a&gt;，会很“贴心”的跳转到&lt;a href=&quot;http://www.google.com.hk&quot;&gt;google.com.hk&lt;/a&gt;的。不过只要简单的三步设置即可不跳转到google.com.hk。&lt;/p&gt;&lt;p&gt;修改后，每次搜索将直接从google.com得到搜索结果，如下图所示（点解图片查看原图）：&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://picasaweb.google.com/lh/photo/E5JEnLE4cNcj1GlSVoITeDNTeZI5hnLoYoHxcLYC-5A&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; width=&quot;400&quot; src=&quot;https://lh4.googleusercontent.com/-CLvyinj4OK4/Tkv1mSVzerI/AAAAAAAAJE8/W_lfG-Y1TzM/s800/google-search-kaysiness-2011-8-18.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;方法一&lt;/h2&gt;&lt;p&gt;直接使用&lt;a href=&quot;http://www.google.com/ncr&quot;&gt;www.google.com/ncr&lt;/a&gt;，这是最简单的方法，但这样用的是英文版的Google搜索。&lt;/p&gt; &lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;方法二&lt;/h2&gt;&lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;先访问英文版Google搜索&lt;/h3&gt;&lt;p&gt;&lt;a href=&quot;http://www.google.com/ncr&quot;&gt;www.google.com/ncr&lt;/a&gt;&lt;/p&gt; &lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;然后把界面换成中文版&lt;/h3&gt;&lt;p&gt;点击Options里的Language tools&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-yHJ7OHROjmc/TipD27_I43I/AAAAAAAAIew/Md4eOmLoaG0/s1600/google-settings-language-tools.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; width=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-yHJ7OHROjmc/TipD27_I43I/AAAAAAAAIew/Md4eOmLoaG0/s320/google-settings-language-tools.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;在Use the Google Interface in Your Language里选择Chinese (Simplified)&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-95OrnJqEXdg/TipEENnRxpI/AAAAAAAAIe4/CxQ-eP1Q2TI/s1600/google-settings-chinese-language.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; width=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-95OrnJqEXdg/TipEENnRxpI/AAAAAAAAIe4/CxQ-eP1Q2TI/s320/google-settings-chinese-language.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt; &lt;h3 style=&quot;color: #3366ff; font-size: 13px; margin: 1.5em 0pt 0.5em;&quot;&gt;保存设置&lt;/h3&gt;&lt;p&gt;这时Google搜索已经是中文版了，不过还需要保存所做的更改。继续点击右上角的选项里的搜索设置&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-B0p9AVHegtw/TipFCR3ZFiI/AAAAAAAAIfA/QEQhInz74E4/s1600/google-settings-search-option.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; width=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-B0p9AVHegtw/TipFCR3ZFiI/AAAAAAAAIfA/QEQhInz74E4/s320/google-settings-search-option.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;color: red;&quot;&gt;直接点击&lt;/span&gt;右上角的保存设置&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-JqS7kQlQ8xk/TipFUPDDACI/AAAAAAAAIfI/NOfO5fJumx8/s1600/google-settings-search-option-save.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; width=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-JqS7kQlQ8xk/TipFUPDDACI/AAAAAAAAIfI/NOfO5fJumx8/s320/google-settings-search-option-save.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;保存后，以后用google.com搜索再也不会跳转到google.com.hk了，而且界面也是中文的。&lt;/p&gt; &lt;h2 style=&quot;background-color: #e2fcee; border: 1px solid rgb(102, 102, 102); color: black; font-size: 16px; line-height: 25px; text-indent: 6px;&quot;&gt;把Chrome的默认搜索设为google.com&lt;/h2&gt;&lt;p&gt;新建一个搜索引擎，网址用下面这句&lt;/p&gt;&lt;blockquote&gt;http://www.google.com/search?hl=zh-CN&amp;q=%s&lt;/blockquote&gt; &lt;p&gt;全文完&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/2295356727570202484/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/07/googlecom.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/2295356727570202484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/2295356727570202484'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/07/googlecom.html' title='将google.com设为默认搜索'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh4.googleusercontent.com/-CLvyinj4OK4/Tkv1mSVzerI/AAAAAAAAJE8/W_lfG-Y1TzM/s72-c/google-search-kaysiness-2011-8-18.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-9157646930767056394</id><published>2011-03-26T17:46:00.000+08:00</published><updated>2011-07-11T19:36:35.783+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>制作Archlinux的无盘工作站</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;前言&lt;/h2&gt;&lt;p&gt;之前整理房间时发现以前淘汰下来的一套旧电脑主机，于是装起来玩玩。 CPU、内存、显卡什么的都有，就差一个IDE的硬盘，本来想外接一个移动硬盘装系统的，主板BIOS却不支持从USB启动。还好自带的网卡支持PXE，于是便研究了下Linux下的无盘工作站。&lt;/p&gt;&lt;blockquote&gt;测试环境：&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;服务器&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;OS：Archlinux&lt;/li&gt;&lt;li&gt;IP：10.10.10.10/24&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;客户端&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;OS：Archlinux&lt;/li&gt;&lt;li&gt;IP：DHCP&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;备注&lt;/h3&gt;&lt;p&gt;服务器和客户端都处在同一个10.0.0.0/24网段中，客户端的所有数据全部保存在服务器上，本身不带硬盘等存储设备。&lt;/p&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;服务器配置&lt;/h2&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;一、安装系统&lt;/h3&gt;&lt;p&gt;正常安装一个可用的系统，这个没什么好写的，看&lt;a href=&quot;https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide&quot;&gt;Arch Wiki&lt;/a&gt;即可。&lt;/p&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;二、配置dhcp服务&lt;/h3&gt;&lt;pre class=&quot;brush:bash&quot;&gt;pacman -S dhcpd&lt;/pre&gt;&lt;p&gt;编辑 &lt;i&gt;/etc/dhcpd.conf&lt;/i&gt;，添加以下内容&lt;/p&gt;&lt;blockquote&gt;&lt;pre&gt;ddns-update-style interim;&lt;br /&gt;subnet 10.0.0.0 netmask 255.255.255.0 {&lt;br /&gt;  range &lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;10.0.0.100&lt;/span&gt; &lt;span style=&quot;color:rgb(29,117,237);&quot;&gt;10.0.0.200&lt;/span&gt;;  # 分配地址的范围&lt;br /&gt;  option routers 10.10.10.10;&lt;br /&gt;  option subnet-mask 255.255.255.0;&lt;br /&gt;  next-server 10.10.10.10;&lt;br /&gt;  filename &quot;pxelinux.0&quot;;&lt;br /&gt;  allow booting;&lt;br /&gt;  allow bootp;&lt;br /&gt;}&lt;/pre&gt;&lt;/blockquote&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;三、配置nfs服务&lt;/h3&gt;&lt;p&gt;由于客户端是没有存储设备的，客户端产生的所有数据都需要保存到服务器上，方法是用&lt;a href=&quot;http://en.wikipedia.org/wiki/Network_File_System_(protocol)&quot;&gt;nfs&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;pacman -S nfs-utils&lt;/pre&gt;&lt;p&gt;编辑 &lt;i&gt;/etc/exports&lt;/i&gt;，添加以下内容&lt;/p&gt;&lt;blockquote&gt;/srv/arch/pc01 &lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;10.0.0.0/24&lt;/span&gt;(rw,sync,no_root_squash,no_subtree_check)&lt;/blockquote&gt;&lt;p&gt;注：&lt;i&gt;/srv/arch/pc01&lt;/i&gt; 为客户端系统所在目录，详见下面的『安装客户端系统』；红色的10.0.0.0/24表示允许访问的IP地址段。&lt;/p&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;四、配置tftp服务&lt;/h3&gt;&lt;pre class=&quot;brush:bash&quot;&gt;pacman -S tftp-hpa mkpxelinux&lt;/pre&gt;&lt;p&gt;然后运行&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;(root) mkpxelinux&lt;/pre&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;客户端配置&lt;/h2&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;安装客户端系统&lt;/h3&gt;&lt;p&gt;注意，这个系统仍然是&lt;b&gt;安装在服务器端&lt;/b&gt;，当客户机开机后就是用这个系统启动的，所以如果是自定义内核的需要确保&lt;b&gt;包含客户端的硬件驱动&lt;/b&gt;，也可以直接用Archlinux的内核。这里假设客户端的系统安装到 &lt;i&gt;/srv/arch/pc01&lt;/i&gt; 中&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;mkdir -p /srv/arch/pc01/var/{cache/pacman/pkg,lib/pacman}&lt;/pre&gt;&lt;p&gt;复制服务器的软件源列表到客户端，这个要注意客户端是32位或64位的，&lt;b&gt;要把软件源改为相应的&lt;/b&gt;&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;cp /etc/pacman.d/mirrorlist /srv/arch/pc01/mirrorlist&lt;br /&gt;cp /etc/pacman.conf /srv/arch/pc01/pacman.conf&lt;/pre&gt;&lt;p&gt;同步客户端的软件源&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;pacman --root /srv/arch/pc01 --cachedir /srv/arch/pc01/var/cache/pacman/pkg --config /srv/arch/pc01/pacman.conf -Sy&lt;/pre&gt;&lt;p&gt;为客户端安装基本系统&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;pacman --root /srv/arch/pc01 --cachedir /srv/arch/pc01/var/cache/pacman/pkg --config /srv/arch/pc01/pacman.conf -S base&lt;/pre&gt;&lt;p&gt;chroot 进客户端系统&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;mount -t proc proc /srv/arch/pc01/proc&lt;br /&gt;mount -t sysfs sysfs /srv/arch/pc01/sys&lt;br /&gt;mount -t tmpfs udev /srv/arch/pc01/dev&lt;br /&gt;cp /etc/resolv.conf /srv/arch/pc01/etc/resolv.conf&lt;br /&gt;chroot /srv/arch/pc01&lt;/pre&gt;&lt;p&gt;编辑 /etc/mkinitcpio.conf 并添加以下内容&lt;/p&gt;&lt;blockquote&gt;MODULES=&quot;nfs&quot;  # 添加 nfs&lt;br /&gt;HOOKS=&quot;base udev net autodetect pata scsi sata filesystems&quot;  # 添加 net&lt;/blockquote&gt;&lt;p&gt;生成适用于pxe启动的客户端内核&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;pacman -S mkinitcpio-nfs-utils&lt;br /&gt;mkinitcpio -p kernel26&lt;/pre&gt;&lt;p&gt;编辑客户端的 &lt;i&gt;/etc/fstab&lt;/i&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;pre&gt;10.10.10.10:/srv/arch/pc01 / nfs defaults 0 0&lt;br /&gt;proc /proc proc defaults 0 0&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;编辑客户端的 &lt;i&gt;/etc/rc.conf&lt;/i&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;pre&gt;NETWORK_PERSIST=&quot;yes&quot;&lt;br /&gt;DAEMONS=(... !network ...) # 禁用网络&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;复制客户端内核到 &lt;i&gt;/var/tftpboot&lt;/i&gt; 下&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;exit  # 退出chroot&lt;br /&gt;cp /srv/arch/pc01/boot/vmlinux26 /var/tftpboot&lt;br /&gt;cp /srv/arch/pc01/boot/kernel26.img /var/tftpboot&lt;/pre&gt;&lt;p&gt;编辑 &lt;i&gt;/var/tftpboot/pxelinux.cfg/default&lt;/i&gt;，在最下面新建一个 label&lt;/p&gt;&lt;blockquote&gt;label Archlinux&lt;br /&gt;kernel vmlinuz26&lt;br /&gt;append initrd=kernel26.img rootfstype=nfs nfsroot=10.10.10.10:/srv/arch/pc01 ip=::::::dhcp&lt;/blockquote&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;启动服务&lt;/h2&gt;&lt;pre class=&quot;brush:bash&quot;&gt;/etc/rc.d/dhcpd start&lt;br /&gt;/etc/rc.d/tftp start&lt;br /&gt;/etc/rc.d/nfs-server start&lt;/pre&gt;&lt;p&gt;允许服务被访问，编辑 &lt;i&gt;/etc/hosts.allow&lt;/i&gt;&lt;/p&gt;&lt;blockquote&gt;nfsd : all&lt;br /&gt;rpcbind : all&lt;br /&gt;mountd : all&lt;br /&gt;tftpd : all&lt;br /&gt;in.tftpd : all&lt;/blockquote&gt;&lt;p&gt;到这里为止，服务器的配置已经完成，可以去打开客户端的电源，注意确保客户端的网络连通。 :)&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;参考文献&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://heiher.info/2152.html&quot; rel=&quot;nofollow&quot;&gt;搭建基于 ArchLinux 的龙芯无盘系统环境&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://wiki.archlinux.org/index.php/Mkinitcpio#Using_net&quot; rel=&quot;nofollow&quot;&gt;mkinitcpio&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://wiki.archlinux.org/index.php/Tftpd_server&quot; rel=&quot;nofollow&quot;&gt;Tftpd server&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://wiki.archlinux.org/index.php/Install_bundled_32-bit_system_in_Arch64&quot; rel=&quot;nofollow&quot;&gt;Install bundled 32-bit system in Arch64&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://my.unix-center.net/~whtbie/wordpress/?p=290&quot; rel=&quot;nofollow&quot;&gt;配置pxe，安装debian和ubuntu&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://wiki.archlinux.org/index.php/Install_Arch_from_network_via_PXE&quot; rel=&quot;nofollow&quot;&gt;Install Arch from network via PXE&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/9157646930767056394/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/03/archlinux.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/9157646930767056394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/9157646930767056394'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/03/archlinux.html' title='制作Archlinux的无盘工作站'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-546936119090072910</id><published>2011-02-17T22:10:00.000+08:00</published><updated>2011-07-11T19:35:56.560+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><title type='text'>将表格、PDF等元素嵌入到网页中</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;前言&lt;/h2&gt;利用Google Docs Viewer和Dropbox，可以比较方便的把手头上文档和电子表格嵌入的网页中。而且当本地的文档或表格发生改变，网页端的也跟着改变，感觉上还算方便。&lt;br /&gt;思路是这样的，把需要发布的文档或表格导出为PDF格式，放到Dropbox的Public文件夹下，获得分享链接，然后用Google Docs Viewer嵌入到网页中，适用于修改不频繁的文档（因为每次修改都要重新导出成PDF格式）。目前M$ Office和OpenOffice.org（LibreOffice.org）都能很方便的将文档和表格导出为PDF。&lt;br /&gt;另一种方法是使用Google Docs，不过本人不太喜欢在网页端写文档，所以忽略。╮(￣▽￣)╭&lt;br /&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;获得PDF副本&lt;/h2&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;M$ Office&lt;/h3&gt;我使用的是Office 2007，默认安装后是没有导出为PDF这个选项的，需要到微软的网站去下载一个插件，安装后才能导出为PDF，&lt;a href=&quot;http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=4d951911-3e7e-4ae6-b059-a2e79ed87041&quot;&gt;传送门&lt;/a&gt;。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-rn0YPU3MayI/TV0jKkbM9hI/AAAAAAAAFX8/yZ2Jr_8AfCo/s1600/office2007-excel-export-as-pdf.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;399&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-rn0YPU3MayI/TV0jKkbM9hI/AAAAAAAAFX8/yZ2Jr_8AfCo/s400/office2007-excel-export-as-pdf.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;OpenOffice.org&lt;/h3&gt;OOo本身就集成了导出PDF的选项了。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-8c9wrVAxIRA/TV0jVbR1BHI/AAAAAAAAFYE/IL_iY0LK1is/s1600/openoffice-writer-export-as-pdf.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-8c9wrVAxIRA/TV0jVbR1BHI/AAAAAAAAFYE/IL_iY0LK1is/s400/openoffice-writer-export-as-pdf.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;将PDF嵌入网页&lt;/h2&gt;推荐用Dropbox，可以实现自动上传，当然SugarSync等其他的同步工具也可以，看个人喜好。&lt;br /&gt;然后打开&lt;a href=&quot;http://docs.google.com/viewer&quot;&gt;Google Docs Viewer&lt;/a&gt;，输入文档的链接，会得到三段代码，将含有iframe标签的代码放到网页上即可。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-Nx6aiSYiXXw/TV0r7kbYghI/AAAAAAAAFYU/qo1ccXAYvZU/s1600/google-docs-viewer.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;206&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/-Nx6aiSYiXXw/TV0r7kbYghI/AAAAAAAAFYU/qo1ccXAYvZU/s400/google-docs-viewer.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;效果图&lt;/h2&gt;&lt;iframe src=&quot;http://docs.google.com/viewer?url=http%3A%2F%2Fdl.fullcirclemagazine.org%2Fissue45_en.pdf&amp;embedded=true&quot; width=&quot;500&quot; height=&quot;780&quot; style=&quot;border: none;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/546936119090072910/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/02/pdf.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/546936119090072910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/546936119090072910'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/02/pdf.html' title='将表格、PDF等元素嵌入到网页中'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-rn0YPU3MayI/TV0jKkbM9hI/AAAAAAAAFX8/yZ2Jr_8AfCo/s72-c/office2007-excel-export-as-pdf.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-435395788880189895</id><published>2011-01-26T20:45:00.000+08:00</published><updated>2011-07-11T19:35:56.560+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>用Ghost将Windows7装到差分VHD里</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;前言&lt;/h2&gt;VHD（Virtual Hard Disks），虚拟磁盘文件格式，关于VHD的介绍，网上一大把，我就不写了（偷懒），其实也就和Ubuntu里的wubi差不多，顺便一说，支持从VHD启动的只有企业版和旗舰版。&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;VHD的缺点&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;安装麻烦&lt;/li&gt;&lt;li&gt;无法使用Windows7自带的体验指数，因为无法测量磁盘性能&lt;/li&gt;&lt;li&gt;无法使用休眠功能，&lt;b&gt;可以&lt;/b&gt;使用睡眠&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;准备工作&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;一个Ghost32，也就是在Windows上运行的Ghost&lt;/li&gt;&lt;li&gt;一个可以使用的Windows7或&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;WinPE3.0&lt;/span&gt;&lt;/li&gt;&lt;li&gt;本文以差分VHD为例，所以有主VHD和子VHD，下文将以D:\win7-ultima-32bit-main.vhd表示主VHD，D:\win7-ultima-32bit-child.vhd表示子VHD&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;开始实践&lt;/h2&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;一、安装一个新的Windows7&lt;/h3&gt;首先用喜欢的方法（例如光盘安装或硬盘安装）&lt;b&gt;将Win7安装到物理磁盘上&lt;/b&gt;，推荐关闭虚拟内存，或将虚拟内存设置到非系统盘。&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;此步只是为了得到一个Ghost镜像文件，如果已经有Windows7的gho备份文件可以直接跳到第三步&lt;/span&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;二、生成gho备份文件&lt;/h3&gt;启动到Ghost32下，对第一步安装的Windows7进行备份，得到一个gho文件&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;三、创建主VHD&lt;/h3&gt;启动到Windows7或WinPE3.0下，去到控制面板——系统和安全——管理工具——计算机管理，右键点击磁盘管理，选创建VHD&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TTvLB4PUDQI/AAAAAAAAEw0/b9G4mTjlFDc/s1600/create-vhd.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; width=&quot;271&quot; src=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TTvLB4PUDQI/AAAAAAAAEw0/b9G4mTjlFDc/s400/create-vhd.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TTvLzlBck0I/AAAAAAAAExU/K3pLkvgW9c8/s1600/create-vhd-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;344&quot; width=&quot;388&quot; src=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TTvLzlBck0I/AAAAAAAAExU/K3pLkvgW9c8/s400/create-vhd-2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;32位版的Windows7旗舰版推荐大小为15G，64位的推荐20G以上，保存位置随便填，需要注意是&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;由于用到差分VHD，磁盘剩余空间需要有两倍于vhd文件容量&lt;/span&gt;，比如创建一个15G大小的vhd并放到D盘，那么D盘需要有30G的剩余空间，因为用到Ghost，必须使用固定大小格式。等待创建完成，在磁盘管理里为VHD分区和格式化，对其分配盘符，我分了个W盘给这个vhd，然后可以在我的电脑里看到这个vhd磁盘了。&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;四、还原Ghost镜像到主VHD里&lt;/h3&gt;再次启动到Ghost32下，用第一步制作的gho还原到W盘里。&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;五、分离主VHD&lt;/h3&gt;去到磁盘管理里，分离这个vhd（类似于Linux下的umount）&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TTvQUwn14UI/AAAAAAAAExc/1gv4fJmGXOM/s1600/umount-vhd-image-file.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; width=&quot;302&quot; src=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TTvQUwn14UI/AAAAAAAAExc/1gv4fJmGXOM/s400/umount-vhd-image-file.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;六、创建子VHD&lt;/h3&gt;&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;用系统管理员打开命令提示符&lt;/span&gt;，输入下面命令&lt;br /&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: js;&quot;&gt;# 运行diskpart工具&lt;br /&gt;diskpart&lt;br /&gt;&lt;br /&gt;# 创建一个基于D:\win7-ultima-32bit-main.vhd的子vhd，命名为win7-ultima-32bit-child.vhd&lt;br /&gt;create vdisk file=D:\win7-ultima-32bit-child.vhd parent=D:\win7-ultima-32bit-main.vhd&lt;br /&gt;&lt;br /&gt;# 为子vhd分配一个盘符&lt;br /&gt;select vdisk file=D:\win7-ultima-32bit-child.vhd&lt;br /&gt;attach vdisk&lt;br /&gt;assign letter=w&lt;/pre&gt;&lt;/blockquote&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;七、生成启动信息&lt;/h3&gt;继续用&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;系统管理员打开命令提示符&lt;/span&gt;，定位到 &lt;i&gt;W:\Windows\System32&lt;/i&gt; 下，运行下面的命令&lt;br /&gt;&lt;blockquote&gt;bcdboot W:\Windows /S C: /L zh-cn&lt;/blockquote&gt;解析一下&lt;br /&gt;&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;W:\Windows&lt;/b&gt; 为vhd里的windows根目录位置。&lt;/li&gt;&lt;li&gt;&lt;b&gt;/S C:&lt;/b&gt; 指定启动文件位置（也就是那个BCD文件所在的盘符），一般指向物理磁盘的活动分区。&lt;/li&gt;&lt;li&gt;&lt;b&gt;/L zh-cn&lt;/b&gt; 指定启动语言为简体中文。&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;八、重启&lt;/h3&gt;确认完成上面七个步骤并且没有出现错误后，可以重启进这个VHD里的Windows7了。&lt;br /&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;备份还原VHD&lt;/h2&gt;对于差分VHD来说，备份还原也就是复制粘贴（或者压缩与解压缩），都是对子VHD进行操作。例如备份，先启动到WinPE下，对D:\win7-ultima-32bit-child.vhd进行压缩，还原也就是解压缩。我的3.16G的子VHD，用7z.exe -mx9 -m0=lzma2压缩后只有658M。&lt;br /&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;参考资料&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://bbs.wuyou.com/viewthread.php?tid=184438&quot;&gt;制作VHD过程－老鸟绕飞，新鸟参考，我是菜鸟&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://bbs.wuyou.com/viewthread.php?tid=147998&quot;&gt;用win7RTM原版安装光盘，制作差分VHD方式的win7系统（附imagex工具）&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://bbs.wuyou.com/viewthread.php?tid=147337&quot;&gt;动态VHD＋差分VHD版win7rtm安装成功&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/435395788880189895/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/01/ghostwindows7vhd.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/435395788880189895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/435395788880189895'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/01/ghostwindows7vhd.html' title='用Ghost将Windows7装到差分VHD里'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_UX_e8nZMpQ0/TTvLB4PUDQI/AAAAAAAAEw0/b9G4mTjlFDc/s72-c/create-vhd.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-8964525111472234539</id><published>2011-01-23T13:02:00.000+08:00</published><updated>2011-07-11T19:37:06.670+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>关于Win7“无法度量视频播放性能”的解决方法</title><content type='html'>不知从什么时候开始，我的Win7里那个体验指数一直显示为“未分级”，记得刚开始用Win7时是显示的，然而手动点击分级，会出现下面这样的提示。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TR9Wg3Yif5I/AAAAAAAAEjk/fAc-VxcdqpU/s1600/%25E6%258D%2595%25E8%258E%25B72.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;209&quot; width=&quot;366&quot; src=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TR9Wg3Yif5I/AAAAAAAAEjk/fAc-VxcdqpU/s400/%25E6%258D%2595%25E8%258E%25B72.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;在Google搜，找到的基本都是说显卡驱动的问题，不过我试了几个版本的驱动（nvidia &lt;a href=&quot;http://www.nvidia.com/object/win7_winvista_32bit_186.18_whql.html&quot;&gt;186.18&lt;/a&gt;和&lt;a href=&quot;http://www.nvidia.com/object/win7-winvista-64bit-260.99-whql-driver.html&quot;&gt;260.99&lt;/a&gt;），问题依旧，今天有空，又搜了下，终于给我找到解决的方法了，&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;原来问题出在TEMP文件夹的容量上&lt;/span&gt;。&lt;br /&gt;&lt;br /&gt;由于有8G的内存，之前曾将Windows的TEMP文件夹设置到内存上，不过当时只设置了512M给TEMP用，然后一直都没什么问题，也就忘记了。然而今天搜到一篇文章说这个问题和系统盘空间不够有关，我的系统盘有5G剩余，应该不是空间大小的问题，然后我突然想起我的TEMP是设在内存上的，难道是这个问题？于是马上将TEMP设回硬盘上，再一次系统分级，这次成功了！粗略的看了下TEMP下文件的变化，Win7在系统分级时会在TEMP下生成了两个文件，有1G左右的大小，而我之前的TEMP只有512M，空间不够自然就出现“无法度量视频播放性能”这个错误了。&lt;br /&gt;&lt;br /&gt;下面是正在评估磁盘性能时TEMP下文件的变化，两个文件加起来有1G了。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TR9bsIHk9KI/AAAAAAAAEjs/RzWYwh6VjRo/s1600/%25E6%258D%2595%25E8%258E%25B74.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;317&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TR9bsIHk9KI/AAAAAAAAEjs/RzWYwh6VjRo/s400/%25E6%258D%2595%25E8%258E%25B74.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;最后来一张体验指数截图 (^_^)/~~&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TR9clCM3BqI/AAAAAAAAEj8/EHJOikR3Pzc/s1600/%25E6%258D%2595%25E8%258E%25B75.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TR9clCM3BqI/AAAAAAAAEj8/EHJOikR3Pzc/s400/%25E6%258D%2595%25E8%258E%25B75.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/8964525111472234539/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2011/01/win7.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/8964525111472234539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/8964525111472234539'/><link rel='alternate' type='text/html' href='http://imoe.tk/2011/01/win7.html' title='关于Win7“无法度量视频播放性能”的解决方法'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_UX_e8nZMpQ0/TR9Wg3Yif5I/AAAAAAAAEjk/fAc-VxcdqpU/s72-c/%25E6%258D%2595%25E8%258E%25B72.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-4655565047391126761</id><published>2010-12-26T10:54:00.002+08:00</published><updated>2011-07-11T19:35:56.561+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="软件应用"/><title type='text'>用Firefox打造Google Reader专属浏览器</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;前言&lt;/h2&gt;前段时间在谷奥看到《&lt;a href=&quot;http://www.guao.hk/posts/appropriative-browser-for-googlereader-made-with-chrome.html&quot;&gt;当 Google Reader 遇上 Chrome——打造 GR 专属浏览器&lt;/a&gt;》这篇文章，当时就按文章搞了个Chromium来试试，感觉的确不错，唯一的遗憾是Chromium/Chrome对Greasemonkey脚本支持不佳，不知道是不是我火星，反正我日常使用的那几个脚本在Chromium/Chrome下都有不同的问题。例如&lt;a href=&quot;http://userscripts.org/scripts/show/9517&quot;&gt;这个&lt;/a&gt;和&lt;a href=&quot;http://userscripts.org/scripts/show/19949&quot;&gt;这个&lt;/a&gt;，所以在Chrome上才出现了像&lt;a href=&quot;https://chrome.google.com/webstore/detail/hhcknjkmaaeinhdjgimjnophgpbdgfmg&quot;&gt;Reader Plus&lt;/a&gt;这样集合了多个Greasemonkey脚本的扩展。&lt;br /&gt;最后，我还是回归到用Firefox浏览Google Reader，顺便学谷奥那样搞一个专属浏览器。&lt;br /&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;准备工具&lt;/h2&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;1.创建一个新Profile&lt;/h3&gt;首先完全关闭正在运行的Firefox，然后用下面的命令打开Firefox的配置管理器&lt;br /&gt;M$ Windows&lt;br /&gt;&lt;blockquote&gt;C:\Program Files\Mozilla Firefox\firefox.exe &lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;-p&lt;/span&gt;&lt;/blockquote&gt;Linux/BSD&lt;br /&gt;&lt;blockquote&gt;firefox &lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;-p&lt;/span&gt;&lt;/blockquote&gt;然后按照向导创建，我这里起一个叫kaysiness.web的Profile，如图。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TRay2hcRMuI/AAAAAAAAEjE/8K8r_MH4stY/s1600/firefox-kaysiness.web-profile.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;275&quot; width=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TRay2hcRMuI/AAAAAAAAEjE/8K8r_MH4stY/s400/firefox-kaysiness.web-profile.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;记住这个Profile名。&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;2.创建启动文件&lt;/h3&gt;用下列命令来启动Firefox，Windows的可以创建一个快捷方式，Linux/BSD的可以创建一个.desktop文件&lt;br /&gt;M$ Windows&lt;br /&gt;&lt;blockquote&gt;&quot;C:\Program Files\Mozilla Firefox\firefox.exe&quot; &lt;span style=&quot;color:rgb(255,100,0);&quot;&gt;-no-remote&lt;/span&gt; &lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;-P kaysiness.web&lt;/span&gt; &lt;span style=&quot;color:rgb(255,0,255);&quot;&gt;-privacy&lt;/span&gt;&lt;/blockquote&gt;Linux/BSD&lt;br /&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;cd ~/.local/share/applications&lt;br /&gt;cp /usr/share/applications/firefox.desktop firefox-web-mode.desktop&lt;br /&gt;vi firefox-web-mode.desktop&lt;/pre&gt;&lt;/blockquote&gt;然后把里面的内容改成下面的&lt;br /&gt;&lt;blockquote&gt;[Desktop Entry]&lt;br /&gt;Exec=firefox &lt;span style=&quot;color:rgb(255,100,0);&quot;&gt;-no-remote&lt;/span&gt; &lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;-P kaysiness.web&lt;/span&gt; &lt;span style=&quot;color:rgb(255,0,255);&quot;&gt;-privacy&lt;/span&gt; %u&lt;br /&gt;Icon=firefox&lt;br /&gt;Type=Application&lt;br /&gt;Terminal=false&lt;br /&gt;Name=Firefox&lt;br /&gt;GenericName=Firefox GRShare Mode&lt;br /&gt;MimeType=text/html;&lt;br /&gt;StartupNotify=true&lt;br /&gt;Categories=Network;WebBrowser;&lt;br /&gt;&lt;/blockquote&gt;解释一下命令的含义&lt;br /&gt;&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color:rgb(255,100,0);&quot;&gt;-no-remote&lt;/span&gt; 让Firefox同时运行不同的Profile&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color:rgb(255,0,0);&quot;&gt;-P kaysiness.web&lt;/span&gt; 指定运行kaysiness.web这个Profile&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color:rgb(255,0,255);&quot;&gt;-privacy&lt;/span&gt; 以隐私模式启动&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;安装扩展&lt;/h2&gt;运行kaysiness.web这个profile，然后按照下面的扩展&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/748/&quot;&gt;Greasemonkey&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/4762/&quot;&gt;Hide Menubar&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;然后再安装下面的油猴脚本&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://labs.postrank.com/gr&quot;&gt;PosrRank&lt;/a&gt; 会给每个条目增加上该条的PR值&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://userscripts.org/scripts/show/8782&quot;&gt;Google Reader - Colorful List View&lt;/a&gt; 用颜色区分不同的订阅来源&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://userscripts.org/scripts/show/24371&quot;&gt;Favicons for Google Reader&lt;/a&gt; 显示订阅来源网站的图标&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://userscripts.org/scripts/show/38509&quot;&gt;GPE&lt;/a&gt; 整合直接预览，用iframe来显示那些只提供摘要输出的RSS&lt;/li&gt;&lt;/ul&gt;基本也就差不多了。&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;截图&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TRazFlSmbeI/AAAAAAAAEjM/7_1IkNEwZTU/s1600/google-reader-on-firefox.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;279&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TRazFlSmbeI/AAAAAAAAEjM/7_1IkNEwZTU/s400/google-reader-on-firefox.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TRazMGkSveI/AAAAAAAAEjU/YJVQBmkFjbI/s1600/google-reader-item-list-on-firefox.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;279&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TRazMGkSveI/AAAAAAAAEjU/YJVQBmkFjbI/s400/google-reader-item-list-on-firefox.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/4655565047391126761/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/12/firefoxgoogle-reader.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4655565047391126761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4655565047391126761'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/12/firefoxgoogle-reader.html' title='用Firefox打造Google Reader专属浏览器'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_UX_e8nZMpQ0/TRay2hcRMuI/AAAAAAAAEjE/8K8r_MH4stY/s72-c/firefox-kaysiness.web-profile.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-2847301031200599161</id><published>2010-12-20T16:09:00.000+08:00</published><updated>2012-09-22T22:58:18.968+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>在Debian上搭建WordPress测试环境</title><content type='html'>&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;一段废话&lt;/h2&gt;&lt;p&gt;以前为了在本地玩&lt;a href=&quot;http://wordpress.org/&quot;&gt;WordPress&lt;/a&gt;，曾在WinXP下弄了个Apache2+MySQL+PHP5环境，是用&lt;a href=&quot;http://www.apachefriends.org/en/xampp.html&quot;&gt;XAMPP&lt;/a&gt;搭建的，不过在换了Win7后就没有再用了。最近突然想起，何不直接在VirtualBox里装个Debian什么的，然后在里面搭建一个Apache2+MySQL+PHP5环境呢？于是便有了这篇文章···&lt;/p&gt;&lt;br /&gt;&lt;b&gt;使用VBox的优点&lt;/b&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;真正的LAMP组合&lt;/li&gt;&lt;li&gt;跨平台，无论在M$或Linux下，只要导入Vbox里的虚拟机，一样可以继续使用&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;b&gt;使用VBox的缺点&lt;/b&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;比XAMPP之类的软件要占用磁盘空间&lt;/li&gt;&lt;li&gt;安装费时间&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;b&gt;测试平台&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Virtualbox 4.1.20&lt;/li&gt;&lt;li&gt;Debian stable 64bit 6.0.5&lt;/li&gt;&lt;li&gt;WordPress zh_CN 3.4.2&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;文章修订&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;2012-09-22 22:46:54&lt;/p&gt;&lt;ol&gt;&lt;li&gt;测试平台换成当前最新版本。&lt;/li&gt;&lt;li&gt;增加使用Debian官方源里的Wordpress方法。&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;新建Vbox虚拟机&lt;/h2&gt;&lt;p&gt;新建一个叫Debian stable的虚拟机，这里需要注意一点：网络的设置。连接方式必须是 Bridged Adapter，这样才能在Host OS里访问虚拟机里的网站。至于其他的选项可以随便设置了，没什么需要注意的。而且因为不需要安装X11，所以也不需要安装Vbox增强功能（VBox Guest Additions），如果需要数据在Host OS和Guest OS之间共享，直接在虚拟机里建一个sshfs/ftp会更方便。&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TQ7wNJfwqFI/AAAAAAAAEiQ/efYGz-aHHp8/s1600/vbox-debian-stable-network-settings.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;305&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TQ7wNJfwqFI/AAAAAAAAEiQ/efYGz-aHHp8/s400/vbox-debian-stable-network-settings.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;安装Apache2+MySQL+PHP5&lt;/h2&gt;&lt;p&gt;Debian的安装就不写了，网上也有很多教程，而且Debian的安装向导也很人性化。&lt;/p&gt;&lt;p&gt;Apache2&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;aptitude install apache2&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;MySQL&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;aptitude install mysql-server mysql-client&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;PHP5&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;aptitude install php5 php5-mysql libapache2-mod-php5&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;安装完成后，在浏览器里输入虚拟机ip地址，能打得开证明Apache2已经工作了，而默认这个网站数据在debian里的/var/www下。&lt;/p&gt;&lt;blockquote&gt;http://192.168.0.22（这是我的debian地址）&lt;/blockquote&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;安装phpmyadmin&lt;/h2&gt;&lt;p&gt;安装phpmyadmin是为了方便管理MySQL数据库&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;aptitude install phpmyadmin&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;然后编辑 &lt;i&gt;/etc/apache2/apache2.conf&lt;/i&gt; 文件，在里面加入下面这段内容&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;Include /etc/phpmyadmin/apache.conf&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;重启Apache2&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;/etc/init.d/apache2 restart&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;然后在浏览器输入&lt;/p&gt;&lt;blockquote&gt;http://192.168.0.22/phpmyadmin/&lt;/blockquote&gt;&lt;p&gt;用MySQL的用户密码登录即可&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TQ7y7-u09DI/AAAAAAAAEik/1rz6QUFUWQE/s1600/phpmyadmin-snop.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; width=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TQ7y7-u09DI/AAAAAAAAEik/1rz6QUFUWQE/s400/phpmyadmin-snop.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;安装WordPress&lt;/h2&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;方法一：&lt;/h3&gt;&lt;p&gt;Debian 官方源里也有 Wordpress，如果想直接用源里的可以使用下列命令，安装文档可以浏览&lt;a href=&quot;http://linux.justinhartman.com/Wordpress_Installation_on_Debian&quot;&gt;这里&lt;/a&gt;。&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;aptitude install wordpress wordpress-l10n&lt;/code&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;h3 style=&quot;margin: 1.5em 0pt 0.5em; color: rgb(51, 102, 255); font-size: 13px;&quot;&gt;方法二：&lt;/h3&gt;&lt;p&gt;下载并安装到/var/www下&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;wget http://cn.wordpress.org/wordpress-3.4.2-zh_CN.zip&lt;br /&gt;unzip wordpress-3.4.2-zh_CN.zip&lt;br /&gt;mv wordpress /var/www/blog&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;注意：Debian默认没有安装unzip命令，可以运行下面命令安装&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;aptitude install unzip&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;为了能让WordPress的插件、主题什么的自动升级，需要设置 &lt;i&gt;/var/www/blog&lt;/i&gt; 的权限，其实只要运行下面的命令即可&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;chown www-data /var/www/blog -R&lt;/pre&gt;&lt;/blockquote&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TQ8HwN-UjwI/AAAAAAAAEis/-zyuisR3gxI/s1600/upgrade-wordpress-plugins.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; width=&quot;400&quot; src=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TQ8HwN-UjwI/AAAAAAAAEis/-zyuisR3gxI/s400/upgrade-wordpress-plugins.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;然后可以开始安装WordPress了，安装方法可以参考《&lt;a href=&quot;http://codex.wordpress.org/zh-cn:%E5%AE%89%E8%A3%85WordPress&quot;&gt;安装 WordPress&lt;/a&gt;》这篇wiki。&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;WordPress的固定链接&lt;/h2&gt;&lt;p&gt;什么是固定链接？可以参考《&lt;a href=&quot;http://codex.wordpress.org/Using_Permalinks&quot;&gt;Using Permalinks&lt;/a&gt;》这篇文章的介绍。启用固定链接，需要Apache2打开rewrite模块，在debian中很容易实现。默认情况下，通过apt安装的Apache2已经自带了rewrite模块，但默认没有启用，可以在 &lt;i&gt;/usr/lib/apache2/modules&lt;/i&gt; 下查看是否已有mod_rewrite.so这个文件，然后继续下面的设置&lt;/p&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;cd /etc/apache2/mods-enabled&lt;br /&gt;ln -s ../mods-available/rewrite.load .&lt;/pre&gt;&lt;/blockquote&gt;&lt;p&gt;然后编辑 &lt;i&gt;/etc/apache2/sites-enable/000-default&lt;/i&gt;，新增下面红色部分&lt;/p&gt;&lt;blockquote&gt;&lt;code&gt;&lt;pre&gt;&amp;lt;virtualhost *:80&amp;gt;&lt;br /&gt;        ServerAdmin webmaster@localhost&lt;br /&gt;&lt;br /&gt;        DocumentRoot /var/www/&lt;br /&gt;        &amp;lt;directory /&amp;gt;&lt;br /&gt;                Options FollowSymLinks&lt;br /&gt;                AllowOverride None&lt;br /&gt;        &amp;lt;/Directory&amp;gt;&lt;br /&gt;        &amp;lt;directory /var/www/&amp;gt;&lt;br /&gt;                Options Indexes FollowSymLinks MultiViews&lt;br /&gt;                AllowOverride None&lt;br /&gt;                Order allow,deny&lt;br /&gt;                allow from all&lt;br /&gt;        &amp;lt;/Directory&amp;gt;&lt;br /&gt;        &lt;span style=&quot;color:red;&quot;&gt;&amp;lt;directory /var/www/blog&amp;gt;&lt;br /&gt;                Options FollowSymLinks&lt;br /&gt;                AllowOverride FileInfo&lt;br /&gt;                Order allow,deny&lt;br /&gt;                allow from all&lt;br /&gt;        &amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/&lt;br /&gt;        &amp;lt;directory &quot;/usr/lib/cgi-bin&quot;&amp;gt;&lt;br /&gt;                AllowOverride None&lt;br /&gt;                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch&lt;br /&gt;                Order allow,deny&lt;br /&gt;                Allow from all&lt;br /&gt;        &amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;br /&gt;        (……)&lt;br /&gt;&lt;br /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;/pre&gt;&lt;/code&gt;&lt;/blockquote&gt;&lt;p&gt;然后重启 Apache2 使上面的修改生效。&lt;/p&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;截图&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TQ8Mx-de25I/AAAAAAAAEi0/loB5Z7SOCLw/s1600/setup-and-settings-wordpress-finish.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; width=&quot;400&quot; src=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TQ8Mx-de25I/AAAAAAAAEi0/loB5Z7SOCLw/s400/setup-and-settings-wordpress-finish.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;全文完&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/2847301031200599161/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/12/debianwordpress.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/2847301031200599161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/2847301031200599161'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/12/debianwordpress.html' title='在Debian上搭建WordPress测试环境'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_UX_e8nZMpQ0/TQ7wNJfwqFI/AAAAAAAAEiQ/efYGz-aHHp8/s72-c/vbox-debian-stable-network-settings.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-1258496669410738761</id><published>2010-12-14T14:23:00.000+08:00</published><updated>2011-07-11T19:36:35.784+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>我的 Funtoo Bootsplash</title><content type='html'>无意中发现&lt;a href=&quot;http://linuxsir.org/bbs/thread343939.html&quot;&gt;这篇文章&lt;/a&gt;，觉得挺有意思，于是也折腾了一番。不过和那篇文章不同，我使用uvesafb（Userspace VESA VGA graphics）。&lt;br /&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;测试平台&lt;/h2&gt;系统：Funtoo 64bit (ACCEPT_KEYWORDS=&quot;amd64&quot;)&lt;br /&gt;内核：ck-sources-2.6.36-r3&lt;br /&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;安装软件包&lt;/h2&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;emerge -av sys-apps/v86d&lt;br /&gt;USE=&quot;mng png fbcondecor&quot; emerge -av media-gfx/splashutils&lt;br /&gt;emerge -av media-gfx/splash-themes-gentoo&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;内核配置&lt;/h2&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: php; html-script: true&quot;&gt;General Setup -&gt;&lt;br /&gt;    (/usr/share/v86d/initramfs) Initramfs source file(s)&lt;br /&gt;&lt;br /&gt;Processor type and features ---&gt;&lt;br /&gt;  [*] MTRR (Memory Type Range Register) support&lt;br /&gt;&lt;br /&gt;Device Drivers  ---&gt;&lt;br /&gt;    &lt;*&gt; Connector - unified userspace &lt;-&gt; kernelspace linker  ---&gt;&lt;br /&gt;&lt;br /&gt;    Input Device Support ---&gt;&lt;br /&gt;      &lt;*&gt; Event Interface&lt;br /&gt;&lt;br /&gt;    Graphics support  ---&gt; &lt;br /&gt;      [*] Support for frame buffer devices  ---&gt;&lt;br /&gt;          [*] Enable firmware EDID&lt;br /&gt;          Frame buffer hardware drivers&lt;br /&gt;              &lt;*&gt; Userspace VESA VGA graphics support&lt;br /&gt;      Console display driver support  ---&gt;&lt;br /&gt;          &lt;*&gt; Framebuffer Console support &lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;制作initrd镜像&lt;/h2&gt;因为我是使用genkernel来编译内核的，所以这步我使用genkernel来生成initrd文件，不使用genkernel的可以参考上面那篇文章的方法。&lt;br /&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: js;&quot;&gt;genkernel --install --splash=natural_gentoo initramfs&lt;/pre&gt;其中一些参数的含义&lt;br /&gt;&lt;ul&gt;&lt;li&gt;--install 表示自动将内核等文件复制到/boot下&lt;/li&gt;&lt;li&gt; --splash=natural_gentoo 表示使用natural_gentoo这个主题，可以在 /etc/splash/ 下查看已安装的主题&lt;/li&gt;&lt;li&gt;initramfs 表示只生成initrd文件&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;Grub引导参数&lt;/h2&gt;我使用的是Grub1.97.2，Grub legacy的也一样。&lt;br /&gt;&lt;blockquote&gt;&lt;pre class=&quot;brush: js;&quot;&gt;menuentry &quot;Funtoo Linux x64 CLI&quot; {&lt;br /&gt;    (……)&lt;br /&gt;    linux /kernel-genkernel-x86_64-2.6.36-ck-r3 root=/dev/ram0 real_root=/dev/sda7 rootfstype=ext4 quiet video=uvesafb:mtrr:3,ywrap,1024x768-32@60 splash=silent,theme:natural_gentoo console=tty1&lt;br /&gt;    initrd /initramfs-genkernel-x86_64-2.6.36-ck-r3&lt;br /&gt;    }&lt;br /&gt;&lt;/pre&gt;其中一些参数的含义&lt;br /&gt;&lt;ul&gt;&lt;li&gt;rootfstype=ext4 指定根分区文件系统为ext4，避免内核使用ext2、ext3&lt;/li&gt;&lt;li&gt;quiet 不显示内核加载信息&lt;/li&gt;&lt;li&gt;video=uvesafb 指定使用Userspace VESA VGA graphics&lt;/li&gt;&lt;li&gt;splash=silent,theme:natural_gentoo 指定splash主题&lt;/li&gt;&lt;li&gt;console=tty1 重定向kernel和initscript输出信息到tty1&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;截图&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TQcJNWi23mI/AAAAAAAAEiA/aYNmG64Tdxg/s1600/funtoo_splash.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;328&quot; width=&quot;400&quot; src=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TQcJNWi23mI/AAAAAAAAEiA/aYNmG64Tdxg/s400/funtoo_splash.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TQcJNsmIBSI/AAAAAAAAEiI/bFMdfI1yrtQ/s1600/funtoo_booting_finish.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;328&quot; width=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TQcJNsmIBSI/AAAAAAAAEiI/bFMdfI1yrtQ/s400/funtoo_booting_finish.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2 style=&quot;background-color: rgb(226, 252, 238); line-height: 25px; border: 1px solid rgb(102, 102, 102); color: rgb(0, 0, 0); text-indent: 6px; font-size: 16px;&quot;&gt;参考文献&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://en.gentoo-wiki.com/wiki/Framebuffer&quot;&gt;Framebuffer&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.gentoo.org/doc/en/genkernel.xml&quot;&gt;Gentoo Linux Genkernel Guide&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://linuxsir.org/bbs/thread343939.html&quot;&gt;装饰终端，bootsplash的vesafb解决方案&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/1258496669410738761/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/12/funtoo-bootsplash.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/1258496669410738761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/1258496669410738761'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/12/funtoo-bootsplash.html' title='我的 Funtoo Bootsplash'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_UX_e8nZMpQ0/TQcJNWi23mI/AAAAAAAAEiA/aYNmG64Tdxg/s72-c/funtoo_splash.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-5852551070907478430</id><published>2010-11-30T21:55:00.000+08:00</published><updated>2011-07-11T19:36:35.784+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Virtualbox发送Ctrl+Alt+F2命令到Guest OS里</title><content type='html'>当需要在VBox里的GNU/Linux GuestOS里切换tty时，一般都是习惯按下&lt;i&gt; Ctrl+Alt+F{n}&lt;/i&gt;，当然，这样是不行的，只会切换Host OS里的tty。前提是HostOS为GNU/Linux系统，M$系统下可以直接按 &lt;i&gt;Ctrl+Alt+F{n}&lt;/i&gt; 切换。&lt;br /&gt;&lt;br /&gt;其实也很简单，就是按下&amp;nbsp; &lt;i&gt;Host+F{n}&lt;/i&gt;。默然情况下Host键为Right Ctrl，比如切换到tty3，就是按下 &lt;i&gt;Right Ctrl+F3&lt;/i&gt;。&lt;br /&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/5852551070907478430/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/11/virtualboxctrlaltf2guest-os.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/5852551070907478430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/5852551070907478430'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/11/virtualboxctrlaltf2guest-os.html' title='Virtualbox发送Ctrl+Alt+F2命令到Guest OS里'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-2798354646714206095</id><published>2010-11-12T11:38:00.000+08:00</published><updated>2011-07-11T19:35:56.562+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="软件应用"/><title type='text'>在VirtualBox虚拟的WinXP里用上SATA控制器</title><content type='html'>为了我那可爱的IE Only网上银行，为了我的星际争霸等老游戏、为了我那不折腾会死星人的美名、为了……。好吧，我有好多个理由去虚拟机上安装一个WinXP了。&lt;br /&gt;&lt;br /&gt;查看了下&lt;a href=&quot;http://www.virtualbox.org/manual/ch05.html&quot;&gt;VBox手册&lt;/a&gt;，发现下面这段话：&lt;br /&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;The entire SATA controller and the virtual disks attached to it (including those in IDE compatibility mode) will not be seen by operating systems that do not have device support for AHCI. In particular, &lt;b&gt;&lt;u&gt;there is no support for AHCI in Windows before Windows Vista&lt;/u&gt;&lt;/b&gt;, so Windows XP (even SP2) will not see such disks unless you install additional drivers. It is possible to switch from IDE to SATA after installation by installing the SATA drivers and changing the controller type in the VM settings dialog.&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;而且手册里说，使用SATA控制器比使用IDE控制&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;运行速度更快，消耗更少的CPU资源&lt;/span&gt;，至于是否如此，见仁见智吧。&lt;br /&gt;&lt;br /&gt;测试平台&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Virtualbox 3.2.10 r66523&lt;/li&gt;&lt;li&gt;Archlinux 64bit（Host OS）&lt;/li&gt;&lt;li&gt;Windows 7&amp;nbsp;Professional（Host OS）&lt;/li&gt;&lt;li&gt;Windows XP&amp;nbsp;Professional（Guest OS）&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;说了这么多，开始干活。新建一个虚拟机，暂不要启动，先设置一下。如下图所示，新建一个SATA控制器&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TNlcm5-uBMI/AAAAAAAAEdo/zx-Ya8xMstc/s1600/windows+for+games+sata+ahci-3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;244&quot; src=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TNlcm5-uBMI/AAAAAAAAEdo/zx-Ya8xMstc/s320/windows+for+games+sata+ahci-3.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;其中IDE控制器上的vdi虚拟硬盘是用来装XP的，&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;如果连系统盘都在SATA控制器上，需要在安装XP时按F6从软驱加载驱动&lt;/span&gt;，或用集成SATA控制器驱动的XP安装盘也可以，而我的只是原版XP，就不选SATA了。&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #fff2cc; color: blue;&quot;&gt;如果你需要这个软盘驱动镜像，请看文章最后一节的镜像下载&lt;/span&gt;。&lt;br /&gt;&lt;br /&gt;先简单说说，如果XP系统所在的虚拟硬盘在SATA控制器上，好处是SATA控制器比IDE控制器要省资源。坏处是麻烦，需额外加载驱动。&lt;br /&gt;&lt;br /&gt;选择好自己的控制器后，接着开始安装XP啦，等待安装完成，先进入&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;XP安全模式&lt;/b&gt;&lt;/span&gt;，安装VBox的GuestAdditions，然后重启（别进安全模式了），进入系统后一般会有以下提示（如果你安装时按F6从软驱加载了驱动，可以忽略下面的内容了）&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TNlgOcD20XI/AAAAAAAAEds/tZL1xSQRaYA/s1600/windows+for+games+sata+ahci-4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TNlgOcD20XI/AAAAAAAAEds/tZL1xSQRaYA/s320/windows+for+games+sata+ahci-4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;这里我们还缺少Intel的驱动，没错！VBox虚拟的其实就是 &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red; font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;Intel ICH8M SATA AHCI Controller&lt;/span&gt;，下载驱动并安装之（&lt;a href=&quot;http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;amp;ProdId=2791&amp;amp;DwnldID=13675&amp;amp;keyword=AHCI&amp;amp;lang=zho&quot;&gt;Intel官方网站&lt;/a&gt; | &lt;a href=&quot;https://docs.google.com/leaf?id=0BzoVXoxinwoEMDk1NjIwNmUtMTUwNy00ZjY5LTkwMjAtZDNmOTRlZDM2MDhj&amp;amp;hl=zh_CN&amp;amp;authkey=CPmh2oMB&quot;&gt;Google Docs&lt;/a&gt;）。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TNlvg8zXk5I/AAAAAAAAEdw/cAyKGGNUSZU/s1600/windows+for+games+sata+ahci.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TNlvg8zXk5I/AAAAAAAAEdw/cAyKGGNUSZU/s320/windows+for+games+sata+ahci.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TNpEEf1F6mI/AAAAAAAAEd8/YNN3iVArThI/s1600/windows+for+games+sata+ahci-2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TNpEEf1F6mI/AAAAAAAAEd8/YNN3iVArThI/s320/windows+for+games+sata+ahci-2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;至此，VBox里的XP已经支持SATA控制器了。&lt;br /&gt;&lt;br /&gt;Intel ICH8M RAID/SATA Controller 软盘驱动镜像下载，支持&amp;nbsp;Windows Vista，XP Home，XP Media Center，XP Professional。&lt;br /&gt;&lt;ul&gt;&lt;li&gt;32bit版本软盘镜像（&lt;a href=&quot;https://docs.google.com/leaf?id=0BzoVXoxinwoEZjBkNThlOWEtODc2ZC00OTEyLThhYTQtODY0NzM2MjEzNTk1&amp;amp;hl=zh_CN&quot;&gt;Google Docs&lt;/a&gt;）&lt;/li&gt;&lt;li&gt;64bit版本软盘镜像（&lt;a href=&quot;https://docs.google.com/leaf?id=0BzoVXoxinwoEODVmZTBlOWUtY2Q5ZC00YzQ1LThkZDYtNTg0NTI3YjhhZmQz&amp;amp;hl=zh_CN&quot;&gt;Google Docs&lt;/a&gt;）&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TNpAqRnaB3I/AAAAAAAAEd4/qepmNxwQPTo/s1600/Intel_AHCI_drivers_Install_windowsxp.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;209&quot; src=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TNpAqRnaB3I/AAAAAAAAEd4/qepmNxwQPTo/s320/Intel_AHCI_drivers_Install_windowsxp.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;如果上面的下载链接都失效了，可留言，我邮件发&lt;br /&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/2798354646714206095/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/11/virtualboxwinxpsata.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/2798354646714206095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/2798354646714206095'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/11/virtualboxwinxpsata.html' title='在VirtualBox虚拟的WinXP里用上SATA控制器'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_UX_e8nZMpQ0/TNlcm5-uBMI/AAAAAAAAEdo/zx-Ya8xMstc/s72-c/windows+for+games+sata+ahci-3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-7728210629334525332</id><published>2010-11-09T13:55:00.006+08:00</published><updated>2011-07-11T19:37:45.194+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="软件应用"/><title type='text'>Splayer（射手播放器）的Mplayer热键方案设置</title><content type='html'>&lt;a href=&quot;http://www.splayer.org/&quot;&gt;射手播放器&lt;/a&gt;是我在Win下&lt;a href=&quot;http://zh.wikipedia.org/wiki/Mplayer&quot;&gt;Mplayer&lt;/a&gt;之外的另一个选择。自升级到3.6版后，热键的设置变更了，而我早就习惯了Mplayer的热键，所以我使用其他的播放器时都会将热键设成和Mplayer一样。当然，不可能做到100%一样，&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;我也只是设置了几个我常用的热键而已&lt;/span&gt;。&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: js;&quot;&gt;[mplayer]&lt;br /&gt;//播放器相关&lt;br /&gt;ID_FILE_OPENMEDIA = VK_O, FVIRTKEY|FNOINVERT|FCONTROL //打开文件&lt;br /&gt;ID_VIEW_FULLSCREEN = VK_F, FVIRTKEY|FNOINVERT //切换全屏&lt;br /&gt;ID_VIEW_FULLSCREEN = VK_RETURN, FVIRTKEY|FNOINVERT //切换全屏&lt;br /&gt;ID_BRIGHTDEC = VK_3, FVIRTKEY|FNOINVERT //降低亮度&lt;br /&gt;ID_BRIGHTINC = VK_4, FVIRTKEY|FNOINVERT //提高亮度&lt;br /&gt;ID_FILE_SAVE_IMAGE_AUTO = VK_S, FVIRTKEY|FNOINVERT //快速截图到默认目录&lt;br /&gt;&lt;br /&gt;//导航相关&lt;br /&gt;ID_NAVIGATE_SKIPFORWARDPLITEM = VK_OEM_PERIOD, FVIRTKEY|FNOINVERT|FSHIFT //下一个项目&lt;br /&gt;ID_NAVIGATE_SKIPBACKPLITEM = VK_OEM_COMMA, FVIRTKEY|FNOINVERT|FSHIFT //上一个项目&lt;br /&gt;ID_NAVIGATE_SKIPFORWARDPLITEM = VK_HOME, FVIRTKEY|FNOINVERT|FSHIFT //下一个项目&lt;br /&gt;ID_NAVIGATE_SKIPBACKPLITEM = VK_END, FVIRTKEY|FNOINVERT|FSHIFT //上一个项目&lt;br /&gt;ID_VIEW_PLAYLIST = VK_P, FVIRTKEY|FNOINVERT|FSHIFT //打开播放列表&lt;br /&gt;&lt;br /&gt;//播放控制相关&lt;br /&gt;ID_PLAY_PLAYPAUSE = VK_P, FVIRTKEY|FNOINVERT, APPCOMMAND_MEDIA_PLAY_PAUSE, NONE //播放/暂停&lt;br /&gt;ID_PLAY_PLAYPAUSE = VK_SPACE, FVIRTKEY|FNOINVERT //播放/暂停&lt;br /&gt;ID_PLAY_FRAMESTEP = VK_OEM_PERIOD, FVIRTKEY|FNOINVERT //逐帧前进&lt;br /&gt;ID_PLAY_FRAMESTEPCANCEL = VK_OEM_COMMA, FVIRTKEY|FNOINVERT //逐帧回退&lt;br /&gt;ID_PLAY_SEEKFORWARDSMALL = VK_RIGHT, FVIRTKEY|FNOINVERT, APPCOMMAND_MEDIA_FAST_FORWARD, NONE //小幅快进&lt;br /&gt;ID_PLAY_SEEKBACKWARDSMALL = VK_LEFT, FVIRTKEY|FNOINVERT, APPCOMMAND_MEDIA_REWIND, NONE //小幅快退&lt;br /&gt;ID_PLAY_SEEKFORWARDMED = VK_UP, FVIRTKEY|FNOINVERT //快进&lt;br /&gt;ID_PLAY_SEEKBACKWARDMED = VK_DOWN, FVIRTKEY|FNOINVERT //快退&lt;br /&gt;ID_PLAY_INCRATE = VK_OEM_6, FVIRTKEY|FNOINVERT //加速播放&lt;br /&gt;ID_PLAY_DECRATE = VK_OEM_4, FVIRTKEY|FNOINVERT //减速播放&lt;br /&gt;ID_PLAY_RESETRATE = VK_BACK, FVIRTKEY|FNOINVERT //重置播放速度&lt;br /&gt;ID_NAVIGATE_MENU_UP = KEY_1, FVIRTKEY|FNOINVERT|FSHIFT //DVD菜单控制：上&lt;br /&gt;ID_NAVIGATE_MENU_DOWN = KEY_2, FVIRTKEY|FNOINVERT|FSHIFT //DVD菜单控制：下&lt;br /&gt;&lt;br /&gt;//字幕相关&lt;br /&gt;ID_TOGGLE_SUBTITLE = VK_V, FVIRTKEY|FNOINVERT //显示/隐藏字幕&lt;br /&gt;ID_STREAM_SUB_NEXT = VK_J, FVIRTKEY|FNOINVERT //下一个字幕&lt;br /&gt;ID_STREAM_SUB_PREV = VK_B, FVIRTKEY|FNOINVERT //上一个字幕&lt;br /&gt;ID_SUB_DELAY_DOWN = VK_X, FVIRTKEY|FNOINVERT //减少主字幕延时&lt;br /&gt;ID_SUB_DELAY_UP = VK_Z, FVIRTKEY|FNOINVERT //增加主字幕延时&lt;br /&gt;ID_SUB_DELAY_DOWN2 = VK_X, FVIRTKEY|FNOINVERT|FALT //减少第二字幕延时&lt;br /&gt;ID_SUB_DELAY_UP2 = VK_Z, FVIRTKEY|FNOINVERT|FALT //增加第二字幕延时&lt;br /&gt;ID_SUBMOVEUP = VK_R, FVIRTKEY|FNOINVERT //主字幕上移&lt;br /&gt;ID_SUBMOVEDOWN = VK_T, FVIRTKEY|FNOINVERT //主字幕下移&lt;br /&gt;ID_SUB2MOVEUP = VK_R, FVIRTKEY|FNOINVERT|FCONTROL|FALT //第二字幕上移&lt;br /&gt;ID_SUB2MOVEDOWN = VK_T, FVIRTKEY|FNOINVERT|FCONTROL|FALT //第二字幕下移&lt;br /&gt;&lt;br /&gt;//音轨、音量相关&lt;br /&gt;ID_PLAY_INCAUDDELAY = VK_OEM_PLUS, FVIRTKEY|FNOINVERT //音频延时 +50ms&lt;br /&gt;ID_PLAY_DECAUDDELAY = VK_OEM_MINUS, FVIRTKEY|FNOINVERT //音频延时 -50ms&lt;br /&gt;ID_VOLUME_UP = VK_9, FVIRTKEY|FNOINVERT, APPCOMMAND_VOLUME_UP, WUP //提高音量&lt;br /&gt;ID_VOLUME_DOWN = VK_0, FVIRTKEY|FNOINVERT, APPCOMMAND_VOLUME_DOWN, WDOWN //降低音量&lt;br /&gt;ID_VOLUME_MUTE = VK_M, FVIRTKEY|FNOINVERT|FCONTROL, APPCOMMAND_VOLUME_MUTE, NONE //静音&lt;br /&gt;&lt;br /&gt;//其他&lt;br /&gt;ID_BOSS = VK_OEM_3, FVIRTKEY|FNOINVERT|FCONTROL //老板键&lt;br /&gt;ID_FILE_EXIT = VK_Q, FVIRTKEY|FNOINVERT //退出&lt;br /&gt;ID_FILE_EXIT = VK_ESCAPE, FVIRTKEY|FNOINVERT //退出&lt;br /&gt;ID_ONTOP_ALWAYS = VK_T, FVIRTKEY|FNOINVERT //钉在桌面前端&lt;br /&gt;ID_SHOW_VIDEO_STAT_OSD = VK_I, FVIRTKEY|FNOINVERT //显示文件信息&lt;br /&gt;ID_ABCONTROL_TOGGLE = VK_F7, FVIRTKEY|FNOINVERT|FSHIFT //切换AB控制&lt;br /&gt;ID_ABCONTROL_SETA = VK_F8, FVIRTKEY|FNOINVERT|FSHIFT //AB控制设置A点&lt;br /&gt;ID_ABCONTROL_SETB = VK_F9, FVIRTKEY|FNOINVERT|FSHIFT //AB控制设置B点&lt;br /&gt;ID_FILE_PROPERTIES = VK_TAB, FVIRTKEY|FNOINVERT|FSHIFT //属性&lt;br /&gt;ID_MENU_PLAYER_SHORT = VK_F2, FVIRTKEY|FNOINVERT, APPCMD_NONE, RUP //播放器菜单&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;将上面的内容存为 mplayer.key ，放到射手播放器目录下的 hotkey 文件夹中，然后按下图设置即可。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TNjZwHMhG4I/AAAAAAAAEdk/egciugiRRsE/s1600/splayer.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TNjZwHMhG4I/AAAAAAAAEdk/egciugiRRsE/s320/splayer.jpg&quot; width=&quot;257&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;相关链接：&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://shortcutkeys.net/mplayer/&quot;&gt;Mplayer热键介绍&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.shooter.cn/wiki/%E5%B0%84%E6%89%8B%E5%BD%B1%E9%9F%B3HotKey%E7%BC%96%E8%BE%91%E6%8C%87%E5%8D%97&quot;&gt;射手影音HotKey编辑指南&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/7728210629334525332/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/11/splayermplayer.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/7728210629334525332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/7728210629334525332'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/11/splayermplayer.html' title='Splayer（射手播放器）的Mplayer热键方案设置'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_UX_e8nZMpQ0/TNjZwHMhG4I/AAAAAAAAEdk/egciugiRRsE/s72-c/splayer.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-4666022219416103015</id><published>2010-11-07T14:34:00.002+08:00</published><updated>2011-07-11T19:37:06.671+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><category scheme="http://www.blogger.com/atom/ns#" term="软件应用"/><title type='text'>解决Live Messenger（MSN）安装出现0x80072ee6错误</title><content type='html'>作为一名兲朝屁民，对最近360和腾讯打得火热，表示完全没有压力······&lt;br /&gt;由于最近在M$下的时间比较多，需要用到MSN，于是去下了个Live Messenger 2009版（&lt;a href=&quot;http://www.google.com/search?q=windows+live+messenger&quot;&gt;传送门&lt;/a&gt;），安装时居然提示0x80072ee6错误，无法继续安装。实在搞不明白是什么问题，只好求助Google大神，并将解决方法记录下来。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TNZBnZ0KUqI/AAAAAAAAEdE/kQt6dR0NuEs/s1600/%E6%8D%95%E8%8E%B71.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;164&quot; src=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TNZBnZ0KUqI/AAAAAAAAEdE/kQt6dR0NuEs/s320/%E6%8D%95%E8%8E%B71.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;首先，网上写的最多的方法是重新注册MSXML3.dll这个文件，并且清除DNS缓存&lt;br /&gt;&lt;blockquote&gt;regsvr32 MSXML3.dll&lt;/blockquote&gt;打开cmd，运行&lt;br /&gt;&lt;blockquote&gt;ipconfig /flushdns&lt;/blockquote&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;但我使用了后，没有效果，仍然出现上面的错误&lt;/span&gt;&lt;/b&gt;，只好继续。后来找到说用离线安装版能避免这个错误，于是灵机一动，难道是我的IE代理设置造成这个错误的？由于我的Chrome上使用&lt;a href=&quot;https://chrome.google.com/extensions/detail/caehdcpeofiiigpdhbabniblemipncjj&quot;&gt;Proxy Switchy!&lt;/a&gt;自动翻墙，而Proxy Switchy!会自动在IE代理上添加一个pac文件，于是马上取消选择这个pac，再运行Live Messenger安装程序，问题解决！&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TNZER5JOfFI/AAAAAAAAEdI/XzTQ8e2bfgI/s1600/%E6%8D%95%E8%8E%B72.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;http://1.bp.blogspot.com/_UX_e8nZMpQ0/TNZER5JOfFI/AAAAAAAAEdI/XzTQ8e2bfgI/s320/%E6%8D%95%E8%8E%B72.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TNZESq-HFGI/AAAAAAAAEdM/7CNnYo2k6v8/s1600/%E6%8D%95%E8%8E%B74.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TNZESq-HFGI/AAAAAAAAEdM/7CNnYo2k6v8/s320/%E6%8D%95%E8%8E%B74.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;题外话&lt;br /&gt;&lt;ul&gt;&lt;li&gt;装这个Live Messenger太慢了，居然用了十多分钟，主要是在线安装版，都快够我装一个Ubuntu10.10了。最要命的是，用了不够半小时，最后还是觉得Pidgin好用······&lt;/li&gt;&lt;li&gt;顺便自曝一下我的MSN/Gtalk/Skype帐号，有兴趣的可以加我好友。关于本人，☑ACG☑IT☑G粉☑Linux☑M$☑P2P☑热爱自由☑热爱MM☑非常懒☑天文爱好者。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TNZGNUELgPI/AAAAAAAAEdQ/rZxWHfpD0aA/s1600/mygtalk.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/TNZGNUELgPI/AAAAAAAAEdQ/rZxWHfpD0aA/s1600/mygtalk.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;很有喜感的提示&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TNo1wBs3IUI/AAAAAAAAEd0/rf8p6yPc594/s1600/qqvs360.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TNo1wBs3IUI/AAAAAAAAEd0/rf8p6yPc594/s320/qqvs360.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;全文完&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/4666022219416103015/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/11/live-messengermsn0x80072ee6.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4666022219416103015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4666022219416103015'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/11/live-messengermsn0x80072ee6.html' title='解决Live Messenger（MSN）安装出现0x80072ee6错误'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_UX_e8nZMpQ0/TNZBnZ0KUqI/AAAAAAAAEdE/kQt6dR0NuEs/s72-c/%E6%8D%95%E8%8E%B71.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-1491757344102554472</id><published>2010-08-24T23:08:00.000+08:00</published><updated>2011-07-11T19:37:06.671+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>32位Windows7与4G以上内存</title><content type='html'>今天按照这篇《&lt;a href=&quot;http://www.geoffchappell.com/notes/windows/license/memory.htm&quot;&gt;Licensed Memory in 32-Bit Windows Vista&lt;/a&gt;》文章，终于在我的32位Windows7专业版上用上8G内存了，泪流满面啊，有图有真相。&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/THPf9MBjedI/AAAAAAAAB3I/-vUekeO61Sk/s1600/pae_on_win7.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;http://3.bp.blogspot.com/_UX_e8nZMpQ0/THPf9MBjedI/AAAAAAAAB3I/-vUekeO61Sk/s320/pae_on_win7.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/1491757344102554472/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/08/32windows74g.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/1491757344102554472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/1491757344102554472'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/08/32windows74g.html' title='32位Windows7与4G以上内存'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_UX_e8nZMpQ0/THPf9MBjedI/AAAAAAAAB3I/-vUekeO61Sk/s72-c/pae_on_win7.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-2859106715652924587</id><published>2010-08-12T21:09:00.000+08:00</published><updated>2011-07-11T19:35:56.563+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HowTo"/><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>一句话技巧：解决 No protocol specified 错误</title><content type='html'>最近在使用 sudo vi 命令时总是提示 No protocol specified，今天有空查了下，只要下面的命令即可解决。&lt;br /&gt;&lt;blockquote&gt;$ xhost&lt;br /&gt;$ xhost +local:&lt;/blockquote&gt;该命令在 x11-apps/xhost (Gentoo) 包下，xhost 是用来控制 X server 访问权限的。&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/2859106715652924587/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/08/no-protocol-specified.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/2859106715652924587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/2859106715652924587'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/08/no-protocol-specified.html' title='一句话技巧：解决 No protocol specified 错误'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-4425899162414031800</id><published>2010-07-14T23:39:00.000+08:00</published><updated>2011-07-11T19:36:55.136+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="MAC"/><title type='text'>在 VMware 7.1 上安装 Snow Leopard 成功</title><content type='html'>实验环境：&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Host OS：Windows 7 Professional, 64-bit (Build 7600) 6.1.7600&lt;/li&gt;&lt;li&gt;Guest OS：Snow Leopard 10.6.0&lt;/li&gt;&lt;li&gt;VMware Workstation 7.1.0 build-261024&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TD3T_P2cPdI/AAAAAAAAB2w/wxFB47R-tZI/s1600/snow_leopard_on_vmware-7.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;266&quot; src=&quot;http://2.bp.blogspot.com/_UX_e8nZMpQ0/TD3T_P2cPdI/AAAAAAAAB2w/wxFB47R-tZI/s320/snow_leopard_on_vmware-7.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TD3T_AvBorI/AAAAAAAAB20/STluRm1gtNM/s1600/about_vmware_7_version.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;236&quot; src=&quot;http://4.bp.blogspot.com/_UX_e8nZMpQ0/TD3T_AvBorI/AAAAAAAAB20/STluRm1gtNM/s320/about_vmware_7_version.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;安装方法：&lt;br /&gt;参照&lt;a href=&quot;http://blog.loveyuki.com/Article/snow-leopard-in-vmware.aspx&quot; title=&quot;VMware 7 下玩转 Snow Leopard 10.6.2&quot;&gt;&lt;b&gt;这篇文章&lt;/b&gt;&lt;/a&gt;安装。文章里的pdf文档提及到可以用 Windows 或 Linux 版的 Vmware 7 来安装，但 Linux 版的我还没有测试，具体情况不明。&lt;br /&gt;&lt;br /&gt;优点：&lt;br /&gt;&lt;ol&gt;&lt;li&gt;不用安装在物理硬盘上，无需关心GUID分区表什么的。&lt;/li&gt;&lt;li&gt;可以直接用原版的苹果系统DMG镜像安装，上面的文章说要用 UltraISO 将镜像转换为标准 ISO 格式，但我这里不用转换，VMware 可以直接读取 DMG 镜像，选择的时候将类型改为 All files (*.*) 即可。&lt;/li&gt;&lt;li&gt;可以直接在线更新系统。&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;缺点：&lt;br /&gt;&lt;ol&gt;&lt;li&gt;图片预览用不了。&lt;/li&gt;&lt;li&gt;运行在虚拟机上，效能不及真机。&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/4425899162414031800/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/07/vmware-71-snow-leopard.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4425899162414031800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/4425899162414031800'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/07/vmware-71-snow-leopard.html' title='在 VMware 7.1 上安装 Snow Leopard 成功'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_UX_e8nZMpQ0/TD3T_P2cPdI/AAAAAAAAB2w/wxFB47R-tZI/s72-c/snow_leopard_on_vmware-7.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-5214228214492982308</id><published>2010-06-25T12:57:00.001+08:00</published><updated>2011-07-11T19:36:35.785+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>将 Gentoo/Funtoo 的 Portage 移到 /dev/shm 上</title><content type='html'>原理大致上是利用/dev/shm把portage放到内存里面去，由于portage的小文件很多，而在硬盘上操作小文件效率低下，不管是 search 还是 sync ，在笔记本电脑上尤为明显。&lt;br /&gt;&lt;b&gt;注意：为了能将 Portage 移动到内存上，必须要有大于1GB的&lt;span style=&quot;color: red;&quot;&gt;空闲内存&lt;/span&gt;。 &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;将 Portage 移到 /dev/shm 上&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;&lt;h4&gt;备份当前的 portage 和 layman&lt;/h4&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# mv /usr/portage /usr/portage.bak&lt;br /&gt;# mv /var/lib/layman /var/lib/layman.bak&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;h4&gt;创建目录&lt;/h4&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# mkdir /dev/shm/portage&lt;br /&gt;# mkdir /dev/shm/layman&lt;br /&gt;# ln -sf /dev/shm/portage /usr/portage&lt;br /&gt;# ln -sf /dev/shm/layman /var/lib/layman&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;h4&gt;将 Portage 复制到 /dev/shm 上&lt;/h4&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# cp -r /usr/portage.bak/* /dev/shm/portage&lt;br /&gt;# cp -r /var/lib/layman.bak/* /dev/shm/layman&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;现在可以开始体验内存上的 Portage 速度相对于在硬盘上有多快了，但由于内存的特性，现在&lt;span style=&quot;color: red;&quot;&gt;所做的一切都会在关机后消失&lt;/span&gt;，所以还需要一个启动脚本，每次开机就将 Portage 放到内存上，关机会自动备份到硬盘里，不需要人工干预。&lt;/blockquote&gt;&lt;h3&gt;设置启动脚本&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;&lt;h4&gt;设置变量&lt;/h4&gt;&lt;span style=&quot;font-size: x-small;color: #cccccc;&quot;&gt;/etc/conf.d/portage 文件范例&lt;/span&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# vi /etc/conf.d/portage&lt;br /&gt;&lt;br /&gt;PORTAGE_DIR=/dev/shm/portage     #存放portage的目录。&lt;br /&gt;LAYMAN_DIR=/dev/shm/layman       #存放layman的目录。&lt;br /&gt;BACKUP_DIR=/var                  #存放备份文件的目录。&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;h4&gt;创建脚本&lt;/h4&gt;&lt;span style=&quot;font-size: x-small;color: #cccccc;&quot;&gt;/etc/init.d/portage 文件范例&lt;/span&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# vi /etc/init.d/portage&lt;br /&gt;&lt;br /&gt;!/sbin/runscript&lt;br /&gt;# Copyright 2009 Chen Wen &lt;pokkys@gmail.com&gt;&lt;br /&gt;# All rights reserved. Released under the GPL-3 license.&lt;br /&gt; &lt;br /&gt;description=&quot;Save and restore the portage in to /dev/shm.&quot;&lt;br /&gt;depend()&lt;br /&gt;{&lt;br /&gt;    need localmount&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;start()&lt;br /&gt;{&lt;br /&gt;    if [ ! -f &quot;${PORTAGE_DIR}/header.txt&quot; ]; then&lt;br /&gt;        ebegin &quot;Extract portage&quot;&lt;br /&gt;        tar xPf ${BACKUP_DIR}/portage.tar.gz -C /&lt;br /&gt;        eend $? &quot;Error extract prtage&quot;&lt;br /&gt;        ebegin &quot;Extract layman&quot;&lt;br /&gt;        tar xPf ${BACKUP_DIR}/layman.tar.gz -C /&lt;br /&gt;        eend $? &quot;Error extract layman&quot;&lt;br /&gt;    fi&lt;br /&gt;    return 0&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;stop()&lt;br /&gt;{&lt;br /&gt;    if [ -f &quot;${PORTAGE_DIR}/header.txt&quot; ]; then&lt;br /&gt;        ebegin &quot;Saving portage&quot;&lt;br /&gt;        tar zpPcf ${BACKUP_DIR}/portage.tar.gz ${PORTAGE_DIR}&lt;br /&gt;        eend $? &quot;Failed to save portage&quot;&lt;br /&gt;        ebegin &quot;Saving layman&quot;&lt;br /&gt;        tar zpPcf ${BACKUP_DIR}/layman.tar.gz ${LAYMAN_DIR}&lt;br /&gt;        eend $? &quot;Failed to save layman&quot;&lt;br /&gt;    fi&lt;br /&gt;}&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;h4&gt;设置脚本开机自启动&lt;/h4&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# chmod +x /etc/init.d/portage&lt;br /&gt;# /etc/init.d/portage start&lt;br /&gt;# rc-update add portage default&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;至此，该脚本能独立运作了。&lt;/blockquote&gt;&lt;h3&gt;参考文献&lt;/h3&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://forums.gentoo.tw/viewtopic.php?t=44494&quot;&gt;利用/dev/shm 加速 portage運作&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.gentoo.org/doc/zh_cn/handbook/index.xml&quot;&gt;Gentoo手册&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/5214228214492982308/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/06/gentoofuntoo-portage-devshm.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/5214228214492982308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/5214228214492982308'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/06/gentoofuntoo-portage-devshm.html' title='将 Gentoo/Funtoo 的 Portage 移到 /dev/shm 上'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6646984953855535719.post-9190547646641720022</id><published>2010-06-24T16:06:00.001+08:00</published><updated>2011-07-11T19:36:35.785+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="IT"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Gentoo/Funtoo 增加一个 GUI 的 runlevel</title><content type='html'>如果想在启动Gentoo/Funtoo后直接进入X，常规的方法是 rc-update add xdm default 来自动加载登录管理器，但这样有一点不足：假如我只想临时启动到CLI界面，按照这个方法必须先启动到登录管理器才能却换到CLI下，虽然不算很麻烦，但有点浪费时间。所以有必要定义两个softlevel，一个CLI softlevel（通常就是default）只加载字符界面下需要的服务，与X相关的都不加载；另一个GUI softlevel则加载与图形相关的服务，例如hald、dbus等。&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Q:什么是 softlevel ？&lt;br /&gt;A:请查看&lt;a href=&quot;http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&amp;amp;chap=4#doc_chap5&quot;&gt;Gentoo手册的介绍&lt;/a&gt;。&lt;/blockquote&gt;&lt;br /&gt;&lt;h2&gt;下面介绍如何定义一个 GUI softlevel&lt;/h2&gt;&lt;ol&gt;&lt;li&gt;&lt;h3&gt;创建 gui softlevel&lt;/h3&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# cd /etc/runlevels&lt;br /&gt;# cp -r default gui&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;h3&gt;把 X 相关的启动项添加到 gui&lt;/h3&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# rc-update add xdm gui&lt;br /&gt;# rc-update add consolekit gui&lt;br /&gt;# ……&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;h3&gt;修改 Grub 引导菜单&lt;/h3&gt;&lt;b&gt;Grub1&lt;/b&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# vi /boot/grub/menu.lst&lt;br /&gt;&lt;br /&gt;实例：&lt;br /&gt;title Funtoo Linux 64bit GUI&lt;br /&gt;        kernel /boot/bzimage root=/dev/sda1 &lt;span style=&quot;color: red;&quot;&gt;softlevel=gui&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Grub2&lt;/b&gt;&lt;br /&gt;&lt;pre class=&quot;prettyprint lang-sh&quot;&gt;# vi /boot/grub/grub.cfg&lt;br /&gt;&lt;br /&gt;实例：&lt;br /&gt;menuentry &quot;Funtoo Linux 64bit GUI {&lt;br /&gt;        linux /boot/bzimage root=/dev/sda1 &lt;span style=&quot;color: red;&quot;&gt;softlevel=gui&lt;/span&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;blockquote&gt;&lt;ul&gt;&lt;li&gt;softlevel=gui 表示启动gui，默认为default。&lt;/li&gt;&lt;li&gt;bootlevel=lite 表示启动lite，默认为boot，这个级别一般都不改动，除非你知道自己在做什么。&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;hr /&gt;
&lt;small&gt;本文来自&lt;a href=&quot;http://imoe.tk&quot;&gt; I&#39;m kaysiness&lt;/a&gt;，内容遵循&lt;a href=&#39;http://creativecommons.org/licenses/by-nc-nd/2.5/cn/&#39;&gt; CC &lt;/a&gt;协议。&lt;/small&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://imoe.tk/feeds/9190547646641720022/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://imoe.tk/2010/06/gentoofuntoo-gui-runlevel.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/9190547646641720022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6646984953855535719/posts/default/9190547646641720022'/><link rel='alternate' type='text/html' href='http://imoe.tk/2010/06/gentoofuntoo-gui-runlevel.html' title='Gentoo/Funtoo 增加一个 GUI 的 runlevel'/><author><name>kaysiness</name><uri>http://www.blogger.com/profile/11041871757749869840</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-vi4JU7VzaDY/Tk4RLLuxCbI/AAAAAAAAJFU/lumu4H7zppA/s220/face-mai-512px.png'/></author><thr:total>0</thr:total></entry></feed>