<?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>CNlaoKe&#039;s Blog &#187; Linux</title>
	<atom:link href="http://blog.cnlaoKe.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cnlaoKe.com</link>
	<description>Rome was not built in a day!</description>
	<lastBuildDate>Wed, 25 Aug 2010 09:45:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FTP锁定用户目录</title>
		<link>http://blog.cnlaoKe.com/2010/03/31/326/</link>
		<comments>http://blog.cnlaoKe.com/2010/03/31/326/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 02:47:35 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2010/03/31/326/</guid>
		<description><![CDATA[vi /etc/vsftpd/vsftpd.conf
文件最后结尾增加
chroot_local_user=YES
最后重启ftp服务
service vsftpd restart
哦了
相关资料连接:
VSFTPD配置详解
]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2010/03/31/326/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux vpn搭建</title>
		<link>http://blog.cnlaoKe.com/2010/01/31/292/</link>
		<comments>http://blog.cnlaoKe.com/2010/01/31/292/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 16:50:50 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2010/01/31/292/</guid>
		<description><![CDATA[http://hi.baidu.com/%C2%ED%B3%A4%D5%F72008/blog/item/4e76b88e7c6c70e6f01f368f.html
]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2010/01/31/292/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>更改用户组默认目录 linux</title>
		<link>http://blog.cnlaoKe.com/2010/01/28/291/</link>
		<comments>http://blog.cnlaoKe.com/2010/01/28/291/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 09:48:46 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2010/01/28/291/</guid>
		<description><![CDATA[进入/ect,打开passwd文件.修改吧&#8230;&#8230;&#8230;&#8230;&#8230;.
]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2010/01/28/291/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下的tar打包命令示例及详解</title>
		<link>http://blog.cnlaoKe.com/2009/12/28/280/</link>
		<comments>http://blog.cnlaoKe.com/2009/12/28/280/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 13:06:57 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2009/12/28/280/</guid>
		<description><![CDATA[由于经常要下载安装软件，而提供下载的软件通常是打包好的而且通常都有压缩，所以打包压缩tar的命令是非常重要的，从网上找了一篇关于“linux下的tar打包命令示例及详解”的文章，摘录下来，以备查询和学习
鸟哥的私房菜有更详细的打包压缩解压的说明，请见 http://linux.vbird.org/linux_basic/0240tarcompress.php
tar命令
[root@linux ~]# tar [-cxtzjvfpPN] 文件与目录 &#8230;.
参数：
-c ：建立一个压缩文件的参数指令(create 的意思)；
-x ：解开一个压缩文件的参数指令！
-t ：查看 tarfile 里面的文件！
特别注意，在参数的下达中， c/x/t 仅能存在一个！不可同时存在！
因为不可能同时压缩与解压缩。
-z ：是否同时具有 gzip 的属性？亦即是否需要用 gzip 压缩？
-j ：是否同时具有 bzip2 的属性？亦即是否需要用 bzip2 压缩？
-v ：压缩的过程中显示文件！这个常用，但不建议用在背景执行过程！
-f ：使用档名，请留意，在 f 之后要立即接档名喔！不要再加参数！
例如使用『 tar -zcvfP tfile sfile』就是错误的写法，要写成
『 tar -zcvPf tfile sfile』才对喔！
-p ：使用原文件的原来属性（属性不会依据使用者而变）
-P ：可以使用绝对路径来压缩！
-N ：比后面接的日期(yyyy/mm/dd)还要新的才会被打包进新建的文件中！
&#8211;exclude FILE：在压缩的过程中，不要将 FILE 打包！
tar示例：
示例一：将整个 /etc 目录下的文件全部打包成为 /tmp/etc.tar
[root@linux ~]# tar -cvf /tmp/etc.tar /etc ]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2009/12/28/280/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx配置防盗链</title>
		<link>http://blog.cnlaoKe.com/2009/12/11/268/</link>
		<comments>http://blog.cnlaoKe.com/2009/12/11/268/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 15:44:12 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2009/12/11/268/</guid>
		<description><![CDATA[Nginx的防盗链一般的防盗链如下：location ~* \.(gif&#124;jpg&#124;png&#124;swf&#124;flv)$ {valid_referers none blocked www.xxx.com www.xxx.net;if ($invalid_referer) {rewrite ^/ http://www.xxxcom/403.html;#return 404;}}第一行：gif&#124;jpg&#124;png&#124;swf&#124;flv表示对gif、jpg、png、swf、flv后缀的文件实行防盗链第二行：www.xxx.com www.xxx.net表示对www.xxx.com www.xxx.net这2个来路进行判断if{}里面内容的意思是，如果来路不是指定来路就跳转到错误页面，当然直接返回404也是可以的。NginxHttpAccessKeyModule实现防盗链如果不怕麻烦，有条件实现的话，推荐使用NginxHttpAccessKeyModule这个东西。他的运行方式是：如我的download 目录下有一个 file.zip 的文件。对应的URI 是http://www.xxx.com/download/file.zip使用ngx_http_accesskey_module 模块后http://www.xxx.com/download/file.zip?key=09093abeac094. 只有给定的key值正确了，才能够下载download目录下的file.zip。而且 key 值是根据用户的IP有关的，这样就可以避免被盗链了。据说NginxHttpAccessKeyModule现在连迅雷都可以防了，可以尝试一下。
]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2009/12/11/268/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux 下VPN的搭建</title>
		<link>http://blog.cnlaoKe.com/2009/09/28/190/</link>
		<comments>http://blog.cnlaoKe.com/2009/09/28/190/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 03:13:38 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2009/09/28/190/</guid>
		<description><![CDATA[Click here
]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2009/09/28/190/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNUSTEP</title>
		<link>http://blog.cnlaoKe.com/2009/08/22/145/</link>
		<comments>http://blog.cnlaoKe.com/2009/08/22/145/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 16:33:59 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2009/08/22/145/</guid>
		<description><![CDATA[http://debian.ethz.ch/mirror/gnustep/GNUSTEP-amd64-1.9.iso
]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2009/08/22/145/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下SSH配合SecureCRT的密匙完美使用方法</title>
		<link>http://blog.cnlaoKe.com/2009/08/12/132/</link>
		<comments>http://blog.cnlaoKe.com/2009/08/12/132/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 06:12:12 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2009/08/12/132/</guid>
		<description><![CDATA[http://www.5ilinux.com/ssh01.html
设置允许输入密码
直接修改 vi /etc/ssh/sshd_config
PasswordAuthentication yes
然后重启ssh服务
]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2009/08/12/132/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5 下 SUN JAVA JRE 1.6 的安装</title>
		<link>http://blog.cnlaoKe.com/2009/08/03/64/</link>
		<comments>http://blog.cnlaoKe.com/2009/08/03/64/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 09:36:26 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2009/08/03/64/</guid>
		<description><![CDATA[到http://java.sun.com/javase/downloads/index.jsp下载 JRE 1.6，目前（2008年3月5日）的版本是Java SE Runtime Environment 6 Update 5.
注意：要下载的是Linux self-extracting file而非Linux RPM in self-extracting file
下面执行的命令是在root特权帐户下执行的
下载到的文件是jre-6u5-linux-i586.bin
步骤1： mv jre-6u5-linux-i586.bin /opt/
步骤2： cd /opt/
chmod +x jre-6u5-linux-i586.bin
步骤3： ./jre-6u5-linux-i586.bin
阅读完license后，输入yes
步骤4： rm jre-6u5-linux-i586.bin
步骤5： ln -s /opt/jre1.6.0_05/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
步骤6： vi /etc/profile.d/java.sh
输入export J2RE_HOME=/opt/jre1.6.0_05
export PATH=$J2RE_HOME/bin:$PATH
并在文件尾再输入一个回车形成一空行
步骤7：source /etc/profile.d/java.sh
步骤8： alternatives &#8211;install /usr/bin/java java /opt/jre1.6.0_05/bin/java 2
步骤9： alternatives &#8211;config java
然后选择 /opt/jre1.6.0_05/bin/java 所对应的数字 2
]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2009/08/03/64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos5服务器架设笔记：SVN（subversion）的安装和配置</title>
		<link>http://blog.cnlaoKe.com/2009/08/03/44/</link>
		<comments>http://blog.cnlaoKe.com/2009/08/03/44/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 09:10:11 +0000</pubDate>
		<dc:creator>CNlaoKe</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.cnlaoKe.com/2009/08/03/44/</guid>
		<description><![CDATA[SVN的安装和配置
技术准备
检查软件包your_package是否安装
#rpm -qa &#124; grep your_package
安装your_package软件包
#rpm -ivh your_package
或者
#rpm -Uvh your_package
步骤1、检查并安装SVN以及相关软件包
请确认下面软件包有没有安装，如果没有安装，请到rhel5/centos5光盘找到这些软件包并安装
openssl-0.9.8b-8.3.el5
openssl-devel-0.9.8b-8.3.el5
mod_ssl-2.2.3-6.el5
mod_auth_mysql-3.0.0-3.1
mysql-server-5.0.22-2.1
mysql-5.0.22-2.1
mysql-devel-5.0.22-2.1
subversion-1.4.2-2.el5
mod_dav_svn-1.4.2-2.el5
如果安装正常的话，应该在/etc/httpd/modules目录下能找到这些模块
mod_authz_svn.so
mod_dav_svn.so
mod_auth_mysql.so
步骤2、初始化repository
创建svn的项目库父路径，我把/svn/repos做为svn的项目库父路径。这个目录是任意的，如果是多个项目库则必须在同一个父路径下
#mkdir /svn/repos
我们通过如下命令初始化一个svn项目库TelecomRepositorys
#svnadmin create /svn/repos/TelecomRepositorys
重复上面的命令创建多个项目库，如
#svnadmin create /svn/repos/OtherRepositorys
或者你指定SVN库的存储方式
#svnadmin create &#8211;fs-type fsfs /svn/repos/TelecomRepositorys
或者
#svnadmin create &#8211;fs-type bdb /svn/repos/TelecomRepositorys
默认是bdb(Berkeley DB)的存储方式，不过一般人更喜欢fsfs的存储库方式
步骤3、创建登陆用户文件[如果用数据库认证的话，此步可忽略]
在/svn目录下创建登陆用户文件.htpasswd以及2个用户test1，test2
#htpasswd -c /svn/.htpasswd test1
#htpasswd /svn/.htpasswd test2
步骤4：创建认证数据库[如果用登陆用户文件认证的话，此步可忽略]
登陆mysql
#mysql -u root -p
创建数据库svn_auth
mysql&#62;create database svn_auth;
mysql&#62;user svn_auth;
创建用户svn
mysql&#62;GRANT ALL PRIVILEGES ON *.* TO svn@&#8217;%&#8217; IDENTIFIED BY &#8216;password&#8217; WITH GRANT OPTION;
创建表users
mysql&#62; CREATE TABLE users (
-&#62;   user_name CHAR(30) NOT NULL,
-&#62;   user_passwd [...]]]></description>
		<wfw:commentRss>http://blog.cnlaoKe.com/2009/08/03/44/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
