Using Subversion and ViewCVS on Solaris 10
2008-04-09 04:05:09来源:互联网 阅读 ()
Author: Badcoffee
Email: blog.oliver@gmail.com
Date: Jan, 2005
Original Site: http://blog.csdn.net/yayong
CopyRight: Anyone refer to this article, must include author information and original site URL.
Summary
user, please refer to Subversion book for more details.
1. Subversion Setup
1.1 Install Subversion package
- First, grab the pkg-get package file, from URL below:
Install it with
pkgadd -d pkg_get.pkg
Then, make sure can find /usr/sfw/bin/wget command.
At last, maybe modify /opt/csw/etc/pkg-get.conf file for proxy setting:
ftp_proxy=http://proxy_server:port
http_proxy=http://proxy_server:port
export http_proxy ftp_proxy
Set envirment in /etc/profile:
PATH=/opt/csw/bin:$PATH;
SVN_EDITOR=/usr/bin/vi
export SVN_EDITOR
export PATH
- Install Subversion package
For python and apache2 support:
pkg-get -i pysvn
pkg-get -i ap2_subversion
1.2 Running a Subversion Server
- Create system account:
useradd -c "SVN Owner" -d /export/home/svn -g svn svn
mkdir /export/home/svn
chown svn:svn /export/home/svn
chmod g w /export/home/svn
- Creat repository for project
Import source code into repository:
cd [/path/to/source/tree]
svn import file:///export/home/svn/[project name]
- Setting access policy of repository:
[general]
anon-access = read
auth-access = write
password-db = passwd.conf
realm = /[project name]
Create passwd database:
/export/home/svn/[project name]/conf/passwd.conf
[users]
username1 = passwd1
.......
Setting right access permission for subversion server:
chown -R svn:svn /export/home/svn/[project name]
chmod -R g w /export/home/svn/[project name]
chmod g s /export/home/svn/[project name]/db
- Configure the subversion service:
vi /etc/rc2.d/S98svnserve
su - svn -c "/opt/csw/bin/svnserve -d -r /export/home/svn&"
chmod x /etc/rc2.d/S98svnserve
Start subversion service:
/etc/rc2.d/S98svnserve
- Check out source code to verify subversion service works correctly
2. ViewCVS Setup
2.1 Install ViewCVS package
- Install python package
- Install viewcvs package
Note:
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:终于作了决定
下一篇:突然发现CVSTrac
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash