2008年7月30日 星期三

Setup SVN server

disable SELinux

yum install subversion
yum install mod_dav_svn

mkdir /var/www/svn
chown -R apache.apache svn

cd /var/www/svn

svnadmin create papers
chown -R apache.apache papers

htpasswd -c passwd someone


modify /etc/httpd/conf.d/subversion.conf as follows:

   DAV svn
   SVNParentPath /var/www/svn
  
      AuthType Basic
      AuthName "Authorization Realm"  
      AuthUserFile /var/www/svn/passwd
      Require valid-user
  

apachectl restart

How to set network devices active?

After I install the FC9, the network device, i.e., eth0, always keeps inactive. I must manually set it 'active' in the system-config-network, but it will become 'inactive' after I reboot the system. 

Fortunately, I found out a solution about it on the FedoraForum. I guess the problem was cause by the conflict between NetworkManager and system-config-network. We could use the chkconfig the turn off the NetworkManager and then turn on the system-config-network. In particular, type the following commands:

chkconfig NetworkManager off
chkconfig network on

That's it.


References:

 and