You can get a pdf edition of this article from here
<script type="text/javascript">
var MarginLeft = -50; //浮动层离浏览器右侧的距离
var MarginTop = 120; //浮动层离浏览器顶部的距离
var Width = 118; //浮动层宽度
var Heigth= 66; //浮动层高度
//设置浮动层宽、高
function Set()
{
document.getElementById("FloatDIV").style.width = Width + 'px';
document.getElementById("FloatDIV").style.height = Heigth + 'px';
}
//实时设置浮动层的位置
function Move()
{
var b_top = window.pageYOffset
|| document.documentElement.scrollTop
|| document.body.scrollTop
|| 0;
var b_width= document.body.clientWidth;
document.getElementById("FloatDIV").style.top = b_top + MarginTop + 'px';
document.getElementById("FloatDIV").style.left = b_width - Width - MarginLeft + 'px';
setTimeout("Move();",10);
}
Set();
Move();
</script>
Subversion is an application used for version control, it is meant to become a replacement of CVS Concurrent Versions System. Subversion is also known as svn.
This how-to will show how to setup svn repositories accessible throught http by using apache2 and the DAV module.
This tutorial is splitted in 4 parts: install neccessary packages, create the repository structure, configure apache and create the first repository.
Neccessary packages:
First of all we need to install the required packages:
apt-get install subversion libapache2-svn
Repository structure:
The projects are going to be hosted on /var/svn/repository. We need to create to directories and give full permission to the apache user:
mkdir /var/svn
mkdir /var/svn/repository
Now that the directory exist, we need to give write access to the apache user:
chown www-data:www-data -R /var/svn/repository
chmod 770 -R /var/svn/repository
Configuring Apache:
Now, we need to modify apache svn module configuration file, edit /etc/apache2/mods-available/dav_svn.conf and make sure the following argument are properly setted up:
...
SVNParentPath /var/svn/repository
#SVNPath /var/svn/repository
.....
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
...
|
In order to be able to track who modify the different files of the project, we need to create users. Create the first user (tester) and supply a password:
htpasswd -c /etc/apache2/dav_svn.passwd tester
Creating a first repository:
Get apache user access (so files and directories are created with proper rights:
su www-data
and create your first repository (example):
svnadmin create /var/svn/repository/example
import your project:
svn import /path/to/projectexample file:///var/svn/repository/example/examplev1 -m"initial import"
Now, get back to root user (Ctrl-D) and restart apache:
/etc/init.d/apache2 restart
Your project is now avalaible to the different user you will add in /etc/apache2/dav_svn.passwd .
User tester can now access the project at http://svnhostaddress/example and checkout a first copy to his computer, modify files and commit back his changes to the server
分享到:
相关推荐
HOWTO: Subversion for Windows with Apache server - a beginner's guide
NULL 博文链接:https://felixli.iteye.com/blog/1121671
比较好的版本控制入门:SubVersion SVN
项目中使用的是1.4.7,作为...Change the format of a Subversion working copy to that of SVN_VERSION. --skip-unknown-format : skip directories with unknown working copy format and continue the update
目的:构建一个通过Apache的DAV扩展实现的SVN版本控制系统,支持Trac在线管理,以及简单的SVN操作
svn+apache+完整图解+配套软件(Subversion+apache)
subversion+apache+svn服务器配置图解
DAV svn SVNParentPath C:\SVN_repos AuthType Basic AuthName "Subversion repositories" AuthUserFile C:\SVN_repos\passwd AuthzSVNAccessFile C:\SVN_repos\access.conf Require valid-user ApacehPasswd...
实效版本控制:Subversion使用指南(第2版).zip
NULL 博文链接:https://412887952-qq-com.iteye.com/blog/1335229
Jenkins subversion svn插件 离线安装
sc create svn binpath= "C:\svn\bin\svnserve.exe --service -r R:\SVNRepository" displayname= "Subversion 版本服务器" depend= Tcpip ** 注意:将上面命令行中的 R:\SVNRepository 替换为自己的 SVN 版本库...
SVN服务端subversion SVN客户端TortoiseSVN最新版本
使用Subversion进行版本控制针对 Subversion 1.4(根据r2866编译) 参照网页版 http://svndoc.iusesvn.com/svnbook/1.4/制作而成。 目录 前言 序言 读者 怎样阅读本书 本书约定 排版习惯 图标 本书的结构 本书是...
1 假设安装Apache至D:\Apache2 (%Apache_HOME%) 2 复制附件解压后里面的*.dll和*.so到%APACHE_HOME%\modules 3 修改%APACHE_HOME%\conf\httpd.conf,增加或修改: LoadModule dav_module modules/mod_dav.so ...
Apache subversion1.10.3是svn服务端,主要用于代码提交,托管等团队合作的工具。
The document you are currently reading contains a lot of general information about converting from CVS, and specifically how to use cvs2svn to convert your repository to Subversion. cvs2git....
注:如果你先安装Apache,再安装Subversion,进入Sibversion的安装目录(默认为c:\program files\Subversion),找到文件httpd/mod_dav_svn.so、mod_authz_svn.so、libdb44.dll,将它们拷贝到Apache的modules目录...
svn:Subversion(svn)简明教程,翻译作品
Window下的SVN+Apache搭建往往出现版本不一致造成的搭建错误,apache_2.2.14-win32-x86-openssl-0.9.8k.msi在网站可以下到,但是 Setup-Subversion-1.6.6.msi无法在官网下载,希望对你有帮助