Ubuntu12.04 Installation and Subversion(svn)

Ubuntu Installation Guide

Abstract

 

This document contains installation instructions for the Ubuntu 12.04 system (codename “‘Precise Pangolin’”), for the AMD64 (“amd64”) architecture.

Table of Contents

 

  1. 1.      System Requirements
  2. 2.      Installation Howto
  3. 3.      Installion ssh service (Optional)
  4. 4.      Firewall configuration

Subversion

Install

 

$ sudo apt-get install subversion apache2 libapache2-svn

CREATE SUBVERSION REPOS

 

$ mkdir -p /home/mikezhou/svn/repos/

$ svnadmin create /home/mikezhou/svn/repos/project01

Import file

 

$ svn import directory file:///home/mikezhou/svn/repos/project01/ -m "commit tmp"

Access mode

 


模式


访问方式


file://


直接访问库 (在本地磁盘)


http://


通过 WebDAV 协议访问带有 Subversion 的 Apache2 web 服务器。


https://


与 http:// 相同,但有 SSL 加密


svn://


通过自身协议访问 svnserve 服务


svn+ssh://


与 svn:// 一样,但使用 SSH 遂道

(file://)

$ svn co file:///path/to/repos/project

or

$ svn co file://localhost/path/to/repos/project
 

(http://)

 

Operation:

$ sudo chown www-data:www-data -R /home/mikezhou/svn/

$ sudo chmod 770 -R /home/mikezhou/svn/

Create passwd:

$ sudo htpasswd -c /etc/apache2/passwd user_name

// “-c”=Create a new file.

General add user:

$ sudo htpasswd /etc/apache2/passwd user_name

Access control:

$ sudo vim /etc/apache2/dav_svn.authz

#groups

[groups]

admin=mikezhou

[project01:/]

@admin=rw

*=

Configure dav_svn.conf:

 

$ sudo vim /etc/apache2/mods-enabled/dav_svn.load

Add line:

LoadModule authz_svn_module /usr/lib/apache2/modules/mod_authz_svn.so

 

$ sudo vim /etc/apache2/mods-enabled/dav_svn.conf

<Location /svn/>

DAV svn

SVNParentPath /home/mikezhou/svn/repos

SVNListParentPath on

AuthType Basic

AuthName "Subversion Repository"

AuthUserFile /etc/apache2/passwd

AuthzSVNAccessFile /etc/apache2/dav_svn.authz

Require valid-user

</Location>

$ sudo apache2ctl restart
Warning:
apache2: Could not reliably determine the server‘s fully qualified domain name, using 127.0.1.1 for ServerName

handling method:

sudo vim /etc/apache2/httpd.conf

ServerName 127.0.0.1    #add this line
$ sudo apache2ctl restart
 

Now use http access:

$ sudo ufw allow 80

$ svn co http://192.168.145.131/svn/

Installion ssh service (Optional):

$ sudo apt-get install openssh-server

check sshd service startup?

$ ps –e | grep sshd

If not startup can use commond:

$ sudo /etc/init.d/ssh start

Custom port:

Edit /etc/ssh/sshd_config ‘port 22’ then restart sshd

Firewall configuration

$ sudo apt-get install ufw

$ sudo ufw enable

$ sudo ufw default deny

$ sudo ufw allow 22/tcp

$ sudo ufw status

时间: 2024-08-24 00:26:00

Ubuntu12.04 Installation and Subversion(svn)的相关文章

Ubuntu12.04下安装Subversion并进行配置

Ubuntu下安装Subversion还是很简单的,只要输入sudo apt-get install Subversion就可以安装了. 主要的难点在于对权限的配置上. 安装完subversion后,就可以创建一个仓库了. 这里我以个人的例子来讲解,大家可以按照自己的需要选择不同的目录. 我是建在了/var/svn下,以这个作为仓库目录. 创建一个项目svnadmin create project 这是在/var/svn下就可以看到project这个目录了,在这个目录下可以看到一个conf目录,

Ubuntu12.04 安装 图形界面 SVN客户端 Rabbitvcs

sudo add-apt-repository ppa:rabbitvcs/ppa sudo apt-get update sudo apt-get install rabbitvcs-core rabbitvcs-nautilus3 rabbitvcs-gedit rabbitvcs-cli killall nautilus

ubuntu12.04添加开机启动程序(开机启动svn服务)

环境:ubuntu12.04 在/etc/init.d目录建立一个脚本文件svnd.sh cd /etc/init.d touch svnd.sh chmod +x svnd.sh vim svnd.sh 输入如下内容: #!/bin/bash #svnserve startup svnserve -d -r /ysh/svn 更新修改权限: update-rc.d svnd.sh defaults

Ubuntu12.04编译vlc-android详细流程

作者:wainiwann 出处:http://www.cnblogs.com/wainiwann/ 本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利. 摘要:本文主要介绍vlc-android在ubuntu下编译的过程. 最近研究了下 vlc-android 的编译,网上一搜资料确实不少,不过大部分都是千遍一律(也不否认有非常详细的).不能说这些都毫无价值,多少也能给编译vlc带来一些线索. 编译环境使用的是64位ubun

linux环境c++开发:ubuntu12.04使用llvm3.4.2

什么是 clang/llvm/libc++[1] clang 是最近几年(在大财主苹果的支持下)发展得非常好的 C 家族语言 (包括C/C++/Obj-C/Obj-C++) 编译器前端,所谓前端,就是它可以认识 C/C++/Obj-C/ObjC++ 代码,并且把它转化成某种更接近机器指令的形式.理论上说,“某种形式”是语法树,但作为一个工具,clang 实际上会帮助你调用链接器生成可执行代码,这跟 gcc 是一样的. llvm 是一个通用的编译优化和代码生成平台,它定义了一个中间语言 LLVM

Ubuntu12.04 安装PyCharm

原文地址 http://www.cnblogs.com/zhcncn/p/4027025.html 1. 下载 选择Linux Tab,选择下载免费的Community Edition[1].当前版本是3.4 2. 安装PyCharm 按照官网给出的安装指导[2]进行安装. (1) Copy the pycharm-*.tar.gz to the desired installation location (make sure you have rw permissions for that d

ubuntu12.04+fuerte 下跑通lsd-slam——数据集

第一次在博客园写文章,写的不好的地方,还请大家指出来:) lsd-slam(下载链接:https://github.com/tum-vision/lsd_slam)提供了两种方法,一种是用数据集(下载地址http://vision.in.tum.de/lsdslam),一种是用usb摄像头,github也有相应的使用说明,不是很详细,下面介绍我的步骤.ps:也是一个slam新手,很多东西不懂,有错误的地方请大家指出 环境:ubuntu12.04+fuerte 目标:使用数据集,跑通lsd-sla

openbr on linuxmint13/ubuntu12.04/debian7 x64 facial recognition [Compile from source!!!]

Openbr is a great project for facial detecting. System: linuxmint 13 x86_64 Face recognition,  motion / gender / age / detection Here it's website: http://www.openbiometrics.org/ It's github page: https://github.com/biometrics/openbr Awareness Just n

Ubuntu12.04 Skype4.2 提示Skype can&#39;t connect,安装Skype4.3

最近几天Skype突然不能登录啦,以为是自己密码记错啦,重置啦一下密码,发现仍然提示”Skype can't connect“,我的版本是Ubuntu12.04 Skype4.2 尝试啦很多办法仍然不能解决,后面在论坛上看到更新到Skype4.3可以解决这个问题,发现果然有效,下面是安装过程: Before we proceed with the Skype 4.3 installation steps, you have to remove any previous version of sk