﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-囝泺的博客[www.bluenuo.cn]-随笔分类-Linux</title><link>http://www.blogjava.net/chybox/category/26590.html</link><description>网盘[disk.bluenuo.cn]</description><language>zh-cn</language><lastBuildDate>Sun, 25 May 2008 03:47:03 GMT</lastBuildDate><pubDate>Sun, 25 May 2008 03:47:03 GMT</pubDate><ttl>60</ttl><item><title>Linux下安装使用Subversion</title><link>http://www.blogjava.net/chybox/archive/2008/05/09/199448.html</link><dc:creator>囝泺</dc:creator><author>囝泺</author><pubDate>Fri, 09 May 2008 03:41:00 GMT</pubDate><guid>http://www.blogjava.net/chybox/archive/2008/05/09/199448.html</guid><wfw:comment>http://www.blogjava.net/chybox/comments/199448.html</wfw:comment><comments>http://www.blogjava.net/chybox/archive/2008/05/09/199448.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/chybox/comments/commentRss/199448.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chybox/services/trackbacks/199448.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp; 这几天把工作环境从windows下面转到linux了，因为用的java语言开发，项目移植还是蛮容易的，但不准备再用CVS来做版本控制系统了，决定换功能较强大的SVN，于是了解了下linux下安装Subversion的方法，现总结如下<br />
<p align="center">文/囝泺 <a href="http://www.bluenuo.cn/">www.bluenuo.cn</a>&nbsp;</p>
<hr size="2" width="100%" />
<span style="color: #2000ff;"><span style="color: #020202;"><strong>编译安装相关软件</strong>（我们采用源码编译安装）</span></span><br />
<span style="color: #2000ff;"><span style="color: #020202;">a.httpd<br />
下载地址：http://httpd.apache.org<br />
下载</span></span><a href="http://apache.mirror.phpchina.com/httpd/httpd-2.2.8.tar.gz">httpd-*.tar.gz</a> (*为版本号，这里使用的是2.8.8）<br />
安装<br />
<span>
#tar -zxvf httpd-2.8.8.tar.gz<br />
#cd httpd-2.8.8<br />
#./configure --enable-dav --enable-so --enable-maintainer-mode<br />
#make<br />
#make install<br />
b.</span><span>Berkeley DB<br />
下载地址：http://www.oracle.com/technology/products/berkeley-db/index.html<br />
下载</span>Berkeley DB 4.7.25.tar.gz<br />
<span style="color: #2000ff;"><span style="color: #020202;">安装<br />
</span></span><span>
#tar -zxvf db-4.4.20.NC.tar.gz<br />
#cd db-4.4.20.NC/build_unix/<br />
#../dist/configure --prefix=/usr/local/bdb<br />
#make<br />
#make install</span><br />
<span>c.Subversion<br />
下载地址：http://subversion.tigris.org<br />
下载</span><a href="http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz">subversion-*.tar.gz</a>和<a href="http://subversion.tigris.org/downloads/subversion-deps-1.4.6.tar.gz">
subversion-deps-*.tar.gz</a>包下下来，后一个包里是一些依赖程序，把2个包放在同一个目录下，解压缩，解压的文件会自动放到同一个文件夹下。<br />
安装<br />
<span>
#tar -zxvf subversion-1.2.3.tar.gz<br />
#cd subversion-1.2.3<br />
#./configure --with-berkeley-db=/usr/local/bdb --with-apxs=/usr/local/apache2/bin/apxs<br />
#make<br />
#make install</span><br />
安装成功后你可以使用<span>
#svnadmin --version检查是否安装成功<br />
安装成功会出现<br />
</span>svnadmin，版本 1.4.6 (r28521)<br />
&nbsp;&nbsp; 编译于 May&nbsp; 6 2008，19:55:08<br />
&#8230;&#8230;&#8230;&#8230;<br />
<strong>配置 <br />
</strong>配置Subversion<br />
# mkdir /home/*/svn(*代表用户目录）<br />
# cd /usr/local/subversion/bin<br />
# ./svnadmin create /home/*/svn/test<br />
这样我们就在svn下面建立了一个test仓库<br />
修改httpd配置文件<br />
# vi /usr/local/apache2/conf/httpd.conf <font color="#008000"><br />
在最下面添加如下内容</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/*/svn/ <font color="#008000">//svn父目录 </font><br />
AuthzSVNAccessFile /home/*/svn/authz.conf <font color="#008000">//权限配置文件 </font><br />
AuthType Basic <font color="#008000">//连接类型设置 </font><br />
AuthName "Subversion.zoneyump" <font color="#008000">//连接框提示 </font><br />
AuthUserFile /home/*/svn/authfile <font color="#008000">//用户配置文件 </font><br />
Require valid-user <font color="#008000">//采用何种认证 </font><br />
&lt;/Location&gt;<br />
<font color="#008000">//其中authfile是通过"htpasswd [&#8211;c] /home/*/svn/authfile username password"来创建的 <br />
//"Require valid-user"告诉apache在authfile中所有的用户都可以访问。如果没有它，<br />
//则只能第一个用户可以访问新建库<br />
</font>修改好后保存，重启apache<br />
# ./usr/local/apache2/bin/apachectl restart <br />
<p> </p>
权限管理<br />
<p>
1)增加用户<br />
# ./usr/local/apache2/bin/htpasswd [-c] /home/*/svn/authfile wooin<br />
<font color="#008000">//第一次设置用户时使用-c表示新建一个用户文件。回车后输入用户密码，完成对用户的增加</font><br />
# ./usr/local/apache2/bin/htpasswd authfile 用户名(加入新的用户)<br />
2)权限分配</p>
<p># vi /home/svnroot/repository/authz.conf <br />
&nbsp;&nbsp;  [test:/] <font color="#008000">//这表示，仓库test的根目录下的访问权限 </font><br />
&nbsp;&nbsp;  wooin = rw <font color="#008000">//test仓库wooin用户具有读和写权限 </font><br />
&nbsp;&nbsp;  bao = r <font color="#008000">//test仓库bao用户具有读权限 </font><br />
&nbsp;&nbsp;  [test2:/] <font color="#008000">//test2仓库根目录下的访问权限 </font><br />
&nbsp;&nbsp;  wooin = r <font color="#008000">//wooin用户在test2仓库根目录下只有读权限 </font><br />
&nbsp;&nbsp;  bao = <font color="#008000">//bao用户在 test2仓库根目录下无任何权限 </font><br />
&nbsp;&nbsp;  [/] <font color="#008000">//这个表示在所有仓库的根目录下 </font><br />
&nbsp;&nbsp;  * = r <font color="#008000">//这个表示对所有的用户都具有读权限 </font><br />
&nbsp;&nbsp;  #[groups] <font color="#008000">//这个表示群组设置 </font><br />
&nbsp;&nbsp;  #svn1-developers = wooin, bao <font color="#008000">//这个表示某群组里的成员 </font><br />
&nbsp;&nbsp;  #svn2-developers = wooin <br />
&nbsp;&nbsp;  #[svn1:/] <br />
&nbsp;&nbsp;  #@svn1-developers = rw <font color="#008000">//如果在前面加上@符号，则表示这是个群组权限设置</font></p>
<p> </p>
<p>将这个设置完成后。重启Apache，就可以通过 <br />
http://localhost/svn/test <br />
这个URL来访问仓库了</p>
<p>至于在eclipse使用svn就需要自己安装svn插件了</p>
<p>这里介紹Eclipse的SVN Plugin，叫做Subclipse,官方网站的下载地址在<a href="http://subclipse.tigris.org/"><font color="#007799">http://subclipse.tigris.org/</font></a>，也提供了update site <a href="http://subclipse.tigris.org/update"><font color="#007799">http://subclipse.tigris.org/update</font></a>。<br />
Eclipse
的使用者可以通过Eclipse的插件自动下载和更新功能来安装这个插件，在Eclipse的菜单中选择Help-&gt;Software
Updates-&gt;Find and Install-&gt; Search for new features to install
-&gt;New Remote Site。URL中就输入<a href="http://subclipse.tigris.org/update"><font color="#007799">http://subclipse.tigris.org/update</font></a>，Eclipse就会自已安装上了.
</p>
<p>安装完成后，在Eclipse的plugins中就会多了5个包，命名为org.tigris.subversion.*的都应该是了。打开
Eclipse,window-&gt;show
view窗口中多了一个SVN文件夹，到此就证明svn插件成功的安装上了。具体的使用方法，在Eclipse的Help中有详细的帮助
Subclipse - Subversion Eclipse
Plugin，教你一步一步的使用SVN的客户端了。如果你对subversion想进行深入的了解，那么看看help中的Version
Control with
Subversion一定有所收获，通过本人的观察，这份文档和sbuversion安装文件中提供的官方文档一样，这里看起来就更舒服些了。</p>
<p>注：本文是总结前辈资料的成果</p>
<hr size="2" width="100%" />
<p><font size="3">囝泺</font>，武汉科技学院<br />
您可以通过其博客了解更多信息和文章：<a href="http://www.bluenuo.cn" target="_blank">http://www.bluenuo.cn</a> </p>
<p><font color="#008000"></font></p>
<p> </p>
<span style="color: #2000ff;">
</span>
<img src ="http://www.blogjava.net/chybox/aggbug/199448.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chybox/" target="_blank">囝泺</a> 2008-05-09 11:41 <a href="http://www.blogjava.net/chybox/archive/2008/05/09/199448.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>GRUB唤醒沉睡的SUSE</title><link>http://www.blogjava.net/chybox/archive/2007/10/16/153312.html</link><dc:creator>囝泺</dc:creator><author>囝泺</author><pubDate>Tue, 16 Oct 2007 08:41:00 GMT</pubDate><guid>http://www.blogjava.net/chybox/archive/2007/10/16/153312.html</guid><wfw:comment>http://www.blogjava.net/chybox/comments/153312.html</wfw:comment><comments>http://www.blogjava.net/chybox/archive/2007/10/16/153312.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/chybox/comments/commentRss/153312.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/chybox/services/trackbacks/153312.html</trackback:ping><description><![CDATA[用linux也一段时间了，前前后后装了不少版本的linux，也看了不少linux的书，但在各种发行版中，还是对suse情有独钟，因为它的友好的界面还有广泛的硬件支持，特别是suse附带了功能齐全的软件，就连播放器的解码也做得非常周到，基本上能播放大多数格式的电影跟音乐了。但由于几个月前重装windows系统，把引导破坏了，suse就一直沉睡在硬盘中，今天，借用grub，又把沉睡的suse唤醒，在使用grub的时候也遇到了不少麻烦，下面做个总结，好让下次少走点弯路。<br />
<center>文/囝泺 <a href="http://www.bluenuo.cn" target="_blank">www.bluenuo.cn</a></center><br />
<hr />
<br />
首先把GRUB下下来，为方便下次使用我把grub支持多文件系统的版本放在我的网盘<a href="http://disk.bluenuo.cn">http://disk.bluenuo.cn</a>的linux目录下，下载后提取grldr文件到C:\，现在只需要把系统的启动菜单中加上C:\GRLDR=My Grub一行，下次启动的时候就可以通过My Linux Suse10这个菜单进入grub，但现在只能使用命令来使用GRUB，接下来我们为GRUB加入菜单。<br />
在C:\下建立boot文件夹，然后进入刚建立的boot文件夹建立grub文件夹，最后，在grub目录下建立menu.lst文件，至于menu.lst里面写什么你可以查阅相关资料，笔者是通过光盘引导了以前的linux系统，仿照/boot/grub下面的menu.lst写的，原linux下的menu.lst如下
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><font style="background-color: #eeeeee">
<p><font style="background-color: #eeeeee"><span style="color: #008000"><font style="background-color: #eeeeee"># Modified by YaST2. Last modification on 日&nbsp; 4月&nbsp; 1 06:48:42 UTC 2007<br />
</font></span>color white/blue black/light-gray<br />
default 1<br />
timeout 8<br />
gfxmenu (hd1,7)/boot/message</font></p>
<p><font style="background-color: #eeeeee"><span style="color: #008000"><font style="background-color: #eeeeee">###Don't change this comment - YaST2 identifier: Original name: linux###</font></span><br />
title SUSE Linux Enterprise Desktop 10<br />
&nbsp;&nbsp;&nbsp; root (hd1,7)<br />
&nbsp;&nbsp;&nbsp; kernel /boot/vmlinuz root=/dev/sda8 vga=0x314&nbsp;&nbsp;&nbsp; resume=/dev/sda7&nbsp; splash=silent showopts<br />
&nbsp;&nbsp;&nbsp; initrd /boot/initrd</font></p>
<p><font style="background-color: #eeeeee"><span style="color: #008000"><font style="background-color: #eeeeee">###Don't change this comment - YaST2 identifier: Original name: windows###</font></span><br />
title Windows<br />
&nbsp;&nbsp;&nbsp; chainloader (hd0,0)+1</font></p>
<p><font style="background-color: #eeeeee"><span style="color: #008000"><font style="background-color: #eeeeee">###Don't change this comment - YaST2 identifier: Original name: failsafe###</font></span><br />
title Failsafe -- SUSE Linux Enterprise Desktop 10<br />
&nbsp;&nbsp;&nbsp; root (hd1,7)<br />
&nbsp;&nbsp;&nbsp; kernel /boot/vmlinuz root=/dev/sda8 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3<br />
&nbsp;&nbsp;&nbsp; initrd /boot/initrd</font></font></p>
</div>
<br />
由于现在我只需要引导suse10，所以我把启动设置跟最后一条复制到我的menu.lst里面就可以了 <br />
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; color: #000000; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><span style="color: #000000"><span style="color: #008000">#&nbsp;Modified&nbsp;by&nbsp;YaST2.&nbsp;Last&nbsp;modification&nbsp;on&nbsp;日&nbsp;&nbsp;4月&nbsp;&nbsp;1&nbsp;06:48:42&nbsp;UTC&nbsp;2007</span></span><span style="color: #000000"><br />
<img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />color&nbsp;white</span><span style="color: #000000">/</span><span style="color: #000000">blue&nbsp;black</span><span style="color: #000000">/</span><span style="color: #000000">light</span><span style="color: #000000">-</span><span style="color: #000000">gray<br />
<img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: #0000ff"><span style="color: #000000">default&nbsp;1</span></span><span style="color: #000000"><br />
<img alt="" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />timeout&nbsp;</span><span style="color: #000000">8</span><span style="color: #000000"><br />
<span style="color: #000000"><span style="color: #008000">###Don't change this comment - YaST2 identifier: Original name: linux###<br />
</span>title SUSE Linux Enterprise Desktop 10<br />
&nbsp;&nbsp;&nbsp; root<span style="color: #ff0000">&nbsp;(hd1,7)<br />
</span>&nbsp;&nbsp;&nbsp; kernel /boot/vmlinuz root=/<span style="color: #ff0000">dev/sda8 vga=0x314&nbsp;&nbsp;&nbsp; resume=/dev/sda7&nbsp;</span> splash=silent showopts<br />
&nbsp;&nbsp;&nbsp; initrd /boot/initrd</span></span></div>
其中红色标记的因个人系统而定<br />
现在grub已经能唤醒沉睡的suse了，至于grub更详细的使用，可以在网上搜索grub使用的文章，这里不在细述<br />
<br />
<font size="3">囝泺</font>，武汉科技学院<br />
您可以通过其博客了解更多信息和文章：<a href="http://www.bluenuo.cn" target="_blank">http://www.bluenuo.cn</a> 
<img src ="http://www.blogjava.net/chybox/aggbug/153312.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chybox/" target="_blank">囝泺</a> 2007-10-16 16:41 <a href="http://www.blogjava.net/chybox/archive/2007/10/16/153312.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>