[우분투]내 CVS repository 가지기

atie의 이미지

노트북에 우분투 설치하고 cvs 옮기면서 저도 나중에 참조하려고 적어 놓는 글입니다. (본인 책임하에 임의로 가져다 다른 사이트에 올리거나 배포해도 됩니다. 출처를 밝힐 필요도 없습니다.)

여기에는 user와 group을 명령어로 처리를 했지만 gnome 데탑에서 System-->Administration-->Users and Groups에서 작업을 하셔도 됩니다.

혹, viewcvs template 에러가 나는 경우는 다음의 링크를 참조하거나, viewcvs 소스에서 가져다가 쓰셔도 될 듯합니다. (브리지에서 한 번인가 업데이트가 있었는데 수정이 되었는지 확인은 하지 않았습니다.)
http://bbs.kldp.org/viewtopic.php?t=59897&highlight=viewcvs

언제나처럼, 요점만 짧게...

Quote:

sudo apt-get install cvs viewcvs enscriprt xinetd

sudo cvs -d /usr/local/cvsroot init

sudo chown -R cvs:cvs /usr/local/cvsroot
sudo chmod ug+rwx /usr/local/cvsroot
sudo chmod o-rwx /usr/local/cvsroot
sudo chmod u+s /usr/local/cvsroot
sudo ln -s /usr/local/cvsroot /cvs

/etc/xinetd.d/cvspserver

service cvspserver
{
  port = 2401
  socket_type = stream
  protocol = tcp
  wait = no
  user = root
  passenv = PATH
  server = /usr/bin/cvs
  server_args = -f --allow-root=/cvs pserver
}

sudo useradd -M -s /sbin/nologin cvs
sudo useradd -M -s /sbin/nologin anonymous

/etc/group : cvs (group) <-- atie, cvs, anonymous (user)

/usr/local/cvsroot/CVSROOT/passwd

atie:#$%^&:cvs   //알아서 각자...
anonymous::cvs

/usr/local/cvsroot/CVSROOT/readers

anonymous

보너스 viewcvs :

/etc/viewcvs/viewcvs.conf
diff

38,39c38,39
< #     icons
< #     docroot
---
> #    icons
> #    docroot
72c72
< cvs_roots = cvs: /cvs
---
> cvs_roots = cvs: /var/lib/cvs
80c80
< #svn_roots = svn: /svn
---
> svn_roots = svn: /var/lib/svn
138c138
< address = <a href="mailto:whoever@gmail.com">CVS Admin</a>
---
> address = <a href="mailto:cvs-admin@insert.your.domain.here">No admin address has been configured</a>
141c141
< main_title = atie's cvs
---
> main_title = Repository
164c164,168
< forbidden =
---
> forbidden =
>
> # Some examples:
> #
> # Disallow "example" but allow all others:
400c404
< icons = /viewcvs/icons
---
> icons = /icons
406c410
< docroot = /viewcvs
---
> #docroot = /doc
450c454
< use_enscript = 1
---
> use_enscript = 0
477c481
< allow_tar = 1
---
> allow_tar = 0

/etc/apache2/conf.d/viewcvs.conf

Alias /viewcvs "/usr/share/viewcvs"

viewcvs permission denied :
sudo chmod -R a+rX /usr/local/cvsroot

Forums: 

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.