<?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; intrepid</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/intrepid/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>升级ubuntu server</title>
		<link>http://wlx.westgis.ac.cn/596/</link>
		<comments>http://wlx.westgis.ac.cn/596/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 14:58:14 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=596</guid>
		<description><![CDATA[ubuntu jaunty已经发布了，服务器现在的版本还是hardy，正好遇到了奇怪的问题，所以就想升级了。
sudo aptitude install update-manager-core
然后修改/etc/update-manager/release-upgrades文件内容，把
Prompt=lts
修改为：
Prompt=normal 
然后开始升级：
sudo do-release-upgrade
注意：
1 在升级过程中有个提示，是否要继续操作，其中提示为[yN]，但在中文locale下需要输入"是“，估计这是个翻译的BUG？
2 apache在升级后会产生问题，导致所有的网站都定向到默认网站了，需要修改/etc/apache2/ports.conf文件，把
NameVirtualHost *:80
给注释掉，然后在修改默认网站/etc/apache2/sites-enable/000-default，在第一行添加：
NameVirtualHost *
]]></description>
			<content:encoded><![CDATA[<p>ubuntu jaunty已经发布了，服务器现在的版本还是hardy，正好遇到了奇怪的问题，所以就想升级了。</p>
<blockquote><p>sudo aptitude install update-manager-core</p></blockquote>
<p>然后修改/etc/update-manager/release-upgrades文件内容，把</p>
<blockquote><p>Prompt=lts</p></blockquote>
<p>修改为：</p>
<blockquote><p>Prompt=normal </p></blockquote>
<p>然后开始升级：</p>
<blockquote><p>sudo do-release-upgrade</p></blockquote>
<p>注意：<br />
1 在升级过程中有个提示，是否要继续操作，其中提示为[yN]，但在中文locale下需要输入"是“，估计这是个翻译的BUG？<br />
2 apache在升级后会产生问题，导致所有的网站都定向到默认网站了，需要修改/etc/apache2/ports.conf文件，把</p>
<blockquote><p>NameVirtualHost *:80</p></blockquote>
<p>给注释掉，然后在修改默认网站/etc/apache2/sites-enable/000-default，在第一行添加：</p>
<blockquote><p>NameVirtualHost *</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/596/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu intrepid下安装envi 4.6.1</title>
		<link>http://wlx.westgis.ac.cn/585/</link>
		<comments>http://wlx.westgis.ac.cn/585/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 02:33:10 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[envi]]></category>
		<category><![CDATA[idl]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=585</guid>
		<description><![CDATA[方法和原来的相似：
tar -zxvf envi_linux.x86.tar.gz
cd envi461linux.x86
sudo mkdir /usr/local/itt
sudo mv idl708 /usr/local/itt/
sudo mv install /usr/local/itt/
sudo mv license /usr/local/itt/
cd /usr/local/itt
sudo ./install

然后拷贝license到/usr/local/itt/license，命名为license.lic，就可以运行envi。
但发现我的机器明明是64位的，怎么是按照32位模式运行的呢？
仔细查找后发现，是由于idl的启动脚本里用到了/bin/arch命令，而这个命令已经被取消了，参考ubuntu的BUG。
若不想修改脚本的话，就可以建一个/bin/arch的脚本：
#!/bin/bash
uname -m

]]></description>
			<content:encoded><![CDATA[<p>方法和<a href="http://wlx.westgis.ac.cn/255/">原来</a>的相似：</p>
<blockquote><p>tar -zxvf envi_linux.x86.tar.gz<br />
cd envi461linux.x86<br />
sudo mkdir /usr/local/itt<br />
sudo mv idl708 /usr/local/itt/<br />
sudo mv install /usr/local/itt/<br />
sudo mv license /usr/local/itt/<br />
cd /usr/local/itt<br />
sudo ./install
</p></blockquote>
<p>然后拷贝license到/usr/local/itt/license，命名为license.lic，就可以运行envi。<br />
但发现我的机器明明是64位的，怎么是按照32位模式运行的呢？<br />
仔细查找后发现，是由于idl的启动脚本里用到了/bin/arch命令，而这个命令已经被取消了，参考<a href="https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/148511">ubuntu的BUG</a>。<br />
若不想修改脚本的话，就可以建一个/bin/arch的脚本：</p>
<blockquote><p>#!/bin/bash<br />
uname -m
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/585/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>evolution的中文附件问题</title>
		<link>http://wlx.westgis.ac.cn/583/</link>
		<comments>http://wlx.westgis.ac.cn/583/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 09:30:41 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=583</guid>
		<description><![CDATA[在ubuntu intrepid上，evolution发出的中文附件（指文件名是中文打头），如果另外一端是采用OUTLOOK活Outlook Express，则不能收到中文附件，或附件的文件名是奇怪的名称（att***.dat)。
在下个版本里这一问题已经得到修正，需要等ubuntu jaunty发布才可以。若现在就想修正这个问题，可以把这个PPA加入到源中：

deb http://ppa.launchpad.net/hggdh2/ppa/ubuntu intrepid main

然后升级系统应该就可以了。
参考：
1 ubuntu bug
2 gnome bug
]]></description>
			<content:encoded><![CDATA[<p>在ubuntu intrepid上，evolution发出的中文附件（指文件名是中文打头），如果另外一端是采用OUTLOOK活Outlook Express，则不能收到中文附件，或附件的文件名是奇怪的名称（att***.dat)。<br />
在下个版本里这一问题已经得到修正，需要等ubuntu jaunty发布才可以。若现在就想修正这个问题，可以把这个PPA加入到源中：</p>
<blockquote>
<p>deb http://ppa.launchpad.net/hggdh2/ppa/ubuntu intrepid main
</p></blockquote>
<p>然后升级系统应该就可以了。</p>
<p>参考：<br />
1 <a href="https://bugs.launchpad.net/ubuntu/+source/evolution-data-server/+bug/205999">ubuntu bug</a><br />
2 <a href="http://bugzilla.gnome.org/show_bug.cgi?id=524377">gnome bug</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/583/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ubuntu amd64下使用skype</title>
		<link>http://wlx.westgis.ac.cn/579/</link>
		<comments>http://wlx.westgis.ac.cn/579/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 14:49:40 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[amd64]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=579</guid>
		<description><![CDATA[目前，skype还没有专门的64位版本，在UBUNTU intrepid amd64下使用需要进行一些特殊的处理：
首先：下载skype，从medibuntu库中：
skype-common
和skype-static
然后安装：
sudo aptitude install ia32-libs libqtcore4 libqtgui4
wget -N boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb
sudo dpkg -i getlibs-all.deb
sudo getlibs -p bluez-alsa
sudo dpkg -i *.deb
然后要配置skype，在我的机器上（dell optiplex 755)，需要在音量控制里选择最后一个：Capture ...Pulse
然后在skype的声音设置里选择：输入声音 hwintel,0，别的都用pulse，这样就可以正常使用skype了。
最全的howto请参考：
HOWTO: Install Skype on 64-bit Ubuntu 
]]></description>
			<content:encoded><![CDATA[<p>目前，skype还没有专门的64位版本，在UBUNTU intrepid amd64下使用需要进行一些特殊的处理：<br />
首先：下载skype，从medibuntu库中：<br />
<a href="http://packages.medibuntu.org/pool/non-free/s/skype/skype-common_2.0.0.72-0medibuntu4_all.deb">skype-common</a><br />
和<a href="http://archive.ubuntu.org.cn/ubuntu-cn/dists/intrepid/main/binary-amd64/medibuntu/non-free/skype-static_2.0.0.72-0medibuntu4_amd64.deb">skype-static</a><br />
然后安装：</p>
<blockquote><p>sudo aptitude install ia32-libs libqtcore4 libqtgui4<br />
wget -N boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb<br />
sudo dpkg -i getlibs-all.deb<br />
sudo getlibs -p bluez-alsa<br />
sudo dpkg -i *.deb</p></blockquote>
<p>然后要配置skype，在我的机器上（dell optiplex 755)，需要在音量控制里选择最后一个：Capture ...Pulse<br />
然后在skype的声音设置里选择：输入声音 hwintel,0，别的都用pulse，这样就可以正常使用skype了。</p>
<p>最全的howto请参考：<br />
<a href="http://ubuntuforums.org/showthread.php?t=432295">HOWTO: Install Skype on 64-bit Ubuntu </a></p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/579/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ubuntu intrepid下安装proftpd配置postgresql后端</title>
		<link>http://wlx.westgis.ac.cn/546/</link>
		<comments>http://wlx.westgis.ac.cn/546/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 02:32:03 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=546</guid>
		<description><![CDATA[因为在另外一台机器上已经配置过，本以为很简单，复制过来就可以，没想到还是出问题，检查了半天，发现是group table没有设置的原因。
安装：
sudo aptitude install proftpd proftp-pgsql
配置：
在/etc/proftpd/proftpd.conf里把
＃Include /etc/proftpd/sql.conf
这行的注释去掉，然后修改/etc/proftpd/sql.conf文件，修改为：

SQLBackend	postgres
SQLEngine on
SQLAuthenticate users
SQLAuthTypes Crypt Plaintext
SQLConnectInfo db@server_name_or_ip user password
RequireValidShell    off
SQLUserInfo     ftp.users userid passwd uid gid homedir shell
SQLGroupInfo ftp.groups groupname gid members
SQLDefaultUID        108   # CHANGE FOR YOUR FTP USERS UID FOUND IN /etc/passwd
SQLDefaultGID   [...]]]></description>
			<content:encoded><![CDATA[<p>因为在另外一台机器上已经配置过，本以为很简单，复制过来就可以，没想到还是出问题，检查了半天，发现是group table没有设置的原因。<br />
安装：<br />
sudo aptitude install proftpd proftp-pgsql<br />
配置：<br />
在/etc/proftpd/proftpd.conf里把</p>
<blockquote><p>＃Include /etc/proftpd/sql.conf</p></blockquote>
<p>这行的注释去掉，然后修改/etc/proftpd/sql.conf文件，修改为：</p>
<blockquote><p><IfModule mod_sql.c><br />
SQLBackend	postgres<br />
SQLEngine on<br />
SQLAuthenticate users<br />
SQLAuthTypes Crypt Plaintext<br />
SQLConnectInfo db@server_name_or_ip user password</p>
<p>RequireValidShell    off</p>
<p>SQLUserInfo     ftp.users userid passwd uid gid homedir shell<br />
SQLGroupInfo ftp.groups groupname gid members<br />
SQLDefaultUID        108   # CHANGE FOR YOUR FTP USERS UID FOUND IN /etc/passwd<br />
SQLDefaultGID        1002  # CHANGE FOR YOUR FTP USERS GID, FOUND IN /etc/groups<br />
SQLDefaultHomedir    /home/ftp<br />
RequireValidShell    off</p>
<p>SQLNegativeCache     off<br />
# 调试时打开<br />
#SQLLogFile           /var/log/proftpd-sql</p>
<p>SQLNamedQuery updatecount UPDATE "count=count+1 WHERE userid='%u'" ftp.users<br />
SQLLOG	PASS	updatecount</p>
<p>SQLNamedQuery count SELECT "count from ftp.users where userid='%u'"<br />
SQLShowInfo PASS "230" "You've logged on %{count} times, %u"</p>
<p>SQLLog               STOR newfile<br />
SQLNamedQuery        newfile FREEFORM "INSERT INTO ftp.logs(userid,action,file,abs_path,bytes) VALUES ('%U','upload','%J','%f', '%b')" </p>
<p>SQLLog RETR insertfileinfo<br />
SQLNamedQuery insertfileinfo FREEFORM "INSERT INTO ftp.logs(userid,action,file,abs_path,bytes) VALUES ('%U','download','%J','%f', '%b')"
</p></blockquote>
<p>数据库可以参考：http://www.howtoforge.com/proftpd_postgresql_auth_logging</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/546/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>use zc0301 webcam in skype on ubuntu intrepid</title>
		<link>http://wlx.westgis.ac.cn/536/</link>
		<comments>http://wlx.westgis.ac.cn/536/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 11:30:36 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[webcam]]></category>
		<category><![CDATA[zc0301]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=536</guid>
		<description><![CDATA[原来的方法不起作用了，需要采用这个方法，在终端下运行：
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
参考：
http://ph.ubuntuforums.com/showthread.php?t=945803
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918
]]></description>
			<content:encoded><![CDATA[<p><a href="http://wlx.westgis.ac.cn/502/">原来的方法</a>不起作用了，需要采用这个方法，在终端下运行：</p>
<blockquote><p>LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype</p></blockquote>
<p>参考：</p>
<p>http://ph.ubuntuforums.com/showthread.php?t=945803</p>
<p>https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/536/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu intrepid 升级kernel后重新安装fglrx</title>
		<link>http://wlx.westgis.ac.cn/534/</link>
		<comments>http://wlx.westgis.ac.cn/534/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 10:08:26 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[fglrx]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[X]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=534</guid>
		<description><![CDATA[ati的显卡，升级后发现无法进入X窗口了。
经过搜索，发现相关解决办法：
http://ubuntuforums.org/showthread.php?t=997913
http://ubuntuforums.org/showthread.php?t=993292
其实，解决办法比较简单：
在进入X窗口失败后，直接进入终端，然后：
sudo rm /var/lib/dkms/fglrx/ -fdr
sudo apt-get remove fglrx*
sudo aptitude install xorg-driver-fglrx
重新进入X应该就可以解决问题了。
]]></description>
			<content:encoded><![CDATA[<p>ati的显卡，升级后发现无法进入X窗口了。<br />
经过搜索，发现相关解决办法：</p>
<p>http://ubuntuforums.org/showthread.php?t=997913</p>
<p>http://ubuntuforums.org/showthread.php?t=993292</p>
<p>其实，解决办法比较简单：<br />
在进入X窗口失败后，直接进入终端，然后：</p>
<blockquote><p>sudo rm /var/lib/dkms/fglrx/ -fdr<br />
sudo apt-get remove fglrx*<br />
sudo aptitude install xorg-driver-fglrx</p></blockquote>
<p>重新进入X应该就可以解决问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/534/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>evolution信件重复问题</title>
		<link>http://wlx.westgis.ac.cn/532/</link>
		<comments>http://wlx.westgis.ac.cn/532/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 04:03:21 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=532</guid>
		<description><![CDATA[在evoluiton中发现信件有时会有重复的问题，但应该只是显示上的重复，如果删除了一封邮件，则其他相同的邮件也被删除。
进数据库(folders.db)查询后发现信件确实只有一封，那就应该是索引的问题：
rm ~/.evolution/mail/local/*.ibex.index*
再重新进入evolution就没有问题了。
]]></description>
			<content:encoded><![CDATA[<p>在evoluiton中发现信件有时会有重复的问题，但应该只是显示上的重复，如果删除了一封邮件，则其他相同的邮件也被删除。<br />
进数据库(folders.db)查询后发现信件确实只有一封，那就应该是索引的问题：</p>
<blockquote><p>rm ~/.evolution/mail/local/*.ibex.index*</p></blockquote>
<p>再重新进入evolution就没有问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/532/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu intrepid: evolution不能清空回收站</title>
		<link>http://wlx.westgis.ac.cn/530/</link>
		<comments>http://wlx.westgis.ac.cn/530/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 03:12:36 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[evolution]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[trash]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=530</guid>
		<description><![CDATA[在使用中碰到了evolution不能清空回收站的问题，参考launchpad.net上的bug#270763，通过尝试后发现可以这样解决：
sqlite3 ~/.evolution/mail/local/folders.db
sqlite> delete from ".#evolution/Trash";
sqlite> delete from ".#evolution/Junk";

然后看看Templates表是否存在：
sqlite> .tables Templates
sqlite> .quit
如果没有Templates表，则在evolution中随便创建一个草稿，保存为模板。
然后应该就可以清空回收站了。若发生摘要不匹配问题，则可以删除摘要：
先关掉evolution，然后删除对应目录下的摘要文件，比如收件箱：
rm ~/.evoluiton/mail/local/Inbox.ev-sum*
]]></description>
			<content:encoded><![CDATA[<p>在使用中碰到了evolution不能清空回收站的问题，参考<a href="https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/270763">launchpad.net上的bug#270763</a>，通过尝试后发现可以这样解决：</p>
<blockquote><p>sqlite3 ~/.evolution/mail/local/folders.db<br />
sqlite> delete from ".#evolution/Trash";<br />
sqlite> delete from ".#evolution/Junk";
</p></blockquote>
<p>然后看看Templates表是否存在：</p>
<blockquote><p>sqlite> .tables Templates<br />
sqlite> .quit</p></blockquote>
<p>如果没有Templates表，则在evolution中随便创建一个草稿，保存为模板。<br />
然后应该就可以清空回收站了。若发生摘要不匹配问题，则可以删除摘要：<br />
先关掉evolution，然后删除对应目录下的摘要文件，比如收件箱：</p>
<blockquote><p>rm ~/.evoluiton/mail/local/Inbox.ev-sum*</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/530/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compile &amp; install GRASS 6.4 on ubuntu intrepid</title>
		<link>http://wlx.westgis.ac.cn/520/</link>
		<comments>http://wlx.westgis.ac.cn/520/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 11:46:42 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[GRASS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[debuild]]></category>
		<category><![CDATA[gdal]]></category>
		<category><![CDATA[intrepid]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=520</guid>
		<description><![CDATA[首先，需要自己重新编译GDAL，目前UBUNTU源里的GDAL有BUG。
然后，从svn中下载grass 6.4：
svn co https://svn.osgeo.org/grass/grass/branches/develbranch_6 grass-6.4
cd grass-6.4/debian
svn://svn.debian.org/pkg-grass/packages/grass/branches/6.4/debian debiangis
mv debiangis/* .
目前，这个DEB控制还有点小问题，需要自己作些修改：
nano grass.conf
把路径修改为：
/usr/lib/grass64/lib
然后修改grass-preview-doc.links，修改为：
usr/share/doc/grass-preview-doc/html usr/lib/grass64/docs/html
还需要连接一个so库：
locate _gdi_.so
我的机器上有两个地址，一个是python 2.4，一个是python 2.5，我选择了python 2.5的地址，然后作了个连接：
sudo ln -s /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so /usr/loca/lib/libgdi.so
然后就可以编译了：
debuild binary
然后就可以安装了，你若不想安装，可以使用我已经编译好的，（添加我自己的源）：
http://ubuntu.westgis.ac.cn/ubuntu
然后sudo aptitude install grass-preview就可以了。
如要安装文档：
sudo aptitude install grass-preview-doc
sudo mkdir /usr/lib/grass64/docs
sudo ln -s /usr/share/doc/grass-preview-doc/html /usr/lib/grass64/docs/
]]></description>
			<content:encoded><![CDATA[<p>首先，需要自己重新编译GDAL，目前UBUNTU源里的GDAL有BUG。<br />
然后，从svn中下载grass 6.4：</p>
<blockquote><p>svn co https://svn.osgeo.org/grass/grass/branches/develbranch_6 grass-6.4<br />
cd grass-6.4/debian<br />
svn://svn.debian.org/pkg-grass/packages/grass/branches/6.4/debian debiangis<br />
mv debiangis/* .</p></blockquote>
<p>目前，这个DEB控制还有点小问题，需要自己作些修改：</p>
<blockquote><p>nano grass.conf</p></blockquote>
<p>把路径修改为：</p>
<blockquote><p>/usr/lib/grass64/lib</p></blockquote>
<p>然后修改grass-preview-doc.links，修改为：</p>
<blockquote><p>usr/share/doc/grass-preview-doc/html usr/lib/grass64/docs/html</p></blockquote>
<p>还需要连接一个so库：</p>
<blockquote><p>locate _gdi_.so</p></blockquote>
<p>我的机器上有两个地址，一个是python 2.4，一个是python 2.5，我选择了python 2.5的地址，然后作了个连接：</p>
<blockquote><p>sudo ln -s /usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so /usr/loca/lib/libgdi.so</p></blockquote>
<p>然后就可以编译了：</p>
<blockquote><p>debuild binary</p></blockquote>
<p>然后就可以安装了，你若不想安装，可以使用我已经编译好的，（添加我自己的源）：</p>
<blockquote><p><a href="http://ubuntu.westgis.ac.cn/ubuntu/">http://ubuntu.westgis.ac.cn/ubuntu</a></p></blockquote>
<p>然后sudo aptitude install grass-preview就可以了。</p>
<p>如要安装文档：</p>
<blockquote><p>sudo aptitude install grass-preview-doc<br />
sudo mkdir /usr/lib/grass64/docs<br />
sudo ln -s /usr/share/doc/grass-preview-doc/html /usr/lib/grass64/docs/</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/520/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
