<?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>LiangXu Wang &#187; edgy</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/edgy/feed/" rel="self" type="application/rss+xml" />
	<link>http://wlx.westgis.ac.cn</link>
	<description>research of gis, rs, opensource.</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:08:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>tomboy: 阿帖便笺，0.5.1版本安装</title>
		<link>http://wlx.westgis.ac.cn/318/</link>
		<comments>http://wlx.westgis.ac.cn/318/#comments</comments>
		<pubDate>Mon, 18 Dec 2006 14:06:18 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[tomboy]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/318/</guid>
		<description><![CDATA[gnome里新带的这个tomboy，中文翻译为阿帖便笺，真得非常好用！
现在ubuntu edgy里带的版本是0.4.1，是最新的stable版本，但是其开发版本0.5.1也已经出来有一段时间了。实在等不到下一个ubuntu发行版了，自己下载源码编译安装：

cd tomboy-0.5.1
./configure --prefix=/usr
make
有错误，提示我没有找到gmcs：
sudo aptitude install mono-gmcs
sudo aptitude install  libmono-cairo2.0-cil
make
checkinstall
sudo dpkg -i tomboy_0.5.1-1_i386.deb

又有错误了，提示我和slab有冲突：

(正在读取数据库 ... 系统当前总共安装有 236895 个文件和目录。)
正预备替换 tomboy 0.4.1-0ubuntu3 (使用 tomboy_0.5.1-1_i386.deb) ...
正在解压缩将用于更替的包文件 tomboy ...
dpkg：处理 tomboy_0.5.1-1_i386.deb (--install)时出错：
 正试图覆盖“/etc/gconf/gconf.xml.defaults/%gconf-tree-cs.xml”，它属于软件包 slab
dpkg-deb: 子进程 paste 被信号(Broken pipe)终止了
在处理时有错误发生：
 tomboy_0.5.1-1_i386.deb

slab好像是我自己编译安装的一个SUSE菜单，那就把它删除掉：
sudo aptitude remove slab
sudo dpkg -i tomboy_0.5.1-1_i386.deb
OK！大功告成。
新版本的更新有：

* New Managed D-Bus/DBusSharp (Sebastian Dröge).
* Additional search interface improvements.
* More secure wrapper script to launch [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.gnome.org">gnome</a>里新带的这个<a href="http://live.gnome.org/Tomboy">tomboy</a>，中文翻译为阿帖便笺，真得非常好用！<br />
现在ubuntu edgy里带的版本是0.4.1，是最新的stable版本，但是其开发版本0.5.1也已经出来有一段时间了。实在等不到下一个ubuntu发行版了，自己下载源码编译安装：<br />
<span id="more-318"></span></p>
<blockquote><p>cd tomboy-0.5.1<br />
./configure --prefix=/usr<br />
make</p></blockquote>
<p>有错误，提示我没有找到gmcs：</p>
<blockquote><p>sudo aptitude install mono-gmcs<br />
sudo aptitude install  libmono-cairo2.0-cil<br />
make<br />
checkinstall<br />
sudo dpkg -i tomboy_0.5.1-1_i386.deb
</p></blockquote>
<p>又有错误了，提示我和slab有冲突：</p>
<blockquote>
<p>(正在读取数据库 ... 系统当前总共安装有 236895 个文件和目录。)<br />
正预备替换 tomboy 0.4.1-0ubuntu3 (使用 tomboy_0.5.1-1_i386.deb) ...<br />
正在解压缩将用于更替的包文件 tomboy ...<br />
dpkg：处理 tomboy_0.5.1-1_i386.deb (--install)时出错：<br />
 正试图覆盖“/etc/gconf/gconf.xml.defaults/%gconf-tree-cs.xml”，它属于软件包 slab<br />
dpkg-deb: 子进程 paste 被信号(Broken pipe)终止了<br />
在处理时有错误发生：<br />
 tomboy_0.5.1-1_i386.deb
</p></blockquote>
<p>slab好像是我自己编译安装的一个SUSE菜单，那就把它删除掉：</p>
<blockquote><p>sudo aptitude remove slab<br />
sudo dpkg -i tomboy_0.5.1-1_i386.deb</p></blockquote>
<p>OK！大功告成。</p>
<p>新版本的更新有：</p>
<blockquote><p>
* New Managed D-Bus/DBusSharp (Sebastian Dröge).<br />
* Additional search interface improvements.<br />
* More secure wrapper script to launch Tomboy.exe.<br />
* Fix panel and TrayIcon resizing.<br />
* Fix 1x1 pixel TrayIcon.<br />
* Removed old tintin image.<br />
* New note pinning in main menu.<br />
* New integrated table of contents and search.<br />
* New find bar for searching inside a single note.<br />
* New Bugzilla plugin (David Trowbridge).<br />
* New Tomboy icons (Jakub Steiner).<br />
* Timestamped logging to ~/.tomboy.log.<br />
* Export to HTML now uses Gtk.FileChooserDialog.<br />
* Number of notes in main menu configurable in GConf.<br />
* Removed old gtk-sharp dependency, uses gtk-sharp2 now.
</p></blockquote>
<p>现在的图像：<br />
<img src="http://www.beatniksoftware.com/tomboy/img/applet-small.png" alt="tomboy 0.5.1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/318/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: compile and install ossim in ubuntu edgy</title>
		<link>http://wlx.westgis.ac.cn/309/</link>
		<comments>http://wlx.westgis.ac.cn/309/#comments</comments>
		<pubDate>Wed, 13 Dec 2006 12:24:19 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[GIS]]></category>
		<category><![CDATA[checkinstall]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[ossim]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/309/</guid>
		<description><![CDATA[Firstly, you should install some packages which is needed by the compile and installation, and you can see the dependency here.

0. Prepare
As I want to install ossim with qt4, so I do:
sudo aptitude install qt4-dev-tools libopenthreads-dev libopenthreads3 libopenscenegraph-dev libopenscenegraph3 libgdal1-1.3.1-dev
1. Get the latest code
then I check out the latest cvs code of ossim, from the [...]]]></description>
			<content:encoded><![CDATA[<p>Firstly, you should install some packages which is needed by the compile and installation, and you can see the dependency <a href="http://www.ossim.org/OSSIM/Dependencies.html">here</a>.<br />
<img src="http://www.ossim.org/OSSIM/Images/ossim_dependencies.jpg" alt="ossim dependencies" /><span id="more-309"></span><br />
0. Prepare<br />
As I want to install <a href="http://www.ossim.org">ossim</a> with qt4, so I do:</p>
<blockquote><p>sudo aptitude install qt4-dev-tools libopenthreads-dev libopenthreads3 libopenscenegraph-dev libopenscenegraph3 libgdal1-1.3.1-dev</p></blockquote>
<p>1. Get the latest code<br />
then I check out the latest cvs code of ossim, from the instructuments of <a href="http://www.ossim.org/OSSIM/OSSIM%20CVS%20Access.html">ossim.org website</a>:</p>
<blockquote><p>
cd<br />
mkdir -p ubuntu/ossim.org<br />
cd ubuntu/ossim.org<br />
cvs -d :pserver:anonymous@www.remotesensing.org:/cvs login<br />
cvs -d :pserver:anonymous@www.remotesensing.org:/cvs co ossim libwms ossim_qt4
</p></blockquote>
<p>2. Compile and install ossim:<br />
Before install ossim, you should install libgeotiff first, and you can see the installation <a href="http://wlx.westgis.ac.cn/286/">here</a>, as libgeotiff is not in the ubuntu repository, and it is a dependency for ossim installation.</p>
<blockquote><p>cd ossim<br />
./configure  --prefix=/usr --with-libtiff=/usr/lib<br />
make<br />
cd ..<br />
mv ossim ossim-1.6.6<br />
cd ossim<br />
checkinstall -D<br />
sudo dpkg -i *.deb<br />
cd ..<br />
mv ossim-1.6.6 ossim
</p></blockquote>
<p>Changing the ossim directory's name, is a trick for checkinstall.</p>
<p>3. Install libwms<br />
libwms is a base libaray, which is needed by ossimPlanet, and as we want to install libwms in ubuntu system, some neccessary process is needed here.</p>
<blockquote><p>cd libwms<br />
nano Make/makedefs
</p></blockquote>
<p>We need to replace all /usr/local with /usr to suit our system in makedefs, and we can use ctrl+\ to replace all the string in nano.</p>
<blockquote><p>
make<br />
checkinstall -D<br />
sudo dpkg -i *.deb
</p></blockquote>
<p>4. Install ossimPlanet</p>
<p>This is another library, with an example application. So first replace all /usr/local/ with /usr in the Make/makedefs too.<br />
if you can compile without error, then you can skip here. Add a line in ossimPlanet/src/ossimPlanet/GNUMakefile:</p>
<blockquote><p>ossimPlanetDtedElevationDatabase.cpp \</p></blockquote>
<p>and if it is exist there, do nothing.</p>
<blockquote><p>
make<br />
checkinstall -D<br />
sudo dpkg -i *.deb</p></blockquote>
<p>Note: this deb package includes the header and lib files, but does not include the example ossimPlanetViewer!<br />
So if you want to test the example program, you must specify the program's path, and the default wms server is not working here. (I don't know the reason.) But I can run it with the BluMarbEarth.tgz data.<br />
and some operation key here:</p>
<blockquote><p>1 Key             Center of Interest = Center of Planet<br />
2 Key             Center of Interest = Surface of Planet<br />
w Key             Toggles wireframe mode<br />
l key             Toggles lighting<br />
f key             Toggles full screen mode (drag/drop not functional in full screen)<br />
Space Bar         resets to starting position<br />
Left mouse drag   Rotates the Planet<br />
Right mouse drag  Zoom in and out<br />
Center mouse drag Moves Center of Interest on surface of Planet (mode 2 only)
</p></blockquote>
<p>I decide to write another  weblog of this topic for compile and install ossim_qt4 and ossimPlanetQt, as I can compile these programs via a strange trick, but they are unstable now.</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/309/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mplayer不能播放rmvb？</title>
		<link>http://wlx.westgis.ac.cn/299/</link>
		<comments>http://wlx.westgis.ac.cn/299/#comments</comments>
		<pubDate>Sun, 10 Dec 2006 06:11:07 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[rmvb]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/299/</guid>
		<description><![CDATA[mplayer不能播放rmvb？当然能播放！
我前一段时间还能用mplayer播放的电影今天突然发现不能播放了，只有声音，没有图像。
回想这一段时间的更新，我主要是安装了一个democracy player，这个现在仍然能播放rmvb，还有系统的自动更新。
首先卸载掉democracy：
sudo aptitude remove democracyplayer democracyplayer-data
然后再看效果，仍然不能播放，继续处理：
rm -fdr ~/.mplayer
还是有问题：
sudo aptiutde reinstall w32codecs mplayer
奇怪，问题还没有解决，到irc.ubuntu.org.cn上求助了一下，别人好像没有这个问题？于是到console下运行mplayer看看到底是什么问题：
mplayer test.rmvb
发现mplayer提示没有找到相应的codecs，寻找了几个路径都没有发现。
好，那我到这几个路径找看看：
ls /usr/lib/win32
居然是空白！不应该的。看来问题就出在这儿了。w32codecs包默认是安装在/usr/lib/codecs目录下的，而同时win32目录应该指向这才对。
手工修复一下：
sudo rm -fdr win32
sudo ln -s /usr/lib/codecs /usr/lib/win32
好，再看mplayer就没有任何问题了。
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mplayerhq.hu">mplayer</a>不能播放rmvb？当然能播放！<span id="more-299"></span><br />
我前一段时间还能用mplayer播放的电影今天突然发现不能播放了，只有声音，没有图像。<br />
回想这一段时间的更新，我主要是安装了一个democracy player，这个现在仍然能播放rmvb，还有系统的自动更新。<br />
首先卸载掉democracy：</p>
<blockquote><p>sudo aptitude remove democracyplayer democracyplayer-data</p></blockquote>
<p>然后再看效果，仍然不能播放，继续处理：</p>
<blockquote><p>rm -fdr ~/.mplayer</p></blockquote>
<p>还是有问题：</p>
<blockquote><p>sudo aptiutde reinstall w32codecs mplayer</p></blockquote>
<p>奇怪，问题还没有解决，到irc.ubuntu.org.cn上求助了一下，别人好像没有这个问题？于是到console下运行mplayer看看到底是什么问题：</p>
<blockquote><p>mplayer test.rmvb</p></blockquote>
<p>发现mplayer提示没有找到相应的codecs，寻找了几个路径都没有发现。<br />
好，那我到这几个路径找看看：</p>
<blockquote><p>ls /usr/lib/win32</p></blockquote>
<p>居然是空白！不应该的。看来问题就出在这儿了。w32codecs包默认是安装在/usr/lib/codecs目录下的，而同时win32目录应该指向这才对。<br />
手工修复一下：</p>
<blockquote><p>sudo rm -fdr win32<br />
sudo ln -s /usr/lib/codecs /usr/lib/win32</p></blockquote>
<p>好，再看mplayer就没有任何问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/299/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu tips: 特殊的双显方法</title>
		<link>http://wlx.westgis.ac.cn/296/</link>
		<comments>http://wlx.westgis.ac.cn/296/#comments</comments>
		<pubDate>Fri, 08 Dec 2006 10:09:04 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dual-screen]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xorg.conf]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/296/</guid>
		<description><![CDATA[我的笔记本是12吋的屏幕，Intel 915的显卡，同时我还有一个19吋的ViewSonic显示器。
一般情况下可以使用Xinerama技术来实现双屏显示，但那样的实现有一个缺点：
1 不能使用硬件加速了（在ATI和NVIDA上据说是可以的，但在I915上不行）
2 当然就不能使用AIGLX或XGL技术了
因此，有时想要是能实现在大显示器上输出，而且使用大显示器的分辨率，笔记本上的小屏幕我就不关心它是否能显示，这样就很好了，相当于给笔记本换了一个大屏幕。
这个和普通的双屏切换的区别在于：能使用大屏幕的分辨率。而普通的双屏切换方法只能使用小屏幕的分辨率。
这个是我无意中在ubuntu forum上发现的，实现方法也很简单：
在系统启动到GRUB的阶段，使用笔记本上的屏幕切换（我的FN＋F8）切换大显示器上，然后就OK了。
当然你需要在/etc/X11/xorg.conf加上你大显示器的分辨率。
这样，以后不再使用大显示器的时候，把这个大显示器的分辨率给去掉就可以了。
这样我就可以继续使用XGL或AIGLX了，而且使用上了更高的分辨率。
若是再接一个外置的键盘，这样就可以合上笔记本了。
]]></description>
			<content:encoded><![CDATA[<p>我的笔记本是12吋的屏幕，Intel 915的显卡，同时我还有一个19吋的ViewSonic显示器。<br />
一般情况下可以使用Xinerama技术来实现双屏显示，但那样的实现有一个缺点：<br />
1 不能使用硬件加速了（在ATI和NVIDA上据说是可以的，但在I915上不行）<br />
2 当然就不能使用AIGLX或XGL技术了<br />
因此，有时想要是能实现在大显示器上输出，而且使用大显示器的分辨率，笔记本上的小屏幕我就不关心它是否能显示，这样就很好了，相当于给笔记本换了一个大屏幕。<br />
这个和普通的双屏切换的区别在于：能使用大屏幕的分辨率。而普通的双屏切换方法只能使用小屏幕的分辨率。<br />
这个是我无意中在ubuntu forum上发现的，实现方法也很简单：<br />
<strong>在系统启动到GRUB的阶段，使用笔记本上的屏幕切换（我的FN＋F8）切换大显示器上，然后就OK了。<br />
当然你需要在/etc/X11/xorg.conf加上你大显示器的分辨率。</strong><br />
这样，以后不再使用大显示器的时候，把这个大显示器的分辨率给去掉就可以了。<br />
这样我就可以继续使用XGL或AIGLX了，而且使用上了更高的分辨率。<br />
若是再接一个外置的键盘，这样就可以合上笔记本了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/296/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>envi 4.3在ubuntu edgy下启动错误的解决</title>
		<link>http://wlx.westgis.ac.cn/293/</link>
		<comments>http://wlx.westgis.ac.cn/293/#comments</comments>
		<pubDate>Thu, 07 Dec 2006 13:05:26 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[envi]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xgl]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/293/</guid>
		<description><![CDATA[在我的笔记本上安装了ENVI 4.3后一直无法执行，但IDL没有问题。经检查，应该是I915的驱动所导致的问题，不过可以在XGL环境下执行，非常奇怪。
不过现在终于找到了解决办法：
LIBGL_ALWAYS_INDIRECT=1 /usr/local/bin/envi
最终是在ITT的forum上找到了答案：
Hi there. We came across Tech Tip "OpenGL Direct Hardware Rendering on Linux. Article ID: 3524" that showed a workaround.
Disabling (OpenGL) direct rendering made the trick (at the expense of speed):
debian10$ export LIBGL_ALWAYS_INDIRECT=1
I still wonder why other software work fine.
Cheers,
Juan P.
同时，他还给出了一种解释：
Hi there,
After talking to Xorg/DRI/Debian developers, it seems that direct rendering is working [...]]]></description>
			<content:encoded><![CDATA[<p>在我的笔记本上<a href="http://wlxblog.westgis.ac.cn/255/">安装了ENVI 4.3</a>后一直无法执行，但IDL没有问题。经检查，应该是I915的驱动所导致的问题，不过可以在XGL环境下执行，非常奇怪。</p>
<p>不过现在终于找到了解决办法：</p>
<blockquote><p>LIBGL_ALWAYS_INDIRECT=1 /usr/local/bin/envi</p></blockquote>
<p>最终是在ITT的forum上找到了<a href="http://www.ittvis.com/forum/message.asp?fmid=2322">答案</a>：</p>
<blockquote><p>Hi there. We came across Tech Tip "OpenGL Direct Hardware Rendering on Linux. Article ID: 3524" that showed a workaround.<br />
Disabling (OpenGL) direct rendering made the trick (at the expense of speed):<br />
debian10$ export LIBGL_ALWAYS_INDIRECT=1<br />
I still wonder why other software work fine.</p>
<p>Cheers,<br />
Juan P.</p></blockquote>
<p>同时，他还给出了一种解释：</p>
<blockquote><p>Hi there,</p>
<p>After talking to Xorg/DRI/Debian developers, it seems that direct rendering is working ok on my system but a conflict exists between system libGL and IDL's own copy of Mesa.<br />
They suggest that the system libGL and IDL's own copy of Mesa shouldn't be used at the same time, or that IDL should at least make sure their symbols don't interfere with each other. They suggested a possible workaround (to start the program with LD_PRELAD=/usr/local/rsi/idl_6.3/bin/bin.linux.x86/libMesaGL6_2.so.1 or some variation thereof), which unfortunately didn't work for me.</p>
<p>Cheers,<br />
J.P. Rigol</p></blockquote>
<p>不过这种hack方法在我的机器也不能工作。<br />
在<a href="http://www.ittvis.com/services/techtip.asp?ttid=3524">这个地方</a>给出了更多的说明：</p>
<blockquote><p><strong>Troubleshooting</strong><br />
RSI cannot control driver quality, so you may have trouble with some drivers that might be buggy. Besides obtaining a driver update from the vendor, there are several things you can do to make IDL usable again in the presence of a buggy driver:</p>
<p>    * Read the documentation that came along with your driver software carefully. There may be a number of diagnostic tools or environment variables that you can set to provide some relief.<br />
    * When using an X server based on XFree86, modifying the XFree86 configuration file may solve any problems. Consult the XFree86 documentation for details. Also, the XFree86 server startup log, usually found in /var/log, can provide many clues about the problem.<br />
    * Set the LIBGL_ALWAYS_INDIRECT environment variable. This causes OpenGL to ignore IDL's request to use direct rendering and would then avoid any bugs that may exist in the direct path.<br />
    * Configure your IDL session to use software rendering when required or code your IDL application to use software rendering. These details are covered in IDL documentation.<br />
    * As a last resort, remove/rename the gl_driver shared library from your IDL installation (in the binary directory). This will keep IDL from attempting to use direct or indirect hardware rendering. IDL will instead perform all rendering itself and send the results to the X server with "2D" commands.<br />
    * One expert IDL programmer reported in March 2004 on the IDL Newsgroup this promising workaround on a host running Fedora Linux:<br />
      "If you're a user of a recent Linux (like Fedora), and you've experienced IDL crashes that post the following fatal error:</p>
<p>            Floating exception</p>
<p>      when attempting to use any of IDL's OpenGL 3D stuff (like the Demo->Itools, for example), you might try the following:<br />
            setenv MESA_NO_ASM 1</p>
<p>      This disables some specific ASM code in the Mesa library which was causing these types of crashes for me. I use an ATI Radeon 7500 plus XFree86 4.3.0's Radeon drivers. With this environment variable set, IDL's 3D hardware rendering seems stable, and definitely executes much faster than the alternative software rendering option."</p>
</blockquote>
<p>现在就能解释为何在XGL环境下可以使用ENVI了：现在的XGL环境不支持OPENGL直接调用！</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/293/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在XGL环境下使用google earth</title>
		<link>http://wlx.westgis.ac.cn/292/</link>
		<comments>http://wlx.westgis.ac.cn/292/#comments</comments>
		<pubDate>Thu, 07 Dec 2006 08:06:22 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[google-earth]]></category>
		<category><![CDATA[i915]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xgl]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/292/</guid>
		<description><![CDATA[ubuntu edgy, i915gm
我记得原来不能在xgl环境下使用google earth，随着google earth 4的几次升级，现在可以在xgl环境下使用google earth了，不过还是有问题，速度比正常情况下要慢！
在beryl-project.org的FAQ上发现了这个问题的解决办法：
DISPLAY=:0 ./googleearth
My favourite hardware-accelerated application (google earth for example) doesn't play well with Beryl. What can I do?
Try adding DISPLAY=:0 in front of the command:
$ DISPLAY=:0 googleearth
还是有一点小问题，不过总算不影响使用了。（menubar会丢失）
]]></description>
			<content:encoded><![CDATA[<p>ubuntu edgy, i915gm<br />
我记得原来不能在xgl环境下使用google earth，随着google earth 4的几次升级，现在可以在xgl环境下使用google earth了，不过还是有问题，速度比正常情况下要慢！<br />
在<a href="http://wiki.beryl-project.org/wiki/Install/Ubuntu/Edgy/XGL">beryl-project.org的FAQ</a>上发现了这个问题的解决办法：</p>
<blockquote><p>DISPLAY=:0 ./googleearth</p></blockquote>
<blockquote><p>My favourite hardware-accelerated application (google earth for example) doesn't play well with Beryl. What can I do?</p>
<p>Try adding DISPLAY=:0 in front of the command:</p>
<p>$ DISPLAY=:0 googleearth</p></blockquote>
<p>还是有一点小问题，不过总算不影响使用了。（menubar会丢失）</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/292/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu edgy下安装SME 3.2.73</title>
		<link>http://wlx.westgis.ac.cn/273/</link>
		<comments>http://wlx.westgis.ac.cn/273/#comments</comments>
		<pubDate>Wed, 18 Oct 2006 14:05:42 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[SME]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/273/</guid>
		<description><![CDATA[SME: Spatial Modeling Environment，现在要将其安装到我的UBUNTU edgy上，中间遇到了系列问题，持续了2天才将起解决。
ubuntu edgy里软件的版本：g++ 4.1.2， jdk 1.5.0_08， tcl 8.4。
首先从官方下载最新的版本： 
wget http://www.uvm.edu/giee/SME3/ftp/sme-3.2.73.zip
unzip sme-3.2.73.zip
cd sme-3.2.73
正常情况下，按照README所述，应该进行下述步骤就可以安装：
./configure --enable-mpi=no --with-tcl_inc_dir=/usr/include/tcl8.4/ \
--with-tcl_lib_dir=/usr/lib/tcl8.4/ --with-hdf_inc_dir=/usr/include/hdf/ \
--with-hdf_lib_dir=/usr/lib/ --enable-opt=yes --enable-java=yes \
--with-jdk_dir=$JAVA_HOME --prefix=/usr/share/sme
sudo make install
但是在make install这步时出现问题：
cd  /home/wlx/Desktop/sme-3.2.73/java; jar cf lib/JST.jar
miiee/*/*.class spyconsole/*.class
miiee/*/*.class: No such file or directory
Error adding miiee/*/*.class to jar archive!
细看README，其中好像有说道这一点：
	8) On some platforms Java does not get compiles as a result of [...]]]></description>
			<content:encoded><![CDATA[<p>SME: <a href="http://www.uvm.edu/giee/SME3/">Spatial Modeling Environment</a>，现在要将其安装到我的UBUNTU edgy上，中间遇到了系列问题，持续了2天才将起解决。<br />
ubuntu edgy里软件的版本：g++ 4.1.2， jdk 1.5.0_08， tcl 8.4。<br />
首先从官方下载最新的版本： </p>
<blockquote><p>wget http://www.uvm.edu/giee/SME3/ftp/sme-3.2.73.zip<br />
unzip sme-3.2.73.zip<br />
cd sme-3.2.73</p></blockquote>
<p>正常情况下，按照README所述，应该进行下述步骤就可以安装：</p>
<blockquote><p><code >./configure --enable-mpi=no --with-tcl_inc_dir=/usr/include/tcl8.4/ \<br />
--with-tcl_lib_dir=/usr/lib/tcl8.4/ --with-hdf_inc_dir=/usr/include/hdf/ \<br />
--with-hdf_lib_dir=/usr/lib/ --enable-opt=yes --enable-java=yes \<br />
--with-jdk_dir=$JAVA_HOME --prefix=/usr/share/sme<br />
sudo make install</code></p></blockquote>
<p>但是在make install这步时出现问题：</p>
<blockquote><p>cd  /home/wlx/Desktop/sme-3.2.73/java; jar cf lib/JST.jar<br />
miiee/*/*.class spyconsole/*.class<br />
miiee/*/*.class: No such file or directory<br />
Error adding miiee/*/*.class to jar archive!</p></blockquote>
<p>细看README，其中好像有说道这一点：</p>
<blockquote><p>	8) On some platforms Java does not get compiles as a result of the<br />
	   installation process. In that case go to ./java and run<br />
	   install.sh SME_DIR, where SME_DIR is the directory where SME is<br />
	   to be installed.</p></blockquote>
<p>根据其中的操作，可以解决这个问题，然后继续编译，又出现一系列的问题。<span id="more-273"></span><br />
我把修改后的patch文件放出来：</p>
<blockquote><p>
<code >diff -u -r sme-3.2.73/Base/src/CString.h sme-3.2.73-new/Base/src/CString.h<br />
--- sme-3.2.73/Base/src/CString.h	2002-03-01 13:00:00.000000000 +0800<br />
+++ sme-3.2.73-new/Base/src/CString.h	2006-10-18 12:00:05.000000000 +0800<br />
@@ -61,13 +61,12 @@</p>
<p>   void              assign(const TStrRep*, const char*, int = -1);<br />
                     TSubString(TString&amp; x, int p, int l);<br />
-                    TSubString(const TSubString&amp; x);</p>
<p> public:</p>
<p> // Note there are no public constructors. TSubStrings are always<br />
 // created via TString operations<br />
-<br />
+                    TSubString(const TSubString&amp; x);<br />
                    ~TSubString();</p>
<p>   TSubString&amp;        operator =  (const TString&amp;     y);<br />
@@ -697,8 +696,8 @@</p>
<p> // constructive concatenation</p>
<p>-#if defined(__GNUG__) &amp;&amp; !defined(_G_NO_NRV)<br />
-<br />
+//#if defined(__GNUG__) &amp;&amp; !defined(_G_NO_NRV)<br />
+/*<br />
 inline TString operator + (const TString&amp; x, const TString&amp; y) return r;<br />
 {<br />
   cat(x, y, r);<br />
@@ -768,8 +767,8 @@<br />
 {<br />
   r.rep = TStrRep::Scapitalize(x.rep, r.rep);<br />
 }<br />
-<br />
-#else /* NO_NRV */<br />
+*/<br />
+//#else /* NO_NRV */</p>
<p> inline TString operator + (const TString&amp; x, const TString&amp; y)<br />
 {<br />
@@ -841,7 +840,7 @@<br />
   TString r; r.rep =  TStrRep::Scapitalize(x.rep, r.rep); return r;<br />
 }</p>
<p>-#endif<br />
+//#endif</p>
<p> // prepend</p>
<p>diff -u -r sme-3.2.73/Base/src/datasocket.h sme-3.2.73-new/Base/src/datasocket.h<br />
--- sme-3.2.73/Base/src/datasocket.h	2002-09-19 12:00:00.000000000 +0800<br />
+++ sme-3.2.73-new/Base/src/datasocket.h	2006-10-18 12:07:16.000000000 +0800<br />
@@ -65,14 +65,14 @@<br />
 	void disconnect(  );<br />
 	int setupDataFormats();</p>
<p>-	inline void DataSocket::writeInts( const jint* ji, int ndata, int buffer ) {<br />
+	inline void writeInts( const jint* ji, int ndata, int buffer ) {<br />
 		if(buffer) {<br />
 			load_buffer(ji,ndata*4);<br />
 		} else {<br />
 			write( _socket_desc, ji, ndata*4 );<br />
 		}<br />
 	}<br />
-	inline void DataSocket::writeShorts( const jshort* js, int ndata, int buffer ) {<br />
+	inline void writeShorts( const jshort* js, int ndata, int buffer ) {<br />
 		if(buffer) {<br />
 			load_buffer(js,ndata*2);<br />
 		} else {<br />
@@ -80,7 +80,7 @@<br />
 		}<br />
 	}</p>
<p>-	inline void DataSocket::writeBytes( const jbyte* jb, int ndata, int buffer ) {<br />
+	inline void writeBytes( const jbyte* jb, int ndata, int buffer ) {<br />
 		if(buffer) {<br />
 			load_buffer(jb,ndata);<br />
 		} else {<br />
@@ -88,7 +88,7 @@<br />
 		}<br />
 	}</p>
<p>-	inline void DataSocket::writeFloats( const jfloat* jf, int ndata, int buffer ) {<br />
+	inline void writeFloats( const jfloat* jf, int ndata, int buffer ) {<br />
 		if( _byteFormat == 2 ) {<br />
 			if(buffer) {<br />
 				load_buffer(jf,ndata*4);<br />
@@ -110,12 +110,12 @@<br />
 	}</p>
<p>-	inline void DataSocket::flush() {<br />
+	inline void flush() {<br />
 			write( _socket_desc, _buffer, _bufferPtr );<br />
 			_bufferPtr = 0;<br />
 	}	</p>
<p>-	inline void DataSocket::readBytes( jbyte* jb, int ndata ) {<br />
+	inline void readBytes( jbyte* jb, int ndata ) {<br />
 		read( _socket_desc, jb, ndata );<br />
 	}</p>
<p>diff -u -r sme-3.2.73/Base/src/DLnkList.h sme-3.2.73-new/Base/src/DLnkList.h<br />
--- sme-3.2.73/Base/src/DLnkList.h	2000-09-13 12:00:00.000000000 +0800<br />
+++ sme-3.2.73-new/Base/src/DLnkList.h	2006-10-18 12:04:41.000000000 +0800<br />
@@ -14,7 +14,7 @@<br />
 #endif</p>
<p> static const byte DLListNodMask1 = ~(~0 &lt;&lt; 1);<br />
-<br />
+class TOrderedObjectDLList;<br />
 class TOrderedObjectDLListNode {<br />
   friend const char* node_name(TOrderedObjectDLListNode*);<br />
   friend class TOrderedObjectDLList;<br />
diff -u -r sme-3.2.73/PointGrid/src/Ghost.h sme-3.2.73-new/PointGrid/src/Ghost.h<br />
--- sme-3.2.73/PointGrid/src/Ghost.h	2002-09-19 12:00:00.000000000 +0800<br />
+++ sme-3.2.73-new/PointGrid/src/Ghost.h	2006-10-18 13:16:32.000000000 +0800<br />
@@ -29,7 +29,7 @@</p>
<p>    Region2 operator()() const;</p>
<p>-   int GhostIterator::operator !() const;<br />
+   int operator !() const;<br />
    void operator ++();<br />
    operator void *();<br />
 };<br />
@@ -63,7 +63,7 @@<br />
     ic = fCol[0];<br />
   }</p>
<p>-  inline int GhostCounter::Count( int&amp; ir, int&amp; ic ) {<br />
+  inline int Count( int&amp; ir, int&amp; ic ) {</p>
<p>     switch(fLeg) {<br />
     case 0:<br />
diff -u -r sme-3.2.73/PointGrid/src/MultiCoverage.h sme-3.2.73-new/PointGrid/src/MultiCoverage.h<br />
--- sme-3.2.73/PointGrid/src/MultiCoverage.h	2002-09-19 12:00:00.000000000 +0800<br />
+++ sme-3.2.73-new/PointGrid/src/MultiCoverage.h	2006-10-18 13:17:13.000000000 +0800<br />
@@ -212,7 +212,7 @@<br />
 	int  CopyToMap( TMap&amp; map, Bool swap=FALSE, EScaleType st=kDefaultScaling, int layer_index=-1, int targetProc=0 );<br />
 	inline void CopyData( const float* fdata , int fsize ) { memcpy( (void*) data(), (void*) fdata,  fsize*sizeof(float) ); } </p>
<p>-	MultiCoverage&amp;  MultiCoverage::CopyFromMap( TMap&amp; map, int layer_index=-1, int srcProc = -1, const char* name = NULL  );<br />
+	MultiCoverage&amp;  CopyFromMap( TMap&amp; map, int layer_index=-1, int srcProc = -1, const char* name = NULL  );</p>
<p>   inline Region2&amp; Region(int iproc=gIProc, int layer_index=-1 ) const {<br />
 		TLayer* l = fMultiGrid-&gt;getCellLayer( layer_index );<br />
diff -u -r sme-3.2.73/PointGrid/src/TMap.h sme-3.2.73-new/PointGrid/src/TMap.h<br />
--- sme-3.2.73/PointGrid/src/TMap.h	2002-04-03 13:00:00.000000000 +0800<br />
+++ sme-3.2.73-new/PointGrid/src/TMap.h	2006-10-18 13:13:50.000000000 +0800<br />
@@ -65,7 +65,7 @@<br />
   void ReadTextData2( FILE* file, const char* name, int row_min, int row_max, int col_min, int col_max, int rows, int cols );<br />
   int WriteCmeMap( const char* name, int time_index, float time_value, Bool last_write = False );<br />
   int Read(const char* mapSrc, const char* fileName, int nbytes=0, LayerConfig* lc = NULL, const char* format = NULL );<br />
-  int  TMap::Read( LayerConfig&amp; lc, int nbytes );<br />
+  int Read( LayerConfig&amp; lc, int nbytes );<br />
   int ReadCategories( const char* mapSrc, const char* fileName );<br />
   int Write( int index = -1, Bool lastWrite = False );</p>
<p>diff -u -r sme-3.2.73/SpaceSim/src/CVariable.h sme-3.2.73-new/SpaceSim/src/CVariable.h<br />
--- sme-3.2.73/SpaceSim/src/CVariable.h	2002-03-28 13:00:00.000000000 +0800<br />
+++ sme-3.2.73-new/SpaceSim/src/CVariable.h	2006-10-18 13:19:09.000000000 +0800<br />
@@ -423,7 +423,7 @@<br />
 //			}<br />
 		}</p>
<p>-		void CVariable::Dump( char* msg, int pl0=0, int pl1=0, FILE* file=stdout, int s0 = 15, int s1 = 15 );<br />
+		void Dump( char* msg, int pl0=0, int pl1=0, FILE* file=stdout, int s0 = 15, int s1 = 15 );</p>
<p> 		inline virtual void Reset() {<br />
 			TVariable::Reset();<br />
diff -u -r sme-3.2.73/SpaceSim/src/SSTcl.cc sme-3.2.73-new/SpaceSim/src/SSTcl.cc<br />
--- sme-3.2.73/SpaceSim/src/SSTcl.cc	2004-09-30 09:28:03.000000000 +0800<br />
+++ sme-3.2.73-new/SpaceSim/src/SSTcl.cc	2006-10-18 15:13:16.000000000 +0800<br />
@@ -20,6 +20,7 @@<br />
 #include "SSComm.h"<br />
 #include "Utility.h"</p>
<p>+<br />
 static Tcl_Interp* _interp;<br />
 static Module* current_module;<br />
 static Variable* current_variable;<br />
@@ -1239,7 +1240,7 @@<br />
   Tcl_CreateExitHandler( SMETcl_Exit,  NULL );</p>
<p>   // create shortened version of major commands as well<br />
-  Tcl_CreateCommand(interp, "s", SMETcl_step, 0, NULL);<br />
+  Tcl_CreateCommand(interp, "s", SMETcl_step, (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);<br />
   Tcl_CreateCommand(interp, "r", SMETcl_run, 0, NULL);<br />
   Tcl_CreateCommand(interp, "S", SMETcl_restart, 0, NULL);</p>
<p>diff -u -r sme-3.2.73/SpaceSim/src/SSTcl.h sme-3.2.73-new/SpaceSim/src/SSTcl.h<br />
--- sme-3.2.73/SpaceSim/src/SSTcl.h	2004-09-30 09:25:25.000000000 +0800<br />
+++ sme-3.2.73-new/SpaceSim/src/SSTcl.h	2006-10-18 15:13:52.000000000 +0800<br />
@@ -7,9 +7,10 @@<br />
 #ifdef USE_TCL<br />
 #ifndef _SSTCL_H<br />
 #define _SSTCL_H<br />
-<br />
+#define USE_NON_CONST<br />
 #include &lt;tcl.h&gt;</p>
<p>+<br />
 typedef struct {<br />
   char* command;<br />
   int  (*func)(Tcl_Interp*, void*);<br />
diff -u -r sme-3.2.73/SpaceSim/src/StellaLib.h sme-3.2.73-new/SpaceSim/src/StellaLib.h<br />
--- sme-3.2.73/SpaceSim/src/StellaLib.h	2000-08-04 12:00:00.000000000 +0800<br />
+++ sme-3.2.73-new/SpaceSim/src/StellaLib.h	2006-10-18 13:20:26.000000000 +0800<br />
@@ -79,10 +79,10 @@<br />
   static float MinP(float x, float y, float xp, float yp );<br />
   static float MinP(float x, float y, float z, float xp, float yp, float zp);</p>
<p>-  static inline float SL::Min(float w, float x, float y, float z) { return SL::Min( SL::Min( w, x ), y, z ); }<br />
-  static inline float SL::Max(float w, float x, float y, float z) { return SL::Max( SL::Max( w, x ), y, z ); }<br />
-  static inline float SL::Min(float v, float w, float x, float y, float z) { return SL::Min( SL::Min( v, w, x ), y, z ); }<br />
-  static inline float SL::Max(float v, float w, float x, float y, float z) { return SL::Max( SL::Max( v, w, x ), y, z ); }<br />
+  static inline float Min(float w, float x, float y, float z) { return SL::Min( SL::Min( w, x ), y, z ); }<br />
+  static inline float Max(float w, float x, float y, float z) { return SL::Max( SL::Max( w, x ), y, z ); }<br />
+  static inline float Min(float v, float w, float x, float y, float z) { return SL::Min( SL::Min( v, w, x ), y, z ); }<br />
+  static inline float Max(float v, float w, float x, float y, float z) { return SL::Max( SL::Max( v, w, x ), y, z ); }</p>
<p> };</p>
<p>diff -u -r sme-3.2.73/SpaceSim/src/TPipe.h sme-3.2.73-new/SpaceSim/src/TPipe.h<br />
--- sme-3.2.73/SpaceSim/src/TPipe.h	2000-10-11 12:00:00.000000000 +0800<br />
+++ sme-3.2.73-new/SpaceSim/src/TPipe.h	2006-10-18 13:19:35.000000000 +0800<br />
@@ -157,8 +157,8 @@</p>
<p> public:</p>
<p>-  TPointPipe::TPointPipe( const char* name, EType type,  CVariable* var, Point2&amp; point ) : PointPipe(name,type,(Variable*)var,point) {;}<br />
-  TPointPipe::TPointPipe( const char* name, EType type,  CVariable* var ) : PointPipe(name,type,(Variable*)var)  {;}<br />
+  TPointPipe( const char* name, EType type,  CVariable* var, Point2&amp; point ) : PointPipe(name,type,(Variable*)var,point) {;}<br />
+  TPointPipe( const char* name, EType type,  CVariable* var ) : PointPipe(name,type,(Variable*)var)  {;} </p>
<p>   virtual int Initialize();<br />
 	inline virtual void Reset() { PointPipe::Reset(); TPipe::Reset();  } </code>
</p></blockquote>
<p>把这个patch应用后就应该可以install了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/273/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>ubuntu edgy读写NTFS</title>
		<link>http://wlx.westgis.ac.cn/267/</link>
		<comments>http://wlx.westgis.ac.cn/267/#comments</comments>
		<pubDate>Fri, 13 Oct 2006 00:57:12 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[ntfs-3g]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/267/</guid>
		<description><![CDATA[安装还是比较简单的：
sudo aptitude install ntfs-3g
完成后，可以这样使用：
sudo ntfs-3g /dev/hda2 /media/hda2 -o silent,umask=0,locale=zh_CN.UTF-8
若是想启动时自动挂载，可以这样修改/etc/fstab
/dev/hda2 /media/hda2 ntfs-3g silent,umask=0,locale=zh_CN-UTF-8 0 0
]]></description>
			<content:encoded><![CDATA[<p>安装还是比较简单的：</p>
<blockquote><p>sudo aptitude install ntfs-3g</p></blockquote>
<p>完成后，可以这样使用：</p>
<blockquote><p>sudo ntfs-3g /dev/hda2 /media/hda2 -o silent,umask=0,locale=zh_CN.UTF-8</p></blockquote>
<p>若是想启动时自动挂载，可以这样修改/etc/fstab</p>
<blockquote><p>/dev/hda2 /media/hda2 ntfs-3g silent,umask=0,locale=zh_CN-UTF-8 0 0</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/267/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>scim和skype冲突的解决</title>
		<link>http://wlx.westgis.ac.cn/266/</link>
		<comments>http://wlx.westgis.ac.cn/266/#comments</comments>
		<pubDate>Wed, 11 Oct 2006 15:31:05 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[scim]]></category>
		<category><![CDATA[scim-qtimm]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/266/</guid>
		<description><![CDATA[升级到edgy后，应该作的修正工作：
修正中文支持功能，默认情况下中文支持已经很好，但有时会和别的程序发生冲突，如SKYPE，因此就可以通过修改设置来完善：
sudo aptitude install scim-bridge scim-qtimm
sudo nano /etc/X11/xinit/xinput.d/zh_CN
修改为：
GTK_IM_MODULE="scim-bridge"
QT_IM_MODULE="xim"
这样就能解决skype无法启动的问题。
]]></description>
			<content:encoded><![CDATA[<p>升级到edgy后，应该作的修正工作：<br />
修正中文支持功能，默认情况下中文支持已经很好，但有时会和别的程序发生冲突，如SKYPE，因此就可以通过修改设置来完善：</p>
<blockquote><p>sudo aptitude install scim-bridge scim-qtimm<br />
sudo nano /etc/X11/xinit/xinput.d/zh_CN</p></blockquote>
<p>修改为：</p>
<blockquote><p>GTK_IM_MODULE="scim-bridge"<br />
QT_IM_MODULE="xim"</p></blockquote>
<p>这样就能解决skype无法启动的问题。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/266/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>复杂的XEN</title>
		<link>http://wlx.westgis.ac.cn/258/</link>
		<comments>http://wlx.westgis.ac.cn/258/#comments</comments>
		<pubDate>Thu, 21 Sep 2006 05:07:03 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[edgy]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://wlxblog.westgis.ac.cn/258/</guid>
		<description><![CDATA[在edgy上现在也可以直接支持xen了，从源里可以直接安装：
sudo aptitude install xen-hypervisor-3.0-i386 xen-image-xen0-2.6.16-11.1-generic xen-utils-3.0
然后设置启动：
sudo mkinitramfs -o /boot/xen0-linux-2.6.16-11.1-generic.initrd.img 2.6.16-11.1-generic
sudo nano /boot/grub/menu.lst
修改启动方式，添加：
title XEN/2.6.16b
root (hd0,1)
kernel /boot/xen-3.0-i386.gz
module /boot/xen0-linux-2.6.16-11.1-generic root=/dev/sda2 ro
module /boot/xen0-linux-2.6.16-11.1-generic.initrd.img
boot
这样就能启动了，但接下去的工作还是很复杂的，看了半天文档，最终还是决定等ubuntu edgy正式发布再进行这个尝试吧。
xen的复杂度比起qemu和vmware要高的多。
]]></description>
			<content:encoded><![CDATA[<p>在edgy上现在也可以直接支持xen了，从源里可以直接安装：<br />
sudo aptitude install xen-hypervisor-3.0-i386 xen-image-xen0-2.6.16-11.1-generic xen-utils-3.0<br />
然后设置启动：<br />
sudo mkinitramfs -o /boot/xen0-linux-2.6.16-11.1-generic.initrd.img 2.6.16-11.1-generic<br />
sudo nano /boot/grub/menu.lst<br />
修改启动方式，添加：</p>
<blockquote><p>title XEN/2.6.16b<br />
root (hd0,1)<br />
kernel /boot/xen-3.0-i386.gz<br />
module /boot/xen0-linux-2.6.16-11.1-generic root=/dev/sda2 ro<br />
module /boot/xen0-linux-2.6.16-11.1-generic.initrd.img<br />
boot</p></blockquote>
<p>这样就能启动了，但接下去的工作还是很复杂的，看了半天文档，最终还是决定等ubuntu edgy正式发布再进行这个尝试吧。<br />
xen的复杂度比起qemu和vmware要高的多。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/258/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
