Ubuntu에 subversion을 잘 설치해서 쓰다가.. svn+ssh가 안되어서 날려버렸다.. ;;

그래서 다 지우고 다시 설치하였는데.. 또 날리면 개고생할까봐.. 일단.. 적어놓는다..

apt-get remove subversion

apt-get install subversion

저장소 폴더 생성 -
mkdir /{your_path}/svn/

sudo groupadd {your_group}
sudo usermod -a -G {your_group} {your_account}

project 생성
cd {your_path}/svn/
sudo mkdir {project_name}
sudo chown -R {your_account}:{your_group} {project_name}
sudo chmod -R g+rws {project_name}

저장소 생성
sudo svnadmin create --fs-type fsfs /home/svn/{project_name}
cd /home/svn/{project_name}

svnserve -d -r /home/svn

ssh key 생성
ssh-keygen -b 1024 -N {password} -f {keyName}
cp {keyName.pub} ~/.ssh/authorized_keys

password / auth 설정

TEST
svn mkdir -m 'Created Test' --username yeory svn://localhost:3690/{project_name}/trunk
svn mkdir -m 'Created Test' --username yeory svn://localhost:3690/{project_name}/tags
svn mkdir -m 'Created Test' --username yeory svn://localhost:3690/{project_name}/brunch
svn rm -m 'Deleted Test directory' svn://localhost:3690/{project_name}/{folder_name}

확인
svn ls svn://localhost:3690/{project_name}/

+ Recent posts