<?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>idv2 &#187; gentoo</title>
	<atom:link href="http://tech.idv2.com/tag/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.idv2.com</link>
	<description>关注Web开发技术，关注Internet。</description>
	<lastBuildDate>Tue, 27 Jul 2010 12:54:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>pidgin不能输入的问题</title>
		<link>http://tech.idv2.com/2008/03/06/pidgin-input-error/</link>
		<comments>http://tech.idv2.com/2008/03/06/pidgin-input-error/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 09:02:15 +0000</pubDate>
		<dc:creator>charlee</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[im]]></category>
		<category><![CDATA[pidgin]]></category>

		<guid isPermaLink="false">http://tech.idv2.com/2008/03/06/pidgin-input-error/</guid>
		<description><![CDATA[最近发现gentoo下pidgin经常会不能输入，表现在输入法切换不出来，甚至无法输入英文字母。没办法只能重启pidgin。不过今天突然发现了问题的所在。那就是，从聊天窗口用Alt-Tab键切换到好友列表窗口，再用Alt-Tab切换回来，这时一切键盘输入就都不管用了。解决方法也很简单：再用Alt-Tab切换一次，就行了。另外为避免出现这种情况，建议没事儿时把好友列表窗口关掉。
]]></description>
			<content:encoded><![CDATA[<p>最近发现gentoo下pidgin经常会不能输入，表现在输入法切换不出来，甚至无法输入英文字母。没办法只能重启pidgin。不过今天突然发现了问题的所在。那就是，从聊天窗口用Alt-Tab键切换到好友列表窗口，再用Alt-Tab切换回来，这时一切键盘输入就都不管用了。解决方法也很简单：再用Alt-Tab切换一次，就行了。另外为避免出现这种情况，建议没事儿时把好友列表窗口关掉。</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.idv2.com/2008/03/06/pidgin-input-error/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ntfs-3g+fuse试用</title>
		<link>http://tech.idv2.com/2008/03/05/try-ntfs-3g-fuse/</link>
		<comments>http://tech.idv2.com/2008/03/05/try-ntfs-3g-fuse/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 14:20:49 +0000</pubDate>
		<dc:creator>charlee</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[ntfs]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://tech.idv2.com/2008/03/05/try-ntfs-3g-fuse/</guid>
		<description><![CDATA[<!-- begin Pukiwiki generated code--><p>前几天的<a href="http://tech.idv2.com/2008/03/02/gentoo-installl-memo/">这篇文章</a>被
<a href="http://www.fcicq.net/wp/">fcicq</a>同学挑毛病，建议不要使用内核自带的ntfs，
而是使用ntfs-3g+fuse。查了一下，ntfs-3g可以完美支持ntfs分区的读写操作，
的确要比内核自带的ntfs好得多。</p>
<p>试试看。安装方法不难，直接emerge即可，它会自动安装 sys-fs/fuse：</p>
<pre># emerge ntfs-3g</pre>
<p>我用的是gentoo 2007.0，内核版本2.6.23-gentoo-r8，还需要编译内核的FUSE支持：</p>
<pre># cd /usr/src/linux
# make menuconfig
勾选 File systems ---&gt;  &lt;M&gt; Filesystem in Userspace support
# make modules_install
＃ modprobe fuse</pre>
<p>之后当然可以再打开 /etc/modules.autoload.d/kernel-2.6，把fuse加进去。</p>
<p>然后就可以mount ntfs分区了：</p>
<pre># mount -t ntfs-3g -o locale=zh_CN.UTF-8,silent /dev/sda6 /mnt/wine</pre>
<p>进入分区后试试读写，均没有问题。</p>
<p>后来看了看ntfs-3g的<a href="http://www.ntfs-3g.org/support.html#posixfilenames1">官方主页的FAQ</a>，
发现竟然允许大小写不同的同名文件，还有特殊字符（如\、?等Windows中不允许的字符）。
作者的理由是NTFS支持POSIX风格的文件名，也支持DOS、Windows格式的文件名，
为保持最大的兼容性，ntfs-3g就选择了POSIX——所以就出现上面这种现象了。
尝试者建立 ABC、abc、ab?c、abc\d等文件，均建立成功，重新启动到windows下试图打开这几个文件，
结果出现了问题：ABC正常打开，但一旦保存，ABC就会丢失，只剩下abc（因为同名），估计有可能需要chkdsk了；
ab?c、abc\d文件无法保存、改名和删除。只能回到linux下面操作。</p>
<p>看来作者又是一个十足的协议派……为保险起见，还是先ro吧。</p>
<p>最后的/etc/fstab为：</p>
<pre>/dev/sda6       /mnt/wine    ntfs-3g    auto,ro,locale=zh_CN.UTF-8,silent    0  0</pre>
<!-- end Pukiwiki generated code-->
]]></description>
			<content:encoded><![CDATA[<!-- begin Pukiwiki generated code--><p>前几天的<a href="http://tech.idv2.com/2008/03/02/gentoo-installl-memo/">这篇文章</a>被
<a href="http://www.fcicq.net/wp/">fcicq</a>同学挑毛病，建议不要使用内核自带的ntfs，
而是使用ntfs-3g+fuse。查了一下，ntfs-3g可以完美支持ntfs分区的读写操作，
的确要比内核自带的ntfs好得多。</p>
<p>试试看。安装方法不难，直接emerge即可，它会自动安装 sys-fs/fuse：</p>
<pre># emerge ntfs-3g</pre>
<p>我用的是gentoo 2007.0，内核版本2.6.23-gentoo-r8，还需要编译内核的FUSE支持：</p>
<pre># cd /usr/src/linux
# make menuconfig
勾选 File systems ---&gt;  &lt;M&gt; Filesystem in Userspace support
# make modules_install
＃ modprobe fuse</pre>
<p>之后当然可以再打开 /etc/modules.autoload.d/kernel-2.6，把fuse加进去。</p>
<p>然后就可以mount ntfs分区了：</p>
<pre># mount -t ntfs-3g -o locale=zh_CN.UTF-8,silent /dev/sda6 /mnt/wine</pre>
<p>进入分区后试试读写，均没有问题。</p>
<p>后来看了看ntfs-3g的<a href="http://www.ntfs-3g.org/support.html#posixfilenames1">官方主页的FAQ</a>，
发现竟然允许大小写不同的同名文件，还有特殊字符（如\、?等Windows中不允许的字符）。
作者的理由是NTFS支持POSIX风格的文件名，也支持DOS、Windows格式的文件名，
为保持最大的兼容性，ntfs-3g就选择了POSIX——所以就出现上面这种现象了。
尝试者建立 ABC、abc、ab?c、abc\d等文件，均建立成功，重新启动到windows下试图打开这几个文件，
结果出现了问题：ABC正常打开，但一旦保存，ABC就会丢失，只剩下abc（因为同名），估计有可能需要chkdsk了；
ab?c、abc\d文件无法保存、改名和删除。只能回到linux下面操作。</p>
<p>看来作者又是一个十足的协议派……为保险起见，还是先ro吧。</p>
<p>最后的/etc/fstab为：</p>
<pre>/dev/sda6       /mnt/wine    ntfs-3g    auto,ro,locale=zh_CN.UTF-8,silent    0  0</pre>
<!-- end Pukiwiki generated code-->
]]></content:encoded>
			<wfw:commentRss>http://tech.idv2.com/2008/03/05/try-ntfs-3g-fuse/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>驱动导致xorg不能启动</title>
		<link>http://tech.idv2.com/2008/03/04/xorg-failure-caused-by-drivers/</link>
		<comments>http://tech.idv2.com/2008/03/04/xorg-failure-caused-by-drivers/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 13:21:08 +0000</pubDate>
		<dc:creator>charlee</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[nvidia]]></category>

		<guid isPermaLink="false">http://tech.idv2.com/2008/03/04/xorg-failure-caused-by-drivers/</guid>
		<description><![CDATA[<!-- begin Pukiwiki generated code--><p>今天在配置nvidia的显卡时出现了一个很头疼的问题。</p>
<p>按照<a href="http://www.gentoo.org/doc/zh_cn/nvidia-guide.xml">官方网站上的文章</a>，
一步步地顺利地安装好了显卡驱动：</p>
<pre># 先配置内核，详情参考官方文档，省略
# USE=gtk emerge nvidia-drivers
# modprobe nvidia
# update-modules
# eselect opengl set nvidia
# 然后修改xorg.conf，略
# startx</pre>
<p>结果startx时出现了这样的错误：</p>
<pre>Backtrace:
0: X(xf86SigHandler+0x84) [0x80cca34]
1: [0xffffe420]
2: X(main+0x2af) [0x807067f]
3: /lib/libc.so.6(__libc_start_main+0xd8) [0xb7db5838]
4: X(FontFileCompleteXLFD+0xa1) [0x806fb81]

Fatal server error:
Caught signal 11.  Server aborting</pre>
<p>查了半天资料未得到结果，后来想起我曾经安装过nVidia官方网站提供的驱动，
会不会是和portage的驱动冲突呢？于是卸载掉官方驱动：</p>
<pre># sh NVIDIA-Linux-x86-169.09-pkg1.run --uninstall</pre>
<p>然后重新emerge：</p>
<pre># emerge nvidia-drivers</pre>
<p>这样就可以顺利地启动X了。</p>
<!-- end Pukiwiki generated code-->]]></description>
			<content:encoded><![CDATA[<!-- begin Pukiwiki generated code--><p>今天在配置nvidia的显卡时出现了一个很头疼的问题。</p>
<p>按照<a href="http://www.gentoo.org/doc/zh_cn/nvidia-guide.xml">官方网站上的文章</a>，
一步步地顺利地安装好了显卡驱动：</p>
<pre># 先配置内核，详情参考官方文档，省略
# USE=gtk emerge nvidia-drivers
# modprobe nvidia
# update-modules
# eselect opengl set nvidia
# 然后修改xorg.conf，略
# startx</pre>
<p>结果startx时出现了这样的错误：</p>
<pre>Backtrace:
0: X(xf86SigHandler+0x84) [0x80cca34]
1: [0xffffe420]
2: X(main+0x2af) [0x807067f]
3: /lib/libc.so.6(__libc_start_main+0xd8) [0xb7db5838]
4: X(FontFileCompleteXLFD+0xa1) [0x806fb81]

Fatal server error:
Caught signal 11.  Server aborting</pre>
<p>查了半天资料未得到结果，后来想起我曾经安装过nVidia官方网站提供的驱动，
会不会是和portage的驱动冲突呢？于是卸载掉官方驱动：</p>
<pre># sh NVIDIA-Linux-x86-169.09-pkg1.run --uninstall</pre>
<p>然后重新emerge：</p>
<pre># emerge nvidia-drivers</pre>
<p>这样就可以顺利地启动X了。</p>
<!-- end Pukiwiki generated code-->]]></content:encoded>
			<wfw:commentRss>http://tech.idv2.com/2008/03/04/xorg-failure-caused-by-drivers/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>在Gentoo中安装日文输入法</title>
		<link>http://tech.idv2.com/2008/03/03/gentoo-japanese-ime/</link>
		<comments>http://tech.idv2.com/2008/03/03/gentoo-japanese-ime/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 14:07:22 +0000</pubDate>
		<dc:creator>charlee</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[ime]]></category>
		<category><![CDATA[japanese]]></category>

		<guid isPermaLink="false">http://tech.idv2.com/2008/03/03/gentoo-japanese-ime/</guid>
		<description><![CDATA[<!-- begin Pukiwiki generated code--><p>首先安装前端 scim：</p>
<pre># emerge scim</pre>
<p>常见的日文输入法是服务器/客户端模型的，Canna就不错（可内嵌在SCIM中）。安装方法也很简单：</p>
<pre># emerge canna
# /etc/init.d/canna start
# rc-update add canna default</pre>
<p>然后安装scim的Canna支持：</p>
<pre># emerge scim-canna</pre>
<p>最后启动scim，从输入法语言中选择日语即可。</p>
<p>注意：当初我认为要装FreeWnn，装上后发现关机时老是死掉，查了半天发现原来是 /etc/init.d/freewnn stop时死掉了。
后来发现不要freewnn也能正常输入日文。</p>
<!-- end Pukiwiki generated code-->
]]></description>
			<content:encoded><![CDATA[<!-- begin Pukiwiki generated code--><p>首先安装前端 scim：</p>
<pre># emerge scim</pre>
<p>常见的日文输入法是服务器/客户端模型的，Canna就不错（可内嵌在SCIM中）。安装方法也很简单：</p>
<pre># emerge canna
# /etc/init.d/canna start
# rc-update add canna default</pre>
<p>然后安装scim的Canna支持：</p>
<pre># emerge scim-canna</pre>
<p>最后启动scim，从输入法语言中选择日语即可。</p>
<p>注意：当初我认为要装FreeWnn，装上后发现关机时老是死掉，查了半天发现原来是 /etc/init.d/freewnn stop时死掉了。
后来发现不要freewnn也能正常输入日文。</p>
<!-- end Pukiwiki generated code-->
]]></content:encoded>
			<wfw:commentRss>http://tech.idv2.com/2008/03/03/gentoo-japanese-ime/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Gentoo安装memo</title>
		<link>http://tech.idv2.com/2008/03/02/gentoo-installl-memo/</link>
		<comments>http://tech.idv2.com/2008/03/02/gentoo-installl-memo/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 12:42:27 +0000</pubDate>
		<dc:creator>charlee</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://tech.idv2.com/2008/03/02/gentoo-installl-memo/</guid>
		<description><![CDATA[<!-- begin Pukiwiki generated code--><p>最近重新安装了一遍gentoo，发现第一次安装时好多调查过的经验都没有记录下来，这次还得重新去找，麻烦……
记下来供下次安装时使用吧。</p>
<p>按照手册上安装时，按照以下方法设置网卡(/etc/conf.d/net)：</p>
<pre>config_eth0=( &quot;192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255&quot; )
routes_eth0=( &quot;default via 192.168.0.1&quot; )
dns_servers_eth0=( &quot;DNS1的IP地址&quot; &quot;DNS2的IP地址&quot; )</pre>
<p>chroot之后首先上ccache以提高编译速度：</p>
<pre># emerge ccache</pre>
<p>然后编辑 /etc/make.conf 加上:</p>
<pre>FEATURES=&quot;ccache parallel-fetch&quot;
CCACHE_SIZE=&quot;2G&quot;
</pre>
<p>接下来安装必要的软件：</p>
<pre># emerge vim</pre>
<p>升级portage:</p>
<pre># emerge portage</pre>
<p>编译内核时别忘了打开framebuffer(高分辨率命令行用)，还有Device
Drivers-&gt;Sound-&gt;Advanced Linux Sound Architecture(声音驱动，参考
<a href="http://gentoo-wiki.com/HOWTO_ALSA_Complete_%28includes_dmix%29#Kernel_Configuration">这里</a>)。
当然也别忘了在 PCI Devices中选择你声卡的型号。</p>
<p>如果你使用SATA硬盘，注意设置grub.conf时<a href="http://tech.idv2.com/2008/01/13/install-gentoo-on-sata/">别弄错了硬盘编号</a>。</p>
<p>如何mount Windows
XP的硬盘分区：首先保证内核中编译了ntfs支持，然后参考下面的结果来写mount参数：</p>
<pre>/dev/sda6 on /mnt/wine type ntfs (ro,noexec,nosuid,nodev,nls=utf8,umask=0)
/dev/sda5 on /mnt/wind type vfat (ro,noexec,nosuid,nodev,codepage=936,iocharset=utf8,umask=0)</pre>
<p>重新起动后安装xorg，修改make.conf：</p>
<pre>USE=&quot;alsa bash-completion bzip2 gtk jpeg opengl ruby xscreensaver X -gnome -ipv6 -kde -qt3 -qt4&quot;
INPUT_DEVICES=&quot;keyboard mouse&quot;
VIDEO_CARDS=&quot;nvidia&quot;</pre>
<p>然后运行：</p>
<pre># emerge xorg-x11</pre>
<p>装好后运行 xorgconfig 配置图形界面：</p>
<pre># xorgconfig</pre>
<p>接下来是xfce4。修改/etc/make.conf:</p>
<pre>LINGUAS=&quot;zh_CN ja&quot;        # for xfdesktop</pre>
<p>然后：</p>
<pre># emerge xfce4</pre>
<p>还有中文输入法：</p>
<pre># emerge scim scim-pinyin</pre>
<p>安装好后退回普通用户，编辑.xinitrc设置启动xfce4：</p>
<pre>exec scim &amp;
exec startxfce4</pre>
<p>最后别忘了将语言设置为中文：</p>
<pre>$ vi .bashrc
export LANG=zh_CN.UTF-8</pre>
<p>启动之后应该能看到小老鼠的桌面，按Ctrl+Space应该能出输入法了。</p>
<p>装firefox：</p>
<pre># emerge mozilla-firefox
# emerge netscape-flash</pre>
<p>装完后自己上网找插件去。</p>
<p>另外，Firefox默认安装之后，在快速滚动滚轮时页面会沿着历史记录前进/后退，十分不爽。
在about:config将mousewheel.horizscroll.withnokey.action改成0即可解决该问题。</p>
<p>即时通讯，使用pidgin，基于gtk，支持GTalk和MSN：</p>
<pre># emerge pidgin</pre>
<p>默认的字体比较难看，从微软那里借用一些过来吧。</p>
<pre># emerge mkfontdir mkfontscale
# mkdir /mnt/winc
# mount -t vfat /dev/sda1 /mnt/winc
# cd /mnt/winc/windows/Fonts
# mkdir /usr/share/fonts/TTF
# cp sim* msgothic.ttc msmincho.ttc msyh* meiryo* verdana* tahoma* /usr/share/fonts/TTF
# cd /usr/share/fonts/TTF
# mkfontdir
# mkfontscale</pre>
<p>然后重启xfce4后即可设置字体。</p>
<p>另外，在编译xfwm4时加上USE=xcomposite，即可打开窗口混色开关，这样就可以在窗口管理器中设置窗口的透明度了。
另外 <a href="http://www.xfce-look.org/">http://www.xfce-look.org/</a> 这个网站不错，可以下载到许多xfce4用的主题。</p>
<p>时钟有可能会不正确，可以修改 /etc/conf.d/clock，将 CLOCK=&quot;UTC&quot; 改成
CLOCK=&quot;local&quot;。</p>
<p>板载AC97声卡的配置，参考<a href="http://www.gentoo.org/doc/en/alsa-guide.xml">官方文档</a>即可。</p>
<p>安装mplayer：</p>
<pre>USE=&quot;aac cddb dvd encode gif mmxext mp2 mp3 png \
    quicktime rar real samba srt vorbis \
    win32codecs x264 xv xvid&quot; emerge  mplayer
   </pre>
<p>安装Open Office：</p>
<pre># LINGUAS=&quot;zh_CN&quot; emerge openoffice-bin</pre>
<!-- end Pukiwiki generated code-->
]]></description>
			<content:encoded><![CDATA[<!-- begin Pukiwiki generated code--><p>最近重新安装了一遍gentoo，发现第一次安装时好多调查过的经验都没有记录下来，这次还得重新去找，麻烦……
记下来供下次安装时使用吧。</p>
<p>按照手册上安装时，按照以下方法设置网卡(/etc/conf.d/net)：</p>
<pre>config_eth0=( &quot;192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255&quot; )
routes_eth0=( &quot;default via 192.168.0.1&quot; )
dns_servers_eth0=( &quot;DNS1的IP地址&quot; &quot;DNS2的IP地址&quot; )</pre>
<p>chroot之后首先上ccache以提高编译速度：</p>
<pre># emerge ccache</pre>
<p>然后编辑 /etc/make.conf 加上:</p>
<pre>FEATURES=&quot;ccache parallel-fetch&quot;
CCACHE_SIZE=&quot;2G&quot;
</pre>
<p>接下来安装必要的软件：</p>
<pre># emerge vim</pre>
<p>升级portage:</p>
<pre># emerge portage</pre>
<p>编译内核时别忘了打开framebuffer(高分辨率命令行用)，还有Device
Drivers-&gt;Sound-&gt;Advanced Linux Sound Architecture(声音驱动，参考
<a href="http://gentoo-wiki.com/HOWTO_ALSA_Complete_%28includes_dmix%29#Kernel_Configuration">这里</a>)。
当然也别忘了在 PCI Devices中选择你声卡的型号。</p>
<p>如果你使用SATA硬盘，注意设置grub.conf时<a href="http://tech.idv2.com/2008/01/13/install-gentoo-on-sata/">别弄错了硬盘编号</a>。</p>
<p>如何mount Windows
XP的硬盘分区：首先保证内核中编译了ntfs支持，然后参考下面的结果来写mount参数：</p>
<pre>/dev/sda6 on /mnt/wine type ntfs (ro,noexec,nosuid,nodev,nls=utf8,umask=0)
/dev/sda5 on /mnt/wind type vfat (ro,noexec,nosuid,nodev,codepage=936,iocharset=utf8,umask=0)</pre>
<p>重新起动后安装xorg，修改make.conf：</p>
<pre>USE=&quot;alsa bash-completion bzip2 gtk jpeg opengl ruby xscreensaver X -gnome -ipv6 -kde -qt3 -qt4&quot;
INPUT_DEVICES=&quot;keyboard mouse&quot;
VIDEO_CARDS=&quot;nvidia&quot;</pre>
<p>然后运行：</p>
<pre># emerge xorg-x11</pre>
<p>装好后运行 xorgconfig 配置图形界面：</p>
<pre># xorgconfig</pre>
<p>接下来是xfce4。修改/etc/make.conf:</p>
<pre>LINGUAS=&quot;zh_CN ja&quot;        # for xfdesktop</pre>
<p>然后：</p>
<pre># emerge xfce4</pre>
<p>还有中文输入法：</p>
<pre># emerge scim scim-pinyin</pre>
<p>安装好后退回普通用户，编辑.xinitrc设置启动xfce4：</p>
<pre>exec scim &amp;
exec startxfce4</pre>
<p>最后别忘了将语言设置为中文：</p>
<pre>$ vi .bashrc
export LANG=zh_CN.UTF-8</pre>
<p>启动之后应该能看到小老鼠的桌面，按Ctrl+Space应该能出输入法了。</p>
<p>装firefox：</p>
<pre># emerge mozilla-firefox
# emerge netscape-flash</pre>
<p>装完后自己上网找插件去。</p>
<p>另外，Firefox默认安装之后，在快速滚动滚轮时页面会沿着历史记录前进/后退，十分不爽。
在about:config将mousewheel.horizscroll.withnokey.action改成0即可解决该问题。</p>
<p>即时通讯，使用pidgin，基于gtk，支持GTalk和MSN：</p>
<pre># emerge pidgin</pre>
<p>默认的字体比较难看，从微软那里借用一些过来吧。</p>
<pre># emerge mkfontdir mkfontscale
# mkdir /mnt/winc
# mount -t vfat /dev/sda1 /mnt/winc
# cd /mnt/winc/windows/Fonts
# mkdir /usr/share/fonts/TTF
# cp sim* msgothic.ttc msmincho.ttc msyh* meiryo* verdana* tahoma* /usr/share/fonts/TTF
# cd /usr/share/fonts/TTF
# mkfontdir
# mkfontscale</pre>
<p>然后重启xfce4后即可设置字体。</p>
<p>另外，在编译xfwm4时加上USE=xcomposite，即可打开窗口混色开关，这样就可以在窗口管理器中设置窗口的透明度了。
另外 <a href="http://www.xfce-look.org/">http://www.xfce-look.org/</a> 这个网站不错，可以下载到许多xfce4用的主题。</p>
<p>时钟有可能会不正确，可以修改 /etc/conf.d/clock，将 CLOCK=&quot;UTC&quot; 改成
CLOCK=&quot;local&quot;。</p>
<p>板载AC97声卡的配置，参考<a href="http://www.gentoo.org/doc/en/alsa-guide.xml">官方文档</a>即可。</p>
<p>安装mplayer：</p>
<pre>USE=&quot;aac cddb dvd encode gif mmxext mp2 mp3 png \
    quicktime rar real samba srt vorbis \
    win32codecs x264 xv xvid&quot; emerge  mplayer
   </pre>
<p>安装Open Office：</p>
<pre># LINGUAS=&quot;zh_CN&quot; emerge openoffice-bin</pre>
<!-- end Pukiwiki generated code-->
]]></content:encoded>
			<wfw:commentRss>http://tech.idv2.com/2008/03/02/gentoo-installl-memo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gentoo下exaile无法播放mp3的问题</title>
		<link>http://tech.idv2.com/2008/01/15/exaile-mp3/</link>
		<comments>http://tech.idv2.com/2008/01/15/exaile-mp3/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 16:36:53 +0000</pubDate>
		<dc:creator>charlee</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[mp3]]></category>

		<guid isPermaLink="false">http://tech.idv2.com/2008/01/15/exaile-mp3/</guid>
		<description><![CDATA[<!-- begin Pukiwiki generated code--><p><a href="http://www.exaile.org/">exaile</a>是一个基于GTK+的媒体播放器，
类似于KDE下的<a href="http://amarok.kde.org/">Amarok</a>。在gentoo下可以很方便地安装：</p>
<pre># emerge exaile</pre>
<p>但试图播放mp3时，会报告这样的错误：</p>
<pre>You do not have the appropriate Gstreamer plugin installed to play this file:</pre>
<p>google之后才知道，播放mp3需要安装gstreamer的插件 gst-plugins-mad。
你可以用下面的命令查看已经装了哪些插件：</p>
<pre># emerge -s gst-plugins</pre>
<p>安装完 exaile 之后，gst-plugins-base、gst-plugins-bad、gst-plugins-good三项
应该是已安装好的。执行下面的命令：</p>
<pre># emerge gst-plugins-mad</pre>
<p>装好后重新启动exaile，这样就可以播放mp3了。</p>
<!-- end Pukiwiki generated code-->]]></description>
			<content:encoded><![CDATA[<!-- begin Pukiwiki generated code--><p><a href="http://www.exaile.org/">exaile</a>是一个基于GTK+的媒体播放器，
类似于KDE下的<a href="http://amarok.kde.org/">Amarok</a>。在gentoo下可以很方便地安装：</p>
<pre># emerge exaile</pre>
<p>但试图播放mp3时，会报告这样的错误：</p>
<pre>You do not have the appropriate Gstreamer plugin installed to play this file:</pre>
<p>google之后才知道，播放mp3需要安装gstreamer的插件 gst-plugins-mad。
你可以用下面的命令查看已经装了哪些插件：</p>
<pre># emerge -s gst-plugins</pre>
<p>安装完 exaile 之后，gst-plugins-base、gst-plugins-bad、gst-plugins-good三项
应该是已安装好的。执行下面的命令：</p>
<pre># emerge gst-plugins-mad</pre>
<p>装好后重新启动exaile，这样就可以播放mp3了。</p>
<!-- end Pukiwiki generated code-->]]></content:encoded>
			<wfw:commentRss>http://tech.idv2.com/2008/01/15/exaile-mp3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>gentoo xeffects项目停止了</title>
		<link>http://tech.idv2.com/2008/01/14/gentoo-xeffects-stopped/</link>
		<comments>http://tech.idv2.com/2008/01/14/gentoo-xeffects-stopped/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 16:20:12 +0000</pubDate>
		<dc:creator>charlee</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[xeffects]]></category>
		<category><![CDATA[xgl]]></category>

		<guid isPermaLink="false">http://tech.idv2.com/2008/01/14/gentoo-xeffects%e9%a1%b9%e7%9b%ae%e5%81%9c%e6%ad%a2%e4%ba%86/</guid>
		<description><![CDATA[<!-- begin Pukiwiki generated code--><p>gentoo xeffects项目主要是研究如何在gentoo下使用compiz和compiz fusion，xgl的ebuild文件就来自xeffects layout。
但是最近(2008/1/6前后)，xeffects项目的开发者声明他们决定中止该项目的开发。（文章末尾引用了他们的官方声明。）</p>
<p>官方网站gentoo-xeffects.org的域名也已经停止使用，在gentoo下通过 layman -a xeffects 会说找不到域名。
不过好在xeffects作者公开了他们的开发成果，你可以通过git下载。</p>
<pre># emerge dev-util/git
$ git clone git://git.overlays.gentoo.org/dev/jmbsvicetto.git</pre>
<p>最后附上开发者的官方声明。</p>
<p>lex (nesl247) and I decided we no longer were interested in keep running the gentoo-xeffects server and agreed to not renew its subscription after the end of December. Thus, the gentoo-xeffects overlay is no longer available.
I've put all the ebuilds in the xeffects overlay under my git dev overlay on <a href="http://git.overlays.gentoo.org/gitweb/">http://git.overlays.gentoo.org/gitweb/</a> where I plan to keep them for at least the next 15 days. If you want to get any of the ebuilds, you can use the gitweb interface to get it or you can clone the overlay with git clone git://git.overlays.gentoo.org/dev/jmbsvicetto.git. I have a local copy of all files that were available under <a href="http://distfiles.gentoo-xeffects.org">http://distfiles.gentoo-xeffects.org</a> so if someone is interested, drop me a note here, on IRC or through any of my contacts.</p>
<p>So, what's next? I didn't wanted to keep the server running because I wasn't available to keep the financial commitment, but I'm still interested in compiz, compiz-fusion and related packages. As such, I'm starting a new overlay with Ingmar Vanhassel (ingmar/ingmarv) and Wulf C. Krueger (philantrop) that will be named desktop-effects and will also be available from <a href="http://git.overlays.gentoo.org/.">http://git.overlays.gentoo.org/.</a> As indicated by its new name, this overlay will have a different scope and will start with a subset of the xeffects ebuilds. Expect more details to follow in the US forum and or in the #gentoo-xeffects irc channel.</p>
<p>I want to thank everyone that worked on the coffee_buzz / gentoo-xeffects overlay for their hard work. In particular, I want to thank coffee_buzz, nesl247 and roderick. Without you and your work, the rest of us wouldn't had / be having so much fun with compiz / compiz-quinnstorm / beryl / compcomm / compiz-fusion and friends.</p>
<!-- end Pukiwiki generated code-->
]]></description>
			<content:encoded><![CDATA[<!-- begin Pukiwiki generated code--><p>gentoo xeffects项目主要是研究如何在gentoo下使用compiz和compiz fusion，xgl的ebuild文件就来自xeffects layout。
但是最近(2008/1/6前后)，xeffects项目的开发者声明他们决定中止该项目的开发。（文章末尾引用了他们的官方声明。）</p>
<p>官方网站gentoo-xeffects.org的域名也已经停止使用，在gentoo下通过 layman -a xeffects 会说找不到域名。
不过好在xeffects作者公开了他们的开发成果，你可以通过git下载。</p>
<pre># emerge dev-util/git
$ git clone git://git.overlays.gentoo.org/dev/jmbsvicetto.git</pre>
<p>最后附上开发者的官方声明。</p>
<p>lex (nesl247) and I decided we no longer were interested in keep running the gentoo-xeffects server and agreed to not renew its subscription after the end of December. Thus, the gentoo-xeffects overlay is no longer available.
I've put all the ebuilds in the xeffects overlay under my git dev overlay on <a href="http://git.overlays.gentoo.org/gitweb/">http://git.overlays.gentoo.org/gitweb/</a> where I plan to keep them for at least the next 15 days. If you want to get any of the ebuilds, you can use the gitweb interface to get it or you can clone the overlay with git clone git://git.overlays.gentoo.org/dev/jmbsvicetto.git. I have a local copy of all files that were available under <a href="http://distfiles.gentoo-xeffects.org">http://distfiles.gentoo-xeffects.org</a> so if someone is interested, drop me a note here, on IRC or through any of my contacts.</p>
<p>So, what's next? I didn't wanted to keep the server running because I wasn't available to keep the financial commitment, but I'm still interested in compiz, compiz-fusion and related packages. As such, I'm starting a new overlay with Ingmar Vanhassel (ingmar/ingmarv) and Wulf C. Krueger (philantrop) that will be named desktop-effects and will also be available from <a href="http://git.overlays.gentoo.org/.">http://git.overlays.gentoo.org/.</a> As indicated by its new name, this overlay will have a different scope and will start with a subset of the xeffects ebuilds. Expect more details to follow in the US forum and or in the #gentoo-xeffects irc channel.</p>
<p>I want to thank everyone that worked on the coffee_buzz / gentoo-xeffects overlay for their hard work. In particular, I want to thank coffee_buzz, nesl247 and roderick. Without you and your work, the rest of us wouldn't had / be having so much fun with compiz / compiz-quinnstorm / beryl / compcomm / compiz-fusion and friends.</p>
<!-- end Pukiwiki generated code-->
]]></content:encoded>
			<wfw:commentRss>http://tech.idv2.com/2008/01/14/gentoo-xeffects-stopped/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在SATA硬盘上安装gentoo</title>
		<link>http://tech.idv2.com/2008/01/13/install-gentoo-on-sata/</link>
		<comments>http://tech.idv2.com/2008/01/13/install-gentoo-on-sata/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 12:12:35 +0000</pubDate>
		<dc:creator>charlee</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[sata]]></category>

		<guid isPermaLink="false">http://tech.idv2.com/2008/01/13/install-gentoo-on-sata/</guid>
		<description><![CDATA[<!-- begin Pukiwiki generated code--><p>昨天在fcicq的推荐下安装了gentoo。安装过程没什么好说的，按照gentoo手册一步步来，
都挺顺利，但在最后安装grub时出了点问题。</p>
<p>我的机器有两块硬盘，一块是SATA的（/dev/sda），
一块是IDE的（/dev/hdb），gentoo的/boot装在了 /dev/sda8，/装在了/dev/sda10上。
grub使用hd0、hd1等方式来指定硬盘，但同时有SATA和IDE的情况下就很难分辨谁是hd0谁是hd1了。
所以我先启动grub然后通过它的命令行补齐功能，查明hdb -&gt; hd0, sda -&gt; hd1，
于是就按照这个设置写好了grub.conf，并加上了splashimage。</p>
<p>但是重新起动后grub说找不到分区，并且屏幕变花，几乎什么都看不见。
在菜单里按e然后c进入命令行，想通过命令行补齐来启动系统，但由于看不见显示而失败了。</p>
<p>没办法再次使用gentoo安装盘启动系统。猜测可能是由于splashimage找不到导致花屏，
于是编辑grub.conf去掉了splash，重启，这次能看到错误信息了。进入grub的命令行尝试补齐，
发现<strong>sda居然是hd0</strong>！</p>
<p>这下情况明朗了，通过命令行指定好正确的root和kernel，启动系统后修改grub.conf，重启，成功。</p>
<p>为什么安装时和启动时的硬盘编号不一致？后来看到手册上说，硬盘编号一般是先IDE再SCSI（SATA），
但当BIOS设置从SCSI启动时，SCSI设备会变成hd0。原来如此，安装时由于是从光盘启动，
所以IDE优先于SATA成了hd0；但重启系统后由于从SATA启动，所以SATA就变成了hd0。</p>
<p>最后建议在配置grub.conf时，不要一开始就加上splashimage，应当等全部调试通过之后再添加，避免出现花屏问题影响调试。</p>
<!-- end Pukiwiki generated code-->]]></description>
			<content:encoded><![CDATA[<!-- begin Pukiwiki generated code--><p>昨天在fcicq的推荐下安装了gentoo。安装过程没什么好说的，按照gentoo手册一步步来，
都挺顺利，但在最后安装grub时出了点问题。</p>
<p>我的机器有两块硬盘，一块是SATA的（/dev/sda），
一块是IDE的（/dev/hdb），gentoo的/boot装在了 /dev/sda8，/装在了/dev/sda10上。
grub使用hd0、hd1等方式来指定硬盘，但同时有SATA和IDE的情况下就很难分辨谁是hd0谁是hd1了。
所以我先启动grub然后通过它的命令行补齐功能，查明hdb -&gt; hd0, sda -&gt; hd1，
于是就按照这个设置写好了grub.conf，并加上了splashimage。</p>
<p>但是重新起动后grub说找不到分区，并且屏幕变花，几乎什么都看不见。
在菜单里按e然后c进入命令行，想通过命令行补齐来启动系统，但由于看不见显示而失败了。</p>
<p>没办法再次使用gentoo安装盘启动系统。猜测可能是由于splashimage找不到导致花屏，
于是编辑grub.conf去掉了splash，重启，这次能看到错误信息了。进入grub的命令行尝试补齐，
发现<strong>sda居然是hd0</strong>！</p>
<p>这下情况明朗了，通过命令行指定好正确的root和kernel，启动系统后修改grub.conf，重启，成功。</p>
<p>为什么安装时和启动时的硬盘编号不一致？后来看到手册上说，硬盘编号一般是先IDE再SCSI（SATA），
但当BIOS设置从SCSI启动时，SCSI设备会变成hd0。原来如此，安装时由于是从光盘启动，
所以IDE优先于SATA成了hd0；但重启系统后由于从SATA启动，所以SATA就变成了hd0。</p>
<p>最后建议在配置grub.conf时，不要一开始就加上splashimage，应当等全部调试通过之后再添加，避免出现花屏问题影响调试。</p>
<!-- end Pukiwiki generated code-->]]></content:encoded>
			<wfw:commentRss>http://tech.idv2.com/2008/01/13/install-gentoo-on-sata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
