<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>蓝色的华 &#187; ubuntu</title>
	<atom:link href="http://bluehua.org/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://bluehua.org</link>
	<description>分享所学,backup一切~</description>
	<lastBuildDate>Wed, 23 Nov 2011 08:43:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>一个vpn越墙用的路由表修改工具</title>
		<link>http://bluehua.org/2011/04/14/1560.html</link>
		<comments>http://bluehua.org/2011/04/14/1560.html#comments</comments>
		<pubDate>Thu, 14 Apr 2011 02:46:32 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[soft]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=1560</guid>
		<description><![CDATA[刚换到mac，昨天搞定翻墙这事，自己有个vpn，但是几乎没用，因为开了vpn所有连接就都走vpn了，与内网测试机无缘。不过直到昨天发现，路由表可以搞定这事。。 原理是：默认网关不选vpn，把需要访问网站的ip添加到路由表，路由到vpn网关即可~ 工具:autovpnconf 下载之后用文本编辑器修改一下里面需要使用vpn的网站列表，我只加了几个 前提:连接vpn，并且vpn不是默认网关 mac下只要不选“通过vpn连接发送所有通信”即可 ubuntu下,连接vpn之后就成默认网关了,可以手动改回来 sudo route del default #xx.xx.xx.xx是网关ip eth0是有线网卡设备名，如果用无线就是 wlan0 sudo route add default gw xx.xx.xx.xx dev eth0 之后执行: sudo ./autovpnconf OK了，这样以来只有指定的网站才会走vpn。 ！！！每次连接vpn都需要执行一下～～！]]></description>
			<content:encoded><![CDATA[<p>刚换到mac，昨天搞定翻墙这事，自己有个vpn，但是几乎没用，因为开了vpn所有连接就都走vpn了，与内网测试机无缘。不过直到昨天发现，路由表可以搞定这事。。<br />
原理是：默认网关不选vpn，把需要访问网站的ip添加到路由表，路由到vpn网关即可~<br />
工具:<a href="http://code-of-emptyhua.googlecode.com/svn/trunk/util/autovpnconf">autovpnconf</a><br />
下载之后用文本编辑器修改一下里面需要使用vpn的网站列表，我只加了几个</p>
<p>前提:连接vpn，并且vpn不是默认网关<br />
mac下只要不选“通过vpn连接发送所有通信”即可<br />
ubuntu下,连接vpn之后就成默认网关了,可以手动改回来</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> route del default
<span style="color: #666666; font-style: italic;">#xx.xx.xx.xx是网关ip eth0是有线网卡设备名，如果用无线就是 wlan0</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> route add default gw xx.xx.xx.xx dev eth0</pre></div></div>

<p>之后执行:</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>autovpnconf</pre></div></div>

<p>OK了，这样以来只有指定的网站才会走vpn。<br />
！！！每次连接vpn都需要执行一下～～！</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2011/04/14/1560.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ubuntu10.10升级日志~</title>
		<link>http://bluehua.org/2010/10/15/1447.html</link>
		<comments>http://bluehua.org/2010/10/15/1447.html#comments</comments>
		<pubDate>Fri, 15 Oct 2010 07:36:47 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehua.org/2010/10/15/1447.html</guid>
		<description><![CDATA[波波同学说俺很久没更新blog了，一看时间，真的有一个多月没写啥了。。，罪过，就写写俺这次的ubuntu 10.10升级历险记吧~ ubuntu的平滑升级做的一点都不好，升级中出问题很平常，俺的这次10.10升级理所当然的遇到了些问题: 恩，包的下载和安装过程很漫长，于是就放一边没理，快下班的时候看了一下，安装进度停在cpus相关的一个包上卡住了，等了十分钟还是不动，这个时候有点想俺Ctrl+c的冲动了，但是想想估计终止之后系统就要重装了，实在不想重新配置一遍，就碰运气执行了一下 sudo /etc/init.d/cups stop，Oh year,升级进度继续了~ 更新完提示一些软件包不再需要，问要不要删除，这个时候我犯贱了，看都没看，直接点了个是，导致后面重启后的事故。。 升级完毕，重启，进不了登录界面，面对这种情况我已经很淡定了，重启，恢复模式进入命令行，aptitude search fglrx,恩，官方驱动已经没了，删掉老的配置文件sudo rm /etc/X11/xorg.conf,尝试startx,报错: Failed to load module “ati” &#8230; 一个可用的显卡驱动都没有.aptitude search xserver-xorg，果真很不靠谱，列表里的驱动竟然一个都没装，肯定也被清理了。 ping了一下网络能用，打算把官方驱动再装上，sudo apt-get install fglrx,又恢复了一份以前备份的xorg.conf, 重启,可以进入桌面，但是渲染速度慢的不能容忍，google一下，原来还没有适用当前内核的fglrx,转而安装开源驱动:sudo apt-get install xserver-xorg-video-ati, 报错,具体错误忘了记录，大体意思就是它依赖比较新的xserver-xorg-core,但是种种原因xserver-xorg-core不会被安装. 第一次遇到这种包依赖问题,又去google，发现aptitude install这个没有超级牛力的命令可以解决。果真aptitude给出各种解决依赖问题的方案：比如让您卸载掉xserver和ubuntu-desktop,这样您就不要安装显卡驱动，因为您的系统只剩命令行了。。，这次我看清了，没有输入Y,然后继续给出种种方案，最后，看到一个比较靠谱版本，忘了记下来，大体是降低xserver版本，然后安装低版本的ati开源驱动，输入Y，执行完毕，删除/etc/X11/xorg.conf 重启，顺利进入系统，特效可以开启，OVER 10.10没有太多惊喜,外观上默认主题稍有变化,建议修改一下选中颜色,不怎么好看~ &#8212;&#8212;&#8212;&#8211; post by gmail~]]></description>
			<content:encoded><![CDATA[<p>波波同学说俺很久没更新blog了，一看时间，真的有一个多月没写啥了。。，罪过，就写写俺这次的ubuntu 10.10升级历险记吧~</p>
<p>ubuntu的平滑升级做的一点都不好，升级中出问题很平常，俺的这次10.10升级理所当然的遇到了些问题:</p>
<p>恩，包的下载和安装过程很漫长，于是就放一边没理，快下班的时候看了一下，安装进度停在cpus相关的一个包上卡住了，等了十分钟还是不动，这个时候有点想俺Ctrl+c的冲动了，但是想想估计终止之后系统就要重装了，实在不想重新配置一遍，就碰运气执行了一下 sudo /etc/init.d/cups stop，Oh year,升级进度继续了~</p>
<p>更新完提示一些软件包不再需要，问要不要删除，这个时候我犯贱了，看都没看，直接点了个是，导致后面重启后的事故。。</p>
<p>升级完毕，重启，进不了登录界面，面对这种情况我已经很淡定了，重启，恢复模式进入命令行，aptitude search fglrx,恩，官方驱动已经没了，删掉老的配置文件sudo rm /etc/X11/xorg.conf,尝试startx,报错: Failed to load module “ati” &#8230; 一个可用的显卡驱动都没有.aptitude search xserver-xorg，果真很不靠谱，列表里的驱动竟然一个都没装，肯定也被清理了。</p>
<p>ping了一下网络能用，打算把官方驱动再装上，sudo apt-get install fglrx,又恢复了一份以前备份的xorg.conf, 重启,可以进入桌面，但是渲染速度慢的不能容忍，google一下，原来还没有适用当前内核的fglrx,转而安装开源驱动:sudo apt-get install xserver-xorg-video-ati, 报错,具体错误忘了记录，大体意思就是它依赖比较新的xserver-xorg-core,但是种种原因xserver-xorg-core不会被安装.<br />
第一次遇到这种包依赖问题,又去google，发现aptitude install这个没有超级牛力的命令可以解决。果真aptitude给出各种解决依赖问题的方案：比如让您卸载掉xserver和ubuntu-desktop,这样您就不要安装显卡驱动，因为您的系统只剩命令行了。。，这次我看清了，没有输入Y,然后继续给出种种方案，最后，看到一个比较靠谱版本，忘了记下来，大体是降低xserver版本，然后安装低版本的ati开源驱动，输入Y，执行完毕，删除/etc/X11/xorg.conf 重启，顺利进入系统，特效可以开启，OVER</p>
<p>10.10没有太多惊喜,外观上默认主题稍有变化,建议修改一下选中颜色,不怎么好看~</p>
<p>&#8212;&#8212;&#8212;&#8211;<br />
post by gmail~</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2010/10/15/1447.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>小优化一下qwit</title>
		<link>http://bluehua.org/2010/05/16/1274.html</link>
		<comments>http://bluehua.org/2010/05/16/1274.html#comments</comments>
		<pubDate>Sun, 16 May 2010 05:56:05 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[soft]]></category>
		<category><![CDATA[qwit]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=1274</guid>
		<description><![CDATA[昨天给gwibber加了代理功能，用了一会，感觉还是不如qwit。 1 . 使用gnome 的 notify 提示代替qt的气泡提示, qt默认的那个太丑了 2  .  修正一个细节bug，阅读新tweets时，任务栏的图标依然提示有新的tweets。﻿ 3  .  添加了自己的短网址 4 . 换了两个高分好看点的图标～ 正常 有新tweets 修改过的源代码：qwit-1.0-beta-src，ubuntu 10.04 编译通过 qmake make sudo make install &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 另：推荐一个开源的短网址软件 http://yourls.org/，绝对出自geek之手。]]></description>
			<content:encoded><![CDATA[<p>昨天给gwibber加了代理功能，用了一会，感觉还是不如qwit。</p>
<p>1 . 使用gnome 的 notify 提示代替qt的气泡提示, qt默认的那个太丑了</p>
<p><a href="http://bluehua.org/wp-content/uploads/2010/05/screenshot_065.png"><img class="alignnone size-full wp-image-1275" title="screenshot_065" src="http://bluehua.org/wp-content/uploads/2010/05/screenshot_065.png" alt="" width="379" height="152" /></a></p>
<p>2  .  修正一个细节bug，阅读新tweets时，任务栏的图标依然提示有新的tweets。﻿</p>
<p>3  .  添加了自己的短网址</p>
<p><a href="http://bluehua.org/wp-content/uploads/2010/05/screenshot_067.png"><img class="alignnone size-full wp-image-1276" title="screenshot_067" src="http://bluehua.org/wp-content/uploads/2010/05/screenshot_067.png" alt="" width="317" height="101" /></a></p>
<p>4 . 换了两个高分好看点的图标～</p>
<p>正常</p>
<p><a href="http://bluehua.org/wp-content/uploads/2010/05/screenshot_063.png"><img class="alignnone size-full wp-image-1277" title="screenshot_063" src="http://bluehua.org/wp-content/uploads/2010/05/screenshot_063.png" alt="" width="231" height="25" /></a></p>
<p>有新tweets</p>
<p><a href="http://bluehua.org/wp-content/uploads/2010/05/screenshot_064.png"><img class="alignnone size-full wp-image-1278" title="screenshot_064" src="http://bluehua.org/wp-content/uploads/2010/05/screenshot_064.png" alt="" width="222" height="25" /></a></p>
<p>修改过的源代码：<a href="http://bluehua.org/wp-content/uploads/2010/05/qwit-1.0-beta-src.zip">qwit-1.0-beta-src</a>，ubuntu 10.04 编译通过</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;">qmake
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
另：推荐一个开源的短网址软件 <a href="http://yourls.org/">http://yourls.org/</a>，绝对出自geek之手。</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2010/05/16/1274.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ubuntu上flex开发相关</title>
		<link>http://bluehua.org/2010/04/21/1135.html</link>
		<comments>http://bluehua.org/2010/04/21/1135.html#comments</comments>
		<pubDate>Wed, 21 Apr 2010 15:04:25 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=1135</guid>
		<description><![CDATA[最近项目需要用到flex, 于是我要学这个本不打算学的东西&#8230; 我的环境很简单 flex sdk 4.0 + vim sdk的安装参考 : http://blog.minidx.com/2008/05/17/853.html flex的Makefile参考 : http://www.mindlence.com/WP/?p=301 编写好Makefile之后,就可以在vim里通过:make命令编译当前项目 vim的as和mxml语法高亮: http://www.fireyang.com/blog/?p=115 最后是我自己加的自动补全的字典(从flex4的文档里扣出来的&#8230;.) &#34;将字典文件放到相应的目录就可以了,这里是~/.vim/as3_dict.txt au FileType actionscript call AddAS3Dict&#40;&#41; function AddAS3Dict&#40;&#41; set dictionary-=~/.vim/as3_dict.txt dictionary+=~/.vim/as3_dict.txt set complete-=k complete+=k endfunction 字典文件下载 : as3_dict 这个字典有9K多行,应该够用了&#8230; 初学的一点感觉: 虽然actionscript3已经远离了js的语法,但仍然是事件驱动的,所以对熟悉js开发的同学来说,flex很容易上手. 另一点感受是我再也不用考虑狗屁浏览器兼容性了.. 最最后最近阅文档无数的终极结果,我的第一个flex半成品 :　http://bluehua.org/demo/avatar-editor/]]></description>
			<content:encoded><![CDATA[<p>最近项目需要用到flex, 于是我要学这个本不打算学的东西&#8230;</p>
<p>我的环境很简单 flex sdk 4.0 + vim</p>
<p>sdk的安装参考 : <a href="http://blog.minidx.com/2008/05/17/853.html">http://blog.minidx.com/2008/05/17/853.html</a></p>
<p>flex的Makefile参考 : <a href="http://www.mindlence.com/WP/?p=301">http://www.mindlence.com/WP/?p=301</a></p>
<p>编写好Makefile之后,就可以在vim里通过:make命令编译当前项目</p>
<p>vim的as和mxml语法高亮: <a href="http://www.fireyang.com/blog/?p=115">http://www.fireyang.com/blog/?p=115</a></p>
<p>最后是我自己加的自动补全的字典(从flex4的文档里扣出来的&#8230;.)</p>

<div class="wp_syntax"><div class="code overflow"><pre class="vim" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;">&quot;将字典文件放到相应的目录就可以了,这里是~/.vim/as3_dict.txt</span>
au FileType actionscript <span style="color: #804040;">call</span> AddAS3Dict<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #804040;">function</span> AddAS3Dict<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
    set dictionary<span style="color: #000000;">-</span>=<span style="color: #000000;">~/.</span>vim<span style="color: #000000;">/</span>as3_dict<span style="color: #000000;">.</span>txt dictionary<span style="color: #000000;">+</span>=<span style="color: #000000;">~/.</span>vim<span style="color: #000000;">/</span>as3_dict<span style="color: #000000;">.</span>txt
    set complete<span style="color: #000000;">-</span>=k <span style="color: #25BB4D;">complete</span><span style="color: #000000;">+</span>=k
endfunction</pre></div></div>

<p>字典文件下载 : <a href='http://bluehua.org/wp-content/uploads/2010/04/as3_dict.zip'>as3_dict</a><br />
这个字典有9K多行,应该够用了&#8230;<br />
<a href="http://bluehua.org/wp-content/uploads/2010/04/screenshot_062.png"><img src="http://bluehua.org/wp-content/uploads/2010/04/screenshot_062.png" alt="" title="screenshot_062" width="444" height="378" class="alignnone size-full wp-image-1139" /></a></p>
<p>初学的一点感觉:<br />
虽然actionscript3已经远离了js的语法,但仍然是事件驱动的,所以对熟悉js开发的同学来说,flex很容易上手. 另一点感受是我再也不用考虑狗屁浏览器兼容性了..</p>
<p>最最后最近阅文档无数的终极结果,我的第一个flex半成品 :　<a href="http://bluehua.org/demo/avatar-editor/">http://bluehua.org/demo/avatar-editor/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2010/04/21/1135.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ubuntu下mpd+mpc的安装配置</title>
		<link>http://bluehua.org/2010/01/27/896.html</link>
		<comments>http://bluehua.org/2010/01/27/896.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 14:18:24 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[soft]]></category>
		<category><![CDATA[mpc]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=896</guid>
		<description><![CDATA[今天大学的一个哥们说在ubuntu下面mpd一直配不好,俺就把俺的配置过程简单写一下 首先 sudo apt-get install mpd mpc 然后复制一份配置文件到自己的用户目录 cd ~ cp /etc/mpd.conf .mpdconf #创建几个文件夹,后面用到 mkdir .mpd mkdir .mpd/playlists 之后编辑.mpdconf,修改如下 #mp3所在的文件夹 music_directory &#34;/media/data/music&#34; #下面几个的user要替换成自己的用户名 playlist_directory &#34;/home/user/.mpd/playlists&#34; db_file &#34;/home/user/.mpd/tag_cache&#34; log_file &#34;/home/hualu/.mpd/mpd.log&#34; pid_file &#34;/home/hualu/.mpd/pid&#34; state_file &#34;/home/hualu/.mpd/state&#34; #替换成自己的用户名 user &#34;user&#34; 除了上面几项,我还修改了下面几个配置,如果改完已上配置就可以运行就没有必要修改下面的了 我注释了下面这行,为了解决mpc报”unable to bind port 6600&#8243;错误的问题 #bind_to_address &#34;localhost&#34; 声卡的配置我改成了下面,否则我用mpc调不了音量,而且有flash的时候会报”Failed to open ALSA device “plug:dmix”: Device or resource busy” audio_output [...]]]></description>
			<content:encoded><![CDATA[<p>今天大学的<a href="http://mindrecorder.info/">一个哥们</a>说在ubuntu下面mpd一直配不好,俺就把俺的配置过程简单写一下<br />
首先</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mpd mpc</pre></div></div>

<p>然后复制一份配置文件到自己的用户目录</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mpd.conf .mpdconf
<span style="color: #666666; font-style: italic;">#创建几个文件夹,后面用到</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> .mpd
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> .mpd<span style="color: #000000; font-weight: bold;">/</span>playlists</pre></div></div>

<p>之后编辑.mpdconf,修改如下</p>

<div class="wp_syntax"><div class="code overflow"><pre class="text" style="font-family:monospace;">#mp3所在的文件夹
music_directory		&quot;/media/data/music&quot;
#下面几个的user要替换成自己的用户名
playlist_directory		&quot;/home/user/.mpd/playlists&quot;
db_file			&quot;/home/user/.mpd/tag_cache&quot;
log_file			&quot;/home/hualu/.mpd/mpd.log&quot;
pid_file			&quot;/home/hualu/.mpd/pid&quot;
state_file			&quot;/home/hualu/.mpd/state&quot;
#替换成自己的用户名
user				&quot;user&quot;</pre></div></div>

<p>除了上面几项,我还修改了下面几个配置,如果改完已上配置就可以运行就没有必要修改下面的了<br />
我注释了下面这行,为了解决mpc报”unable to bind port 6600&#8243;错误的问题</p>

<div class="wp_syntax"><div class="code overflow"><pre class="text" style="font-family:monospace;">#bind_to_address		&quot;localhost&quot;</pre></div></div>

<p>声卡的配置我改成了下面,否则我用mpc调不了音量,而且有flash的时候会报”Failed to open ALSA device “plug:dmix”: Device or resource busy”</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;">audio_output <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #7a0874; font-weight: bold;">type</span>		<span style="color: #ff0000;">&quot;alsa&quot;</span>
	name		<span style="color: #ff0000;">&quot;My ALSA Device&quot;</span>
        options <span style="color: #ff0000;">&quot;dev=dmixer&quot;</span>
	mixer_control	<span style="color: #ff0000;">&quot;Master&quot;</span>		<span style="color: #666666; font-style: italic;"># optional</span>
	mixer_index	<span style="color: #ff0000;">&quot;0&quot;</span>		<span style="color: #666666; font-style: italic;"># optional</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>配置完毕,可以使用了</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#首次运行需要初始化一下</span>
mpd <span style="color: #660033;">--create-db</span>
<span style="color: #666666; font-style: italic;">#把所有曲目添加到播放列表</span>
mpc listall <span style="color: #000000; font-weight: bold;">|</span> mpc add
<span style="color: #666666; font-style: italic;">#播放</span>
mpc play</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2010/01/27/896.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>偶的mpd全局快捷键配置</title>
		<link>http://bluehua.org/2010/01/18/859.html</link>
		<comments>http://bluehua.org/2010/01/18/859.html#comments</comments>
		<pubDate>Mon, 18 Jan 2010 13:08:12 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[soft]]></category>
		<category><![CDATA[mpc]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=859</guid>
		<description><![CDATA[2010.1.27 更新 发现直接调用mpc next 切歌有时候会把mpd搞死, mpc pause;mpc next;mpc play;这么搞就没问题了&#8230; mpc.sh.4 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 更新一个高级点的,使用zenity提示搜索 下载:mpc.sh.3 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 2010.1.19 更新 ubuntu.org.cn上开的帖子 http://forum.ubuntu.org.cn/viewtopic.php?f=21&#038;t=253241 更新下脚本:mpc.sh.2 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 换了好多播放器，最终还是回归mpd了&#8230; 配上快捷键和模糊搜索，好用多了。效果如下: 上一首,下一首可以使用notify-send提示 快捷键调出搜索框,跳转到某一首歌 配置过程如下，假设已经装好了mpd和mpc： 1 . 安装notify-send sudo apt-get install libnotify-bin 2 . 下载一个shell脚本 : mpc.sh,将脚本解压到 ~/bin/ 目录 3 . 配置全局快捷键 可用命令如下 #停止 sh /home/yourname/bin/mpc.sh stop #播放/暂停 sh /home/yourname/bin/mpc.sh toggle #下一首 sh /home/yourname/bin/mpc.sh next [...]]]></description>
			<content:encoded><![CDATA[<p>2010.1.27 更新<br />
发现直接调用mpc next 切歌有时候会把mpd搞死, mpc pause;mpc next;mpc play;这么搞就没问题了&#8230;<br />
<a href='http://bluehua.org/wp-content/uploads/2010/01/mpc.sh.4.zip'>mpc.sh.4</a><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
更新一个高级点的,使用<a href="http://library.gnome.org/users/zenity/stable/">zenity</a>提示搜索</p>
<p><a href="http://bluehua.org/wp-content/uploads/2010/01/screenshot_043.png"><img src="http://bluehua.org/wp-content/uploads/2010/01/screenshot_043.png" alt="" title="screenshot_043" width="510" height="301" class="alignnone size-full wp-image-879" /></a></p>
<p>下载:<a href='http://bluehua.org/wp-content/uploads/2010/01/mpc.sh.3.zip'>mpc.sh.3</a><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
2010.1.19 更新<br />
ubuntu.org.cn上开的帖子 <a href="http://forum.ubuntu.org.cn/viewtopic.php?f=21&#038;t=253241">http://forum.ubuntu.org.cn/viewtopic.php?f=21&#038;t=253241</a><br />
更新下脚本:<a href='http://bluehua.org/wp-content/uploads/2010/01/mpc.sh.2.zip'>mpc.sh.2</a><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
换了好多播放器，最终还是回归mpd了&#8230; 配上快捷键和模糊搜索，好用多了。效果如下:</p>
<p>上一首,下一首可以使用notify-send提示<br />
<a href="http://bluehua.org/wp-content/uploads/2010/01/screenshot_040.png"><img class="alignnone size-full wp-image-861" title="screenshot_040" src="http://bluehua.org/wp-content/uploads/2010/01/screenshot_040.png" alt="" width="408" height="292" /></a></p>
<p>快捷键调出搜索框,跳转到某一首歌</p>
<p><a href="http://bluehua.org/wp-content/uploads/2010/01/screenshot_041.png"><img class="alignnone size-full wp-image-862" title="screenshot_041" src="http://bluehua.org/wp-content/uploads/2010/01/screenshot_041.png" alt="" width="530" height="114" /></a></p>
<p>配置过程如下，假设已经装好了mpd和mpc：<br />
1 . 安装notify-send</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libnotify-bin</pre></div></div>

<p>2 . 下载一个shell脚本 : <a href='http://bluehua.org/wp-content/uploads/2010/01/mpc.sh.zip'>mpc.sh</a>,将脚本解压到 ~/bin/ 目录<br />
3 . 配置全局快捷键<br />
可用命令如下</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#停止</span>
<span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>yourname<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mpc.sh stop
<span style="color: #666666; font-style: italic;">#播放/暂停</span>
<span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>yourname<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mpc.sh toggle
<span style="color: #666666; font-style: italic;">#下一首</span>
<span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>yourname<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mpc.sh next
<span style="color: #666666; font-style: italic;">#上一首</span>
<span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>yourname<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mpc.sh prev
<span style="color: #666666; font-style: italic;">#弹出一个搜索窗口</span>
<span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>yourname<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mpc.sh popfav</pre></div></div>

<p>偶的快捷键的配置</p>
<p><a href="http://bluehua.org/wp-content/uploads/2010/01/screenshot_042.png"><img class="alignnone size-full wp-image-864" title="screenshot_042" src="http://bluehua.org/wp-content/uploads/2010/01/screenshot_042.png" alt="" width="593" height="446" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2010/01/18/859.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS Flusher 2.0.3 在ubuntu下不能用了</title>
		<link>http://bluehua.org/2009/09/28/599.html</link>
		<comments>http://bluehua.org/2009/09/28/599.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 08:04:17 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[web dev]]></category>
		<category><![CDATA[dnsflusher]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=599</guid>
		<description><![CDATA[升级了一下版本,竟然不能用了,查了一下,原来是文件名大小写的问题&#8230; 插件目录的chrome.manifest overlay chrome://browser/content/browser.xul chrome://dnsFlusher/content/dnsFlusher.xul &#160; #这里应当改成 #overlay chrome://browser/content/browser.xul chrome://dnsFlusher/content/dnsflusher.xul &#160; overlay chrome://navigator/content/navigator.xul chrome://dnsFlusher/content/dnsFlusher.xul &#160; #应当改成 #overlay chrome://navigator/content/navigator.xul chrome://dnsFlusher/content/dnsflusher.xul &#160; content dnsFlusher chrome/content/dnsFlusher/ &#160; skin dnsFlusher classic/1.0 chrome/skin/classic/dnsFlusher/ 修改之后重启firefox就可以了 作者肯定是用win系统,文件名不区分大小写,所以不会有问题,其他linux,mac就会找不到文件了..]]></description>
			<content:encoded><![CDATA[<p>升级了一下版本,竟然不能用了,查了一下,原来是文件名大小写的问题&#8230;<br />
插件目录的chrome.manifest</p>

<div class="wp_syntax"><div class="code overflow"><pre class="text" style="font-family:monospace;">overlay	chrome://browser/content/browser.xul		chrome://dnsFlusher/content/dnsFlusher.xul
&nbsp;
#这里应当改成
#overlay	chrome://browser/content/browser.xul		chrome://dnsFlusher/content/dnsflusher.xul
&nbsp;
overlay	chrome://navigator/content/navigator.xul	chrome://dnsFlusher/content/dnsFlusher.xul
&nbsp;
#应当改成
#overlay	chrome://navigator/content/navigator.xul	chrome://dnsFlusher/content/dnsflusher.xul
&nbsp;
content	dnsFlusher									chrome/content/dnsFlusher/
&nbsp;
skin	dnsFlusher		classic/1.0					chrome/skin/classic/dnsFlusher/</pre></div></div>

<p>修改之后重启firefox就可以了<br />
<img class="xemotion" src="http://bluehua.org/wp-content/plugins/x-emotions/emotions/msn/bofu2_08.gif" border="0" alt="" />作者肯定是用win系统,文件名不区分大小写,所以不会有问题,其他linux,mac就会找不到文件了..</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/09/28/599.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>谷歌音乐shell版</title>
		<link>http://bluehua.org/2009/08/24/389.html</link>
		<comments>http://bluehua.org/2009/08/24/389.html#comments</comments>
		<pubDate>Mon, 24 Aug 2009 13:47:58 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=389</guid>
		<description><![CDATA[2009.10.15 update 其实需要两个包支持 sudo apt-get install uni2ascii sudo apt-get install gawk &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 一个可以快速听歌的东东,虽说是练手之作,但是当特别想听某首歌硬盘里又没的时候还是挺方便的~ 这个脚本可以将谷歌音乐的的搜索结果显示到终端(支持关键词高亮和分页),选择某一歌曲的序号之后,脚本会获取该曲目的播放地址,并调用播放器播放,咔咔,就是这么简单 脚本运行需要uni2ascii这个包的支持,没有可以apt-get一下,播放器调用ubuntu自带的rhythmbox,可以根据情况修改 #使用方法 google_music.sh &#34;周杰伦 花海&#34; 下载点这里 截图:]]></description>
			<content:encoded><![CDATA[<p>2009.10.15 update<br />
其实需要两个包支持</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> uni2ascii
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">gawk</span></pre></div></div>

<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
一个可以快速听歌的东东,虽说是练手之作,但是当特别想听某首歌硬盘里又没的时候还是挺方便的~</p>
<p>这个脚本可以将谷歌音乐的的搜索结果显示到终端(支持关键词高亮和分页),选择某一歌曲的序号之后,脚本会获取该曲目的播放地址,并调用播放器播放,咔咔,就是这么简单<img class="xemotion" src="http://bluehua.org/wp-content/plugins/x-emotions/emotions/msn/bofu1_10.gif" border="0" alt="" /></p>
<p>脚本运行需要uni2ascii这个包的支持,没有可以apt-get一下,播放器调用ubuntu自带的rhythmbox,可以根据情况修改</p>

<div class="wp_syntax"><div class="code overflow"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#使用方法</span>
google_music.sh <span style="color: #ff0000;">&quot;周杰伦 花海&quot;</span></pre></div></div>

<p><a href="http://sites.google.com/site/sharemyidea09/google-music-shell-ban" target="_blank">下载点这里</a></p>
<p>截图:</p>
<p><a href="http://bluehua.org/wp-content/uploads/2009/08/2009-8-23-13-43-01.png"></a><a href="http://bluehua.org/wp-content/uploads/2009/08/2009-8-23-13-43-01.png"><img class="alignnone size-full wp-image-390" title="2009-8-23 13-43-01" src="http://bluehua.org/wp-content/uploads/2009/08/2009-8-23-13-43-01.png" alt="2009-8-23 13-43-01" width="790" height="463" /></a><a href="http://bluehua.org/wp-content/uploads/2009/08/2009-8-23-13-43-01.png"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/08/24/389.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>screenshot:thunder on ubuntu</title>
		<link>http://bluehua.org/2009/05/04/286.html</link>
		<comments>http://bluehua.org/2009/05/04/286.html#comments</comments>
		<pubDate>Mon, 04 May 2009 10:59:30 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[soft]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=286</guid>
		<description><![CDATA[安装参考： http://www.linuxdiyf.com/viewarticle.php?id=84561 http://www.linux-wiki.cn/index.php/Wine%E8%BF%85%E9%9B%B75%E6%88%96Gigaget]]></description>
			<content:encoded><![CDATA[<p>安装参考：</p>
<p><a href="http://www.linuxdiyf.com/viewarticle.php?id=84561">http://www.linuxdiyf.com/viewarticle.php?id=84561</a></p>
<p><a href="http://www.linux-wiki.cn/index.php/Wine%E8%BF%85%E9%9B%B75%E6%88%96Gigaget">http://www.linux-wiki.cn/index.php/Wine%E8%BF%85%E9%9B%B75%E6%88%96Gigaget</a></p>
<p><img class="pie-img" src="http://lh3.ggpht.com/_l8FcMjS-xnI/Sf7IS0udb3I/AAAAAAAAE4k/8-07R8quQlM/screenshot_006.jpg?imgmax=640" alt="screenshot_006.jpg" /></p>
<p><img class="pie-img" src="http://lh3.ggpht.com/_l8FcMjS-xnI/Sf7ISCnIxkI/AAAAAAAAE4c/daPDZCAtg7E/screenshot_005.jpg?imgmax=640" alt="screenshot_005.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/05/04/286.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ubuntu8.10安装备忘(2)</title>
		<link>http://bluehua.org/2009/02/19/203.html</link>
		<comments>http://bluehua.org/2009/02/19/203.html#comments</comments>
		<pubDate>Thu, 19 Feb 2009 10:57:02 +0000</pubDate>
		<dc:creator>冥王星2011</dc:creator>
				<category><![CDATA[other]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bluehua.org/?p=203</guid>
		<description><![CDATA[安装vmware player https://help.ubuntu.com/community/VMware/Player &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; copy了一份xp的虚拟机过来，打开时报错 Could not open virtual Machine: “Directory” Dictionary problem. 解决方法：删除目录下的xxx.vmsd文件 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 同步虚拟机与ubuntu的hosts文件，方便测试 共享/etc目录给虚拟xp，在xp下面挂载网络驱动器 写一个”同步host.bat” copy z:\hosts C:\WINDOWS\system32\drivers\etc\ 安装yuidoc sudo apt-get install python-setuptools sudo apt-get install python-dev sudo easy_install Pygments sudo easy_install SimpleJSON sudo easy_install Cheetah]]></description>
			<content:encoded><![CDATA[<p>安装vmware player</p>
<p>https://help.ubuntu.com/community/VMware/Player</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
copy了一份xp的虚拟机过来，打开时报错</p>
<p>Could not open virtual Machine: “Directory” Dictionary problem.</p>
<p>解决方法：删除目录下的xxx.vmsd文件</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
同步虚拟机与ubuntu的hosts文件，方便测试</p>
<p>共享/etc目录给虚拟xp，在xp下面挂载网络驱动器<br />
写一个”同步host.bat”</p>
<p>copy z:\hosts C:\WINDOWS\system32\drivers\etc\</p>
<p>安装yuidoc</p>
<p>sudo apt-get install python-setuptools<br />
sudo apt-get install python-dev</p>
<p>sudo easy_install Pygments<br />
sudo easy_install SimpleJSON<br />
sudo easy_install Cheetah</p>
]]></content:encoded>
			<wfw:commentRss>http://bluehua.org/2009/02/19/203.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.949 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-05 02:10:55 -->

