<?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>北漂IT民工的博客 &#187; 操作系统</title>
	<atom:link href="http://www.3gcnbeta.com/wordpress/category/%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.3gcnbeta.com/wordpress</link>
	<description>北漂IT民工的博客</description>
	<lastBuildDate>Tue, 18 Oct 2011 08:20:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Linux 下批量替换的命令</title>
		<link>http://www.3gcnbeta.com/wordpress/2011/10/18/linux-%e4%b8%8b%e6%89%b9%e9%87%8f%e6%9b%bf%e6%8d%a2%e7%9a%84%e5%91%bd%e4%bb%a4/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2011/10/18/linux-%e4%b8%8b%e6%89%b9%e9%87%8f%e6%9b%bf%e6%8d%a2%e7%9a%84%e5%91%bd%e4%bb%a4/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 08:17:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1473</guid>
		<description><![CDATA[将下面的代码放到一个shell文件a.sh里， sed -i “s/$2/$3/g” `grep -rl $2 $1` 然后执行: sh a.sh path param1 param2 path是路径名, param1是要替换的内容 param2是替换后的内容]]></description>
			<content:encoded><![CDATA[<p>将下面的代码放到一个shell文件a.sh里，</p>
<p>sed -i “s/$2/$3/g” `grep -rl $2 $1`</p>
<p>然后执行:<br />
sh a.sh path param1 param2</p>
<p>path是路径名,<br />
param1是要替换的内容<br />
param2是替换后的内容</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2011/10/18/linux-%e4%b8%8b%e6%89%b9%e9%87%8f%e6%9b%bf%e6%8d%a2%e7%9a%84%e5%91%bd%e4%bb%a4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>查找字符并删除指定的行</title>
		<link>http://www.3gcnbeta.com/wordpress/2011/05/06/%e6%9f%a5%e6%89%be%e5%ad%97%e7%ac%a6%e5%b9%b6%e5%88%a0%e9%99%a4%e6%8c%87%e5%ae%9a%e7%9a%84%e8%a1%8c/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2011/05/06/%e6%9f%a5%e6%89%be%e5%ad%97%e7%ac%a6%e5%b9%b6%e5%88%a0%e9%99%a4%e6%8c%87%e5%ae%9a%e7%9a%84%e8%a1%8c/#comments</comments>
		<pubDate>Fri, 06 May 2011 02:54:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1460</guid>
		<description><![CDATA[file=”a.txt” pattern=$1 repalcement=$2 lineNumber=$3 li=`cat $file &#124; grep -n $pattern &#124; sed s/:/\ / &#124; awk &#8216;{print$1}&#8217; &#124; sed -n ${lineNumber}p` li2=$((li)) echo $li2 sed “$li,${li}s/${pattern}/${repalcement}/” $file]]></description>
			<content:encoded><![CDATA[<p>file=”a.txt”<br />
pattern=$1<br />
repalcement=$2<br />
lineNumber=$3<br />
li=`cat $file | grep -n $pattern | sed s/:/\ / | awk &#8216;{print$1}&#8217; | sed -n ${lineNumber}p`<br />
li2=$((li))<br />
echo $li2<br />
sed “$li,${li}s/${pattern}/${repalcement}/” $file</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2011/05/06/%e6%9f%a5%e6%89%be%e5%ad%97%e7%ac%a6%e5%b9%b6%e5%88%a0%e9%99%a4%e6%8c%87%e5%ae%9a%e7%9a%84%e8%a1%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>统计某一类文本文件的行数shell脚本</title>
		<link>http://www.3gcnbeta.com/wordpress/2011/04/26/%e7%bb%9f%e8%ae%a1%e6%9f%90%e4%b8%80%e7%b1%bb%e6%96%87%e6%9c%ac%e6%96%87%e4%bb%b6%e7%9a%84%e8%a1%8c%e6%95%b0shell%e8%84%9a%e6%9c%ac/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2011/04/26/%e7%bb%9f%e8%ae%a1%e6%9f%90%e4%b8%80%e7%b1%bb%e6%96%87%e6%9c%ac%e6%96%87%e4%bb%b6%e7%9a%84%e8%a1%8c%e6%95%b0shell%e8%84%9a%e6%9c%ac/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 10:09:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1458</guid>
		<description><![CDATA[find . -name “*.php” -type f &#124; xargs cat &#124; wc -l]]></description>
			<content:encoded><![CDATA[<p>find . -name “*.php” -type f | xargs cat | wc -l</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2011/04/26/%e7%bb%9f%e8%ae%a1%e6%9f%90%e4%b8%80%e7%b1%bb%e6%96%87%e6%9c%ac%e6%96%87%e4%bb%b6%e7%9a%84%e8%a1%8c%e6%95%b0shell%e8%84%9a%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>找出包含有某个字符串的文件并加注释</title>
		<link>http://www.3gcnbeta.com/wordpress/2011/04/06/%e6%89%be%e5%87%ba%e5%8c%85%e5%90%ab%e6%9c%89%e6%9f%90%e4%b8%aa%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%9a%84%e6%96%87%e4%bb%b6%e5%b9%b6%e5%8a%a0%e6%b3%a8%e9%87%8a/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2011/04/06/%e6%89%be%e5%87%ba%e5%8c%85%e5%90%ab%e6%9c%89%e6%9f%90%e4%b8%aa%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%9a%84%e6%96%87%e4%bb%b6%e5%b9%b6%e5%8a%a0%e6%b3%a8%e9%87%8a/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 09:04:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1455</guid>
		<description><![CDATA[将目录里的文件中包括有print的行全打上 //的开头的 linux命令是什么？ 答案： &#160; grep -Rlns print . &#124; xargs sed -i "s/^\(.*print.*\)$/\/\/\1/g"]]></description>
			<content:encoded><![CDATA[<p>将目录里的文件中包括有print的行全打上<br />
//的开头的<br />
linux命令是什么？</p>
<p>答案：</p>
<p>&nbsp;</p>
<pre class="sh" name="code">
grep -Rlns print . | xargs sed -i "s/^\(.*print.*\)$/\/\/\1/g"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2011/04/06/%e6%89%be%e5%87%ba%e5%8c%85%e5%90%ab%e6%9c%89%e6%9f%90%e4%b8%aa%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%9a%84%e6%96%87%e4%bb%b6%e5%b9%b6%e5%8a%a0%e6%b3%a8%e9%87%8a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ln创建目录链接所出现的问题。</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/10/22/ln%e5%88%9b%e5%bb%ba%e7%9b%ae%e5%bd%95%e9%93%be%e6%8e%a5%e6%89%80%e5%87%ba%e7%8e%b0%e7%9a%84%e9%97%ae%e9%a2%98%e3%80%82/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/10/22/ln%e5%88%9b%e5%bb%ba%e7%9b%ae%e5%bd%95%e9%93%be%e6%8e%a5%e6%89%80%e5%87%ba%e7%8e%b0%e7%9a%84%e9%97%ae%e9%a2%98%e3%80%82/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 06:38:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1410</guid>
		<description><![CDATA[在当前非root用户下,使用命令 ln -s dir1 dir2 能进入dir2 但是 不同的用户时ln -s dir1 dir2 就无法进入dir2 解决的办法是将两个目录的用户属性设置成一致。 a. 对于root账号的目录，我们可以将本地(非root)的目录修改成root.root属性, 同时让目录可以为其它用户所修改 chown -R root.root localdir chmod -R 777 localdir b. 对于非root的目录,可以尝试 chown -R eric.eric localdir chmod -R 777 localdir]]></description>
			<content:encoded><![CDATA[<p>在当前非root用户下,使用命令<br />
ln -s dir1 dir2<br />
能进入dir2<br />
但是<br />
不同的用户时ln -s dir1 dir2 就无法进入dir2</p>
<p>解决的办法是将两个目录的用户属性设置成一致。<br />
a. 对于root账号的目录，我们可以将本地(非root)的目录修改成root.root属性, 同时让目录可以为其它用户所修改<br />
chown -R root.root localdir<br />
chmod -R 777 localdir<br />
b. 对于非root的目录,可以尝试<br />
chown -R eric.eric localdir<br />
chmod -R 777 localdir</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/10/22/ln%e5%88%9b%e5%bb%ba%e7%9b%ae%e5%bd%95%e9%93%be%e6%8e%a5%e6%89%80%e5%87%ba%e7%8e%b0%e7%9a%84%e9%97%ae%e9%a2%98%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 下使用 Ubuntu 10.10 版的fcitx</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/10/19/ubuntu-10-04-%e4%b8%8b%e4%bd%bf%e7%94%a8-ubuntu-10-10-%e7%89%88%e7%9a%84fcitx/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/10/19/ubuntu-10-04-%e4%b8%8b%e4%bd%bf%e7%94%a8-ubuntu-10-10-%e7%89%88%e7%9a%84fcitx/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 23:19:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1405</guid>
		<description><![CDATA[由于fcitx的debian包在10.04时字符的编码并不是UTF-8,所以经常需要手动配置才能正确显示， 但是fcitx 在Ubuntu 10.10后采用的是fcitx_3.6.3-1，字符串已经开始使用UTF-8了。默认情况下显然的不再是方框了。 其实10.04下我们同样可以使用 fcitx 的deb包, 因为都是使用的Debian的包，依赖关系也很简单。 安装方法与其它的deb包安装方式没有任何差别 根据下面的软件地址直接在Ubuntu 10.04里安装就OK。 （打开下面的地址后点击下面的任何的镜象地址下载即可） i386： http://packages.debian.org/zh-cn/sid/i386/fcitx/download AMD64: http://packages.debian.org/zh-cn/sid/amd64/fcitx/download]]></description>
			<content:encoded><![CDATA[<p>由于fcitx的debian包在10.04时字符的编码并不是UTF-8,所以经常需要手动配置才能正确显示，</p>
<p>但是fcitx 在Ubuntu 10.10后采用的是fcitx_3.6.3-1，字符串已经开始使用UTF-8了。默认情况下显然的不再是方框了。</p>
<p>其实10.04下我们同样可以使用 fcitx 的deb包, 因为都是使用的Debian的包，依赖关系也很简单。</p>
<p>安装方法与其它的deb包安装方式没有任何差别</p>
<p>根据下面的软件地址直接在Ubuntu 10.04里安装就OK。</p>
<p>（打开下面的地址后点击下面的任何的镜象地址下载即可）</p>
<p>i386：</p>
<p><a href="http://packages.debian.org/zh-cn/sid/i386/fcitx/download">http://packages.debian.org/zh-cn/sid/i386/fcitx/download</a></p>
<p>AMD64:</p>
<p><a href="http://packages.debian.org/zh-cn/sid/amd64/fcitx/download">http://packages.debian.org/zh-cn/sid/amd64/fcitx/download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/10/19/ubuntu-10-04-%e4%b8%8b%e4%bd%bf%e7%94%a8-ubuntu-10-10-%e7%89%88%e7%9a%84fcitx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu GPG Key 出错的解决办法</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/09/17/ubuntu-gpg-key-%e5%87%ba%e9%94%99%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/09/17/ubuntu-gpg-key-%e5%87%ba%e9%94%99%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 05:14:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1379</guid>
		<description><![CDATA[在安装新的source list的时候经常会出现GPG Key 没有办法通过验证的错误. 一般有如下的报错: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key 执行下列代码,将可以解决您的问题: sudo bash apt-get clean cd /var/lib/apt mv lists/ lists.old mkdir -p lists/partial apt-get clean apt-get update]]></description>
			<content:encoded><![CDATA[<p>在安装新的source list的时候经常会出现GPG Key 没有办法通过验证的错误.<br />
一般有如下的报错:<br />
The following<br />
signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic<br />
Signing Key</p>
<p>执行下列代码,将可以解决您的问题:</p>
<p>sudo bash<br />
apt-get clean<br />
cd /var/lib/apt<br />
mv lists/ lists.old<br />
mkdir -p lists/partial<br />
apt-get clean<br />
apt-get update</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/09/17/ubuntu-gpg-key-%e5%87%ba%e9%94%99%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04下安装python 2.5</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/09/12/ubuntu-10-04%e4%b8%8b%e5%ae%89%e8%a3%85python-2-5/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/09/12/ubuntu-10-04%e4%b8%8b%e5%ae%89%e8%a3%85python-2-5/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 13:03:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 10.04 python2.5]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1366</guid>
		<description><![CDATA[有时候我们总是喜欢打破体制的束缚，Ubuntu 10.04默认不再提供Python 2.5的支持了。 但是一些软件却没有升级他的意思。而这些软件往往是公司挣钱的。或者非常重要的。 所以我们还必须得让Ubuntu能支持他，否则我们就不能用Ubuntu了。 经过Google与测试。下面的几个步骤应该能解决你的问题。 sudo apt-get install build-essential gcc cd Downloads wget http://www.python.org/ftp/python/2.5.5/Python-2.5.5.tgz tar -xvzf Python-2.5.5.tgz cd Python-2.5.5 ./configure --prefix=/usr/local/python2.5 make make test sudo make install sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5]]></description>
			<content:encoded><![CDATA[<p>有时候我们总是喜欢打破体制的束缚，Ubuntu 10.04默认不再提供Python 2.5的支持了。<br />
但是一些软件却没有升级他的意思。而这些软件往往是公司挣钱的。或者非常重要的。</p>
<p>所以我们还必须得让Ubuntu能支持他，否则我们就不能用Ubuntu了。</p>
<p>经过Google与测试。下面的几个步骤应该能解决你的问题。</p>
<pre name="code" class="python">
sudo apt-get install build-essential gcc
cd Downloads
wget http://www.python.org/ftp/python/2.5.5/Python-2.5.5.tgz
tar -xvzf Python-2.5.5.tgz
cd Python-2.5.5
./configure --prefix=/usr/local/python2.5
make
make test
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/09/12/ubuntu-10-04%e4%b8%8b%e5%ae%89%e8%a3%85python-2-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 framebuffer 显示中文</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/08/23/ubuntu-10-04-framebuffer-%e6%98%be%e7%a4%ba%e4%b8%ad%e6%96%87/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/08/23/ubuntu-10-04-framebuffer-%e6%98%be%e7%a4%ba%e4%b8%ad%e6%96%87/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 09:15:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[zhcon]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1354</guid>
		<description><![CDATA[1.sudo apt-get install zhcon 2. zhcon &#8211;utf8即可]]></description>
			<content:encoded><![CDATA[<p>1.sudo apt-get install zhcon</p>
<p>2. zhcon &#8211;utf8即可</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/08/23/ubuntu-10-04-framebuffer-%e6%98%be%e7%a4%ba%e4%b8%ad%e6%96%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>重新安装Ubuntu 10.04</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/08/22/%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85ubuntu-10-04/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/08/22/%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85ubuntu-10-04/#comments</comments>
		<pubDate>Sat, 21 Aug 2010 18:26:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[Grub2]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1351</guid>
		<description><![CDATA[1.使用LiveCD进入桌面 2.点开在菜单栏Places(位置)，然后选择安装了Ubuntu的分区 3.这是你必须得看到这个硬盘上有/boot/grub这样的目录，硬盘加载后的目录名一般是这样的： /media/7848138a-41a0-4eba-8aed-d1b625ac8759 4.这时打开终端（应用程序-&#62;附件-&#62;终端)，执行命令： sudo grub-setup -d /media/7848138a-41a0-4eba-8aed-d1b625ac8759/boot/grub /dev/sda 5.重启Ubuntu,就可以看到Grub2的菜单了]]></description>
			<content:encoded><![CDATA[<p>1.使用LiveCD进入桌面</p>
<p>2.点开在菜单栏Places(位置)，然后选择安装了Ubuntu的分区</p>
<p>3.这是你必须得看到这个硬盘上有/boot/grub这样的目录，硬盘加载后的目录名一般是这样的：<em> /<strong>media/7848138a-41a0-4eba-8aed-d1b625ac8759</strong></em></p>
<p>4.这时打开终端（应用程序-&gt;附件-&gt;终端)，执行命令：</p>
<p><em>sudo grub-setup -d /<strong>media/7848138a-41a0-4eba-8aed-d1b625ac8759</strong>/boot/grub /dev/sd<strong>a</strong></em></p>
<p><em><strong>5.重启Ubuntu,就可以看到Grub2的菜单了</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/08/22/%e9%87%8d%e6%96%b0%e5%ae%89%e8%a3%85ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bash自动补齐包</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/08/01/bash%e8%87%aa%e5%8a%a8%e8%a1%a5%e9%bd%90%e5%8c%85/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/08/01/bash%e8%87%aa%e5%8a%a8%e8%a1%a5%e9%bd%90%e5%8c%85/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 20:25:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1282</guid>
		<description><![CDATA[sudo apt-get install bash-completion debian/ubuntu系有效]]></description>
			<content:encoded><![CDATA[<p>sudo apt-get install bash-completion<br />
debian/ubuntu系有效</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/08/01/bash%e8%87%aa%e5%8a%a8%e8%a1%a5%e9%bd%90%e5%8c%85/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Linux下面比较WINDOWS要爽的地方</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/06/30/ubuntu-linux%e4%b8%8b%e9%9d%a2%e6%af%94%e8%be%83windows%e8%a6%81%e7%88%bd%e7%9a%84%e5%9c%b0%e6%96%b9/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/06/30/ubuntu-linux%e4%b8%8b%e9%9d%a2%e6%af%94%e8%be%83windows%e8%a6%81%e7%88%bd%e7%9a%84%e5%9c%b0%e6%96%b9/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 16:00:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[未分类]]></category>
		<category><![CDATA[民工观点]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1218</guid>
		<description><![CDATA[我先抛块玉引几块砖。。。 1. 中英文默认字体比较好看（中文微米黑/英文Sans) 2. 单个网络连接速度稳定可靠 3. 驱动智能安装，不用被硬件厂家强奸装驱动 4. 没有木马与病毒的干扰，被入侵除外 5. 直接可以听iPhone/iPod上的音乐 6. 音，视频解码器安装智能化，通过网络很方便下载 7. 联网可以有很多配置，切换很方便，不用装ibm的 access connections之类的什么就能玩转网络，随心切换 8. 没有盗版问题，放心使用。 以上不包括开发上很多非常爽的地方，只以一般用户的眼光来看。]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">我先抛块玉引几块砖。。。</div>
<div id="_mcePaste">1. 中英文默认字体比较好看（中文微米黑/英文Sans)</div>
<div id="_mcePaste">2. 单个网络连接速度稳定可靠</div>
<div id="_mcePaste">3. 驱动智能安装，不用被硬件厂家强奸装驱动</div>
<div id="_mcePaste">4. 没有木马与病毒的干扰，被入侵除外</div>
<div id="_mcePaste">5. 直接可以听iPhone/iPod上的音乐</div>
<div id="_mcePaste">6. 音，视频解码器安装智能化，通过网络很方便下载</div>
<div id="_mcePaste">7. 联网可以有很多配置，切换很方便，不用装ibm的 access connections之类的什么就能玩转网络，随心切换</div>
<div id="_mcePaste">8. 没有盗版问题，放心使用。</div>
<div id="_mcePaste">以上不包括开发上很多非常爽的地方，只以一般用户的眼光来看。</div>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/06/30/ubuntu-linux%e4%b8%8b%e9%9d%a2%e6%af%94%e8%be%83windows%e8%a6%81%e7%88%bd%e7%9a%84%e5%9c%b0%e6%96%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 VPN客户端配置心得</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/06/27/ubuntu-10-04-vpn%e5%ae%a2%e6%88%b7%e7%ab%af%e9%85%8d%e7%bd%ae%e5%bf%83%e5%be%97/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/06/27/ubuntu-10-04-vpn%e5%ae%a2%e6%88%b7%e7%ab%af%e9%85%8d%e7%bd%ae%e5%bf%83%e5%be%97/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 08:06:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1210</guid>
		<description><![CDATA[Ubuntu 10.04的连接管理器似乎是有BUG，要想连接成功，需要正确的配置你的连接项，如果第一次失败，可能以后都不能成功了，这里需要删除重新设置。 除了删除重新配置外，还有一个要点是一定要点上高级选项(Advance)，选择Use-Point-To-Point-Encryption(MPPE)。 然后再应用，这时连接VPN就可以成功。 如果说他提示“VPN服务启动失败”，那用上面的办法试下应该就能成功。]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 10.04的连接管理器似乎是有BUG，要想连接成功，需要正确的配置你的连接项，如果第一次失败，可能以后都不能成功了，这里需要删除重新设置。 除了删除重新配置外，还有一个要点是一定要点上高级选项(Advance)，选择Use-Point-To-Point-Encryption(MPPE)。</p>
<p>然后再应用，这时连接VPN就可以成功。</p>
<p>如果说他提示“VPN服务启动失败”，那用上面的办法试下应该就能成功。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/06/27/ubuntu-10-04-vpn%e5%ae%a2%e6%88%b7%e7%ab%af%e9%85%8d%e7%bd%ae%e5%bf%83%e5%be%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 下Thinkpad小红点的配置更新</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/06/10/ubuntu-10-04/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/06/10/ubuntu-10-04/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 19:59:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Thinkpad]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1169</guid>
		<description><![CDATA[虽然Ubuntu的升级带来很多新的功能，但是同时它也影响了原来配置好的一些设备。 Thinkpad的小红点就是经常被踢来踢去的一个东西。 下面我们要让我们喜欢的小红点尽快的工作起来。 不过这次的配置还是很简单。 1. 创建文件 /usr/lib/X11/xorg.conf.d/20-thinkpad.conf 2.添加下面的内容: Section "InputClass" Identifier "Trackpoint Wheel Emulation" MatchProduct "TrackPoint" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "EmulateWheel" "true" Option "EmulateWheelButton" "2" Option "Emulate3Buttons" "false" Option "XAxisMapping" "6 7" Option "YAxisMapping" "4 5" EndSection 3.重启X系统(实际上只要注销一下就可以了）]]></description>
			<content:encoded><![CDATA[<p>虽然Ubuntu的升级带来很多新的功能，但是同时它也影响了原来配置好的一些设备。<br />
Thinkpad的小红点就是经常被踢来踢去的一个东西。<br />
下面我们要让我们喜欢的小红点尽快的工作起来。<br />
不过这次的配置还是很简单。<br />
1. 创建文件<br />
 /usr/lib/X11/xorg.conf.d/20-thinkpad.conf<br />
2.添加下面的内容:</p>
<pre>
Section "InputClass"
    Identifier "Trackpoint Wheel Emulation"
    MatchProduct "TrackPoint"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "EmulateWheel" "true"
    Option "EmulateWheelButton" "2"
    Option "Emulate3Buttons" "false"
    Option "XAxisMapping" "6 7"
    Option "YAxisMapping" "4 5"
EndSection
</pre>
<p>3.重启X系统(实际上只要注销一下就可以了）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/06/10/ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>使用Debian 5的VPS配置VPN翻墙</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/06/09/%e4%bd%bf%e7%94%a8debian-5%e7%9a%84vps%e9%85%8d%e7%bd%aevpn%e7%bf%bb%e5%a2%99/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/06/09/%e4%bd%bf%e7%94%a8debian-5%e7%9a%84vps%e9%85%8d%e7%bd%aevpn%e7%bf%bb%e5%a2%99/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 16:56:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1165</guid>
		<description><![CDATA[现在VPS已经很便宜了，这使得翻墙变的越来越容易。 下面介绍一下Debian系下面的VPN翻墙的配置方法。 1. 安装 pptpd apt-get install pptpd 2. 配置pptpd, 注释掉下面的文字的前面的#号即可 localip 192.168.0.1 #这是VPN线路的网关地址 remoteip 192.168.0.234-238,192.168.0.245 #分配给连接到VPN的机器的IP 3.配置VPN用户和密码:打开 /etc/ppp/chap-secrets 格式: 用户名 协议 密码 允许的IP(*表示全部) 示例: vpn0 pptpd vpn_pwd * 4.配置pptpd： 打开 /etc/ppp/pptpd-options 在最后添加DNS： ms-dns 8.8.8.8 #google的dns服务器，可以自己根据需要修改。 ms-dns 8.8.4.4 5./etc/init.d/pptpd restart 6.打开转发功能： 打开/etc/sysctl.conf， 查到下面的文字，将前面的注释去掉。 net.ipv4.ip_forward = 1 7. 执行下面的命令： iptables -t nat -A POSTROUTING -o eth0 [...]]]></description>
			<content:encoded><![CDATA[<p>现在VPS已经很便宜了，这使得翻墙变的越来越容易。<br />
下面介绍一下Debian系下面的VPN翻墙的配置方法。<br />
1. 安装 pptpd<br />
apt-get install pptpd<br />
2. 配置pptpd, 注释掉下面的文字的前面的#号即可<br />
localip 192.168.0.1 #这是VPN线路的网关地址<br />
remoteip 192.168.0.234-238,192.168.0.245 #分配给连接到VPN的机器的IP<br />
3.配置VPN用户和密码:打开 /etc/ppp/chap-secrets<br />
格式:<br />
用户名 协议 密码 允许的IP(*表示全部)<br />
示例:<br />
  vpn0 pptpd vpn_pwd *<br />
4.配置pptpd：<br />
打开<br />
/etc/ppp/pptpd-options<br />
在最后添加DNS：<br />
ms-dns 8.8.8.8 #google的dns服务器，可以自己根据需要修改。<br />
ms-dns 8.8.4.4 </p>
<p>5./etc/init.d/pptpd restart<br />
6.打开转发功能：<br />
打开/etc/sysctl.conf，<br />
查到下面的文字，将前面的注释去掉。<br />
net.ipv4.ip_forward = 1</p>
<p>7. 执行下面的命令：<br />
iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j MASQUERADE<br />
同时写入到/etc/rc.local</p>
<p>8./etc/init.d/pptpd restart 重启pptpd<br />
这样VPN就配置完成了</p>
<p>然后在WINDOWS里选择创建VPN：<br />
控制面板->网络和 Internet 连接->网络连接</p>
<p>然后选择：创建一个新的连接-》下一步-》选择连接到我的工作场所的网络-》虚拟专用网络连接<br />
然后输入你的VPS的IP/域名， 然后再输入你的用户名与密码。<br />
期待连接成功吧。<br />
如果连接失败，可以尝试将服务器重启一下。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/06/09/%e4%bd%bf%e7%94%a8debian-5%e7%9a%84vps%e9%85%8d%e7%bd%aevpn%e7%bf%bb%e5%a2%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 gedit 添加中文支持</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/06/08/ubuntu-10-04-gedit-%e6%b7%bb%e5%8a%a0%e4%b8%ad%e6%96%87%e6%94%af%e6%8c%81/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/06/08/ubuntu-10-04-gedit-%e6%b7%bb%e5%8a%a0%e4%b8%ad%e6%96%87%e6%94%af%e6%8c%81/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 05:53:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1162</guid>
		<description><![CDATA[1. 打开配置文件 gvim .gconf/apps/gedit-2/preferences/encodings/%gconf.xml 2.添加下面几行到 entry标签的最前面几行 GB2312 GBK GB18030 3.结果大概是这样的： GB2312 GBK GB18030 UTF-8 CURRENT ISO-8859-15 UTF-16]]></description>
			<content:encoded><![CDATA[<p>1. 打开配置文件<br />
gvim .gconf/apps/gedit-2/preferences/encodings/%gconf.xml</p>
<p>2.添加下面几行到 entry标签的最前面几行</p>
<pre name="code" class="xml">
<li type="string">
			<stringvalue>GB2312</stringvalue>
		</li>
<li type="string">
			<stringvalue>GBK</stringvalue>
		</li>
<li type="string">
			<stringvalue>GB18030</stringvalue>
		</li>
</pre>
<p>3.结果大概是这样的：</p>
<pre name="code" class="xml">
<?xml version="1.0"?>
<gconf>
	<entry name="auto_detected" mtime="1275974688" type="list" ltype="string">
<li type="string">
			<stringvalue>GB2312</stringvalue>
		</li>
<li type="string">
			<stringvalue>GBK</stringvalue>
		</li>
<li type="string">
			<stringvalue>GB18030</stringvalue>
		</li>
<li type="string">
			<stringvalue>UTF-8</stringvalue>
		</li>
<li type="string">
			<stringvalue>CURRENT</stringvalue>
		</li>
<li type="string">
			<stringvalue>ISO-8859-15</stringvalue>
		</li>
<li type="string">
			<stringvalue>UTF-16</stringvalue>
		</li>

	</entry>
</gconf>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/06/08/ubuntu-10-04-gedit-%e6%b7%bb%e5%8a%a0%e4%b8%ad%e6%96%87%e6%94%af%e6%8c%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>修改Ubuntu 10.04默认字体的办法</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/06/06/%e4%bf%ae%e6%94%b9ubuntu-10-04%e9%bb%98%e8%ae%a4%e5%ad%97%e4%bd%93%e7%9a%84%e5%8a%9e%e6%b3%95/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/06/06/%e4%bf%ae%e6%94%b9ubuntu-10-04%e9%bb%98%e8%ae%a4%e5%ad%97%e4%bd%93%e7%9a%84%e5%8a%9e%e6%b3%95/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 17:09:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1154</guid>
		<description><![CDATA[1.首先要将avail里的文件创建软连接到conf.d目录下 cd /etc/fonts/conf.d/ sudo ln -s ../conf.avail/69-language-selector-zh-cn.conf 2.然后编译这个软连接过来的文件 sudo gedit 69-language-selector-zh-cn.conf 3. 这个时候你就可以根据自己的需要添加或者删除字体配置， 下面是我的字体配置， 我在这里重新配置了一下Sans字体： Sans DejaVu Sans Bitstream Vera Sans WenQuanYi Micro Hei WenQuanYi Zen Hei HYSong AR PL UMing CN AR PL UMing HK AR PL ShanHeiSun Uni AR PL New Sung WenQuanYi Bitmap Song AR PL UKai CN AR PL ZenKai Uni [...]]]></description>
			<content:encoded><![CDATA[<p>1.首先要将avail里的文件创建软连接到conf.d目录下</p>
<pre name="code" class="bash">
cd /etc/fonts/conf.d/
sudo ln -s ../conf.avail/69-language-selector-zh-cn.conf
</pre>
<p>2.然后编译这个软连接过来的文件</p>
<pre name="code" class="bash">
sudo gedit 69-language-selector-zh-cn.conf
</pre>
<p>3. 这个时候你就可以根据自己的需要添加或者删除字体配置，<br />
下面是我的字体配置，<br />
我在这里重新配置了一下Sans字体：</p>
<pre name="code" class="xml">
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

	<match target="pattern">
		<test qual="any" name="family">
			<string>Sans</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Sans</string>
			<string>Bitstream Vera Sans</string>
			<string>WenQuanYi Micro Hei</string>
			<string>WenQuanYi Zen Hei</string>
			<string>HYSong</string>
			<string>AR PL UMing CN</string>
			<string>AR PL UMing HK</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>AR PL New Sung</string>
			<string>WenQuanYi Bitmap Song</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match> 

	<match target="pattern">
		<test qual="any" name="family">
			<string>serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Serif</string>
			<string>Bitstream Vera Serif</string>
			<string>WenQuanYi Micro Hei</string>
			<string>WenQuanYi Zen Hei</string>
			<string>HYSong</string>
			<string>AR PL UMing CN</string>
			<string>AR PL UMing HK</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>AR PL New Sung</string>
			<string>WenQuanYi Bitmap Song</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family">
			<string>sans-serif</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Sans</string>
			<string>Bitstream Vera Sans</string>
			<string>WenQuanYi Micro Hei</string>
			<string>WenQuanYi Zen Hei</string>
			<string>Droid Sans Fallback</string>
			<string>HYSong</string>
			<string>AR PL UMing CN</string>
			<string>AR PL UMing HK</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>AR PL New Sung</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match>
	<match target="pattern">
		<test qual="any" name="family">
			<string>monospace</string>
		</test>
		<edit name="family" mode="prepend" binding="strong">
			<string>DejaVu Sans Mono</string>
			<string>Bitstream Vera Sans Mono</string>
			<string>WenQuanYi Micro Hei Mono</string>
			<string>WenQuanYi Zen Hei Mono</string>
			<string>Droid Sans Fallback</string>
			<string>HYSong</string>
			<string>AR PL UMing CN</string>
			<string>AR PL UMing HK</string>
			<string>AR PL ShanHeiSun Uni</string>
			<string>AR PL New Sung</string>
			<string>AR PL UKai CN</string>
			<string>AR PL ZenKai Uni</string>
		</edit>
	</match> 

</fontconfig>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/06/06/%e4%bf%ae%e6%94%b9ubuntu-10-04%e9%bb%98%e8%ae%a4%e5%ad%97%e4%bd%93%e7%9a%84%e5%8a%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04下面gvim菜单不显示的问题解决</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/06/06/ubuntu-10-04%e4%b8%8b%e9%9d%a2gvim%e8%8f%9c%e5%8d%95%e4%b8%8d%e6%98%be%e7%a4%ba%e7%9a%84%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/06/06/ubuntu-10-04%e4%b8%8b%e9%9d%a2gvim%e8%8f%9c%e5%8d%95%e4%b8%8d%e6%98%be%e7%a4%ba%e7%9a%84%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 16:41:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1152</guid>
		<description><![CDATA[cd /usr/share/vim/vim72/lang sudo ln -s menu_zh_cn.utf-8.vim menu_zh_cn.utf8.vim]]></description>
			<content:encoded><![CDATA[<p>cd /usr/share/vim/vim72/lang<br />
sudo ln -s menu_zh_cn.utf-8.vim menu_zh_cn.utf8.vim</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/06/06/ubuntu-10-04%e4%b8%8b%e9%9d%a2gvim%e8%8f%9c%e5%8d%95%e4%b8%8d%e6%98%be%e7%a4%ba%e7%9a%84%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04 下Eclipse 添加GBK/GBK2312/GB18030支持</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/06/05/ubuntu-10-04-%e4%b8%8beclipse-%e6%b7%bb%e5%8a%a0gbk-gbk2312-gb18030%e6%94%af%e6%8c%81/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/06/05/ubuntu-10-04-%e4%b8%8beclipse-%e6%b7%bb%e5%8a%a0gbk-gbk2312-gb18030%e6%94%af%e6%8c%81/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 15:42:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[编码]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1150</guid>
		<description><![CDATA[1.首先是要添加locale的支持 sudo locale-gen zh_CN.GBK sudo locale-gen zh_CN.GB2312 sudo locale-gen zh_CN.GB18030 2.更新一下locale(不更新应该也没有问题，没有测试): sudo dpkg-reconfigure locales 3.重启Eclipse, 然后再打开项目的属性，直接输入 GBK/GB2312/GBK18030 即可。 你会发现原来的乱码消失了。 由于这种方法使用的是OpenJDK,你不用安装Sun的JDK就可以使用GBK/GB2312了。]]></description>
			<content:encoded><![CDATA[<p>1.首先是要添加locale的支持</p>
<pre class="code" name="sh">
sudo locale-gen zh_CN.GBK
sudo locale-gen zh_CN.GB2312
sudo locale-gen zh_CN.GB18030
</pre>
<p>2.更新一下locale(不更新应该也没有问题，没有测试):</p>
<pre class="code" name="sh">
sudo dpkg-reconfigure locales
</pre>
<p>3.重启Eclipse, 然后再打开项目的属性，直接输入<br />
GBK/GB2312/GBK18030<br />
即可。<br />
你会发现原来的乱码消失了。<br />
由于这种方法使用的是OpenJDK,你不用安装Sun的JDK就可以使用GBK/GB2312了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/06/05/ubuntu-10-04-%e4%b8%8beclipse-%e6%b7%bb%e5%8a%a0gbk-gbk2312-gb18030%e6%94%af%e6%8c%81/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.04下open jdk 6 与 netbeans 6.8 字体难看的解决办法</title>
		<link>http://www.3gcnbeta.com/wordpress/2010/05/24/ubuntu-10-04%e4%b8%8bopen-jdk-6-%e4%b8%8e-netbeans-6-8-%e5%ad%97%e4%bd%93%e9%9a%be%e7%9c%8b%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/</link>
		<comments>http://www.3gcnbeta.com/wordpress/2010/05/24/ubuntu-10-04%e4%b8%8bopen-jdk-6-%e4%b8%8e-netbeans-6-8-%e5%ad%97%e4%bd%93%e9%9a%be%e7%9c%8b%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/#comments</comments>
		<pubDate>Mon, 24 May 2010 07:17:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[Netbeans]]></category>
		<category><![CDATA[字体]]></category>

		<guid isPermaLink="false">http://www.3gcnbeta.com/wordpress/?p=1064</guid>
		<description><![CDATA[下载附件后，执行install.sh sh install.sh 点击文件链接： Ubuntu-10.04-netbeans-open-jdk-fonts-configuration.zip 效果图：]]></description>
			<content:encoded><![CDATA[<p>下载附件后，执行install.sh</p>
<pre name="code" class="sh">
sh install.sh
</pre>
<p>点击文件链接：<br />
<a href='http://www.3gcnbeta.com/wordpress/2010/05/24/ubuntu-10-04%e4%b8%8bopen-jdk-6-%e4%b8%8e-netbeans-6-8-%e5%ad%97%e4%bd%93%e9%9a%be%e7%9c%8b%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/ubuntu-10-04-netbeans-open-jdk-fonts-configuration/' rel='attachment wp-att-1065'>Ubuntu-10.04-netbeans-open-jdk-fonts-configuration.zip</a></p>
<p>效果图：<a href="http://www.3gcnbeta.com/wordpress/2010/05/24/ubuntu-10-04%e4%b8%8bopen-jdk-6-%e4%b8%8e-netbeans-6-8-%e5%ad%97%e4%bd%93%e9%9a%be%e7%9c%8b%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/screenshot-pychat-netbeans-ide-6-8-1/" rel="attachment wp-att-1068"><img src="http://www.3gcnbeta.com/wordpress/wp-content/uploads/2010/05/Screenshot-pychat-NetBeans-IDE-6.8-1.png" alt="" title="Screenshot - NetBeans IDE 6.8-1" width="860" height="455" class="aligncenter size-full wp-image-1068" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3gcnbeta.com/wordpress/2010/05/24/ubuntu-10-04%e4%b8%8bopen-jdk-6-%e4%b8%8e-netbeans-6-8-%e5%ad%97%e4%bd%93%e9%9a%be%e7%9c%8b%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
