<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>wolfg&#039;s Weblog &#187; ubuntu</title>
	<atom:link href="http://guoyong.me/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://guoyong.me</link>
	<description>wolfg&#039;s journey with open source, linux, programming, sysadm ...</description>
	<lastBuildDate>Wed, 04 Apr 2012 12:42:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/cn/</creativeCommons:license>		<item>
		<title>给虚拟机的虚拟硬盘增加容量(vmdk file)</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/%e7%bb%99%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e8%99%9a%e6%8b%9f%e7%a1%ac%e7%9b%98%e5%a2%9e%e5%8a%a0%e5%ae%b9%e9%87%8fvmdk-file/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/%e7%bb%99%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e8%99%9a%e6%8b%9f%e7%a1%ac%e7%9b%98%e5%a2%9e%e5%8a%a0%e5%ae%b9%e9%87%8fvmdk-file/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 09:56:03 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[gparted]]></category>
		<category><![CDATA[qemu]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[vmdk]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware-player]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=576</guid>
		<description><![CDATA[我使用虚拟机主要是为了使用Windows XP系统来访问网银、进行在线支付。当初安装时是用VMWare Player的，后来换成了VirtualBox 3。Windows XP越来越臃肿，虚拟机硬盘空间不够了。在网上搜索后找到了增加虚拟硬盘容量的方法：使用QEMN和GParted，不用安装“庞大”的VMWare软件。特别说明一下最初创建虚拟硬盘时也是使用的QEMU工具。 具体步骤如下： 1. VMDK格式转成RAW格式 $ qemu-img convert -f vmdk winxp.vmdk -O raw winxp.raw 2. 新建一个RAW格式的文件，后面会用到 $ qemu-img create -f raw temp.img 512M 3. 用cat命令把temp.img多次追加到winxp.raw文件后，达到扩容的目的。 $ cat winxp.raw temp.img temp.img temp.img temp.img temp.img temp.img temp.img temp.img &#62; &#8230; <a href="http://guoyong.me/linux/using-ubuntu-desktop/%e7%bb%99%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e8%99%9a%e6%8b%9f%e7%a1%ac%e7%9b%98%e5%a2%9e%e5%8a%a0%e5%ae%b9%e9%87%8fvmdk-file/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>我使用虚拟机主要是为了使用Windows XP系统来访问网银、进行在线支付。当初安装时是用VMWare Player的，后来换成了VirtualBox 3。Windows XP越来越臃肿，虚拟机硬盘空间不够了。在网上搜索后找到了增加虚拟硬盘容量的方法：使用<a href="http://wiki.qemu.org/Main_Page">QEMN</a>和<a href="http://gparted.sourceforge.net/">GParted</a>，不用安装“庞大”的VMWare软件。特别说明一下最初创建虚拟硬盘时也是使用的QEMU工具。</p>
<p>具体步骤如下：<br />
1. VMDK格式转成RAW格式</p>
<div class="hl-surround"><div class="hl-main">$ qemu-img convert -f vmdk winxp.vmdk -O raw winxp.raw</div></div>
<p>2. 新建一个RAW格式的文件，后面会用到</p>
<div class="hl-surround"><div class="hl-main">$ qemu-img create -f raw temp.img 512M</div></div>
<p>3. 用cat命令把temp.img多次追加到winxp.raw文件后，达到扩容的目的。</p>
<div class="hl-surround"><div class="hl-main">$ cat winxp.raw temp.img temp.img temp.img temp.img temp.img temp.img temp.img temp.img &gt; winxp.img</div></div>
<p>4. 再转成原来的VMDK格式</p>
<div class="hl-surround"><div class="hl-main">$ qemu-img convert -f raw winxp.img -O vmdk winxp.vmdk</div></div>
<p>5. 用下载Gparted Live CD 的iso文件作为光盘启动虚拟机，可以看到硬盘物理空间已经变成了8G。修改硬盘上面的分区大小就行了，也可以创建新的分区。<br />
<a href="http://guoyong.org/blog/wp-content/uploads/gparted.png" rel="lightbox[576]"><img src="http://guoyong.org/blog/wp-content/uploads/gparted-300x197.png" alt="" title="进行中" width="300" height="197" class="alignnone size-medium wp-image-586" /></a><a href="http://guoyong.org/blog/wp-content/uploads/gparted2.png" rel="lightbox[576]"><img src="http://guoyong.org/blog/wp-content/uploads/gparted2-300x197.png" alt="" title="修改成功" width="300" height="197" class="alignnone size-medium wp-image-587" /></a></p>
<p>参考:</p>
<p>http://www.cyberciti.biz/tips/howto-resize-vmware-virtual-harddisk-size.html#comments</p>
<p>http://qemu-forum.ipi.fi/viewtopic.php?t=846&#038;highlight=</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/%e7%bb%99%e8%99%9a%e6%8b%9f%e6%9c%ba%e7%9a%84%e8%99%9a%e6%8b%9f%e7%a1%ac%e7%9b%98%e5%a2%9e%e5%8a%a0%e5%ae%b9%e9%87%8fvmdk-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH:不用密码登录</title>
		<link>http://guoyong.me/linux/sysadm/%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e6%9d%a5ssh%e7%99%bb%e5%bd%95/</link>
		<comments>http://guoyong.me/linux/sysadm/%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e6%9d%a5ssh%e7%99%bb%e5%bd%95/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 08:31:22 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=569</guid>
		<description><![CDATA[用SSH登录远程主机，每次都输入密码挺麻烦的，其实可以用密钥文件来登录： 1. 用ssh-keygen命令生成private/public密钥对，提示问题都用默认回答即可。 $ ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/home/guoyong/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/guoyong/.ssh/id_rsa.Your public key has been saved in &#8230; <a href="http://guoyong.me/linux/sysadm/%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e6%9d%a5ssh%e7%99%bb%e5%bd%95/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>用SSH登录远程主机，每次都输入密码挺麻烦的，其实可以用密钥文件来登录：<br />
1. 用ssh-keygen命令生成private/public密钥对，提示问题都用默认回答即可。</p>
<div class="hl-surround"><div class="hl-main">$ ssh-keygen<br />Generating public/private rsa key pair.<br />Enter file in which to save the key (/home/guoyong/.ssh/id_rsa): <br />Enter passphrase (empty for no passphrase): <br />Enter same passphrase again: <br />Your identification has been saved in /home/guoyong/.ssh/id_rsa.<br />Your public key has been saved in /home/guoyong/.ssh/id_rsa.pub.</div></div>
<p>2. 用ssh-copy-id命令把公钥复制到远程主机上，user就是你登录用的用户名</p>
<div class="hl-surround"><div class="hl-main">$ ssh-cody-id user@remotehost</div></div>
<p>3. 验证一下吧</p>
<div class="hl-surround"><div class="hl-main">$ ssh user@remotehost echo &quot;it works&quot;</div></div>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/sysadm/%e4%b8%8d%e7%94%a8%e5%af%86%e7%a0%81%e6%9d%a5ssh%e7%99%bb%e5%bd%95/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>nrpe使用一例</title>
		<link>http://guoyong.me/linux/sysadm/nrpe%e4%bd%bf%e7%94%a8%e4%b8%80%e4%be%8b/</link>
		<comments>http://guoyong.me/linux/sysadm/nrpe%e4%bd%bf%e7%94%a8%e4%b8%80%e4%be%8b/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 07:22:25 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[监控]]></category>
		<category><![CDATA[运维]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nrpe]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=548</guid>
		<description><![CDATA[NRPE的作用是在远程主机上运行Nagios插件，以便监控远程主机。 Ubuntu Server下安装NRPE很方便： $ sudo apt-get install nagios-nrpe-server nagios-plugins 默认的几个检查命令(check_users, check_load等)都已经在/etc/naigos/nrpe.cfg和/etc/nagios/nrpe_local.cfg配置好了。在Nagios里配置监控服务使用类似如下的监控命令就可以了： check_command&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;check_nrpe!check_load 如果需要自定义监控命令，只需在/etc/nagios/nrpe_local.cfg里设置，重启NRPE服务，再在Nagios里配置监控服务即可。比如，要添加一个监控TCP各种状态的命令，步骤如下： @remotehost$ cd /usr/lib/nagios/plugins$ sudo wget http://www.tuschy.com/nagios/plugins/check_tcp_count$ sudo chmod +x check_tcp_count$ cd /etc/nagios$ sudo vi nrpe_local.cfgcommand[check_tcp_count]=/usr/lib/nagios/plugins/check_tcp_count$ sudo service nagios-nrpe-server &#8230; <a href="http://guoyong.me/linux/sysadm/nrpe%e4%bd%bf%e7%94%a8%e4%b8%80%e4%be%8b/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>NRPE的作用是在远程主机上运行Nagios插件，以便监控远程主机。</p>
<p>Ubuntu Server下安装NRPE很方便：</p>
<div class="hl-surround"><div class="hl-main">$ sudo apt-get install nagios-nrpe-server nagios-plugins</div></div>
<p>默认的几个检查命令(check_users, check_load等)都已经在/etc/naigos/nrpe.cfg和/etc/nagios/nrpe_local.cfg配置好了。在Nagios里配置监控服务使用类似如下的监控命令就可以了：</p>
<div class="hl-surround"><div class="hl-main">check_command&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;check_nrpe!check_load</div></div>
<p>如果需要自定义监控命令，只需在/etc/nagios/nrpe_local.cfg里设置，重启NRPE服务，再在Nagios里配置监控服务即可。比如，要添加一个监控TCP各种状态的命令，步骤如下：</p>
<div class="hl-surround"><div class="hl-main">@remotehost<br />$ cd /usr/lib/nagios/plugins<br />$ sudo wget http://www.tuschy.com/nagios/plugins/check_tcp_count<br />$ sudo chmod +x check_tcp_count<br />$ cd /etc/nagios<br />$ sudo vi nrpe_local.cfg<br />command[check_tcp_count]=/usr/lib/nagios/plugins/check_tcp_count<br />$ sudo service nagios-nrpe-server restart<br /><br />@nagioshost<br />$ sudo vi remotehost.cfg<br />define service{<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;use&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; generic-service<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;host_name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; remotehostname<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;service_description&nbsp; &nbsp; &nbsp; &nbsp; Tcp count<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;check_command&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; check_nrpe!check_tcp_count<br />}</div></div>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/sysadm/nrpe%e4%bd%bf%e7%94%a8%e4%b8%80%e4%be%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>登录窗口有多个Xfce会话供选择，怎么回事？</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/%e7%99%bb%e5%bd%95%e7%aa%97%e5%8f%a3%e6%9c%89%e5%a4%9a%e4%b8%aaxfce%e4%bc%9a%e8%af%9d%e4%be%9b%e9%80%89%e6%8b%a9%ef%bc%8c%e6%80%8e%e4%b9%88%e5%9b%9e%e4%ba%8b%ef%bc%9f/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/%e7%99%bb%e5%bd%95%e7%aa%97%e5%8f%a3%e6%9c%89%e5%a4%9a%e4%b8%aaxfce%e4%bc%9a%e8%af%9d%e4%be%9b%e9%80%89%e6%8b%a9%ef%bc%8c%e6%80%8e%e4%b9%88%e5%9b%9e%e4%ba%8b%ef%bc%9f/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 12:44:40 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xfce]]></category>
		<category><![CDATA[xsessions]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=558</guid>
		<description><![CDATA[登录窗口里选择会话的地方，一直有两个Xfce Session，登录后似乎略有不同。其实是在/usr/share/xsessions目录有一个符号链接default.desktop指向了xfce.desktop，删掉它后就可以了，也不影响什么。]]></description>
			<content:encoded><![CDATA[<p>登录窗口里选择会话的地方，一直有两个Xfce Session，登录后似乎略有不同。其实是在/usr/share/xsessions目录有一个符号链接default.desktop指向了xfce.desktop，删掉它后就可以了，也不影响什么。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/%e7%99%bb%e5%bd%95%e7%aa%97%e5%8f%a3%e6%9c%89%e5%a4%9a%e4%b8%aaxfce%e4%bc%9a%e8%af%9d%e4%be%9b%e9%80%89%e6%8b%a9%ef%bc%8c%e6%80%8e%e4%b9%88%e5%9b%9e%e4%ba%8b%ef%bc%9f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>找回消失的Notification Area(Xubuntu)</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/%e6%89%be%e5%9b%9e%e7%9c%8b%e4%b8%8d%e8%a7%81%e7%9a%84notification-areaxubuntu/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/%e6%89%be%e5%9b%9e%e7%9c%8b%e4%b8%8d%e8%a7%81%e7%9a%84notification-areaxubuntu/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 11:48:43 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[notification area]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xfce]]></category>
		<category><![CDATA[xfce-panel]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=556</guid>
		<description><![CDATA[美化桌面的时候会遇到通知区域(Notification Area)Applet不见了的情况，试图再加一个到面板上也会报类似“通知区域已经存在”的错误。 解决办法是检查~/.config/xfce4/panel目录下有没有名字以systray开头的文件，删掉这些文件。 rm ~/.config/xfce4/panel/systray* 再编辑~/.config/xfce4/panel/panels.xml这个文件，如果有一行包含systray的，也删掉。 再次登入后，重新添加通知区域到面板就可以了。]]></description>
			<content:encoded><![CDATA[<p>美化桌面的时候会遇到通知区域(Notification Area)Applet不见了的情况，试图再加一个到面板上也会报类似“通知区域已经存在”的错误。</p>
<p>解决办法是检查~/.config/xfce4/panel目录下有没有名字以systray开头的文件，删掉这些文件。<br />
rm ~/.config/xfce4/panel/systray*<br />
再编辑~/.config/xfce4/panel/panels.xml这个文件，如果有一行包含systray的，也删掉。</p>
<p>再次登入后，重新添加通知区域到面板就可以了。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/%e6%89%be%e5%9b%9e%e7%9c%8b%e4%b8%8d%e8%a7%81%e7%9a%84notification-areaxubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Services not starting on boot</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/services-not-starting-on-boot/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/services-not-starting-on-boot/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 16:02:07 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[serverfault]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upstart]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=524</guid>
		<description><![CDATA[前一段时间笔记本升级到Ubuntu 9.10后遇到了系统服务没有启动的问题，后来得知是upstart的一个bug。具体情况看看我在ServerFault回答的同样问题吧。]]></description>
			<content:encoded><![CDATA[<p>前一段时间笔记本升级到Ubuntu 9.10后遇到了系统服务没有启动的问题，后来得知是upstart的一个<a href="https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/497299">bug</a>。具体情况看看我在<a href="http://serverfault.com">ServerFault</a>回答的<a href="http://serverfault.com/questions/100240/services-not-starting-on-boot-but-will-start-manually-on-ubuntu-9-10/103532#103532">同样问题</a>吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/services-not-starting-on-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Nginx from source with &#8216;Debian&#8217; layout</title>
		<link>http://guoyong.me/linux/sysadm/how-to-install-nginx-from-source-with-debian-layout/</link>
		<comments>http://guoyong.me/linux/sysadm/how-to-install-nginx-from-source-with-debian-layout/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 08:10:56 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=371</guid>
		<description><![CDATA[1. 创建相关目录 $ sudo mkdir /etc/nginx$ sudo mkdir /etc/nginx/conf.d$ sudo mkdir /etc/nginx/sites-available$ sudo mkdir /etc/nginx/sites-enabled$ sudo mkdir /var/log/nginx$ sudo mkdir -p /var/lib/nginx/body$ sudo mkdir /var/lib/nginx/proxy$ sudo mkdir /var/lib/nginx/fastcgi 2. 编译安装 $ ./configure --prefix=/usr \--sbin-path=/usr/sbin/nginx \--conf-path=/etc/nginx/nginx.conf \--lock-path=/var/lock/nginx.lock \--error-log-path=/var/log/nginx/error.log \--http-log-path=/var/log/nginx/access.log \--pid-path=/var/run/nginx.pid \--user=www-data &#8230; <a href="http://guoyong.me/linux/sysadm/how-to-install-nginx-from-source-with-debian-layout/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>1. 创建相关目录</p>
<div class="hl-surround"><div class="hl-main">$ sudo mkdir /etc/nginx<br />$ sudo mkdir /etc/nginx/conf.d<br />$ sudo mkdir /etc/nginx/sites-available<br />$ sudo mkdir /etc/nginx/sites-enabled<br />$ sudo mkdir /var/log/nginx<br />$ sudo mkdir -p /var/lib/nginx/body<br />$ sudo mkdir /var/lib/nginx/proxy<br />$ sudo mkdir /var/lib/nginx/fastcgi</div></div>
<p>2. 编译安装</p>
<div class="hl-surround"><div class="hl-main">$ ./configure --prefix=/usr \<br />--sbin-path=/usr/sbin/nginx \<br />--conf-path=/etc/nginx/nginx.conf \<br />--lock-path=/var/lock/nginx.lock \<br />--error-log-path=/var/log/nginx/error.log \<br />--http-log-path=/var/log/nginx/access.log \<br />--pid-path=/var/run/nginx.pid \<br />--user=www-data \<br />--group=www-data \<br />--http-client-body-temp-path=/var/lib/nginx/body \<br />--http-proxy-temp-path=/var/lib/nginx/proxy \<br />--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \<br />--with-md5=/usr/lib \<br />--with-sha1=/usr/lib \<br />--with-http_ssl_module \<br />--with-http_gzip_static_module \<br />--with-pcre \<br />--without-mail_pop3_module \<br />--without-mail_imap_module \<br />--without-mail_smtp_module \<br />--with-http_stub_status_module<br /><br />$ make<br />$ sudo make install<br />$ sudo mv /usr/html /var/www/nginx-default</div></div>
<p>3. 修改配置文件<br />
/etc/nginx/nginx.conf</p>
<div class="hl-surround"><div class="hl-main">user www-data;<br />worker_processes&nbsp; 5;<br /><br />error_log&nbsp; /var/log/nginx/error.log;<br />pid&nbsp; &nbsp; &nbsp; &nbsp; /var/run/nginx.pid;<br /><br />events {<br />&nbsp;&nbsp; &nbsp;worker_connections&nbsp; 1024;<br />}<br /><br />http {<br />&nbsp;&nbsp; &nbsp;server_tokens off;<br />&nbsp;&nbsp; &nbsp;include&nbsp; &nbsp; &nbsp; &nbsp;/etc/nginx/mime.types;<br />&nbsp;&nbsp; &nbsp;default_type&nbsp; application/octet-stream;<br /><br />&nbsp;&nbsp; &nbsp;access_log&nbsp; /var/log/nginx/access.log;<br /><br />&nbsp;&nbsp; &nbsp;sendfile&nbsp; &nbsp; &nbsp; &nbsp; on;<br />&nbsp;&nbsp; &nbsp;#tcp_nopush&nbsp; &nbsp; &nbsp;on;<br /><br />&nbsp;&nbsp; &nbsp;#keepalive_timeout&nbsp; 0;<br />&nbsp;&nbsp; &nbsp;keepalive_timeout&nbsp; 65;<br />&nbsp;&nbsp; &nbsp;tcp_nodelay&nbsp; &nbsp; &nbsp; &nbsp; on;<br />&nbsp;&nbsp; &nbsp;gzip&nbsp; on;<br /><br />&nbsp;&nbsp; &nbsp;include /etc/nginx/conf.d/*.conf;<br />&nbsp;&nbsp; &nbsp;include /etc/nginx/sites-enabled/*;<br />}</div></div>
<p>/etc/nginx/sites-available/default</p>
<div class="hl-surround"><div class="hl-main">server {<br />&nbsp;&nbsp; &nbsp;listen&nbsp; &nbsp; &nbsp; &nbsp;80;<br />&nbsp;&nbsp; &nbsp;server_name&nbsp; localhost;<br /><br />&nbsp;&nbsp; &nbsp;location / {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;root&nbsp; &nbsp;/var/www/nginx-default;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;index&nbsp; index.html index.htm;<br />&nbsp;&nbsp; &nbsp;}<br /><br /><br />&nbsp;&nbsp; &nbsp;# redirect server error pages to the static page /50x.html<br />&nbsp;&nbsp; &nbsp;#<br />&nbsp;&nbsp; &nbsp;error_page&nbsp; &nbsp;500 502 503 504&nbsp; /50x.html;<br />&nbsp;&nbsp; &nbsp;location = /50x.html {<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;root&nbsp; &nbsp;/var/www/nginx-default;<br />&nbsp;&nbsp; &nbsp;}<br />}</div></div>
<p>启用default vhost</p>
<div class="hl-surround"><div class="hl-main">sudo ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default</div></div>
<p>4. 创建init脚本<br />
$ sudo vi /etc/init.d/nginx</p>
<div class="hl-surround"><div class="hl-main">#! /bin/sh<br /><br />### BEGIN INIT INFO<br /># Provides:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nginx<br /># Required-Start:&nbsp; &nbsp; $all<br /># Required-Stop:&nbsp; &nbsp; &nbsp;$all<br /># Default-Start:&nbsp; &nbsp; &nbsp;2 3 4 5<br /># Default-Stop:&nbsp; &nbsp; &nbsp; 0 1 6<br /># Short-Description: starts the nginx web server<br /># Description:&nbsp; &nbsp; &nbsp; &nbsp;starts nginx using start-stop-daemon<br />### END INIT INFO<br /><br />PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin<br />DAEMON=/usr/sbin/nginx<br />NAME=nginx<br />DESC=nginx<br /><br />test -x $DAEMON || exit 0<br /><br /># Include nginx defaults if available<br />if [ -f /etc/default/nginx ] ; then<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;. /etc/default/nginx<br />fi<br /><br />set -e<br /><br />. /lib/lsb/init-functions<br /><br />case &quot;$1&quot; in<br />&nbsp; start)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;echo -n &quot;Starting $DESC: &quot;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--exec $DAEMON -- $DAEMON_OPTS || true<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;echo &quot;$NAME.&quot;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;;;<br />&nbsp; stop)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;echo -n &quot;Stopping $DESC: &quot;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--exec $DAEMON || true<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;echo &quot;$NAME.&quot;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;;;<br />&nbsp; restart|force-reload)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;echo -n &quot;Restarting $DESC: &quot;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;start-stop-daemon --stop --quiet --pidfile \<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/var/run/$NAME.pid --exec $DAEMON || true<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;sleep 1<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;start-stop-daemon --start --quiet --pidfile \<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || true<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;echo &quot;$NAME.&quot;<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;;;<br />&nbsp; reload)<br />&nbsp;&nbsp; &nbsp; &nbsp;echo -n &quot;Reloading $DESC configuration: &quot;<br />&nbsp;&nbsp; &nbsp; &nbsp;start-stop-daemon --stop --signal HUP --quiet --pidfile /var/run/$NAME.pid \<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--exec $DAEMON || true<br />&nbsp;&nbsp; &nbsp; &nbsp;echo &quot;$NAME.&quot;<br />&nbsp;&nbsp; &nbsp; &nbsp;;;<br />&nbsp; status)<br />&nbsp;&nbsp; &nbsp; &nbsp;status_of_proc -p /var/run/$NAME.pid &quot;$DAEMON&quot; nginx &amp;&amp; exit 0 || exit $?<br />&nbsp;&nbsp; &nbsp; &nbsp;;;<br />&nbsp; *)<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;N=/etc/init.d/$NAME<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;echo &quot;Usage: $N {start|stop|restart|reload|force-reload|status}&quot; &gt;&amp;2<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;exit 1<br />&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;;;<br />esac<br /><br />exit 0</div></div>
<p>$ sudo chmod +x /etc/init.d/nginx<br />
$ sudo /usr/sbin/update-rc.d -f nginx defaults</p>
<p>5. 启动、停止、重启nginx服务</p>
<div class="hl-surround"><div class="hl-main">sudo /etc/init.d/nginx start<br />sudo /etc/init.d/nginx stop<br />sudo /etc/init.d/nginx restart</div></div>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/sysadm/how-to-install-nginx-from-source-with-debian-layout/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>升级到Ubuntu 8.10</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/upgrade-to-ubuntu-810/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/upgrade-to-ubuntu-810/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 22:40:12 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[ipw2200]]></category>
		<category><![CDATA[nm-applet]]></category>
		<category><![CDATA[T43]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=362</guid>
		<description><![CDATA[花了一天多的时间将笔记本（IBM Thinkpad T43）升级到了Ubuntu新发布的8.10版本。 升级过程很顺利（就是时间比较长），其间遇到了Network Manager小程序不停地弹出消息对话框，说“找不到所需的资源，无法继续”，但不影响升级包的安装。 重启系统后，Network Manager小程序居然不能加载了，在launchpad里搜索到解决办法是只在/etc/network/interfaces文件里保留下面这两行。 auto loiface lo inet loopback 第二个问题是，升级后无线网卡不工作了，用dmesg &#124; grep ipw2200查看，有如下类似的信息： ipw2200-bss.fw request_firmware failed: Reason -2ipw2200: Unable to load firmware: -2ipw2200: failed to register network google后知道是firmware加载的问题，检查/lib/firmware目录，没在当前使用中的内核目录（/lib/firmware/2.6.27-7-generic/）里找到这些firmware文件。从ipw2200的网站上下载后解压到这个目录后重启就解决了。（补充：使用原来的2.6.24内核启动系统无线网卡是正常的）]]></description>
			<content:encoded><![CDATA[<p>花了一天多的时间将笔记本（IBM Thinkpad T43）升级到了Ubuntu新发布的8.10版本。</p>
<p>升级过程很顺利（就是时间比较长），其间遇到了Network Manager小程序不停地弹出消息对话框，说“找不到所需的资源，无法继续”，但不影响升级包的安装。</p>
<p>重启系统后，Network Manager小程序居然不能加载了，在launchpad里搜索到解决办法是只在/etc/network/interfaces文件里保留下面这两行。</p>
<div class="hl-surround"><div class="hl-main">auto lo<br />iface lo inet loopback</div></div>
<p>第二个问题是，升级后无线网卡不工作了，用dmesg | grep ipw2200查看，有如下类似的信息：</p>
<div class="hl-surround"><div class="hl-main">ipw2200-bss.fw request_firmware failed: Reason -2<br />ipw2200: Unable to load firmware: -2<br />ipw2200: failed to register network</div></div>
<p>google后知道是firmware加载的问题，检查/lib/firmware目录，没在当前使用中的内核目录（/lib/firmware/2.6.27-7-generic/）里找到这些firmware文件。从ipw2200的网站上下载后解压到这个目录后重启就解决了。（补充：使用原来的2.6.24内核启动系统无线网卡是正常的）</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/upgrade-to-ubuntu-810/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>audacious不出声了？</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/not-the-audacious-chusheng/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/not-the-audacious-chusheng/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 02:40:12 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[audacious]]></category>
		<category><![CDATA[MADPlug-Message]]></category>
		<category><![CDATA[PULSEAUDIO]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=361</guid>
		<description><![CDATA[audacious不能播放mp3有一段时间了，今天找到这个问题的原因。 如果用终端运行audacious，就会在console里看到下面的错误信息： *** PULSEAUDIO: Unable to connect: Connection refusedMADPlug-Message: failed to open audio output: XMMS reverse compatibility output plugin 之前试过卸载再重装audacious，没用。 按照google到的结果提示的，发现系统里没有安装pulseaudio。而且，发现audacious里设置output plugin为alsa或oss就可以播放出来了。那pulseaudio为什么不行呢？ 修改/etc/default/pulseaudio文件，PULSEAUDIO_SYSTEM_START=1 让pulseaudio服务在系统启动时启动。 最重要的，把自己的用户加到pulse, pulse-access, pulse-rt这3个group里，这个就是最根本的原因了。]]></description>
			<content:encoded><![CDATA[<p>audacious不能播放mp3有一段时间了，今天找到这个问题的原因。</p>
<p>如果用终端运行audacious，就会在console里看到下面的错误信息：</p>
<div class="hl-surround"><div class="hl-main">*** PULSEAUDIO: Unable to connect: Connection refused<br />MADPlug-Message: failed to open audio output: XMMS reverse compatibility output plugin</div></div>
<p>之前试过卸载再重装audacious，没用。</p>
<p>按照google到的结果提示的，发现系统里没有安装pulseaudio。而且，发现audacious里设置output plugin为alsa或oss就可以播放出来了。那pulseaudio为什么不行呢？</p>
<p>修改/etc/default/pulseaudio文件，PULSEAUDIO_SYSTEM_START=1 让pulseaudio服务在系统启动时启动。</p>
<p>最重要的，把自己的用户加到pulse, pulse-access, pulse-rt这3个group里，这个就是最根本的原因了。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/not-the-audacious-chusheng/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xfce 字体问题</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/xfce-font-problems/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/xfce-font-problems/#comments</comments>
		<pubDate>Sun, 11 May 2008 06:51:06 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xfce]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=357</guid>
		<description><![CDATA[昨天为了使用笔记本（T43, ATI Mobility Radeon X300显卡）的VGA OUT功能，改用了ATI的驱动（xorg-driver-fglrx），字体变小了，虽然在User Interface和Window Manager里设置了字体，但有些地方的字体还是很小，尤其是ThunderBird的邮件正文，中文字都要缩成一团了。 Google到了一个方法，就是修改~/.config/xfce4/Xft.xrdb这个文件，在里面加上这句 Xft.dpi: 96 再看User Interface的Font设置，发现里面也有DPI的设置，呵呵。]]></description>
			<content:encoded><![CDATA[<p>昨天为了使用笔记本（T43, ATI Mobility Radeon X300显卡）的VGA OUT功能，改用了ATI的驱动（xorg-driver-fglrx），字体变小了，虽然在User Interface和Window Manager里设置了字体，但有些地方的字体还是很小，尤其是ThunderBird的邮件正文，中文字都要缩成一团了。</p>
<p>Google到了一个方法，就是修改~/.config/xfce4/Xft.xrdb这个文件，在里面加上这句</p>
<div class="hl-surround"><div class="hl-main">Xft.dpi: 96</div></div>
<p>再看User Interface的Font设置，发现里面也有DPI的设置，呵呵。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/xfce-font-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>升级到Ubuntu 8.04</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/e5-8d-87-e7-ba-a7-e5-88-b0ubuntu-804/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/e5-8d-87-e7-ba-a7-e5-88-b0ubuntu-804/#comments</comments>
		<pubDate>Sun, 04 May 2008 16:45:07 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=353</guid>
		<description><![CDATA[五一假期用了一晚时间升级了笔记本电脑上装的Ubuntu，注意到一些变化： 1. 启动过程中如果检查硬盘不会显示纯终端界面了 2. 登录xfce后无线网自动连接，不用再输入keyring的密码，很方便 3. Firefox 升级到3.0 4. 中文字体显示效果似乎比以前好了 升级后原来的vmware-player不能用啦，按照这里的说明即可解决。]]></description>
			<content:encoded><![CDATA[<p>五一假期用了一晚时间升级了笔记本电脑上装的Ubuntu，注意到一些变化：<br />
1. 启动过程中如果检查硬盘不会显示纯终端界面了<br />
2. 登录xfce后无线网自动连接，不用再输入keyring的密码，很方便<br />
3. Firefox 升级到3.0<br />
4. 中文字体显示效果似乎比以前好了</p>
<p>升级后原来的vmware-player不能用啦，按照<a href="http://theblacklodge.org/blog/2008/04/02/installing-vmware-player-203-on-ubuntu-804-beta">这里的说明</a>即可解决。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/e5-8d-87-e7-ba-a7-e5-88-b0ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>升级系统导致Postfix的SMTP认证失败（Cyrus-SASL + MySQL）</title>
		<link>http://guoyong.me/linux/sysadm/%e5%8d%87%e7%ba%a7%e7%b3%bb%e7%bb%9f%e5%af%bc%e8%87%b4postfix%e7%9a%84smtp%e8%ae%a4%e8%af%81%e5%a4%b1%e8%b4%a5%ef%bc%88cyrus-sasl-mysql%ef%bc%89/</link>
		<comments>http://guoyong.me/linux/sysadm/%e5%8d%87%e7%ba%a7%e7%b3%bb%e7%bb%9f%e5%af%bc%e8%87%b4postfix%e7%9a%84smtp%e8%ae%a4%e8%af%81%e5%a4%b1%e8%b4%a5%ef%bc%88cyrus-sasl-mysql%ef%bc%89/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 16:38:37 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/2008/01/29/351</guid>
		<description><![CDATA[日志里这样的错误信息： warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory 最终发现原因：main.cf里smtpd_sasl_path的设置错误，可能是更新修改的。 把smtpd_sasl_path=/etc/postfix/sasl:/usr/lib/sasl2改成smtpd_sasl_path=smtpd后，重启postfix和courier-authdaemon，问题解决。]]></description>
			<content:encoded><![CDATA[<p>日志里这样的错误信息：<br />
warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory</p>
<p>最终发现原因：main.cf里smtpd_sasl_path的设置错误，可能是更新修改的。<br />
把smtpd_sasl_path=/etc/postfix/sasl:/usr/lib/sasl2改成smtpd_sasl_path=smtpd后，重启postfix和courier-authdaemon，问题解决。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/sysadm/%e5%8d%87%e7%ba%a7%e7%b3%bb%e7%bb%9f%e5%af%bc%e8%87%b4postfix%e7%9a%84smtp%e8%ae%a4%e8%af%81%e5%a4%b1%e8%b4%a5%ef%bc%88cyrus-sasl-mysql%ef%bc%89/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>郁闷了几天，终于搞定了Ubuntu下Firefox经常crash的问题</title>
		<link>http://guoyong.me/linux/using-ubuntu-desktop/%e9%83%81%e9%97%b7%e4%ba%86%e5%87%a0%e5%a4%a9%ef%bc%8c%e7%bb%88%e4%ba%8e%e6%90%9e%e5%ae%9a%e4%ba%86ubuntu%e4%b8%8bfirefox%e7%bb%8f%e5%b8%b8crash%e7%9a%84%e9%97%ae%e9%a2%98-2/</link>
		<comments>http://guoyong.me/linux/using-ubuntu-desktop/%e9%83%81%e9%97%b7%e4%ba%86%e5%87%a0%e5%a4%a9%ef%bc%8c%e7%bb%88%e4%ba%8e%e6%90%9e%e5%ae%9a%e4%ba%86ubuntu%e4%b8%8bfirefox%e7%bb%8f%e5%b8%b8crash%e7%9a%84%e9%97%ae%e9%a2%98-2/#comments</comments>
		<pubDate>Wed, 13 Dec 2006 08:02:39 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[Using Desktop]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/2006/12/13/295</guid>
		<description><![CDATA[有一阵子没更新了 :( 这几天用Firefox很郁闷，经常发生关闭一个tab，firefox就crash掉了的情况。从shell里启动的话，可以看到的错误信息就是“段错误”，即“segmentation fault”。 升级到Firefox 2.0后也不行。（我用的是Ubuntu 6.06) 顺便提一下，从这个网站找到了安装、卸载Firefox 2.0的脚本，很好用。 google到两个bug报告，得知是flash插件的问题，不记得什么时候更新到了最新的flash插件，版本好像是9.0。 https://launchpad.net/distros/ubuntu/+source/firefox/+bug/19552 https://bugzilla.mozilla.org/show_bug.cgi?id=304370 解决的方法： 如果不想看页面里的flash了，就 export XLIB_SKIP_ARGB_VISUALS=1，再启动firefox就行了。 如果还是想显示flash，那就不能用从源里安装的flash插件（flashplugin-nonfree 和 flashplayer-mozilla好像都不行），从系统里卸载这些插件。然后用firefox访问一个有flash的页面，它会提示里安装插件，安装提示进行，最后会告诉你要手工安装，也就是要到adobe的网站上下载版本是7.0的插件 install_flash_player_7_linux.tar.gz，下载后安装就可以了。]]></description>
			<content:encoded><![CDATA[<p>有一阵子没更新了 :(</p>
<p>这几天用Firefox很郁闷，经常发生关闭一个tab，firefox就crash掉了的情况。从shell里启动的话，可以看到的错误信息就是“段错误”，即“segmentation fault”。</p>
<p>升级到Firefox 2.0后也不行。（我用的是Ubuntu 6.06) 顺便提一下，从<a href="http://www.psychocats.net/ubuntu/firefox">这个网站</a>找到了安装、卸载Firefox 2.0的脚本，很好用。</p>
<p>google到两个bug报告，得知是flash插件的问题，不记得什么时候更新到了最新的flash插件，版本好像是9.0。</p>
<p>https://launchpad.net/distros/ubuntu/+source/firefox/+bug/19552</p>
<p>https://bugzilla.mozilla.org/show_bug.cgi?id=304370</p>
<p>解决的方法：<br />
如果不想看页面里的flash了，就 export XLIB_SKIP_ARGB_VISUALS=1，再启动firefox就行了。<br />
如果还是想显示flash，那就不能用从源里安装的flash插件（flashplugin-nonfree 和 flashplayer-mozilla好像都不行），从系统里卸载这些插件。然后用firefox访问一个有flash的页面，它会提示里安装插件，安装提示进行，最后会告诉你要手工安装，也就是要到adobe的网站上下载版本是7.0的插件 install_flash_player_7_linux.tar.gz，下载后安装就可以了。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/using-ubuntu-desktop/%e9%83%81%e9%97%b7%e4%ba%86%e5%87%a0%e5%a4%a9%ef%bc%8c%e7%bb%88%e4%ba%8e%e6%90%9e%e5%ae%9a%e4%ba%86ubuntu%e4%b8%8bfirefox%e7%bb%8f%e5%b8%b8crash%e7%9a%84%e9%97%ae%e9%a2%98-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>让Postfix使用保存在MySQL中的加了密的密码字段(Ubuntu 6.06 TLS)</title>
		<link>http://guoyong.me/linux/sysadm/%e8%ae%a9postfix%e4%bd%bf%e7%94%a8%e4%bf%9d%e5%ad%98%e5%9c%a8mysql%e4%b8%ad%e7%9a%84%e5%8a%a0%e4%ba%86%e5%af%86%e7%9a%84%e5%af%86%e7%a0%81%e5%ad%97%e6%ae%b5ubuntu-606-tls/</link>
		<comments>http://guoyong.me/linux/sysadm/%e8%ae%a9postfix%e4%bd%bf%e7%94%a8%e4%bf%9d%e5%ad%98%e5%9c%a8mysql%e4%b8%ad%e7%9a%84%e5%8a%a0%e4%ba%86%e5%af%86%e7%9a%84%e5%af%86%e7%a0%81%e5%ad%97%e6%ae%b5ubuntu-606-tls/#comments</comments>
		<pubDate>Fri, 01 Dec 2006 17:49:45 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/2006/12/02/293</guid>
		<description><![CDATA[这两天在Ubuntu下折腾Postfix + Courier-IMAP + Cyrus-SASL + MySQL + PostfixAdmin，主要参考这个Howto(http://flurdy.com/docs/postfix/) 配置了Postfix Admin，所以邮件用户的密码用了md5的加密方式存放在MySQL数据库中的（不想用明文）。这样一来，IMAP服务器可以支持加密的密码字段，认证没有问题，但SMTP服务器不行。 Google了好久，发现网上大多数都是使用明文密码的，也有用saslauthd的pam认证方式来做的。我一开始是用明文的，觉得不好（能看到用户的密码，心里不安），又试了pam方式但没成功（不知道为什么，没深究）。最后终于找到牛人给Cyrus-SASL写的patch（针对2.1.19版本的），安装步骤参考 http://blog.matroid.org/display/26 $ cd ~$ apt-get source libsasl2$ sudo apt-get build-dep libsasl2下载这个为Debian修改过的patch文件$ wget http://blog.matroid.org/files/20060116-crypted-passwords-for-couriour-and-postfix-in-mysql/cyrus-sasl-2.1.19-checkpw.c.patch_mgr$ cd cyrus-sasl-2.1.19.dfsg1$ tar xvzf cyrus-sasl-2.1.19.dfsg1.tar.gz$ ln -s cyrus-sasl-2.1.19.dfsg1 cyrus-sasl-2.1.19.orig$ cp ../cyrus-sasl-2.1.19-checkpw.c.patch_mgr debian/patches/28_cyrus-sasl-2.1.19-checkpw.c.patch做些修改，将patch文件里的cyrus-sasl-2.1.19.org替换为cyrus-sasl-2.1.19.dfsg1，不然会patch会失败。改好后，编译$ fakeroot debian/rules binary成功后，安装生成的deb包$ &#8230; <a href="http://guoyong.me/linux/sysadm/%e8%ae%a9postfix%e4%bd%bf%e7%94%a8%e4%bf%9d%e5%ad%98%e5%9c%a8mysql%e4%b8%ad%e7%9a%84%e5%8a%a0%e4%ba%86%e5%af%86%e7%9a%84%e5%af%86%e7%a0%81%e5%ad%97%e6%ae%b5ubuntu-606-tls/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>这两天在Ubuntu下折腾Postfix + Courier-IMAP + Cyrus-SASL + MySQL + PostfixAdmin，主要参考这个Howto(http://flurdy.com/docs/postfix/)<br />
配置了Postfix Admin，所以邮件用户的密码用了md5的加密方式存放在MySQL数据库中的（不想用明文）。这样一来，IMAP服务器可以支持加密的密码字段，认证没有问题，但SMTP服务器不行。</p>
<p>Google了好久，发现网上大多数都是使用明文密码的，也有用saslauthd的pam认证方式来做的。我一开始是用明文的，觉得不好（能看到用户的密码，心里不安），又试了pam方式但没成功（不知道为什么，没深究）。最后终于找到牛人给Cyrus-SASL写的patch（针对2.1.19版本的），安装步骤参考 http://blog.matroid.org/display/26</p>
<div class="hl-surround"><div class="hl-main">$ cd ~<br />$ apt-get source libsasl2<br />$ sudo apt-get build-dep libsasl2<br />下载这个为Debian修改过的patch文件<br />$ wget http://blog.matroid.org/files/20060116-crypted-passwords-for-couriour-and-postfix-in-mysql/cyrus-sasl-2.1.19-checkpw.c.patch_mgr<br />$ cd cyrus-sasl-2.1.19.dfsg1<br />$ tar xvzf cyrus-sasl-2.1.19.dfsg1.tar.gz<br />$ ln -s cyrus-sasl-2.1.19.dfsg1 cyrus-sasl-2.1.19.orig<br />$ cp ../cyrus-sasl-2.1.19-checkpw.c.patch_mgr debian/patches/28_cyrus-sasl-2.1.19-checkpw.c.patch<br />做些修改，将patch文件里的cyrus-sasl-2.1.19.org替换为cyrus-sasl-2.1.19.dfsg1，不然会patch会失败。改好后，编译<br />$ fakeroot debian/rules binary<br />成功后，安装生成的deb包<br />$ cd ..<br />$ sudo dpkg -i *.deb</div></div>
<p>配置/etc/postfix/sasl/smptd.conf</p>
<div class="hl-surround"><div class="hl-main">pwcheck_method: auxprop<br />auxprop_plugin: sql<br />allowanonymouslogin: no<br />allowplaintext: yes<br />mech_list: PLAIN LOGIN<br />srp_mda: md5<br /><br />srvtab: /dev/null<br />opiekeys: /dev/null<br /><br />password_format: crypt<br /><br />sql_user: username<br />sql_passwd: password<br />sql_hostnames: sql.example.org<br />sql_database: database_name<br />sql_select: SELECT password FROM mailbox WHERE username = '%u@%r'</div></div>
<p>重启Postfix就可以了。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/sysadm/%e8%ae%a9postfix%e4%bd%bf%e7%94%a8%e4%bf%9d%e5%ad%98%e5%9c%a8mysql%e4%b8%ad%e7%9a%84%e5%8a%a0%e4%ba%86%e5%af%86%e7%9a%84%e5%af%86%e7%a0%81%e5%ad%97%e6%ae%b5ubuntu-606-tls/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ubuntu 6.06 下SquirrelMail的中文界面问题</title>
		<link>http://guoyong.me/linux/sysadm/ubuntu-606-%e4%b8%8bsquirrelmail%e7%9a%84%e4%b8%ad%e6%96%87%e7%95%8c%e9%9d%a2%e9%97%ae%e9%a2%98/</link>
		<comments>http://guoyong.me/linux/sysadm/ubuntu-606-%e4%b8%8bsquirrelmail%e7%9a%84%e4%b8%ad%e6%96%87%e7%95%8c%e9%9d%a2%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Wed, 29 Nov 2006 15:11:06 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[squirrelmail]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/2006/11/29/292</guid>
		<description><![CDATA[SquirrelMail的系统配置为中文，用户设置也是中文，可以正常查看中文邮件，但界面还是英文。 系统已经安装了language-support-zh中文支持包。 原因：Ubuntu的默认系统字符集是UTF-8，而SquirrelMail需要的是GB2312（见SquirrelMail的程序目录functions/i18n.php中第843到846行） 解决办法（从SquirrelMail官网的wiki里得到启示）： $ sudo cp /var/lib/locales/supported.d/local /var/lib/locales/supported.d/local.old$ grep zh_CN /usr/share/i18n/SUPPORTEDzh_CN.GB18030 GB18030zh_CN.GBK GBKzh_CN.UTF-8 UTF-8zh_CN GB2312$ sudo vi /var/lib/locales/supported.d/local把上面的内容添加到local文件里$ grep zh_CN /var/lib/locales/supported.d/localzh_CN.GB18030 GB18030zh_CN.GBK GBKzh_CN.UTF-8 UTF-8zh_CN GB2312$ sudo dpkg-reconfigure --force locales生成新的中文locale，可能比较慢 这时访问SquirrelMail的界面就是中文的了。]]></description>
			<content:encoded><![CDATA[<p>SquirrelMail的系统配置为中文，用户设置也是中文，可以正常查看中文邮件，但界面还是英文。</p>
<p>系统已经安装了language-support-zh中文支持包。</p>
<p>原因：Ubuntu的默认系统字符集是UTF-8，而SquirrelMail需要的是GB2312（见SquirrelMail的程序目录functions/i18n.php中第843到846行）</p>
<p>解决办法（从SquirrelMail官网的wiki里得到启示）：</p>
<div class="hl-surround"><div class="hl-main">$ sudo cp /var/lib/locales/supported.d/local /var/lib/locales/supported.d/local.old<br />$ grep zh_CN /usr/share/i18n/SUPPORTED<br />zh_CN.GB18030 GB18030<br />zh_CN.GBK GBK<br />zh_CN.UTF-8 UTF-8<br />zh_CN GB2312<br /><br />$ sudo vi /var/lib/locales/supported.d/local<br />把上面的内容添加到local文件里<br /><br />$ grep zh_CN /var/lib/locales/supported.d/local<br />zh_CN.GB18030 GB18030<br />zh_CN.GBK GBK<br />zh_CN.UTF-8 UTF-8<br />zh_CN GB2312<br /><br />$ sudo dpkg-reconfigure --force locales<br />生成新的中文locale，可能比较慢</div></div>
<p>这时访问SquirrelMail的界面就是中文的了。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.me/linux/sysadm/ubuntu-606-%e4%b8%8bsquirrelmail%e7%9a%84%e4%b8%ad%e6%96%87%e7%95%8c%e9%9d%a2%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.631 seconds -->

