<?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/"
	xmlns:georss="http://www.georss.org/georss">

<channel>
	<title>Here comes the Sun &#187; ubuntu</title>
	<atom:link href="http://sunng.info/blog/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://sunng.info/blog</link>
	<description>Life ramblings</description>
	<lastBuildDate>Thu, 02 Sep 2010 12:29:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>fixing &quot;libmozjs&quot; missing when using mongodb on Ubuntu lucid</title>
		<link>http://sunng.info/blog/2010/07/fixing-libmozjs-missing-when-using-mongodb-on-ubuntu-lucid/</link>
		<comments>http://sunng.info/blog/2010/07/fixing-libmozjs-missing-when-using-mongodb-on-ubuntu-lucid/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 13:44:42 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[把戏]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/2010/07/fixing-libmozjs-missing-when-using-mongodb-on-ubuntu-lucid/</guid>
		<description><![CDATA[Problem When running mongod/mongo/mongos, you got message like this: mongod: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory Solution Make sure you have xulrunner-dev installed: sudo apt-get install xulrunner-dev then find libmozjs on your filesystem: sudo locate libmozjs in lucid, it&#8217;s supposed to locate at: /usr/lib/xulrunner-1.9.2.6/libmozjs.so (and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
When running mongod/mongo/mongos, you got message like this:<br />
<i>mongod: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory</i></p>
<p><strong>Solution</strong><br />
Make sure you have xulrunner-dev installed:<br />
<em>sudo apt-get install xulrunner-dev</em></p>
<p>then find libmozjs on your filesystem:<br />
<em>sudo locate libmozjs</em></p>
<p>in lucid, it&#8217;s supposed to locate at:<br />
<em>/usr/lib/xulrunner-1.9.2.6/libmozjs.so</em></p>
<p>(and some other directories, such as firefox / thunderbird / seamonkey)</p>
<p>Just create a symbol link:<br />
<em>sudo ln -s /usr/lib/xulrunner-1.9.2.6/libmozjs.so /usr/lib/</em></p>
<p>try to restart mongodb:<br />
<em>sudo service mongodb start</em></p>
<p>take a look at process list:<br />
<em>ps aux | grep mongo</em></p>
<p>it works.</p>
<p>The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee</a> v0.7</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/07/fixing-libmozjs-missing-when-using-mongodb-on-ubuntu-lucid/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Reset default cursor theme and web browser after installing kubuntu</title>
		<link>http://sunng.info/blog/2010/04/reset-default-cursor-theme-and-web-browser-after-installing-kubuntu/</link>
		<comments>http://sunng.info/blog/2010/04/reset-default-cursor-theme-and-web-browser-after-installing-kubuntu/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 12:28:23 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[把戏]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=530</guid>
		<description><![CDATA[If you installed kubuntu parallel to ubuntu, you might find that the default browser is set to konqueror and cursor theme is oxygen which cannot modified by &#8220;gnome-default-applications-properties&#8221; and &#8220;gnome-appearance-properties&#8221;. To fix this, use Debian update-alternatives tool: update-alternatives &#8211;config x-www-browser update-alternatives &#8211;config x-cursor-theme All configurable options are listed at /var/lib/dkpg/alternatives]]></description>
			<content:encoded><![CDATA[<p>If you installed kubuntu parallel to ubuntu, you might find that the default browser is set to konqueror and cursor theme is oxygen which cannot modified by &#8220;gnome-default-applications-properties&#8221; and &#8220;gnome-appearance-properties&#8221;.</p>
<p>To fix this, use Debian update-alternatives tool:<br />
<em>update-alternatives &#8211;config x-www-browser</em><br />
<em>update-alternatives &#8211;config x-cursor-theme</em></p>
<p>All configurable options are listed at <em>/var/lib/dkpg/alternatives</em></p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/04/reset-default-cursor-theme-and-web-browser-after-installing-kubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>Virtual Machine Searcher for Gnome Deskbar Applet</title>
		<link>http://sunng.info/blog/2010/02/virtual-machine-searcher-for-gnome-deskbar-applet/</link>
		<comments>http://sunng.info/blog/2010/02/virtual-machine-searcher-for-gnome-deskbar-applet/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 08:18:33 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[广告]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=475</guid>
		<description><![CDATA[Very glad to announce another daily-coding work: an extension for gnome deskbar applet to search and launch virtual machine. There is a plugin for gnome-do that does the same job. That&#8217;s what I create the the plugin for. I switched to deskbar because gnome-do&#8217;s Do.exe reminds me nightmares when I was a M$ Windows user. [...]]]></description>
			<content:encoded><![CDATA[<p>Very glad to announce another daily-coding work: an extension for gnome deskbar applet to search and launch virtual machine. There is a plugin for gnome-do that does the same job. That&#8217;s what I create the the plugin for. I switched to deskbar because gnome-do&#8217;s Do.exe reminds me nightmares when I was a M$ Windows user. The deskbar applet has been a great replacement, however, the virtualbox plugin in Do is really impressive while deskbar doesn&#8217;t provide me the same functionality.</p>
<p>You can ignore words above and just take a look at the screenshot:<br />
<a title="deskbar-virtualbox by 贝小塔, on Flickr" href="http://www.flickr.com/photos/40741608@N08/4350951202/"><img src="http://farm5.static.flickr.com/4062/4350951202_9ede9c4318_o.png" alt="deskbar-virtualbox" width="560" height="400" /></a></p>
<h3>Download</h3>
<p>Download the extension from (the highlighted one):<br />
<a href="http://bitbucket.org/sunng/daily-coding/downloads/?highlight=8792">http://bitbucket.org/sunng/daily-coding/downloads/?highlight=5137</a></p>
<p>You can also trace the development at bitbucket project. However, the repository is mixed with other small code snippets. Currently, mercurial doesn&#8217;t support subdirectory pull. So there is no way to grab the deskbar-applet individually.</p>
<h3>Installation</h3>
<p>copy this file to <em>/usr/lib/deskbar-applet/deskbar-applet/modules-2.20-compatible/</em> (Ubuntu installation for example) with super user privilege. Right click desktbar applet, select Preference, Searchers tab, hit &#8220;Reload&#8221; button, then check the Virtualbox Deskbar Module.<br />
<a title="deskbar-preference by 贝小塔, on Flickr" href="http://www.flickr.com/photos/40741608@N08/4350219097/"><img src="http://farm5.static.flickr.com/4006/4350219097_126cdb3c8d.jpg" alt="deskbar-preference" width="500" height="346" /></a></p>
<h3>Issue</h3>
<p>Feel free the report issues on bitbucket:<br />
<a href="http://bitbucket.org/sunng/daily-coding/issues/">http://bitbucket.org/sunng/daily-coding/issues/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/02/virtual-machine-searcher-for-gnome-deskbar-applet/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>解决Ubuntu Openbox无法启动的问题</title>
		<link>http://sunng.info/blog/2010/02/%e8%a7%a3%e5%86%b3ubuntu-openbox%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%e7%9a%84%e9%97%ae%e9%a2%98/</link>
		<comments>http://sunng.info/blog/2010/02/%e8%a7%a3%e5%86%b3ubuntu-openbox%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%e7%9a%84%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 17:22:01 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[把戏]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openbox]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=461</guid>
		<description><![CDATA[今天在工作用的ArchLinux上安装了用Openbox取代了GNOME桌面，感觉良好，回来尝试一下在Ubuntu上也做同样的事情。不料遇到问题，在完成基本的配置之后，Openbox Session无法启动，总是自动跳回gdm。查看.xsession-errors，是gnome-setting-daemon报错： (gnome-settings-daemon:2519): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL&#8217; failed 既然是gnome-settings-daemon报错，就在.config/openbox/autostart.sh中注视掉和gnome-settings-daemon相关的部分： # Make GTK apps look and behave how they were set up in the gnome config tools #if test -x /usr/libexec/gnome-settings-daemon &#62;/dev/null; then # /usr/libexec/gnome-settings-daemon &#38; #elif which gnome-settings-daemon &#62;/dev/null; then # gnome-settings-daemon &#38; # Make GTK apps look and behave how they [...]]]></description>
			<content:encoded><![CDATA[<p>今天在工作用的ArchLinux上安装了用Openbox取代了GNOME桌面，感觉良好，回来尝试一下在Ubuntu上也做同样的事情。不料遇到问题，在完成基本的配置之后，Openbox Session无法启动，总是自动跳回gdm。查看.xsession-errors，是gnome-setting-daemon报错：</p>
<p><em>(gnome-settings-daemon:2519): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL&#8217; failed</em></p>
<p>既然是gnome-settings-daemon报错，就在.config/openbox/autostart.sh中注视掉和gnome-settings<em>-</em>daemon相关的部分：</p>
<pre class="brush:bash"># Make GTK apps look and behave how they were set up in the gnome config tools
#if test -x /usr/libexec/gnome-settings-daemon &gt;/dev/null; then
#  /usr/libexec/gnome-settings-daemon &amp;
#elif which gnome-settings-daemon &gt;/dev/null; then
#  gnome-settings-daemon &amp;
# Make GTK apps look and behave how they were set up in the XFCE config tools
#elif which xfce-mcs-manager &gt;/dev/null; then
#  xfce-mcs-manager n &amp;
#fi
</pre>
<p>进而可以启动Openbox Session了，但是发现Conky仍然无法启动，经过搜索是sleep的时间不够长导致的。而根据launchpad上上的讨论，gnome-settings-daemon也可以在Openbox Session启动后正常运行，于是可以这样设置autostart.sh</p>
<pre class="brush:bash">(sleep 20 &amp;&amp; conky 1&gt;/dev/null 2&gt;/dev/null) &amp;
(sleep 2 &amp;&amp; tint) &amp;
(sleep 5 &amp;&amp; tilda) &amp;
(sleep 20 &amp;&amp; gnome-settings-daemon 1&gt;/dev/null 2&gt;/dev/null) &amp;
</pre>
<p>tint和tilda对启动顺序没有明确的要求，conky和gnome-settings-daemon需要设置一个较长的等待时间。</p>
<p>这是Ubuntu中Openbox的一个bug，可以在此跟踪：</p>
<p>https://bugs.launchpad.net/ubuntu/+source/openbox/+bug/459005</p>
<p>顺手展示一下我的Openbox桌面<br />
<a href="http://www.flickr.com/photos/40741608@N08/4346625590/" title="myopenbox by 贝小塔, on Flickr"><img src="http://farm5.static.flickr.com/4067/4346625590_2230b8b3d8.jpg" width="500" height="313" alt="myopenbox" /></a></p>
<p>openbox / tint2 / conky / tilda 还没来得及认真配置，呵呵。</p>
<p>再有，Ubuntu源里的的tint2版本很低，问题不少，不支持宽度的百分数配置，不支持systray等配置。建议安装开发版本：</p>
<p>http://code.google.com/p/tint2/wiki/Install#For_Ubuntu_9.10_%28Karmic%29</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/02/%e8%a7%a3%e5%86%b3ubuntu-openbox%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%e7%9a%84%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>使用gnome-dictionary和dictd</title>
		<link>http://sunng.info/blog/2010/02/%e4%bd%bf%e7%94%a8gnome-dictionary%e5%92%8cdictd/</link>
		<comments>http://sunng.info/blog/2010/02/%e4%bd%bf%e7%94%a8gnome-dictionary%e5%92%8cdictd/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 10:57:20 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[dictd]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=447</guid>
		<description><![CDATA[最近琢磨字典多一些，以前一直不知道gnome自带的gnome-dictionary如何使用，因为默认的字典源里都没有中文字典，而且离线更是无法使用。其实不然，字典服务可以自架，并且可以使用自己的字典。 在自己的机器上架设dictionary server，以ubuntu为例： 安装dictd / dict sudo apt-get install dictd dict 前者是字典服务器，后者是字典服务客户端。还可以从仓库里安装已经打包好的字典，如 sudo apt-get install dict-stardic 是一个英汉字典 dictd安装好后会默认自启动，也可以通过 sudo service dictd start 来控制dictd的启动、重启和关闭。 通过dict测试服务的状况 dict -D 命令会列出可用的数据库（即字典） 在gnome-dictionary中添加字典源 Edit-&#62;Preference-&#62;Source-&#62;Add Name: 自定义的字典名 Transport: Dictionary Source Hostname: 127.0.0.1 Port: 2628 Close之后可以到主界面打开侧边栏，在Dictionary Source中双击选定此字典，在Aailable Dictionaries里双击选中目标字典，于是就可以在gnome-dictionary里使用本地的字典服务了。 接下来安装自己的字典。stardict的网站上有很多中文字典，上面也都标示了授权协议。要在dictd里使用这些字典，需要进行一个简单的格式转换。安装一个工具 sudo apt-get install dictconv 它的使用方法： dictconv -o OUTPUT_FILE INPUT_FILE 在input_file指定stardict的.ifo文件，在output_file指定要生成的dictd的.index文件。这个转换非常耗时，需要有足够的耐心。这个操作将会生成.index和.dict文件。对.dict文件进行压缩： dictzip OUT.dict 转换完成后，编辑/var/lib/dictd/db.list文件，在其中添加一个database定义 [...]]]></description>
			<content:encoded><![CDATA[<p>最近琢磨字典多一些，以前一直不知道gnome自带的gnome-dictionary如何使用，因为默认的字典源里都没有中文字典，而且离线更是无法使用。其实不然，字典服务可以自架，并且可以使用自己的字典。</p>
<p>在自己的机器上架设dictionary server，以ubuntu为例：</p>
<p>安装dictd / dict<br />
<em>sudo apt-get install dictd dict</em></p>
<p>前者是字典服务器，后者是字典服务客户端。还可以从仓库里安装已经打包好的字典，如<br />
<em>sudo apt-get install dict-stardic</em><br />
是一个英汉字典</p>
<p>dictd安装好后会默认自启动，也可以通过<br />
<em>sudo service dictd start</em><br />
来控制dictd的启动、重启和关闭。</p>
<p>通过dict测试服务的状况<br />
<em>dict -D</em><br />
命令会列出可用的数据库（即字典）</p>
<p>在gnome-dictionary中添加字典源 Edit-&gt;Preference-&gt;Source-&gt;Add<br />
Name: 自定义的字典名<br />
Transport: Dictionary Source<br />
Hostname: 127.0.0.1<br />
Port: 2628</p>
<p>Close之后可以到主界面打开侧边栏，在Dictionary Source中双击选定此字典，在Aailable Dictionaries里双击选中目标字典，于是就可以在gnome-dictionary里使用本地的字典服务了。</p>
<p>接下来安装自己的字典。stardict的<a href="http://stardict.sourceforge.net/Dictionaries_zh_CN.php">网站</a>上有很多中文字典，上面也都标示了授权协议。要在dictd里使用这些字典，需要进行一个简单的格式转换。安装一个工具<br />
<em>sudo apt-get install dictconv</em></p>
<p><em>它的使用方法：<br />
dictconv -o OUTPUT_FILE INPUT_FILE</em></p>
<p>在input_file指定stardict的.ifo文件，在output_file指定要生成的dictd的.index文件。这个转换非常耗时，需要有足够的耐心。这个操作将会生成.index和.dict文件。对.dict文件进行压缩：<br />
<em>dictzip OUT.dict</em></p>
<p>转换完成后，编辑<em>/var/lib/dictd/db.list</em>文件，在其中添加一个database定义<br />
<em>database YOUR_DB_NAME{<br />
data PATH_TO_DICT_DZ<br />
index PATH_TO_INDEX<br />
}</em></p>
<p>其中PATH_TO_DICT_DZ是上一步的.dz文件，PATH_TO_INDEX是到上一步生成的.index文件的路径。编辑完成后，重启dictd服务<br />
<em>sudo service dictd restart</em></p>
<p>使用dict -D可以查看启用的字典。</p>
<p>建议备份<em>/var/lib/dictd/db.list</em>文件，因为每次从apt-get安装字典后，这个文件都会被覆盖。</p>
<p>dictd服务也可以在fantasdic里访问。</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/02/%e4%bd%bf%e7%94%a8gnome-dictionary%e5%92%8cdictd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>很山寨</title>
		<link>http://sunng.info/blog/2010/02/%e5%be%88%e5%b1%b1%e5%af%a8/</link>
		<comments>http://sunng.info/blog/2010/02/%e5%be%88%e5%b1%b1%e5%af%a8/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:03:10 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://sunng.info/blog/?p=443</guid>
		<description><![CDATA[经常访问GNU的网站你会发现一些很神奇的东西，比如gNewSense，又比如最新的： 怎么样，够震撼啊，GNUzilla套件里的第一个发布，IceCat。IceCat是嘛？你知道Firefox吧，那拉开冰箱门，把Firefox塞进去，带上冰箱门，嗯，那就是IceCat了。当然是开玩笑了，GNU IceCat is the GNU version of the Firefox browser. Its main advantage is an ethical one: it is entirely free software. 现在已经可以在Ubuntu中使用这个病猫，哦不，冰猫了： sudo add-apt-repository ppa:gnuzilla-team/ppa sudo apt-get update sudo apt-get install icecat]]></description>
			<content:encoded><![CDATA[<p>经常访问<a href="http://www.gnu.org" target="_blank">GNU</a>的网站你会发现一些很神奇的东西，比如<a href="http://http://www.gnewsense.org/" target="_blank">gNewSense</a>，又比如最新的：<br />
<a title="IceCat by 贝小塔, on Flickr" href="http://www.flickr.com/photos/40741608@N08/4326991719/"><img src="http://farm5.static.flickr.com/4009/4326991719_a5253581dc_o.png" alt="IceCat" width="306" height="482" /></a></p>
<p>怎么样，够震撼啊，<a href="http://www.gnu.org/software/gnuzilla/" target="_blank">GNUzilla</a>套件里的第一个发布，IceCat。IceCat是嘛？你知道Firefox吧，那拉开冰箱门，把Firefox塞进去，带上冰箱门，嗯，那就是IceCat了。当然是开玩笑了，GNU IceCat is the GNU version of the Firefox browser.  Its main advantage is an ethical one: it is entirely <a href="http://www.gnu.org/philosophy/free-sw.html">free software</a>.</p>
<p>现在已经可以在Ubuntu中使用这个病猫，哦不，冰猫了：</p>
<p><em>sudo add-apt-repository ppa:gnuzilla-team/ppa<br />
sudo apt-get update<br />
sudo apt-get install icecat</em></p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2010/02/%e5%be%88%e5%b1%b1%e5%af%a8/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>Adding Ubuntu-GIS repository</title>
		<link>http://sunng.info/blog/2009/11/adding-ubuntu-gis-repository/</link>
		<comments>http://sunng.info/blog/2009/11/adding-ubuntu-gis-repository/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 08:13:27 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[把戏]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.classicning.com/blog/?p=349</guid>
		<description><![CDATA[在Ubuntu上安装GIS软件，可以添加这个PPA源： deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu karmic main 导入GPG KEY gpg &#8211;keyserver subkeys.pgp.net &#8211;recv 089EBE08314DF160 gpg &#8211;export &#8211;armor 089EBE08314DF160 &#124; sudo apt-key add - 这个源中目前包含了最新版本的GIS软件： gdal 1.6 grass qgis]]></description>
			<content:encoded><![CDATA[<p>在Ubuntu上安装GIS软件，可以添加这个PPA源：<em><br />
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu karmic main</em></p>
<p>导入GPG KEY<br />
<em>gpg &#8211;keyserver subkeys.pgp.net &#8211;recv 089EBE08314DF160<br />
gpg &#8211;export &#8211;armor 089EBE08314DF160 | sudo apt-key add -</em></p>
<p>这个源中目前包含了最新版本的GIS软件：</p>
<ul>
<li>gdal 1.6</li>
<li>grass</li>
<li>qgis</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2009/11/adding-ubuntu-gis-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<georss:point>31.203057 121.6174866</georss:point>	</item>
		<item>
		<title>Gnome Shell</title>
		<link>http://sunng.info/blog/2009/10/gnome-shell/</link>
		<comments>http://sunng.info/blog/2009/10/gnome-shell/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 06:43:04 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.classicning.com/blog/?p=227</guid>
		<description><![CDATA[续昨，好吧，这个无聊的国庆假期就献给karmic了。gnome-shell已经可以在软件仓库里找到了，apt-get安装即可。要使用gnome-shell可以执行 gnome-shell &#8211;replace 要把gnome-shell作为默认的窗口管理器，打开gnome的配置编辑器，找到/desktop/gnome/session/required_components，把panel和windown-manager全部改成gnome-shell，重新登录即可。 上个图： 当然了，还没有正式release，大家试用尝鲜注意安全第一。]]></description>
			<content:encoded><![CDATA[<p>续昨，好吧，这个无聊的国庆假期就献给karmic了。gnome-shell已经可以在软件仓库里找到了，apt-get安装即可。要使用gnome-shell可以执行<br />
<em>gnome-shell &#8211;replace</em></p>
<p>要把gnome-shell作为默认的窗口管理器，打开gnome的配置编辑器，找到/desktop/gnome/session/required_components，把panel和windown-manager全部改成gnome-shell，重新登录即可。</p>
<p>上个图：<br />
<img class="alignnone" src="http://pic.yupoo.com/classicning/0026182bb7d6/medium.jpg" alt="" width="500" height="313" /></p>
<p>当然了，还没有正式release，大家试用尝鲜注意安全第一。</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2009/10/gnome-shell/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Upgrade to Karmic</title>
		<link>http://sunng.info/blog/2009/10/upgrade-to-karmic/</link>
		<comments>http://sunng.info/blog/2009/10/upgrade-to-karmic/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 11:57:04 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.classicning.com/blog/?p=222</guid>
		<description><![CDATA[今天凌晨Ubuntu 9.10 Karmic的beta发布了，实在忍耐不到月底了，上午就update-manager -d升级了发行版。从下在到安装完成用了大约三个小时，当然升级不用花什么精力，只要让程序自动去处理就好了，现在跨版本升级越来越轻松了。 配好以后感觉还是很值得升级的，大概多半是因为Kernel 2.6.31，这次桌面性能的提升真的非常大，之前从来没有这么明显的感受。举个例子，很惭愧，我这机器在上一个9.04版本里alt-table的Application Switcher都还会卡，现在已经一如之前不开compositing时的性能了。 既然是ubuntu，还是要提一下面子上的事情。GDM有变化，按照release notes上说的是全部重写了。在从gdm登录到桌面载入之间有了一个loading效果，体验很不错。然后是Ubuntu主题变了，human不再是黄的了，变成了深褐色，有了新的图标主题humanity，尤其是在桌面的右上角区域很有特点。 再有就是Gnome2.28的变化还有Ubuntu对gnome相关的增强了，这次激进了一些，居然赶在arch更新之前在ubuntu上体验了gnome的新版本。主要有几个变化： indicator变得更强大了，现在indicator和evolution empathy gwibber等等软件有了更好的集成，在indicator-applet里可以看到这些软件的新消息通知，另外indicator和原来Ubuntu的session manager也集成了，可以通过session manager设置empathy的状态。 empathy变化很大，据说已经支持xmpp的geolocation extension了，早先我就转载过一个在osm上显示xmpp好友位置的截图。不过这个功能似乎又没有在ubuntu的版本里找到，可能ubuntu这边还是有点谨慎吧。倒是geoclue这个框架已经被加进apt-get了，可以看出相关的工作确实是在进行中。 epiphany开始用webkit内核了，这样可以把midori彻底踢开了，epiphany也算是找到了自己在linux桌面上存在的意义。empathy可以抢走pidgin的位置，epiphany想强firefox的位置还是挺难的。 还有Ubuntu似乎修改了gnome桌面gnome-panel/panel-menu-item.c里面的参数，之前当places里的书签数大于5之后会产生一个Bookmarks子菜单，现在这个数值似乎变成了8，当然只是猜测，因为gnome的代码里这个值仍然是5。发现这个变化的过程实在比较无聊。。。 据说2.28的Evince看书的时候记annotation了，不过我好像没有发现这个功能，Gnome的release notes上也只是提了一下并没有发截图。 我还是很感激每半年就有很多新特性可以去discover的，这种感觉很不错。]]></description>
			<content:encoded><![CDATA[<p>今天凌晨Ubuntu 9.10 Karmic的beta发布了，实在忍耐不到月底了，上午就update-manager -d升级了发行版。从下在到安装完成用了大约三个小时，当然升级不用花什么精力，只要让程序自动去处理就好了，现在跨版本升级越来越轻松了。</p>
<p>配好以后感觉还是很值得升级的，大概多半是因为Kernel 2.6.31，这次桌面性能的提升真的非常大，之前从来没有这么明显的感受。举个例子，很惭愧，我这机器在上一个9.04版本里alt-table的Application Switcher都还会卡，现在已经一如之前不开compositing时的性能了。</p>
<p>既然是ubuntu，还是要提一下面子上的事情。GDM有变化，按照release notes上说的是全部重写了。在从gdm登录到桌面载入之间有了一个loading效果，体验很不错。然后是Ubuntu主题变了，human不再是黄的了，变成了深褐色，有了新的图标主题humanity，尤其是在桌面的右上角区域很有特点。</p>
<p>再有就是Gnome2.28的变化还有Ubuntu对gnome相关的增强了，这次激进了一些，居然赶在arch更新之前在ubuntu上体验了gnome的新版本。主要有几个变化：</p>
<p>indicator变得更强大了，现在indicator和evolution empathy gwibber等等软件有了更好的集成，在indicator-applet里可以看到这些软件的新消息通知，另外indicator和原来Ubuntu的session manager也集成了，可以通过session manager设置empathy的状态。</p>
<p>empathy变化很大，据说已经支持xmpp的geolocation extension了，早先我就转载过一个在osm上显示xmpp好友位置的截图。不过这个功能似乎又没有在ubuntu的版本里找到，可能ubuntu这边还是有点谨慎吧。倒是geoclue这个框架已经被加进apt-get了，可以看出相关的工作确实是在进行中。</p>
<p>epiphany开始用webkit内核了，这样可以把midori彻底踢开了，epiphany也算是找到了自己在linux桌面上存在的意义。empathy可以抢走pidgin的位置，epiphany想强firefox的位置还是挺难的。</p>
<p>还有Ubuntu似乎修改了gnome桌面gnome-panel/panel-menu-item.c里面的参数，之前当places里的书签数大于5之后会产生一个Bookmarks子菜单，现在这个数值似乎变成了8，当然只是猜测，因为gnome的代码里这个值仍然是5。发现这个变化的过程实在比较无聊。。。</p>
<p>据说2.28的Evince看书的时候记annotation了，不过我好像没有发现这个功能，Gnome的release notes上也只是提了一下并没有发截图。</p>
<p>我还是很感激每半年就有很多新特性可以去discover的，这种感觉很不错。</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2009/10/upgrade-to-karmic/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[旧]Up and Running: PostgreSQL and PostGIS on Ubuntu 8.10, Step By Step</title>
		<link>http://sunng.info/blog/2009/07/up-and-running-postgresql-and-postgis-on-ubuntu-8-10-step-by-step/</link>
		<comments>http://sunng.info/blog/2009/07/up-and-running-postgresql-and-postgis-on-ubuntu-8-10-step-by-step/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 10:52:31 +0000</pubDate>
		<dc:creator>Sunng</dc:creator>
				<category><![CDATA[装备]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.classicning.com/blog/?p=100</guid>
		<description><![CDATA[每次安装pgsql的过程都是这么震撼人心。以下在Ubuntu 8.10上安装配置运行pgsql及postgis的简单步骤。和Windows相比，用apt-get安装不会再有服务安装不上的问题，但是可能会有包装不全、缺少配置的问题。 首先用apt-get下载安装pgsql和postgis的需要的包 sudo apt-get install postgresql-8.3 postgresql-8.3-postgis postgresql-client-8.3 postgresql-contrib-8.3 pgadmin3 安装过程中会提示创建一个默认名为postgres的用户。 安装结束后，启动pgsql服务器 sudo /etc/init.d/postgresql-8.3 start 在默认情况下pgsql ident的设置为postgres用户用ident sameuser的方式登录，这种方式类似于sqlserver使用windows的用户管理。因此要用postgres用户登录系统。 修改postgres用户的密码 sudo passwd postgres 用新密码登录为postgres su &#8211; postgres 运行psql，可以检查pgsql的运行情况 psql 可以在psql中给postgres用户设置数据库密码 ALTER USER postgres ENCRYPTED PASSWORD &#8216;yournewpassword&#8217;; 继续在psql中创建plsql语言。如果安装时遗漏了contrib包这一步是不能完成的。 CREATE LANGUAGE plsql; 退出psql，创建Postgis数据库。 createdb postgis 导入postgis的两个sql文件，其中定义了EPSG数据库和Geometry类型。 psql -d postgis -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql psql -d postgis -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql 进入psql对当前用户GRAND [...]]]></description>
			<content:encoded><![CDATA[<p>每次安装pgsql的过程都是这么震撼人心。以下在Ubuntu 8.10上安装配置运行pgsql及postgis的简单步骤。和Windows相比，用apt-get安装不会再有服务安装不上的问题，但是可能会有包装不全、缺少配置的问题。</p>
<p>首先用apt-get下载安装pgsql和postgis的需要的包</p>
<p><em>sudo apt-get install postgresql-8.3 postgresql-8.3-postgis postgresql-client-8.3 postgresql-contrib-8.3 pgadmin3</em></p>
<p>安装过程中会提示创建一个默认名为<em>postgres</em>的用户。</p>
<p>安装结束后，启动pgsql服务器</p>
<p><em>sudo /etc/init.d/postgresql-8.3 start</em></p>
<p>在默认情况下pgsql ident的设置为postgres用户用ident sameuser的方式登录，这种方式类似于sqlserver使用windows的用户管理。因此要用postgres用户登录系统。</p>
<p>修改postgres用户的密码</p>
<p><em>sudo passwd postgres</em></p>
<p>用新密码登录为postgres</p>
<p><em>su &#8211; postgres</em></p>
<p>运行psql，可以检查pgsql的运行情况</p>
<p><em>psql</em></p>
<p>可以在psql中给postgres用户设置数据库密码</p>
<p><em>ALTER USER postgres ENCRYPTED PASSWORD &#8216;yournewpassword&#8217;;</em></p>
<p>继续在psql中创建plsql语言。如果安装时遗漏了contrib包这一步是不能完成的。</p>
<p><em>CREATE LANGUAGE plsql;</em></p>
<p>退出psql，创建Postgis数据库。</p>
<p><em>createdb postgis</em></p>
<p>导入postgis的两个sql文件，其中定义了EPSG数据库和Geometry类型。</p>
<p><em>psql -d postgis -f /usr/share/postgresql-8.3-postgis/lwpostgis.sql<br />
psql -d postgis -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql</em></p>
<p>进入psql对当前用户GRAND ALL</p>
<p><em>GRANT ALL ON TABLE geometry_columns TO postgres;<br />
GRANT ALL ON TABLE spatial_ref_sys TO postgres;</em></p>
<p>这样做的结果是这两张表被导入到默认的postgres数据库中。这样今后创建postgis数据库就可以以postgres为template_db，不过这么做的后果是这两张表的owner都是postgres。在GeoServer里创建FeatureType时必须用postgres用户登录，否则权限不足。</p>
<p>这时PostGIS应该可以正常工作了，可以尝试导入shp</p>
<p><em>shp2pgsql /your/shp/file tablename | psql newgisdb</em></p>
<p>创建一个新的数据库用户</p>
<p><em>createuser -p username</em></p>
<p>修改<em>/etc/postgresql/8.3/main/pg_hda.conf</em>，设置数据库访问的认证方式</p>
<p>将local all all一行的验证方式(method)由ident sameuser改为password就可以用密码登录psql了，在python－psycopg中用新建的用户连接pgsql也不会报ident失败了。</p>
<p>将host all 127.0.0.1/32一行的验证方式也改为password就可以在本地用jdbc以用户名密码连接数据库了。</p>
]]></content:encoded>
			<wfw:commentRss>http://sunng.info/blog/2009/07/up-and-running-postgresql-and-postgis-on-ubuntu-8-10-step-by-step/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
