<?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; hardy</title>
	<atom:link href="http://wlx.westgis.ac.cn/tag/hardy/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 hardy下使用zend framework</title>
		<link>http://wlx.westgis.ac.cn/503/</link>
		<comments>http://wlx.westgis.ac.cn/503/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 08:12:10 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=503</guid>
		<description><![CDATA[安装：
sudo aptitude install zend-framework
补充操作：
1 添加Zend符号连接
sudo ln -s /usr/share/php/libzend-framework-php/Zend /usr/share/php/Zend
2 修补中文EMAIL的subject乱码
参考http://framework.zend.com/issues/browse/ZF-2532
]]></description>
			<content:encoded><![CDATA[<p>安装：</p>
<blockquote><p>sudo aptitude install zend-framework</p></blockquote>
<p>补充操作：<br />
1 添加Zend符号连接<br />
sudo ln -s /usr/share/php/libzend-framework-php/Zend /usr/share/php/Zend<br />
2 修补中文EMAIL的subject乱码<br />
参考http://framework.zend.com/issues/browse/ZF-2532</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/503/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用z-star摄像头</title>
		<link>http://wlx.westgis.ac.cn/502/</link>
		<comments>http://wlx.westgis.ac.cn/502/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 10:04:46 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gspca]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[webcam]]></category>
		<category><![CDATA[z-star]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=502</guid>
		<description><![CDATA[在笔记本上使用一直没有问题，现在转移到台式机上用，摄像头出问题了，在虚拟机里可以使用，在本机上反而无法使用，搜索了一下，发现可以通过重新禁止zc0301模块而使用gspca来解决此问题。
参考：
http://blog.myfenris.net/?p=377
注意其中的comment：
$ sudo gedit /etc/modprobe.d/blacklist
Add these lines at the bottom:
# Use gspca for Z-Star webcam
blacklist zc0301
Pull out your webcam, plug it back in, and start camorama. If your colours are fucked up you can try adding a “color correction” filter in Camorama (Skype does this automatically). If that doesn’t help, try adding “options gspca force_rgb=1″ to [...]]]></description>
			<content:encoded><![CDATA[<p>在笔记本上使用一直没有问题，现在转移到台式机上用，摄像头出问题了，在虚拟机里可以使用，在本机上反而无法使用，搜索了一下，发现可以通过重新禁止zc0301模块而使用gspca来解决此问题。<br />
参考：<br />
<a href="http://blog.myfenris.net/?p=377">http://blog.myfenris.net/?p=377</a><br />
注意其中的comment：</p>
<blockquote><p>$ sudo gedit /etc/modprobe.d/blacklist</p>
<p>Add these lines at the bottom:</p>
<p># Use gspca for Z-Star webcam<br />
blacklist zc0301</p>
<p>Pull out your webcam, plug it back in, and start camorama. If your colours are fucked up you can try adding a “color correction” filter in Camorama (Skype does this automatically). If that doesn’t help, try adding “options gspca force_rgb=1″ to /etc/modprobe.d/options.</p>
<p>Cheers,</p></blockquote>
<p>最初，我是打算按照readme.Debian的说明来进行安装的：</p>
<blockquote><p>sudo aptitude install gspca-source<br />
sudo m-a prepare<br />
sudo m-a a-i gspca</p></blockquote>
<p>但是，因为现在这里有个<a href="https://bugs.launchpad.net/ubuntu/+source/gspca/+bug/213762">BUG</a>，导致编译会失败，所以我也从源码开始安装的（是否可以省略这一步？不太确认）。<br />
编译安装完成后的操作：</p>
<blockquote><p>sudo nano /etc/modprobe.d/blacklist</p></blockquote>
<p>添加一行：</p>
<blockquote><p>blacklist zc0301</p></blockquote>
<p>然后：</p>
<blockquote><p>sudo modprobe -r zc0301<br />
sudo modprobe gspca</p></blockquote>
<p>然后把摄像头重新插一下，若是要使用camorama：</p>
<blockquote><p>sudo chmod 777 /dev/video0</p></blockquote>
<p>现在就应该可以使用camorama或skype来测试摄像头了。<br />
仍然存在问题：<br />
camorama里没有问题，但是skype自动使用了彩色纠正，导致颜色出现了偏差。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/502/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ubuntu hardy下简易的proftpd+mysql配置</title>
		<link>http://wlx.westgis.ac.cn/501/</link>
		<comments>http://wlx.westgis.ac.cn/501/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 03:50:50 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=501</guid>
		<description><![CDATA[1. 安装
sudo aptitude install proftpd proftpd-mysql
2. 配置
/etc/proftpd/proftpd.conf
把
Include /etc/proftpd/sql.conf

前面的注释去掉
然后修改/etc/proftpd/sql.conf，我的相关配置如下：

SQLBackend	mysql
SQLEngine on
SQLAuthenticate on
SQLAuthTypes Plaintext Crypt
SQLConnectInfo ftp@localhost proftp abcde
SQLUserInfo ftpuser userid passwd uid gid homedir shell
SQLGroupInfo ftpgroup groupname gid members

3. 创建mysql库
此处请参照Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Ubuntu 8.04 LTS
4. restart proftpd
sudo /etc/init.d/proftpd restart
]]></description>
			<content:encoded><![CDATA[<p>1. 安装</p>
<blockquote><p>sudo aptitude install proftpd proftpd-mysql</p></blockquote>
<p>2. 配置<br />
/etc/proftpd/proftpd.conf<br />
把</p>
<blockquote><p>Include /etc/proftpd/sql.conf
</p></blockquote>
<p>前面的注释去掉<br />
然后修改/etc/proftpd/sql.conf，我的相关配置如下：</p>
<blockquote><p>
SQLBackend	mysql<br />
SQLEngine on<br />
SQLAuthenticate on<br />
SQLAuthTypes Plaintext Crypt<br />
SQLConnectInfo ftp@localhost proftp abcde<br />
SQLUserInfo ftpuser userid passwd uid gid homedir shell<br />
SQLGroupInfo ftpgroup groupname gid members
</p></blockquote>
<p>3. 创建mysql库<br />
此处请参照<a href="http://www.howtoforge.com/virtual-hosting-with-proftpd-and-mysql-ubuntu-8.04">Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Ubuntu 8.04 LTS</a></p>
<p>4. restart proftpd</p>
<blockquote><p>sudo /etc/init.d/proftpd restart</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/501/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu hardy下的smtp服务</title>
		<link>http://wlx.westgis.ac.cn/492/</link>
		<comments>http://wlx.westgis.ac.cn/492/#comments</comments>
		<pubDate>Tue, 27 May 2008 03:08:37 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[sasl]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=492</guid>
		<description><![CDATA[前面介绍了应如何打造安全的SMTP服务，我们的服务器升级到ubuntu hardy后发现邮件服务急剧上升，最终检查发现smtp服务不安全了：全面开放了，这可是一个大问题。
经过一系列测试发现，修改了/etc/postfix/master.cf，去掉了这两个的注释：
smtp      inet  n       -       -       -       -       smtpd
#submission inet n      -   [...]]]></description>
			<content:encoded><![CDATA[<p>前面介绍了应<a href="http://wlx.westgis.ac.cn/325/">如何打造安全的SMTP服务</a>，我们的服务器升级到ubuntu hardy后发现邮件服务急剧上升，最终检查发现smtp服务不安全了：全面开放了，这可是一个大问题。</p>
<p>经过一系列测试发现，修改了/etc/postfix/master.cf，去掉了这两个的注释：</p>
<blockquote><p>smtp      inet  n       -       -       -       -       smtpd<br />
#submission inet n      -       -       -       -       smtpd<br />
#	-o smtpd_etrn_restrictions=reject<br />
	-o smtpd_client_restrictions=permit_sasl_authenticated,reject<br />
#smtps    inet  n       -       -       -       -       smtpd<br />
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes<br />
#submission inet n      -       -       -       -       smtpd<br />
  -o smtpd_etrn_restrictions=reject<br />
  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
</p></blockquote>
<p>这样就要求客户端必须使用TLS来连接，并必须通过验证。<br />
暂时还不清楚是否对本机上的其他Web邮件服务是否有影响。</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/492/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>make skype work with pulseaudio in ubuntu hardy</title>
		<link>http://wlx.westgis.ac.cn/488/</link>
		<comments>http://wlx.westgis.ac.cn/488/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 13:04:44 +0000</pubDate>
		<dc:creator>wlx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[pulse]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://wlx.westgis.ac.cn/?p=488</guid>
		<description><![CDATA[Install pulseaudio first, just follow the instructions in ubuntu wiki:
sudo apt-get install libasound2-plugins "pulseaudio-*" paman padevchooser paprefs pavucontrol pavumeter
then create /etc/asound.conf that contains:
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

then make your user have the rights to access [...]]]></description>
			<content:encoded><![CDATA[<p>Install pulseaudio first, just follow the instructions in <a href="https://wiki.ubuntu.com/PulseAudio">ubuntu wiki</a>:</p>
<blockquote><p>sudo apt-get install libasound2-plugins "pulseaudio-*" paman padevchooser paprefs pavucontrol pavumeter</p></blockquote>
<p>then create /etc/asound.conf that contains:</p>
<blockquote><p>pcm.pulse {<br />
    type pulse<br />
}<br />
ctl.pulse {<br />
    type pulse<br />
}<br />
pcm.!default {<br />
    type pulse<br />
}<br />
ctl.!default {<br />
    type pulse<br />
}
</p></blockquote>
<p>then make your user have the rights to access pulse groups:</p>
<blockquote><p>      pulse<br />
      pulse-access<br />
      pulse-rt
</p></blockquote>
<p>If you have got skype's audio problem, follow instructions in <a href="http://ubuntuforums.org/showthread.php?t=686911">ubuntuforums</a>,<br />
edit /etc/pulse/default.pa, comment out "load-module module-hal-detect". Then, uncomment the following: </p>
<blockquote><p>load-module load-module module-alsa-sink ....<br />
load-module module-alsa-source ...</p></blockquote>
<p>and change it's content to:</p>
<blockquote><p>load-module module-alsa-sink device=dmix sink_name=output<br />
load-module module-alsa-source device=dsnoop</p></blockquote>
<p>and append the follow content in /etc/asound.conf:</p>
<blockquote><p>
pcm.skypeout<br />
{<br />
	type plug<br />
	slave.pcm "dmix"<br />
}<br />
ctl.skypeout<br />
{<br />
	type hw<br />
	card 0<br />
}<br />
pcm.skypein<br />
{<br />
	type plug<br />
	slave.pcm "dsnoop"<br />
}<br />
ctl.skypein<br />
{<br />
	type hw<br />
	card 0<br />
}</p></blockquote>
<p>restart pulseaudio:</p>
<blockquote><p>killall pulseaudio<br />
pulseaudio &#038;</p></blockquote>
<p>Then, start Skype, and go to the Sound Devices section in the Options. Select for Sound Out and Ringing, the device called "skypeout". Select for Sound In, the device called "skypein"</p>
<p>Reference<br />
1 https://wiki.ubuntu.com/PulseAudio<br />
2 http://ubuntuforums.org/showthread.php?t=686911</p>
]]></content:encoded>
			<wfw:commentRss>http://wlx.westgis.ac.cn/488/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
