Wednesday, March 2, 2011

subversion control on linux

Нилээн юм болж байж subversion on linux тохируулж сурлаа хүүүүүүүүү

эхлээд linux software дотроос subversion install хийнэ
тэгээд энэ доод талын кодуудыг бичиж өгнө дөө зарим хэрэгцээгүйг нь бичих шаардлагагүй
 алгасчаарай.

useradd -d /home/resources/svn -s /bin/false -g svn svn
 1074  cd svn
 1075  dir
 1076  mkdir auth
 1077  mkdir repos
 1078  dir
 1079  cd repos/
 1080  cd..
 1081  touch auth/svn_passwdfile
 1082  cd auth/
 1083  dir
 1084  cd..
 1085  dir
 1086  chown root:www auth/svn_passwdfile
 1087  chmod 640 auth/svn_passwdfile
 1088  htpasswd2 auth/svn_passwdfile user1
 1089  htpasswd2 auth/svn_passwdfile user2
 1090  vi /etc/sysconfig/svnserve
 1091  svnadmin create repos/project1
 1092  chown -R svn:svn repos/project1/
 1093  cat repos/project1/conf/passwd
 1094  vi /opt/lampp/etc/extra/httpd-vhosts.conf
 1095  /etc/rc.d/lampp startapache
 1096  vi /opt/lampp/etc/extra/httpd-vhosts.conf
 1097  /etc/rc.d/lampp startapache
 1098  a2enmod dav
 1099  dir
 1100  a2enmod --help
 1101  vi /opt/lampp/etc/subversion.conf
 1102  vi /opt/lampp/etc/httpd.conf
 1103  /etc/rc.d/lampp restart
 1104  /etc/init.d/svnserve restart
 1105  /etc/init.d/svnserve svnserve -d -r /srv/svn/repos/mvc/restart
 1106  svnserve -d -r /srv/svn/repos/mvc/
 1107  svnserve -d -r /home/resources/svn/repos/project1/
 1108  /etc/init.d/svnserve stop
 1109  svnserve -d -r /home/resources/svn/repos/project1/
 1110  /etc/init.d/svnserve start
 1111  /etc/init.d/svnserve stop
 1112  svnserve -d -r /home/resources/svn/repos/
 1113  /etc/init.d/svnserve start
 1114  /etc/init.d/svnserve stop
 1115  svnserve -d -r /home/resources/svn/repos/project1/
 1116  /etc/init.d/svnserve start
 1117  passwd svn
 1118  /etc/init.d/svnserve
 1119  /etc/init.d/svnserve force-reload
 1120  /etc/init.d/svnserve stop
 1121  svnserve -d -r /home/resources/svn/repos/project1/
 1122  /etc/init.d/svnserve start
 1123  cat auth/svn_passwdfile
 1124  vi repos/project1/conf/passwd
 1125  vi repos/project1/conf/authz
 1126  vi repos/project1/conf/svnserve.conf
 1127  /etc/init.d/svnserve stop
 1128  svnserve -d -r /home/resources/svn/repos/project1/
 1129  /etc/init.d/svnserve start
 1130  mc
 1131  history

1 comment:

Javin @ unix find command said...

here is my list of useful cvs commands in unix , they are not comprehensive but most used by me in day to day life and kind of must know for every
body using cvs form command line.

Thanks
Javin
Top 30 Unix Interview Questions asked in Investment banks