<?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; Linux</title>
	<atom:link href="http://www.foxlog.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.foxlog.org</link>
	<description>关注 : 架构与设计,敏捷,快速开发,项目管理,执行力,SSH,RoR</description>
	<lastBuildDate>Tue, 26 Jan 2010 15:15:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>linux常用指令</title>
		<link>http://www.foxlog.org/2007/11/01/linux%e5%b8%b8%e7%94%a8%e6%8c%87%e4%bb%a4/</link>
		<comments>http://www.foxlog.org/2007/11/01/linux%e5%b8%b8%e7%94%a8%e6%8c%87%e4%bb%a4/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 06:52:17 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.foxlog.org/2007/11/01/linux%e5%b8%b8%e7%94%a8%e6%8c%87%e4%bb%a4/</guid>
		<description><![CDATA[1.临时修改ip：ifconfig eth1 192.168.1.2 netmask 255.255.255.0 永久修改Ip: /etc/sysconfig/network-scripts/ifcfg-eth1 2.修改DNS: /etc/resolv.conf 3.hostname /etc/hostname 4.查询硬件信息/proc/* 5.vsftpd : service vsftpd start No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>1.临时修改ip：ifconfig eth1 192.168.1.2 netmask 255.255.255.0</p>
<p>永久修改Ip: /etc/sysconfig/network-scripts/ifcfg-eth1</p>
<p>2.修改DNS: /etc/resolv.conf</p>
<p>3.hostname /etc/hostname</p>
<p>4.查询硬件信息/proc/*</p>
<p>5.vsftpd : service vsftpd start</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.foxlog.org/2007/11/01/linux%e5%b8%b8%e7%94%a8%e6%8c%87%e4%bb%a4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh timeout</title>
		<link>http://www.foxlog.org/2006/09/06/ssh-timeout/</link>
		<comments>http://www.foxlog.org/2006/09/06/ssh-timeout/#comments</comments>
		<pubDate>Wed, 06 Sep 2006 04:12:53 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.foxlog.org/archives/87</guid>
		<description><![CDATA[how to set the SSH timeout? a: set &#8216;TMOUT=3600&#8242; in /etc/profile fine. No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p class="postText">how to set the SSH timeout?<br />
a: set &#8216;TMOUT=3600&#8242; in  /etc/profile</p>
<p>fine.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.foxlog.org/2006/09/06/ssh-timeout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[zt]在Redhat9 Linux下安装，配置Subversion 1.3.1</title>
		<link>http://www.foxlog.org/2006/08/10/zt%e5%9c%a8redhat9-linux%e4%b8%8b%e5%ae%89%e8%a3%85%ef%bc%8c%e9%85%8d%e7%bd%aesubversion-131/</link>
		<comments>http://www.foxlog.org/2006/08/10/zt%e5%9c%a8redhat9-linux%e4%b8%8b%e5%ae%89%e8%a3%85%ef%bc%8c%e9%85%8d%e7%bd%aesubversion-131/#comments</comments>
		<pubDate>Thu, 10 Aug 2006 05:24:55 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.foxlog.org/archives/97</guid>
		<description><![CDATA[By: Wu Yin Date: 2006-06-30 Email: lazy_fox#msn.com Link： http://blog.csdn.net/wooin/archive/2006/07/11/903974.aspx 版权信息： 该文章版权由Wu Yin所有。可在非商业目的下任意传播和复制。 对于商业目的下对本文的任何行为需经作者同意。 联系方式：lazy_fox#msn.com 1. 本文需要两个文件，httpd和subversion。 ·httpd是web服务器，用来通过web访问subversion，这里是官方网站，这里是它的下载网页， 这里可以下载到httpd-2.2.2.tar.bz2。 ·subversion就是本文的主角，这里是他的官方网站，这里是它的下载网页， 这里可以下载到subversion-1.3.1.tar.bz2 2. 新建一个用户：svnroot 最好不要让root用户参与到svn的权限管理和日常的运行和维护工作中来，但是下面的一些安装和配置操作还是 需要root用户来完成的，因为有些操作只有root才能做。 3. 编译安装httpd (root用户操作)： //解压apache2安装包 # tar xvzf httpd-2.2.2.tar.gz //进入解压后的目录 # cd httpd-2.2.2 //配置apache安装，前两个参数是必须要加的，你还可以根据您的需要添加其他的参数。 //后面的参数制定你要把apache安装哪里 # ./configure &#8211;enable-dav &#8211;enable-so &#8211;prefix=/usr/local/apache2/ # make //安装 # make install # cd /usr/local/apache2/bin //启动apache服务 # ./apachectl [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<table border="0" width="800">
<tr>
<td width="80">By:</td>
<td>Wu Yin</td>
</tr>
<tr>
<td>Date:</td>
<td>2006-06-30</td>
</tr>
<tr>
<td>Email:</td>
<td>lazy_fox#msn.com</td>
</tr>
<tr>
<td>Link：</td>
<td>http://blog.csdn.net/wooin/archive/2006/07/11/903974.aspx</td>
</tr>
<tr>
<td valign="top">版权信息：</td>
<td>该文章版权由Wu  Yin所有。可在非商业目的下任意传播和复制。<br />
对于商业目的下对本文的任何行为需经作者同意。<br />
联系方式：lazy_fox#msn.com</td>
</tr>
</table>
<hr />
<table border="0" width="800">
<tr>
<td valign="top" width="30">1.</td>
<td>本文需要两个文件，httpd和subversion。<br />
·httpd是web服务器，用来通过web访问subversion，<a href="http://httpd.apache.org/">这里</a>是官方网站，<a href="http://httpd.apache.org/download.cgi">这里</a>是它的下载网页，<br />
<a href="http://apache.justdn.org/httpd/httpd-2.2.2.tar.bz2">这里</a>可以下载到httpd-2.2.2.tar.bz2。<br />
·subversion就是本文的主角，<a href="http://subversion.tigris.org/">这里</a>是他的官方网站，<a href="http://subversion.tigris.org/project_packages.html">这里</a>是它的下载网页，<br />
<a href="http://subversion.tigris.org/downloads/subversion-1.3.1.tar.bz2">这里</a>可以下载到subversion-1.3.1.tar.bz2</td>
</tr>
<tr>
<td valign="top">2.</td>
<td>新建一个用户：svnroot<br />
最好不要让root用户参与到svn的权限管理和日常的运行和维护工作中来，但是下面的一些安装和配置操作还是  需要root用户来完成的，因为有些操作只有root才能做。</td>
</tr>
<tr>
<td valign="top">3.</td>
<td>编译安装httpd (root用户操作)：</p>
<table bgcolor="#e5e5e5" border="0">
<tr>
<td><font color="green">//解压apache2安装包</font><br />
# tar xvzf  httpd-2.2.2.tar.gz<br />
<font color="green">//进入解压后的目录</font><br />
# cd  httpd-2.2.2<br />
<font color="green">//配置apache安装，前两个参数是必须要加的，你还可以根据您的需要添加其他的参数。</font><br />
<font color="green">//后面的参数制定你要把apache安装哪里</font><br />
# ./configure &#8211;enable-dav  &#8211;enable-so &#8211;prefix=/usr/local/apache2/<br />
# make<br />
<font color="green">//安装</font><br />
# make install<br />
# cd  /usr/local/apache2/bin<br />
<font color="green">//启动apache服务</font><br />
# ./apachectl  start<br />
<font color="green">//打开浏览器http://localhost/如果有测试页&#8221;It  works!&#8221;出现则证明已经安装成功。</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">3.</td>
<td>安装Subversion</p>
<table bgcolor="#e5e5e5" border="0">
<tr>
<td><font color="green">//解压SubVersion安装包 (root用户进行下面的操作)</font><br />
# tar xvzf  Subversion-1.3.1.tar.gz<br />
<font color="green">//进入解压后的目录</font><br />
# cd  Subversion-1.3.1<br />
<font color="green">//配置subversion安装</font><br />
#./configure  &#8211;with-apxs=/usr/local/apache2/bin/apxs &#8211;prefix=/usr/local/subversion<br />
&#8211;with-apr=/usr/local/apache2 &#8211;with-apr-util=/usr/local/apache2 &#8211;with-ssl  &#8211;with-zlib<br />
&#8211;enable-maintainer-mode<br />
# make<br />
<font color="green">//安装</font><br />
# make install<br />
<font color="green">//创建库文件所在的目录  (svnroot用户进行下面的操作)</font><br />
# mkdir /home/svnroot/repository<br />
<font color="green">//进入subversion的bin目录</font><br />
# cd  /usr/local/subversion/bin<br />
<font color="green">//创建仓库&#8221;test&#8221;</font><br />
#  ./svnadmin create /home/svnroot/repository/test<br />
# cd  /home/svnroot/repository/test<br />
<font color="green">//看看是不是多了些文件，如果是则说明Subversion安装成功了</font><br />
# ls –l<br />
# cd  /usr/local/subversion/bin<br />
<font color="green">//这条语句将把路径/home/user/import下找到的文件导入到你创建的Subversion  仓库中去，</font><br />
<font color="green">//提交后的修订版为1。</font><br />
# ./svn import  /home/user/import file:///home/svnroot/repository/test –m &#8220;注释&#8221;<br />
<font color="green">//不让其他人有该目录的权限</font><br />
# chmod 700  /home/svnroot/repository</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">4.</td>
<td>修改Apache配置文件</p>
<table bgcolor="#e5e5e5" border="0">
<tr>
<td># cd /usr/local/apadche2/bin<br />
<font color="green">//启动Apache </font><br />
#  ./apachect1 start<br />
# vi /usr/local/apache2/conf/httpd.conf<br />
<font color="green">//在最下面添加 </font><br />
LoadModule dav_svn_module  modules/mod_dav_svn.so<br />
LoadModule authz_svn_module  modules/mod_authz_svn.so<br />
&lt;Location /svn&gt;<br />
DAV svn<br />
SVNParentPath /home/svnroot/repository/ <font color="green">//svn父目录 </font><br />
AuthzSVNAccessFile /home/svnroot/repository/authz.conf <font color="green">//权限配置文件 </font><br />
AuthType Basic <font color="green">//连接类型设置  </font><br />
AuthName &#8220;Subversion.zoneyump&#8221; <font color="green">//连接框提示  </font><br />
AuthUserFile /home/svnroot/repository/authfile <font color="green">//用户配置文件 </font><br />
Require valid-user <font color="green">//采用何种认证  </font><br />
&lt;/Location&gt;<br />
<font color="green">   //其中authfile是通过&#8221;htpasswd  [–c] /home/svnroot/repository/authfile username password&#8221;来创建的<br />
//&#8221;Require  valid-user&#8221;告诉apache在authfile中所有的用户都可以访问。如果没有它，<br />
//则只能第一个用户可以访问新建库  </font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">5.</td>
<td>重启apache</p>
<table bgcolor="#e5e5e5" border="0">
<tr>
<td># ./usr/local/apache2/bin/apachectl restart<br />
<font color="green">//打开浏览器访问http://localhost/svn/test/，如果有东西显示就说明成功。</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">6.</td>
<td>权限管理<br />
1)增加用户</p>
<table bgcolor="#e5e5e5" border="0">
<tr>
<td># htpasswd [-c] /home/svnroot/repository/authfile wooin<br />
<font color="green">//第一次设置用户时使用-c表示新建一个用户文件。回车后输入用户密码，完成对用户的增加</font><br />
# htpasswd  authfile 用户名(加入新的用户)</td>
</tr>
</table>
<p>2)权限分配</p>
<table bgcolor="#e5e5e5" border="0">
<tr>
<td># vi /home/svnroot/repository/authz.conf<br />
[test:/] <font color="green">//这表示，仓库test的根目录下的访问权限 </font><br />
wooin = rw <font color="green">//test仓库wooin用户具有读和写权限 </font><br />
bao = r <font color="green">//test仓库bao用户具有读权限 </font><br />
[test2:/] <font color="green">//test2仓库根目录下的访问权限 </font><br />
wooin = r <font color="green">//wooin用户在test2仓库根目录下只有读权限 </font><br />
bao = <font color="green">//bao用户在 test2仓库根目录下无任何权限 </font><br />
[/] <font color="green">//这个表示在所有仓库的根目录下 </font><br />
* = r <font color="green">//这个表示对所有的用户都具有读权限 </font><br />
#[groups] <font color="green">//这个表示群组设置 </font><br />
#svn1-developers = wooin, bao <font color="green">//这个表示某群组里的成员 </font><br />
#svn2-developers = wooin<br />
#[svn1:/]<br />
#@svn1-developers = rw <font color="green">//如果在前面加上@符号，则表示这是个群组权限设置</font></td>
</tr>
</table>
<p>将这个设置完成后。重启Apache，就可以通过</p>
<p>http://localhost/svn/test</p>
<p>这个URL来访问仓库了，当然，受权限的限制，必须是合法用户才能访问且具有相应的权限</td>
</tr>
<tr>
<td valign="top">7.</td>
<td>一些备忘：<br />
1. svn checkout http://localhost/svn/hello.world</p>
<p>2. svn  commit 时的默认编辑器的环境变量$SVN_EDITOR=vi需要手动设定，用kate好像有问题</p>
<p>3.  如果linux的登录用户名密码都和svn的其中一个用户名密码相同时，在checkout的时候不会要求输入用户名密码直接就可以checkout出来。比如：linux有个用户wooin，svn也有一个用户wooin，并且密码都是一样的，当用wooin登录linux后，执行checkout，可以直接提取出源码文件，不用输入认证信息。</p>
<p>4.  在svn使用过程中牵扯到几种权限：文件系统的权限，linux系统权限，svn用户的权限，apache进程的权限。</p>
<p>文件系统的权限，linux系统权限：这里相同的意思，就是平时大家使用linux时文件夹和文件的访问权限。在  svn建立仓库，文件夹，配置文件的时候用svnroot用户，并将仓库权限设置为700，不允许其他用户直接通过文件系统查看，只能由svnroot进行管理。</p>
<p>apache进程的权限：因为所有跟仓库传输的操作都是通过apache进程进行的，所以即使你给svn用户设置了很大的权限，但是apache进程没有访问仓库或者相关文件的权限也没有用，apache进程的权限设置在  /usr/local/apache2/conf/httpd.conf 文件中配置，找到文件中的这两行：</p>
<table bgcolor="#e5e5e5" border="0">
<tr>
<td>User daemon # 将daemon改为svnroot，让apache进程以svnroot的身份运行<br />
Group daemon</td>
</tr>
</table>
<p>svn用户的权限：就是在repository/authz.conf文件中设置的权限信息，是svn用来管理仓库访问权限的。</p>
<p>5.  svn服务器设置有两种方式：http 和 svnserve。这里介绍的是http方法</p>
<p>6.  在/etc/profile的结尾设置一些svn启动时要做的工作</p>
<table bgcolor="#e5e5e5" border="0">
<tr>
<td># start apache server for svn<br />
/usr/sbin/apachectl start<br />
export  SVN_EDITOR=vi</td>
</tr>
</table>
<p>7. APR libraries 安装 SVN 的时候最好指定  &#8211;with-apr= 和 &#8211;with-apr-util= 参数到 Apache 安装的根目录<br />
（ServerRoot）下，而不是使用缺省的 SVN  安装包中自带的 apr 。否则如果你安装的 Apache<br />
版本不同有可能导致 APR 库不匹配，出现类似：<br />
Can&#8217;t set position  pointer in file &#8216;/svn/test/db/revs/1&#8242;: Invalid argument 的错误。<br />
Updated  2006-04-20 16:30 &#8212; 比如说如果你安装的是apache 2.2.0版本，就需要在编译安装svn的时候指定<br />
&#8211;with-apxs和&#8211;with-apr参数到你的apache2.2.0安装目录下：<br />
./configure  &#8211;prefix=${subversionInstallFolder} /<br />
&#8211;with-apxs=${apacheInstallFolder}/bin/apxs /<br />
&#8211;with-apr=${apacheInstallFolder} /<br />
&#8211;with-apr-util=${apacheInstallFolder} /<br />
&#8211;with-ssl /<br />
&#8211;with-zlib /<br />
&#8211;enable-maintainer-mode</td>
</tr>
<tr>
<td valign="top"></td>
<td></td>
</tr>
<tr>
<td valign="top"></td>
<td></td>
</tr>
<tr>
<td valign="top"></td>
<td></td>
</tr>
</table>
<hr /> 参考资料：<br />
1. <a href="http://bbs.chinaunix.net/viewthread.php?tid=467795&amp;highlight=svn">SVN學習筆記</a><br />
2.  <a href="http://dev.csdn.net/article/76/76170.shtm">Subversion版本管理器简单配置说明</a><br />
3.  <a href="http://www.56phone.com/56phone/bbs/read.php?tid=6949&amp;fpage=1">关于Subversion的安装、配置和权限管理</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.foxlog.org/2006/08/10/zt%e5%9c%a8redhat9-linux%e4%b8%8b%e5%ae%89%e8%a3%85%ef%bc%8c%e9%85%8d%e7%bd%aesubversion-131/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
