Svn ������� ��� linux

Apache Subversion Binary Packages

Find packages for your operating system:

The Apache Subversion project does not officially endorse or maintain any binary packages of the Subversion software. However, volunteers have created binary packages for different distributions and platforms, and as a convenience, we maintain a list of links to them here. If there are any problems with or questions about the different binary packages please send email to the Subversion users mailing list.

Note that binary packages usually come out about a week after the corresponding source release. Please don’t post to the mailing lists asking when a binary package for a given platform will be ready. The packagers already know when new source releases come out, and work as fast as they can to make binaries available.

Binaries are typically built from the latest stable release.

Note also that this list does not include distributions of larger collections of software of which Subversion is but one piece. Several vendors offer such things, but we concern ourselves primarily with Subversion itself. As such, the listing here is limited to those packages which may be reasonably considered binary distributions of Apache Subversion alone. If you are looking for more widely scoped, Subversion-related value-add offerings, we trust that $ can facilitate that for you.

Centos Linux ¶

CollabNet (supported and certified by CollabNet; requires registration)

WANdisco (supported and certified by WANdisco; requires registration)

Debian Linux ¶

Debian Project (maintained by Debian Project; client and server; svnserve is part of the subversion package, mod_dav_svn is in the separate libapache2-mod-svn package (formerly libapache2-svn))

WANdisco (supported and certified by WANdisco; requires registration)

Источник

UNIXHOME.ORG.UA

Web → Установка и настройка Subversion, Apache, WebSvn в Debian / Ubuntu

Subversion — централизованная система управления версиями, распространяемая в исходных кодах. Так же иногда называется svn, по названию клиентской программы, входящей в стандартный дистрибутив Subversion. Разрабатывалась, как альтернатива системе CVS, обладающая всеми основными функциями CVS и свободная от ряда её недостатков.

В настроящее время Subversion используется во многих известных проектах: Apache, Samba, Google Code, SourceForge.net и многих других.

WebSvn — онлайн subversion клиент. По сути, есть не что иное, как набор PHP скриптов, предоставляющий удаленный доступ к репозиториям Subversion. Поддерживается работа с несколькими репозитариями, допускается редактирование шаблонов интерфейса, поддерживется опция Apache MultiViews и предоставляется возможность экспорта в RSS.

Установка Subversion

Следующим шагом необходимо создать группу для subversion, и добавить в нее необходимых пользователей:

Создание репозитария в Subversion
После того, как Subversion установлен, можно создавать репозитарии:

Установка и настройка Apache, WebDAV для доступа к Subversion
Необходимо установить не только apache2, но и модуль svn-сервера для apache:

Далее, необходимо включить модули для работы с WebDAV:

Следующим шагом, необходимо настроить политику доступа к репозитариям subversion через apache. Для этого необходимо отредактировать следующий файл конгурации apache:

По умолчанию, в файле все закомментировано. Необходимо расскомментировать необходимые строки, чтобы в результате получилось что-то похожее на следующее:

Далее, необходимо задать пользователей, которым разрешен доступ к subversion через apache:

В заключении, необходимо перестартовать apache, чтобы все изменения вступили в силу:

Проверка доступа к Subversion

Первым шагом, необходимо создать типовую структуру проекта в subversion и импортировать её:

В конце проверяем, что хранилище доступно на чтение и структура проекта совпадает с той, что импортировалась ранее:

Установка и настройка WebSvn
Установка WebSvn достаточно проста:

Пакет enscript необходим для подстветки синтаксиса.

В процессе установки будут заданы несколько вопросов, в частности:

— для какого типа сервера настраивается WebSvn — необходимо просто нажать enter
— родительская директория для subversion репозитариев — необходимо задать: «/var/svn-repos». Таким образом, все репозитории, которые появятся в этой директории, будут доступны для просмотра через WebSvn.
— путь к конкретному репозитарию — необходимо оставить пустым, если нет необходимости ограничивать выбор только конкретными репозиториями. В противном случае, необходимо указать полные пути к репозиториям.

Результат настройки будет сохранен в файле/etc/websvn/svn_deb_conf.inc. Сразу после установки, все репозитории будут доступны по адресу: localhost/websvn/ .

Настройка WebSvn: ограничение доступна

Однако полный доступ к репозитариям — это не всегда хорошо. В случае, если репозитарий не публичный, необходимо ограничить доступ к WebSvn только для конкретных пользователей. Для этого необходимо отредактировать файл /etc/apache2/conf.d/websvn:

Читайте также:  Tinc vpn настройка windows

Результируйющие файл конфигурации должен иметь приблизительно следующий вид:

Настройка WebSvn: редактирование шаблона

WebSvn из коробки поддерживает русский язык. Поэтому минимум необходимых настроек — это корректировка шаблона для вывода приемлимого описания проектов на главной странице WebSvn. По умолчанию, оно на английском языке и о чем не говорит пользователю, работающему с webSVN. Поэтому необходимо отредактировать следующий файл (по умолчанию используется шаблон calm):

Очевидно, что можно отредактировать весь шаблон по своему усмотрению, но для того, чтобы скорректировать описание достаточно уделить внимание лишь следующему фрагменту:

Результат, например, может иметь следующий вид:

Более подробно о правилах редактирования шаблонов WebSvn можно узнать из документации:

Источник

IT technologies in our life

Если бы компания Intel занималась разработкой человеческих существ, то внутрь каждого человека был бы помещен бит, который превращает людей обрат- но в режим шимпанзе

«Таненбаум «Архитектура Компьютера»»

Свежачёёёк

Рубрики

Ссылки

Календарег

Октябрь 2021
Пн Вт Ср Чт Пт Сб Вс
« Дек
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Настройка Subversion под Linux Debian

Появилась необходимость в репозитории для кода, настройка Subversion оказалась довольно тривеальной задачей. Запускать его можно как Демон (svnserve -d) также и через inetd (svnserve -i). Достучаться можно как через HTTP, SSH также и через стандартный SVN протокол. Те кто страдает параноей могут крутить его через SSH, мнеж для моих тривиальных задач хватает и обычного SVN протокола.

Самый простой способ запуска SVN — это работа его через inetd.
Установим необходимые пакеты

# aptitude install xinetd subversion

Создадим конфигурационный файл для запуска через inetd

Со следуюшим содержанием:

Конфиг для inetd у нас готоф, теперь только передернуть его и создать да настроить сами репозитории
Передерним inetd

Создадим деректорию где у нас будут репозитории хранитьсо

Создадим репозитории c названием admin и silver

Источник

Ubuntu Documentation

This wiki document explains how to setup Subversion alias SVN on Ubuntu. The intended audience is experienced Linux users and system administrators.

If you are new to Subversion, this section provides a quick introduction.

Subversion is an open source version control system. Using Subversion, you can record the history of source files and documents. It manages files and directories over time. A tree of files is placed into a central repository. The repository is much like an ordinary file server, except that it remembers every change ever made to files and directories.

Assumptions

It is assumed that you are aware of how to run Linux commands, edit files, start/stop services in an Ubuntu system. It is also assumed that Ubuntu is running, you have sudo access and you want to use Subversion software.

It is also assumed you have an internet connection.

Scope of this document

To make an SVN repository available to access using the HTTP protocol, you must install & configure web server. Apache 2 is proven to work with SVN. The installation of Apache 2 Webserver is beyond the scope of this document. (See ApacheHTTPserver.) However, the configuration of Apache 2 Webserver for SVN is covered in this document.

To access an SVN repository using HTTPS protocol, you must install & configure digital certificate in your Apache 2 web server. The installation and configuration of digital certificate is beyond the scope of this document. (See OpenSSL.)

Installation

Subversion is already in the main repository, so to install Subversion you can simply install the subversion package (see InstallingSoftware).

If it fails reporting dependencies, please locate the packages and install them. If it reports any other issues, please resolve them. If you cannot resolve the issue, please refer the mailing list archive of those packages.

Server Configuration

This step assumes you have installed above mentioned packages on your system. This section explains how to create SVN repository and access the project.

Create SVN Repository

There are several typical places to put a Subversion repository; most common places are: /srv/svn, /usr/local/svn and /home/svn. For clarity’s sake, we’ll assume we are putting the Subversion repository in /home/svn, and your project’s name is simply ‘myproject’

There are also several common ways to set permissions on your repository. However, this area is the most common source of errors in installation, so we will cover it thoroughly. Typically, you should choose to create a new group called ‘subversion’ that will own the repository directory. To do this (see AddUsersHowto for details):

Choose System > Administration > Users and Groups from your Ubuntu menu.

  • Click the ‘Manage Groups’ button.
  • Click the ‘Add’ button.
  • Name the group ‘subversion’
  • Add yourself and www-data (the Apache user) as users to this group

    (Note: in order to see www-data you may need to see FixShowAllUsers)

  • Click ‘OK’, then click ‘Close’ twice to commit your changes and exit the app.
  • You have to logout and login again before you are a member of the subversion group, and can do check ins.

    Now issue the following commands:

    The SVN repository can be created using the following command:

    And use the following commands to correct file permissions:

    The last command sets gid for proper permissions on all new files added to your Subversion repository.

    If you want to use WebDAV as an access method described below, repeat the chmod -R g+rws myproject command again. This is because svnadmin will create directories and files without group write access. This is no problem for read only access or using the custom svn protocol but when Apache tries to commit changes to the repository linux will deny it access. Also the owner and group are set as root. This can be changed by repeating the chown and chgrp commands listed above.

    Access Methods

    Subversion repositories can be accessed (checkout) through many different methods-on local disk, or through various network protocols. A repository location, however, is always a URL. The table describes how different URL schemas map to the available access methods.

    Schema

    Access Method

    direct repository access (on local disk)

    Access via WebDAV protocol to Subversion-aware Apache 2 web server

    Same as http://, but with SSL encryption

    Access via custom protocol to an svnserve server

    Same as svn://, but through an SSH tunnel

    In this section, we will see how to configure SVN for all these access methods. Here, we cover the basics. For more advanced usage details, you are always recommended to refer the svn book.

    Direct repository access (file://)

    This is the simplest of all access methods. It does not require any SVN server process to be running. This access method is used to access SVN from the same machine. The syntax is as follows:

    NOTE: Please note, if you do not specify the hostname, you must use three forward slashes (///). If you specify the hostname, you must use two forward slashes (//).

    The repository permission is dependant on filesystem permission. If the user has read/write permission, he can checkout/commit the changes to the repository. If you set permissions as above, you can give new users the ability to checkout/commit by simply adding them to the Subversion group you added above.

    Access via WebDAV protocol (http://)

    To access the SVN repository via WebDAV protocol, you must configure your Apache 2 web server.

    First install the following package libapache2-svn (see InstallingSoftware).

    NOTE: If you have already tried to install the «dav» modules manually, package installation may fail. Simply remove all files beginning with «dav» from the mods-enabled directory, then remove and install the package again. Let the package put files in the correct place, then edit your configuration.

    You must add the following snippet in your /etc/apache2/mods-available/dav_svn.conf file:

    NOTE: The above configuration assumes that all Subversion repositories are available under /home/svn directory.

    TIP: If you want the ability to browse all projects on this repository by going to the root url (http://www.serveraddress.com/svn) use the following in dav_svn.conf instead of the previous listing:

    NOTE: The above configuration requires authentication with any of the users specified within the file to access the repository. If you want to allow anonymous read access to the repositories add the following and lines around the «Require valid-user» line. The previous listing would become:

    NOTE: If a client tries to svn update which involves updating many files, the update request might result in an error Server sent unexpected return value (413 Request Entity Too Large) in response to REPORT request, because the size of the update request exceeds the limit allowed by the server. You can avoid this error by disabling the request size limit by adding the line LimitXMLRequestBody 0 between the and lines.

    Alternatively, you can allow svn access on a per-site basis. This is done by adding the previous snippet into the desired site configuration file located in /etc/apache2/sites-available/ directory.

    Once you add the above lines, you must restart apache2 web server. To restart apache2 web server, you can run the following command:

    Next, you must create /etc/subversion/passwd file. This file contains user authentication details.

    If you have just installed SVN, the passwd file will not yet exist and needs to be created using the «-c» switch. Adding any users after that should be done without the «-c» switch to avoid overwriting the passwd file.

    To add the first entry, ie.. to add the first user, you can run the following command:

    It prompts you to enter the password. Once you enter the password, the user is added.

    To add more users after that, you can run the following command:

    If you are uncertain whether the passwd file exists, running the command below will tell you whether the file already exists:

    Now, to access the repository you can run the following command:

    It prompts you to enter the password. You must enter the password configured using htpasswd command. Once it is authenticated the project is checked out. If you encounter access denied, please remember to logout and login again for your memebership of the subversion user-group to take effect.

    WARNING: The password is transmitted as plain text. If you are worried about password snooping, you are advised to use SSL encryption. For details, please refer next section.

    Access via WebDAV protocol with SSL encryption (https://)

    Accessing SVN repository via WebDAV protocol with SSL encryption (https://) is similar to http:// except you must install and configure the digital certificate in your Apache 2 web server.

    You can install a digital certificate issued by Signing authority like Verisign. Alternatively, you can install your own self signed certificate.

    This step assumes you have installed and configured digital certificate in your Apache 2 web server. Now to access SVN repository please refer the above section. You must use https:// to access the SVN repository.

    Access via custom protocol (svn://)

    Once the SVN repository is created, you can configure the access control. You can edit /home/svn/myproject/conf/svnserve.conf file to configure the access control.

    NOTE: svnserve.conf is sensitive to whitespace, be sure not to leave any whitespace at the start of a line or it will not be able to read the file.

    For example, to setup authentication you can uncomment the following lines in the configuration file:

    After uncommenting the above lines, you can maintain the user list in passwd file. So, edit the file passwd in the same directory and add new user. The syntax is as follows:

    For more details, please refer the file.

    Now, to access SVN via svn:// custom protocol either from the same machine or different machine, you can run svnserver using svnserve command. The syntax is as follows:

    Once you run this command, SVN starts listening on default port (3690). To access the project repository, you must run the following command:

    Based on server configuration, it prompts for password. Once it is authenticated, it checks out the code from SVN repository.

    To synchronize the project repository with the local copy, you can run update sub-command. The syntax is as follows:

    For more details about using each SVN sub-command, you can refer the manual. For example, to learn more about co (checkout) command, please run:

    Start svnserve at bootup

    One can start the svnserve daemon at bootup using an initd script. Look at Michał Wojciechowski Blog post for instructions and a good initd script for svnserve.

    Start svnserve at bootup using upstart

    On recent upstart based Ubuntu versions you can place an upstart config file in /etc/init/svnserve.conf. See the example svnserve.conf; however, you will most likely need to edit it after reading the upstart documentation and the svnserve man page.

    After placing the config file you can start svnserve with:

    Start svnserve at bootup using xinetd

    An alternative method to run svnserve at startup is to install xinetd, and then add the following line to /etc/xinetd.conf (replacing ‘svnowner’ and ‘/home/svn’ with appropriate values)

    Access via custom protocol with SSH encryption (svn+ssh://)

    It is not necessary to run the SVN server (svnserve) in order to access SVN repositories on a remote machine using this method. However, it is assumed that the SSH server is running in the remote machine with the repository and it is allowing incoming connections. To confirm, please try to login to that machine using ssh. If you can login, then everything is perfect. If you cannot login, please address it before continuing further.

    The svn+ssh:// protocol is used for accessing SVN repositories with SSH based encryption for secure data transfer. To access a repository using this method, run the following command:

    NOTE: You must use full path (/home/svn/myproject) to access an SVN repository using this method.

    Based on the SSH server configuration, it prompts for password. You must enter the password you use to login via ssh. Once it is authenticated, it checks out the code from SVN repository.

    You can also refer the SVN book for details about the svn+ssh:// protocol.

    Источник

    Читайте также:  Сборка windows 10 20h2 домашняя с активатором 64 bit
    Оцените статью