CVS сервер Сравнение версий

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
wiki:руководство_по_ubuntu_server:система_управления_версиями:cvs_server [2012/09/04 09:45]
[CVS сервер]
wiki:руководство_по_ubuntu_server:система_управления_версиями:cvs_server [2012/09/04 10:25] (текущий)
[Добавление проектов]
Строка 12: Строка 12:
 ====Установка==== ====Установка====
  
-To install ​CVS, run the following command from a terminal prompt:+Для установки ​CVS, выполните следующую команду в терминале: 
 +<​code>​sudo apt-get install cvs</​code>​
  
-sudo apt-get install ​cvs +После установки **cvs** вам придется установить **xinetd** для запуска/остановки ​cvs сервераВ командной строке выполните следующую команду для установки ​xinetd: 
- +<​code>​sudo apt-get install xinetd</​code>​
-After you install cvs, you should install ​xinetd ​to start/stop the cvs serverAt the prompt, enter the following command to install ​xinetd: +
- +
-sudo apt-get install xinetd+
  
 ====Настройка==== ====Настройка====
  
-Once you install ​cvs, the repository will be automatically initializedBy default, the repository resides under the /​srv/​cvs ​directoryYou can change this path by running following command+После установки ​cvs хранилище будет автоматически инициализированоПо умолчанию хранилище размещется в каталоге ​/​srv/​cvs. ​Вы можете изменить этот путь следующей командой
- +<​code>​cvs -d /​your/​new/​cvs/​repo init</code>
-cvs -d /​your/​new/​cvs/​repo init +
- +
-Once the initial repository is set up, you can configure xinetd to start the CVS server. You can copy the following lines to the /etc/​xinetd.d/​cvspserver file.+
  
 +Как только начальное хранилище установлено,​ вы можете настраивать **xinetd** на запуск CVS сервера. Вы можете скопировать следующие строки в файл /​etc/​xinetd.d/​cvspserver.
 +<​code>​
 service cvspserver service cvspserver
 { {
Строка 40: Строка 37:
      ​disable = no      ​disable = no
 } }
 +</​code>​
  
-Be sure to edit the repository if you have changed the default repository ​(/​srv/​cvs) ​directory+<​note>​Убедитесь,​ что отредактировали путь до хранилища,​ если вы меняли расположение по умолчанию ​(/srv/cvs).</​note>​ 
-Once you have configured ​xinetd ​you can start the cvs server by running following command:+После настройки ​xinetd ​вы можете запустить svc сервер следующей командой: 
 +<​code>​sudo /​etc/​init.d/​xinetd restart</​code>​
  
-sudo /etc/init.d/xinetd restart+Вы можете убедиться,​ что CVS сервер работает,​ выполнив следующую команду:​ 
 +<​code>​sudo netstat -tap | grep cvs</code> 
 +Когда вы выполните эту команду,​ вы должны увидеть следующую строку (или что-то подобное):​ 
 +<​code>​tcp ​       0      0 *:​cvspserver ​           *:* LISTEN</code> 
 +С этого момента вы можете добавлять пользователей,​ новые проекты и управлять CVS сервером.
  
-You can confirm that the CVS server is running by issuing the following command: +<note important>​CVS позволяет пользователю добавлять пользователей независимо от установленной операционной системы. Возможно простейший способ ​это использовать пользователей линукс для CVSоднако это яляется потенциальной угрозой безопасности. Обратитесьпожалуйстак руководству по CVS для деталей.</​note>​
- +
-sudo netstat ​-tap | grep cvs +
- +
-When you run this commandyou should see the following line or something similar: +
- +
-tcp        0      0 *:​cvspserver ​           *:* LISTEN  +
- +
-From here you can continue to add usersadd new projectsand manage the CVS server. +
- +
-CVS allows the user to add users independently of the underlying OS installation. Probably the easiest way is to use the Linux Users for CVS, although it has potential security issues. Please refer to the CVS manual for details.+
  
 ====Добавление проектов==== ====Добавление проектов====
  
-This section explains how to add new project to the CVS repositoryCreate the directory and add necessary document and source files to the directoryNow, run the following command to add this project to CVS repository+Эта часть описывает как добавить новый проект в хранилище ​CVS. Создайте каталог и добавьте в него необходимые документы и исходные файлыТеперь выполните следующую команду для добавления проекта в хранилище ​CVS: 
 +<​code>​
 cd your/​project cd your/​project
 cvs -d :​pserver:​username@hostname.com:/​srv/​cvs import -m \ cvs -d :​pserver:​username@hostname.com:/​srv/​cvs import -m \
 "​Importing my project to CVS repository"​ . new_project start "​Importing my project to CVS repository"​ . new_project start
 +</​code>​
 +
 +<note tip>Вы можете использовать переменную окружения CVSROOT для хранения корневого каталога CVS. Используя переменную CVSROOT, вы можете избежать использования опции -d в команде выше.</​note>​
  
-You can use the CVSROOT environment variable to store the CVS root directory. Once you export the CVSROOT environment variable, you can avoid using -d option in the above cvs command. +Строка **new_project** ​это метка производителяа **start** - метка выпуска(релиза)Они не имеют значения в данном контекстено поскольку ​CVS требует их наличияони должны присутствовать.
-The string new_project is a vendor tagand start is a release tagThey serve no purpose in this contextbut since CVS requires themthey must be present.+
  
-When you add a new projectthe CVS user you use must have write access to the CVS repository ​(/​srv/​cvs). ​By default, the src group has write access to the CVS repositorySo, you can add the user to this group, and he can then add and manage projects in the CVS repository.+<note important>​Когда вы добавляете новый проектпользователь ​CVS должен иметь доступ на запись в хранилище ​CVS (/​srv/​cvs). ​По умолчанию группа ​src имеет право записи в хранилище ​CVS. Поэтому вы можете добавить пользователя в эту группу и он сможет управлять проектами в хранилище ​CVS.</​note>​
  
 ---- ----