<?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>海纳百川｛Ocean Linux｝</title>
	<atom:link href="http://oceanlinux.com/feed" rel="self" type="application/rss+xml" />
	<link>http://oceanlinux.com</link>
	<description>汪洋中的一条鱼</description>
	<lastBuildDate>Wed, 01 Sep 2010 01:12:20 +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>Linux下putty设置</title>
		<link>http://oceanlinux.com/1291/linux%e4%b8%8bputty%e8%ae%be%e7%bd%ae</link>
		<comments>http://oceanlinux.com/1291/linux%e4%b8%8bputty%e8%ae%be%e7%bd%ae#comments</comments>
		<pubDate>Wed, 01 Sep 2010 01:12:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/?p=1291</guid>
		<description><![CDATA[除了openssh之外，Linux下也有putty。在Linux下使用putty的好处是可以兼容在Windows下生成的putty密钥，也可以使用putty命令，进行一些自动化脚本操作。 安装： aptitude install putty putty-tools 前者是图形界面，后者是命令行界面。 使用命令行创建一个加密链接，自动使用密钥认证，端口为9999，用户为root，强制使用ipv4协议。写成一个bash脚本更方便。 #! /bin/bash plink -4 -D 9999 -i ~/.ssh/private..ppk 216.211.21.19 -l root]]></description>
			<content:encoded><![CDATA[<p>除了openssh之外，Linux下也有putty。在Linux下使用putty的好处是可以兼容在Windows下生成的putty密钥，也可以使用putty命令，进行一些自动化脚本操作。</p>
<p>安装：</p>
<p>aptitude install putty putty-tools</p>
<p>前者是图形界面，后者是命令行界面。<br />
使用命令行创建一个加密链接，自动使用密钥认证，端口为9999，用户为root，强制使用ipv4协议。写成一个bash脚本更方便。</p>
<p>#! /bin/bash<br />
plink -4 -D 9999 -i ~/.ssh/private..ppk 216.211.21.19 -l root</p>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/1291/linux%e4%b8%8bputty%e8%ae%be%e7%bd%ae/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何把编译后的文件打包成 deb</title>
		<link>http://oceanlinux.com/1282/%e5%a6%82%e4%bd%95%e6%8a%8a%e7%bc%96%e8%af%91%e5%90%8e%e7%9a%84%e6%96%87%e4%bb%b6%e6%89%93%e5%8c%85%e6%88%90-deb</link>
		<comments>http://oceanlinux.com/1282/%e5%a6%82%e4%bd%95%e6%8a%8a%e7%bc%96%e8%af%91%e5%90%8e%e7%9a%84%e6%96%87%e4%bb%b6%e6%89%93%e5%8c%85%e6%88%90-deb#comments</comments>
		<pubDate>Tue, 31 Aug 2010 12:50:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/?p=1282</guid>
		<description><![CDATA[checkinstall]]></description>
			<content:encoded><![CDATA[<p>checkinstall</p>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/1282/%e5%a6%82%e4%bd%95%e6%8a%8a%e7%bc%96%e8%af%91%e5%90%8e%e7%9a%84%e6%96%87%e4%bb%b6%e6%89%93%e5%8c%85%e6%88%90-deb/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在debian下安装xbmc</title>
		<link>http://oceanlinux.com/3/%e5%9c%a8debian%e4%b8%8b%e5%ae%89%e8%a3%85xbmc</link>
		<comments>http://oceanlinux.com/3/%e5%9c%a8debian%e4%b8%8b%e5%ae%89%e8%a3%85xbmc#comments</comments>
		<pubDate>Tue, 31 Aug 2010 12:07:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/?p=3</guid>
		<description><![CDATA[方法一：直接安装软件包：使用 http://debian-multimedia.org/ 的源 ，直接安装xbmc的包就可以了。 方法二：自己编译。修改sources.list，加入源： deb http://www.debian-multimedia.org sid main deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid main deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid main deb http://ppa.launchpad.net/team-xbmc/xbmc-ppa-build-depends/ubuntu jaunty main deb-src http://ppa.launchpad.net/team-xbmc/xbmc-ppa-build-depends/ubuntu jaunty main svn取得最新的源代码： svn co http://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk 然后安装依赖的包： apt-get build-dep xbmc 然后开始编译：‘ $ cd $HOME/XBMC $ ./bootstrap $ ./configure $ make $ sudo make install 可以参考源代码目录下的readme，里面有详细的安装方法。 Debian下还可以参考这个帖子： http://forum.xbmc.org/showthread.php?t=41582 经过以上设置后，在configure过程中，我手动安装了两个包：分别是： libmicrohttpd-dev lmicrohttpd-dev 经过以上步骤，显示configure完成，输出如下结果： &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8230;]]></description>
			<content:encoded><![CDATA[<p>方法一：直接安装软件包：使用  http://debian-multimedia.org/  的源 ，直接安装xbmc的包就可以了。</p>
<p>方法二：自己编译。修改sources.list，加入源：</p>
<p>deb http://www.debian-multimedia.org sid main<br />
deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid main<br />
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid main</p>
<p>deb http://ppa.launchpad.net/team-xbmc/xbmc-ppa-build-depends/ubuntu jaunty main<br />
deb-src http://ppa.launchpad.net/team-xbmc/xbmc-ppa-build-depends/ubuntu jaunty main</p>
<p>svn取得最新的源代码：</p>
<p>svn co http://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk</p>
<p>然后安装依赖的包：</p>
<p>apt-get build-dep xbmc</p>
<p>然后开始编译：‘<br />
$ cd $HOME/XBMC<br />
$ ./bootstrap<br />
$ ./configure<br />
$ make<br />
$ sudo make install</p>
<p>可以参考源代码目录下的readme，里面有详细的安装方法。</p>
<p>Debian下还可以参考这个帖子：</p>
<p>http://forum.xbmc.org/showthread.php?t=41582</p>
<p>经过以上设置后，在configure过程中，我手动安装了两个包：分别是：</p>
<p>libmicrohttpd-dev</p>
<p>lmicrohttpd-dev</p>
<p>经过以上步骤，显示configure完成，输出如下结果：</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
XBMC Configuration:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Debugging:    Yes<br />
Profiling:    No<br />
Optimization:    Yes<br />
Crosscomp.:    No<br />
target ARCH:    no<br />
target CPU:    no<br />
OpenGL:    Yes<br />
VDPAU:    Yes<br />
VAAPI:    No<br />
CrystalHD:    No<br />
VDADecoder:    No<br />
OpenMax:    No<br />
Joystick:    Yes<br />
XRandR:    Yes<br />
GOOM:        No<br />
Bluray:    No<br />
MID Support:    No<br />
ccache:    No<br />
PulseAudio:    Yes<br />
HAL Support:    Yes<br />
FAAC:        Yes<br />
DVDCSS:    Yes<br />
Avahi:    Yes<br />
Non-free:    Yes<br />
ASAP Codec:    No<br />
Webserver:    Yes<br />
libRTMP support:    No<br />
Deprecated libdts:    No<br />
Deprecated liba52:    No<br />
External FFmpeg:    No<br />
External Python:    No<br />
prefix:    /usr/local<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/3/%e5%9c%a8debian%e4%b8%8b%e5%ae%89%e8%a3%85xbmc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>本站wiki开通</title>
		<link>http://oceanlinux.com/1269/%e6%9c%ac%e7%ab%99wiki%e5%bc%80%e9%80%9a</link>
		<comments>http://oceanlinux.com/1269/%e6%9c%ac%e7%ab%99wiki%e5%bc%80%e9%80%9a#comments</comments>
		<pubDate>Fri, 16 Jul 2010 07:35:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/?p=1269</guid>
		<description><![CDATA[世界杯冠军赛结束后，就开始折腾Dokuwiki，本打算全面取代WordPress，把Doku作为内容管理系统来用的（CMS）。但是考虑到转移帖子工作量很大，且连续几天失眠，没有精力弄了。因此还是回复原来的博客程序，同时启用装好的dokuwiki。 关于WordPress和Dokuwiki的对比，请看我wiki上的一篇帖子，选择Dokuwiki的原因。]]></description>
			<content:encoded><![CDATA[<p>世界杯冠军赛结束后，就开始折腾Dokuwiki，本打算全面取代WordPress，把Doku作为内容管理系统来用的（CMS）。但是考虑到转移帖子工作量很大，且连续几天失眠，没有精力弄了。因此还是回复原来的博客程序，同时启用装好的dokuwiki。</p>
<p>关于WordPress和Dokuwiki的对比，请看我wiki上的一篇帖子，<a href="http://wiki.oceanlinux.com/doku.php">选择Dokuwiki的原因</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/1269/%e6%9c%ac%e7%ab%99wiki%e5%bc%80%e9%80%9a/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>重置mysql的root密码</title>
		<link>http://oceanlinux.com/1268/reset-mysql-password</link>
		<comments>http://oceanlinux.com/1268/reset-mysql-password#comments</comments>
		<pubDate>Sat, 10 Jul 2010 05:57:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[万类归一]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/?p=1268</guid>
		<description><![CDATA[用phpmyadmin登录我的mySql数据库，页面给出一个错误提示： #1045 - Access denied for user 'root1'@'localhost' (using password: YES) 发现这个博客的页面也无法显示，不知是不是遇到了黑客行为还是数据库本身的错误。按照网上给出的方法，登入到系统字符集界面，运行以下命令重置了mysql的管理员密码： 先停止mysql服务： /etc/init.d/mysql stop 用断开网络和不进行验证的方式启动mysql服务（注意后面的 &#038; 号）： mysqld --skip-grant-tables --skip-networking &#038; 接下来连接到mysql数据库： mysql mysql -u root 敲入如下命令，修改密码： UPDATE user SET password=PASSWORD('偶的新密码') WHERE user="root"; 验证修改是否生效： FLUSH PRIVILEGES; 接下来重新启动mysql服务便可： /etc/init.d/mysql restart]]></description>
			<content:encoded><![CDATA[<p>用phpmyadmin登录我的mySql数据库，页面给出一个错误提示：</p>
<pre>#1045 - Access denied for user 'root1'@'localhost' (using password: YES)</pre>
<p>发现这个博客的页面也无法显示，不知是不是遇到了黑客行为还是数据库本身的错误。按照网上给出的方法，登入到系统字符集界面，运行以下命令重置了mysql的管理员密码：</p>
<p>先停止mysql服务：</p>
<pre>
/etc/init.d/mysql stop</pre>
<p>用断开网络和不进行验证的方式启动mysql服务（注意后面的 &#038; 号）：</p>
<pre>mysqld --skip-grant-tables --skip-networking &#038;</pre>
<p>接下来连接到mysql数据库：</p>
<pre>mysql mysql -u root</pre>
<p>敲入如下命令，修改密码：</p>
<pre>UPDATE user SET password=PASSWORD('偶的新密码') WHERE user="root";</pre>
<p>验证修改是否生效：</p>
<pre>FLUSH PRIVILEGES;</pre>
<p>接下来重新启动mysql服务便可：</p>
<pre>/etc/init.d/mysql restart</pre>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/1268/reset-mysql-password/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何测试网站的的显示效果</title>
		<link>http://oceanlinux.com/1259/%e5%a6%82%e4%bd%95%e6%b5%8b%e8%af%95%e7%bd%91%e7%ab%99%e7%9a%84%e7%9a%84%e6%98%be%e7%a4%ba%e6%95%88%e6%9e%9c</link>
		<comments>http://oceanlinux.com/1259/%e5%a6%82%e4%bd%95%e6%b5%8b%e8%af%95%e7%bd%91%e7%ab%99%e7%9a%84%e7%9a%84%e6%98%be%e7%a4%ba%e6%95%88%e6%9e%9c#comments</comments>
		<pubDate>Thu, 03 Jun 2010 03:38:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[万类归一]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/1259</guid>
		<description><![CDATA[修改网站主题后，如何知道它在不同分辨率、操作系统和浏览器的显示效果。答案是viewlike网站和browsershot这两个网站。 访问viewlike.us，输入网址，就可以看到包括IPhone手机在内的不同分辨率的网页显示效果。据网上调查，现在大部分人使用的分辨率仍然是1024&#215;768，因此有的主题干脆就把宽度固定在1024上。 要想知道网站在不同操作系统和多种浏览器下的显示效果，可访问browsershot。这个网站会用不同操作系统和浏览器对网站进行截屏，并提供截屏后的50多张图像作为参照。]]></description>
			<content:encoded><![CDATA[<p>修改网站主题后，如何知道它在不同分辨率、操作系统和浏览器的显示效果。答案是viewlike网站和browsershot这两个网站。</p>
<p>访问<a href="http://viewlike.us/" target="_blank">viewlike.us</a>，输入网址，就可以看到包括IPhone手机在内的不同分辨率的网页显示效果。据网上调查，现在大部分人使用的分辨率仍然是1024&#215;768，因此有的主题干脆就把宽度固定在1024上。</p>
<p>要想知道网站在不同操作系统和多种浏览器下的显示效果，可访问<a href="http://browsershots.org/" target="_blank">browsershot</a>。这个网站会用不同操作系统和浏览器对网站进行截屏，并提供截屏后的50多张图像作为参照。</p>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/1259/%e5%a6%82%e4%bd%95%e6%b5%8b%e8%af%95%e7%bd%91%e7%ab%99%e7%9a%84%e7%9a%84%e6%98%be%e7%a4%ba%e6%95%88%e6%9e%9c/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>如何解压Debian下的 .deb 软件包</title>
		<link>http://oceanlinux.com/1254/%e5%a6%82%e4%bd%95%e8%a7%a3%e5%8e%8bdebian%e4%b8%8b%e7%9a%84-deb-%e8%bd%af%e4%bb%b6%e5%8c%85</link>
		<comments>http://oceanlinux.com/1254/%e5%a6%82%e4%bd%95%e8%a7%a3%e5%8e%8bdebian%e4%b8%8b%e7%9a%84-deb-%e8%bd%af%e4%bb%b6%e5%8c%85#comments</comments>
		<pubDate>Wed, 02 Jun 2010 06:56:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[万类归一]]></category>
		<category><![CDATA[command]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/1254</guid>
		<description><![CDATA[有时候需要单独解压Debian的某个.deb软件包，使用 dpkg-deb 和 ar 命令就可以完成这项任务，虽然两者的运行方式不一样。ar是把deb软件包解压为压缩包，需要我们再次解压。而dpkg-deb则直接释放所有的文件。 使用dpkg-deb命令，把debootrap包解压到当前目录下的test目录（无需事先创建test目录）： dpkg-deb -x debootstrap_1.0.10lenny1_all.deb ./test 使用ar命令： ar xv debootstrap_1.0.10lenny1_all.deb x - debian-binary x - control.tar.gz x - data.tar.gz 其中control.tar.gz用于控制debootrap这个包的运行状态，包括md5sum值的比对。而data.tar.gz这个包就是实际的系统文件。]]></description>
			<content:encoded><![CDATA[<p>有时候需要单独解压Debian的某个.deb软件包，使用 dpkg-deb 和 ar 命令就可以完成这项任务，虽然两者的运行方式不一样。ar是把deb软件包解压为压缩包，需要我们再次解压。而dpkg-deb则直接释放所有的文件。</p>
<p>使用dpkg-deb命令，把debootrap包解压到当前目录下的test目录（无需事先创建test目录）：</p>
<pre>
dpkg-deb -x debootstrap_1.0.10lenny1_all.deb ./test
</pre>
<p>使用ar命令：</p>
<pre>
ar xv debootstrap_1.0.10lenny1_all.deb

x - debian-binary
x - control.tar.gz
x - data.tar.gz
</pre>
<p>其中control.tar.gz用于控制debootrap这个包的运行状态，包括md5sum值的比对。而data.tar.gz这个包就是实际的系统文件。</p>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/1254/%e5%a6%82%e4%bd%95%e8%a7%a3%e5%8e%8bdebian%e4%b8%8b%e7%9a%84-deb-%e8%bd%af%e4%bb%b6%e5%8c%85/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lighttpd绑定80端口失败的解决方法</title>
		<link>http://oceanlinux.com/1247/lighttpd%e7%bb%91%e5%ae%9a80%e7%ab%af%e5%8f%a3%e5%a4%b1%e8%b4%a5%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95</link>
		<comments>http://oceanlinux.com/1247/lighttpd%e7%bb%91%e5%ae%9a80%e7%ab%af%e5%8f%a3%e5%a4%b1%e8%b4%a5%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95#comments</comments>
		<pubDate>Tue, 01 Jun 2010 14:15:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[万类归一]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[lighttpd]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/1247</guid>
		<description><![CDATA[重启lighttpd时，出现80端口绑定失败的提示。出现这种情况基本有下面两种原因： 错误提示如下： (network.c.300) can't bind to port: 80 Address already in use ...fail! 原因一： apache和lighttpd冲突。解决方法：删除apache： apt-get remove apache2* 可以通过命令检查什么程序在使用80端口： lsof -i :80 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME lighttpd 1673 www-data 4u IPv4 5677 TCP *:www (LISTEN) 原因二： IPv6协议试图绑定IPv4已经绑定的80端口。解决方法：修改/etc/lighttpd/lighttpd.conf文件，注视掉下面一行： #include_shell "/usr/share/lighttpd/use-ipv6.pl"]]></description>
			<content:encoded><![CDATA[<p>重启lighttpd时，出现80端口绑定失败的提示。出现这种情况基本有下面两种原因：</p>
<p>错误提示如下：</p>
<pre>
(network.c.300) can't bind to port:  80 Address already in use
   ...fail!
</pre>
<p>原因一：</p>
<p>apache和lighttpd冲突。解决方法：删除apache：</p>
<pre>
apt-get remove apache2*
</pre>
<p>可以通过命令检查什么程序在使用80端口：</p>
<pre>
lsof -i :80

COMMAND   PID     USER   FD   TYPE DEVICE SIZE NODE NAME
lighttpd 1673 www-data    4u  IPv4   5677       TCP *:www (LISTEN)
</pre>
<p>原因二：</p>
<p>IPv6协议试图绑定IPv4已经绑定的80端口。解决方法：修改/etc/lighttpd/lighttpd.conf文件，注视掉下面一行：</p>
<pre>
#include_shell "/usr/share/lighttpd/use-ipv6.pl"
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/1247/lighttpd%e7%bb%91%e5%ae%9a80%e7%ab%af%e5%8f%a3%e5%a4%b1%e8%b4%a5%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>vim下对所有行进行乱序排列并显示前100行</title>
		<link>http://oceanlinux.com/1245/vim%e4%b8%8b%e5%af%b9%e6%89%80%e6%9c%89%e8%a1%8c%e8%bf%9b%e8%a1%8c%e4%b9%b1%e5%ba%8f%e6%8e%92%e5%88%97%e5%b9%b6%e6%98%be%e7%a4%ba%e5%89%8d100%e8%a1%8c</link>
		<comments>http://oceanlinux.com/1245/vim%e4%b8%8b%e5%af%b9%e6%89%80%e6%9c%89%e8%a1%8c%e8%bf%9b%e8%a1%8c%e4%b9%b1%e5%ba%8f%e6%8e%92%e5%88%97%e5%b9%b6%e6%98%be%e7%a4%ba%e5%89%8d100%e8%a1%8c#comments</comments>
		<pubDate>Tue, 01 Jun 2010 06:00:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[万类归一]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/1245</guid>
		<description><![CDATA[有一个词汇表，是以字母顺序排序的，每个单词及其选择题练习单独占一行。为了随机抽取其中的100个单词，作为考试测验使用。在vim下，通过sort外部命令，轻松地解决了这个问题。 在运行于Linux或Unix系统的vim下，进入命令行模式，输入： %!sort --random-sort &#124; head -n 100 这样，所有的行经过sort随机排序，并由head命令显示排序后的前100行。]]></description>
			<content:encoded><![CDATA[<p>有一个词汇表，是以字母顺序排序的，每个单词及其选择题练习单独占一行。为了随机抽取其中的100个单词，作为考试测验使用。在vim下，通过sort外部命令，轻松地解决了这个问题。</p>
<p>在运行于Linux或Unix系统的vim下，进入命令行模式，输入：</p>
<pre>%!sort --random-sort | head -n 100</pre>
<p>这样，所有的行经过sort随机排序，并由head命令显示排序后的前100行。</p>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/1245/vim%e4%b8%8b%e5%af%b9%e6%89%80%e6%9c%89%e8%a1%8c%e8%bf%9b%e8%a1%8c%e4%b9%b1%e5%ba%8f%e6%8e%92%e5%88%97%e5%b9%b6%e6%98%be%e7%a4%ba%e5%89%8d100%e8%a1%8c/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>禁用用户密码，只允许用ssh密钥登录的方法</title>
		<link>http://oceanlinux.com/1242/%e7%a6%81%e7%94%a8%e7%94%a8%e6%88%b7%e5%af%86%e7%a0%81%ef%bc%8c%e5%8f%aa%e5%85%81%e8%ae%b8%e7%94%a8ssh%e7%99%bb%e5%bd%95%e7%9a%84%e6%96%b9%e6%b3%95</link>
		<comments>http://oceanlinux.com/1242/%e7%a6%81%e7%94%a8%e7%94%a8%e6%88%b7%e5%af%86%e7%a0%81%ef%bc%8c%e5%8f%aa%e5%85%81%e8%ae%b8%e7%94%a8ssh%e7%99%bb%e5%bd%95%e7%9a%84%e6%96%b9%e6%b3%95#comments</comments>
		<pubDate>Tue, 01 Jun 2010 01:27:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[万类归一]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://oceanlinux.com/1242</guid>
		<description><![CDATA[配置好了ssh，并启用了匹配的公钥和密钥后，可以设置禁止用户用密码登录，只能用密钥登录。这样就防止了密码在网络上被截取以及暴力破解登录密码的危险。 要在禁止所有用户通过ssh以用户名+密码的方式远程登录系统，修改/etc/ssh/sshd_config文件，把允许密码验证这一行改为no： # Change to no to disable tunnelled clear text passwords PasswordAuthentication no 如果只是要禁止部分用户以密码登入ssh服务，则可以使用passwd命令中的锁定用户的密码，以user用户为例： passwd -l user]]></description>
			<content:encoded><![CDATA[<p>配置好了ssh，并启用了匹配的公钥和密钥后，可以设置禁止用户用密码登录，只能用密钥登录。这样就防止了密码在网络上被截取以及暴力破解登录密码的危险。</p>
<p>要在禁止所有用户通过ssh以用户名+密码的方式远程登录系统，修改/etc/ssh/sshd_config文件，把允许密码验证这一行改为no：</p>
<pre>
# Change to no to disable tunnelled clear text passwords
PasswordAuthentication no
</pre>
<p>如果只是要禁止部分用户以密码登入ssh服务，则可以使用passwd命令中的锁定用户的密码，以user用户为例：</p>
<pre>
passwd -l user
</pre>
]]></content:encoded>
			<wfw:commentRss>http://oceanlinux.com/1242/%e7%a6%81%e7%94%a8%e7%94%a8%e6%88%b7%e5%af%86%e7%a0%81%ef%bc%8c%e5%8f%aa%e5%85%81%e8%ae%b8%e7%94%a8ssh%e7%99%bb%e5%bd%95%e7%9a%84%e6%96%b9%e6%b3%95/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
