Here's the command I used to add the user
sudo adduser --system --no-create-home --group svn
That gets you the no-password thing, uses the right UIDs for system accounts, and skips creating the home directory.
|
|
메뉴릿
카테고리
전체공지사항 계획 Languages Humanities Mathematics Education Economics Computers HCI Media Engineering Natural Science TmaxSoft BluemoonSoft 미분류 최근 등록된 덧글
짝짝짝
올 많이 컸네 일구by izeye at 11/12 제가 갖고 있는 소스 파일.. by 언제나19 at 10/17 우왕 고맙습니다~~. .. by 언제나19 at 10/16 http://nethack.byus.. by uriel at 10/16 근본적으로 activation .. by uriel at 10/16 다운 안되는데여;;;;; by 강병진 at 10/14 일단, 형변환 자체가 .. by uriel at 04/11 어제는 괜히 xfix 실행.. by 언제나19 at 01/18 좀 기다리세요. 내년 4.. by 언제나19 at 11/04 바꾸어라.. 언제나19-.. by kang at 11/03 최근 등록된 트랙백
textcube를 다시 설치by 공부가 본업. gnuplot을 c 함수로 .. by 상품 + 글 의견 남기기 gsl, gnu scientific li.. by 상품 + 글 의견 남기기 ubuntu, ati에서 dual.. by 상품 + 글 의견 남기기 Data browser로 sql d.. by 공부가 본업. 근황 by Yi jeon goo 근황 by Yi jeon goo 라이프로그
![]() 화려한 휴가 ![]() 좋지 아니한가 ![]() 300 포토로그
메모장 실험
메모장도 로그가 남나 실험
이전블로그
more...이글루링크
◈ ◈ ◈ 바다가 머무는 ..Mono log Liard's newspaper Yochin의 대전생활. M log art.oriented * Sea of Blue * 이글루 파인더
|
ubuntu에 subversion 설치 에 설치하기 링크가 깨져서 다른 링크를 덧붙인다. 구글 제일 처음에 나오는 Setting up a Subversion Server on Ubuntu Gutsy Gibbon server ...를 보고,sudo apt-get install openssh-server 를 하니깐 이제 되네. 우분투 8.04에서 서브버전을 설치해 보아요.에는 한글로 설명이 친절하게 돼 있다.Installing SubversionUse apt-get: sudo apt-get update Creating a RepositoryLet's say you want your repository to be in /var/svn/repos, type in these commands: cd /var In order to control who has access to the repository we will now add auser who will own the repository files. Adding a user also adds a groupwith the same name. sudo adduser svn Now make it impossible for anyone to log in as this user by editing /etc/passwd to set the svn user shell to /bin/false. Do this using the vipw command. Find the line which starts svn (it should be the last line in the file) and change /bin/bash to /bin/false. Now change the ownership of the repository files. sudo chown -R svn.svn svn In order for someone to be permitted to use the repository they must be added to the svn group. My user name is martin so I am going to add myself to the svn group. sudo vigr Go to the end of the file and add your user name to the end of the line which starts svn. The end of the file should look similar to this: admin:x:110:martin Now set up an ssh server, clients will connect to this machine using ssh: sudo apt-get install openssh-server The repository can now be accessed using the svn+ssh protocol. Test this as follows: svn co svn+ssh://username@machinename/var/svn/repos You will be prompted about the RSA fingerprint of the server and askedfor your password. You should end up with a directory called repos which is a working copy of your new repository. As things stand you will be asked for your password every time youconnect to the machine which is rather tedious. You can alsoauthenticate with ssh by using a public/private key pair. Ifyou are using a Windows client then install PuTTY and use PuTTYgen tocreate a key. Don't forget to save the public and private key files.There is a text box at the top of the PuTTYgen window labeled "Publickey for pasting into OpenSSH authorized_keys file", you need to put theline of text in that box into a file called .ssh/authorized_keys2 in your home directory on the server. Set the permissions on the files like this: chmod 0700 .ssh On the Windows machine fire up pageant (another program which comeswith PuTTY) and load your private key. You should now be able toconnect to the server without being asked for a password. I prefer todisable password based access to the server by editing /etc/ssh/sshd_config and adding the line PasswordAuthentication no. On a Linux client use ssh-keygen to create the key pair. ApacheSubversion also supports the WebDAV protocol, to set this up Apacheis needed. I am assuming that you installed Ubuntu as a LAMP server. sudo apt-get install libapache2-svn The following isn't recommended for a real implementation as we aregoing to add to the default web files. It would be far better to createa new virtual host, but that is a subject itself. Ubuntu has a file for each active virtual host in /etc/apache2/sites-enabled, after installing Ubuntu server there will be a file called 000-default in the sites-enabled directory and this is the file we are going to edit. cd /etc/apache2/sites-enabled In the <Location /svn/repos> Then execute this command: sudo /etc/init.d/apache2 force-reload You should now be able to see the repository at the URL http://machinename/svn/repos. Securing Web AccessAdd this to the location directive: AuthType Basic Now add a user name and password to the Apache password file: sudo htpasswd -cb /etc/apache2/passwords martin dgjan08 And another forced reload: sudo /etc/init.d/apache2 force-reload Now if you visit the repository URL you will have to enter a valid user name and password. TracTrac is a ticketing system and Wiki which integrates very well with Subversion. Start by installing Trac: sudo apt-get install trac python-setuptools libapache2-mod-python enscript Now create a Trac database: sudo mkdir /var/www/trac Then answer its questions, take the defaults, our Subversion repository is in /var/svn/repos. Now to get Apache to run Trac. cd /var/www Head back to /etc/apache2/sites-enabled and edit 000-default again, adding this: <Location /trac/[[:alnum]]+/login"> And then run this again: sudo /etc/init.d/apache2 force-reload Building Trac from sourceIf you want the most recent version of Trac (0.10.4) then you will have to build and install it. Do the following: sudo apt-get remove trac The rest of the instructions are the same. Wed, 2007-12-19 16:32 ( categories: ) Adding the user Submitted by william_pietri on Wed, 2009-02-11 21:41. Here's the command I used to add the user sudo adduser --system --no-create-home --group svn That gets you the no-password thing, uses the right UIDs for system accounts, and skips creating the home directory. 이 글과 관련있는 글을 자동검색한 결과입니다 [?]
|
|||