<?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>小生同学的碎碎念 &#187; debian</title>
	<atom:link href="http://www.chenxiaosheng.com/tag/debian/feed" rel="self" type="application/rss+xml" />
	<link>http://www.chenxiaosheng.com</link>
	<description></description>
	<lastBuildDate>Thu, 02 Sep 2010 06:43:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>rsyslog and relp</title>
		<link>http://www.chenxiaosheng.com/2010/08/11/534.html</link>
		<comments>http://www.chenxiaosheng.com/2010/08/11/534.html#comments</comments>
		<pubDate>Wed, 11 Aug 2010 11:28:00 +0000</pubDate>
		<dc:creator>陈小生</dc:creator>
				<category><![CDATA[技术相关]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[relp]]></category>
		<category><![CDATA[rsyslog]]></category>

		<guid isPermaLink="false">http://www.chenxiaosheng.com/?p=534</guid>
		<description><![CDATA[留个坑，有后续进展再添。。。 时间格式化 rsyslog默认输出log的时间格式为Aug 11 18:59:46 可是想得到2010-08-11 18:59:46 怎么办呢？ rsyslog的Property里有没有second这个东西。。 定义template如下: $template xsformat, &#8220;%$NOW% %TIMESTAMP:8:15% %syslogtag%%msg%\n&#8221; 只好通过TIMESTAMP这里去取时间了，希望看到的朋友有更好的方法提醒我一下，谢谢 简单日志过滤: local0.none -/var/log/syslog     #所有的local0日志都不写入syslog local.crit -/var/log/xxxxlog       #local.crti写入/var/log/xxxxlog :msg, contains, &#8220;ERR&#8221;           -/home/log/rsyslog_err.log  #msg中包含ERR的写入rsyslog_err.log文件 日志文件权限设置: 需要设置不同的日志读写权限，好吧，研究了老久，发现其实一样是使用$FileCreateMode 和 $umask设置 这两个值可以多次设置，在设置值之后的日志就按这个设置值设定权限 您可能还会对以下文章感兴趣：debian安装grub 2及windows双系统配置Linux上使用华为E1750 3G无线上网卡Linux命令free里buffers/cache的简单理解Unix/Linux学习二三事各种Linux发行版的时间图]]></description>
			<content:encoded><![CDATA[<p>留个坑，有后续进展再添。。。</p>
<p><strong>时间格式化</strong></p>
<blockquote><p>rsyslog默认输出log的时间格式为Aug 11 18:59:46</p>
<p>可是想得到2010-08-11 18:59:46</p></blockquote>
<p>怎么办呢？</p>
<p>rsyslog的Property里有没有second这个东西。。</p>
<p>定义template如下:</p>
<blockquote><p>$template xsformat, &#8220;<strong>%$NOW% %TIMESTAMP:8:15%</strong> %syslogtag%%msg%\n&#8221;</p></blockquote>
<p>只好通过TIMESTAMP这里去取时间了，希望看到的朋友有更好的方法提醒我一下，谢谢</p>
<p><strong>简单日志过滤:</strong></p>
<blockquote><p>local0.none -/var/log/syslog     #所有的local0日志都不写入syslog</p>
<p>local.crit -/var/log/xxxxlog       #local.crti写入/var/log/xxxxlog</p>
<p>:msg, contains, &#8220;ERR&#8221;           -/home/log/rsyslog_err.log  #msg中包含ERR的写入rsyslog_err.log文件</p></blockquote>
<p><strong>日志文件权限设置:</strong></p>
<p>需要设置不同的日志读写权限，好吧，研究了老久，发现其实一样是使用$FileCreateMode 和 $umask设置</p>
<p>这两个值可以多次设置，在设置值之后的日志就按这个设置值设定权限</p>
<h3  class="related_post_title">您可能还会对以下文章感兴趣：</h3><ul class="related_post"><li><a href="http://www.chenxiaosheng.com/2009/10/06/219.html" title="debian安装grub 2及windows双系统配置">debian安装grub 2及windows双系统配置</a></li><li><a href="http://www.chenxiaosheng.com/2010/09/02/544.html" title="Linux上使用华为E1750 3G无线上网卡">Linux上使用华为E1750 3G无线上网卡</a></li><li><a href="http://www.chenxiaosheng.com/2009/11/25/272.html" title="Linux命令free里buffers/cache的简单理解">Linux命令free里buffers/cache的简单理解</a></li><li><a href="http://www.chenxiaosheng.com/2009/10/18/243.html" title="Unix/Linux学习二三事">Unix/Linux学习二三事</a></li><li><a href="http://www.chenxiaosheng.com/2009/10/13/235.html" title="各种Linux发行版的时间图">各种Linux发行版的时间图</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.chenxiaosheng.com/2010/08/11/534.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在Debian上安装gentoo(HP NC4400 notebook)</title>
		<link>http://www.chenxiaosheng.com/2009/10/08/221.html</link>
		<comments>http://www.chenxiaosheng.com/2009/10/08/221.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 12:51:29 +0000</pubDate>
		<dc:creator>陈小生</dc:creator>
				<category><![CDATA[技术相关]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[nc4400]]></category>
		<category><![CDATA[notebook]]></category>

		<guid isPermaLink="false">http://www.chenxiaosheng.com/2009/10/08/221.html</guid>
		<description><![CDATA[具体的安装过程请参见gentoo的官方doc吧，我这里就不重复造轮子了，只记录一些在安装后配置到可用时碰到的一些小问题 中文支持，做为一个中文用户即使系统使用英文环境也会经常要有用到中文的时候 编辑/etc/locale.gen，增加如下内容，保存后运行locale-gen en_US ISO-8859-1 zh_CN.GB18030 GB18030 zh_CN.GBK GBK zh_CN.UTF-8 UTF-8 zh_CN GB2312 中文输入scim or ibus安装及配置 编辑/etc/env.d/100i18n，没有这个文件的话，自己增加即可 LANG=en_US LC_CTYPE=zh_CN.UTF-8 LC_NUMERIC=&#8221;en_US&#8221; LC_TIME=&#8221;en_US&#8221; LC_COLLATE=&#8221;en_US&#8221; LC_MONETARY=&#8221;en_US&#8221; LC_MESSAGES=&#8221;zh_CN.UTF-8&#8243; #如果X环境要使用中文的话 LC_PAPER=&#8221;en_US&#8221; LC_NAME=&#8221;en_US&#8221; LC_ADDRESS=&#8221;en_US&#8221; LC_TELEPHONE=&#8221;en_US&#8221; LC_MEASUREMENT=&#8221;en_US&#8221; LC_IDENTIFICATION=&#8221;en_US&#8221; /etc/make.conf LINGUAS=&#8221;en_US zh_CN zh&#8220;#如果没有zh，安装scim后无法正常输入中文 之后emerge scim-tables scim scim-pinyin即可，ibus的话要unmask一堆软件之后才能emerge，建议先emerge autounmask，再使用autounmask操作 虚拟化软件VirtualBox emerge app-emulation/virtualbox-bin emerge app-emulation/virtualbox-modules，这个每次编译新的内核或者安装新的内核都要重新安装，然后按下面的提示操作 * Please add &#8220;vboxdrv&#8221;, &#8220;vboxnetflt&#8221; and &#8220;vboxnetadp&#8221; to: * /etc/modules.autoload.d/kernel-2.6 [...]]]></description>
			<content:encoded><![CDATA[<p>具体的安装过程请参见<a href="http://www.gentoo.org" target="_blank">gentoo</a>的官方doc吧，我这里就不重复造轮子了，只记录一些在安装后配置到可用时碰到的一些小问题</p>
<p><strong>中文支持，做为一个中文用户即使系统使用英文环境也会经常要有用到中文的时候</strong></p>
<p>编辑/etc/locale.gen，增加如下内容，保存后运行locale-gen</p>
<blockquote><p>en_US ISO-8859-1<br />
zh_CN.GB18030 GB18030<br />
zh_CN.GBK GBK<br />
zh_CN.UTF-8 UTF-8<br />
zh_CN GB2312</p></blockquote>
<p><span id="more-221"></span></p>
<p><strong>中文输入scim or ibus安装及配置</strong></p>
<p><strong>编辑/etc/env.d/100i18n，没有这个文件的话，自己增加即可</strong></p>
<blockquote><p>LANG=en_US<br />
LC_CTYPE=zh_CN.UTF-8<br />
LC_NUMERIC=&#8221;en_US&#8221;<br />
LC_TIME=&#8221;en_US&#8221;<br />
LC_COLLATE=&#8221;en_US&#8221;<br />
LC_MONETARY=&#8221;en_US&#8221;<br />
LC_MESSAGES=&#8221;zh_CN.UTF-8&#8243; #如果X环境要使用中文的话<br />
LC_PAPER=&#8221;en_US&#8221;<br />
LC_NAME=&#8221;en_US&#8221;<br />
LC_ADDRESS=&#8221;en_US&#8221;<br />
LC_TELEPHONE=&#8221;en_US&#8221;<br />
LC_MEASUREMENT=&#8221;en_US&#8221;<br />
LC_IDENTIFICATION=&#8221;en_US&#8221;</p></blockquote>
<p>/etc/make.conf</p>
<blockquote><p>LINGUAS=&#8221;en_US zh_CN <strong>zh</strong>&#8220;#如果没有zh，安装scim后无法正常输入中文</p></blockquote>
<p>之后emerge scim-tables scim scim-pinyin即可，ibus的话要unmask一堆软件之后才能emerge，建议先emerge autounmask，再使用autounmask操作</p>
<p><strong>虚拟化软件VirtualBox</strong></p>
<p>emerge app-emulation/virtualbox-bin</p>
<p>emerge app-emulation/virtualbox-modules，这个每次编译新的内核或者安装新的内核都要重新安装，然后按下面的提示操作</p>
<blockquote><p>* Please add &#8220;vboxdrv&#8221;, &#8220;vboxnetflt&#8221; and &#8220;vboxnetadp&#8221; to:<br />
* /etc/modules.autoload.d/kernel-2.6</p></blockquote>
<p><strong>安装后，进入X发现笔记本的触摸板异常灵敏：</strong></p>
<blockquote><p>emerge x11-drivers/xf86-input-synaptics</p></blockquote>
<p><strong>GDM升级到2.26/2.28之后原来的theme不能使用：</strong><br />
升级之后我的奇怪问题不止于此。。。网上搜了一下，中国十万万网民不止我有诡异的问题。。不升也罢，降回2.20。。。清静。</p>
<p><strong>使用gentoo china overlay, fontconfig 需要重新merge，提示：</strong><br />
You need to compile freetype-2 with the ubuntu USE before you can compile fontconfig with the ubuntu USE flag.</p>
<p>加上ubuntu标记后，重编freetype没用-_-据说要用china overlay里patch过的freetype，不过这个我个人应该没啥用处。。索引在make.conf里的USE加上<br />
-ubuntu 禁用。。。清静。。</p>
<p><strong>audacious乱码的问题</strong><br />
在audacious上右键选择“首选项”，在“播放列表”中，把标题格式改为“Custom&#8221;,再把自定格式改为<br />
“%f”（不要引号）。<br />
这是wiki上的方法：在Fallback charcter encodings 选项后加入GBK</p>
<p><strong>xrandr分屏窗口最大化的问题</strong></p>
<p>发现当我使用xrandr分屏后,把窗口最大化的时候,窗口会扩展到所有的屏幕,这样对我来说,相当影响使用,我要的只是在当前屏幕最大化,之前使用debian是没有问题的,几经搜索,终于发现只要在<em>/etc/make.conf</em>的USE标记里加上<em>xinerama,</em>之后再<em>emerge -avuDN world</em>即可解决这个问题:)</p>
<h3  class="related_post_title">您可能还会对以下文章感兴趣：</h3><ul class="related_post"><li><a href="http://www.chenxiaosheng.com/2010/09/02/544.html" title="Linux上使用华为E1750 3G无线上网卡">Linux上使用华为E1750 3G无线上网卡</a></li><li><a href="http://www.chenxiaosheng.com/2010/08/11/534.html" title="rsyslog and relp">rsyslog and relp</a></li><li><a href="http://www.chenxiaosheng.com/2010/02/07/333.html" title="gentoo linuxqq自動退出fix">gentoo linuxqq自動退出fix</a></li><li><a href="http://www.chenxiaosheng.com/2009/12/05/280.html" title="gentoo下破解无线wep加密">gentoo下破解无线wep加密</a></li><li><a href="http://www.chenxiaosheng.com/2009/12/01/276.html" title="Gentoo下VirtualBox使用alsa发音">Gentoo下VirtualBox使用alsa发音</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.chenxiaosheng.com/2009/10/08/221.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>debian安装grub 2及windows双系统配置</title>
		<link>http://www.chenxiaosheng.com/2009/10/06/219.html</link>
		<comments>http://www.chenxiaosheng.com/2009/10/06/219.html#comments</comments>
		<pubDate>Tue, 06 Oct 2009 07:18:09 +0000</pubDate>
		<dc:creator>陈小生</dc:creator>
				<category><![CDATA[技术相关]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[grub2]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[squeeze]]></category>

		<guid isPermaLink="false">http://www.chenxiaosheng.com/?p=219</guid>
		<description><![CDATA[系统：Debian squeeze 安装过程相当简单，apt-get install grub2，系统自动安装依赖grub-pc和grub-common，安装过程会提示发现旧的grub配置，会使用旧的配置生成新的配置文件，这些请在安装的过程中仔细阅读说明即可 安装后重启会发现GRUB菜单有点不同了，上面有进入GRUB2的选单，中间有一段提示说明如果发现一切都没问题，可以使用upgrade-from-grub-legacy完成从grub到grub2的升级，不过比较无奈的是，grub2只发现了我的debian，没发现我的windows双系统，依照grub2的配置文件加以前使用grub的经验&#60;这次变懒，没去读grub2的文档&#62;，增加了如下配置： menuentry “Windows XP Professional” { insmod ntfs root (hd0,0) chainloader +1 } 重启，发现都正常，就是windows无法引导，看来不读doc是不行的，看了一下，才发现grub2分区是从1开始算的，而不是以前的0开始算，更改上面的root (hd0,0)为root (hd0,1)，重启，正常引导 之后回到debian，以root运行upgrade-from-grub-legacy，按提示操作即可。 您可能还会对以下文章感兴趣：rsyslog and relpLinux上使用华为E1750 3G无线上网卡Linux命令free里buffers/cache的简单理解Unix/Linux学习二三事各种Linux发行版的时间图]]></description>
			<content:encoded><![CDATA[<p>系统：Debian squeeze</p>
<p>安装过程相当简单，apt-get install grub2，系统自动安装依赖grub-pc和grub-common，安装过程会提示发现旧的grub配置，会使用旧的配置生成新的配置文件，这些请在安装的过程中仔细阅读说明即可</p>
<p>安装后重启会发现GRUB菜单有点不同了，上面有进入GRUB2的选单，中间有一段提示说明如果发现一切都没问题，可以使用upgrade-from-grub-legacy完成从grub到grub2的升级，不过比较无奈的是，grub2只发现了我的debian，没发现我的windows双系统，依照grub2的配置文件加以前使用grub的经验&lt;这次变懒，没去读grub2的文档&gt;，增加了如下配置：<span id="more-219"></span></p>
<blockquote><p>menuentry “Windows XP Professional” {</p>
<p>insmod ntfs</p>
<p>root (hd0,0)</p>
<p>chainloader +1</p>
<p>}</p></blockquote>
<p>重启，发现都正常，就是windows无法引导，看来不读doc是不行的，看了一下，才发现<strong>grub2分区是从1开始算的，而不是以前的0</strong>开始算，<strong>更改上面的root (hd0,0)为root (hd0,1)</strong>，重启，正常引导</p>
<p>之后回到debian，以root运行upgrade-from-grub-legacy，按提示操作即可。</p>
<h3  class="related_post_title">您可能还会对以下文章感兴趣：</h3><ul class="related_post"><li><a href="http://www.chenxiaosheng.com/2010/08/11/534.html" title="rsyslog and relp">rsyslog and relp</a></li><li><a href="http://www.chenxiaosheng.com/2010/09/02/544.html" title="Linux上使用华为E1750 3G无线上网卡">Linux上使用华为E1750 3G无线上网卡</a></li><li><a href="http://www.chenxiaosheng.com/2009/11/25/272.html" title="Linux命令free里buffers/cache的简单理解">Linux命令free里buffers/cache的简单理解</a></li><li><a href="http://www.chenxiaosheng.com/2009/10/18/243.html" title="Unix/Linux学习二三事">Unix/Linux学习二三事</a></li><li><a href="http://www.chenxiaosheng.com/2009/10/13/235.html" title="各种Linux发行版的时间图">各种Linux发行版的时间图</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.chenxiaosheng.com/2009/10/06/219.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
