- sudo apt-get update
- sudo apt-get install subversion
- cd /var
- sudo mkdir svn
- sudo svnadmin create /var/svn/repos
- sudo adduser svn
- sudo chown -R svn.svn svn
- sudo vigr
svn:x:1001:yourname"
Install Openssh:
- sudo apt-get install openssh-server
- svn co svn+ssh://pwong@localhost/var/svn/repos to make sure ssh is working
- chmod 0700 ~/.ssh
- chmod 0600 ~/.ssh/known_hosts
- sudo apt-get install libapache2-svn apache2
sudo vi /etc/apache2/mods-enabled/dav_svn.conf to remove comments for following lines:
DAV svn
SVNPath /var/svn/repos
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.authz
Require valid-user- sudo htpasswd -cb /etc/apache2/dav_svn.authz pwong password
- sudo /etc/init.d/apache2 force-reload, then check http://localhost/svn/
- sudo apt-get install trac python-setuptools libapache2-mod-python enscript
- sudo mkdir /var/www/trac
- sudo trac-admin /var/www/trac/repos initenv, accept defaults, and enter /var/svn/repos for repository.
- cd /var/www
- sudo chown -R www-data.svn trac
- cd /etc/apache2/mods-enabled/
- sudo vi python.conf to create w new config file
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.authz
Require valid-user
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/www/trac
PythonOption TracUriRoot /trac- sudo /etc/init.d/apache2 force-reload, then check http://localhost/trac/
- sudo apt-get install sun-java6-jdk
- sudo apt-get install tomcat6 tomcat6-admin
- sudo vi /usr/share/tomcat6/bin/startup.sh to add "export JAVA_HOME=/usr/lib/jvm/java-6-sun"
- sudo vi /usr/share/tomcat6/bin/shutdown.sh to add the some line to the file
- sudo vi /etc/init.d/tomcat6 to add the same line to the file
- sudo vi /etc/tomcat6/tomcat-users.xml to add "
" - sudo /etc/init.d/tomcat6 restart, then check http://localhost:8080
- sudo wget -q -o - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
- sudo vi /etc/apt/sources.list to append "ded http://pkg.jenkins-ci.org/debian binary/" to the file
- sudo apt-get update
- sudo apt-get install jenkinz
- sudo vi /etc/default/jenkinz to change the http port from 8080 to 8180. Otherwise, Jenkins won't be started at the default port 8080. Check http://locahost:8180 for Jenkins
- sudo /etc/init.d/jenkins start
- sudo apt-get install maven2 ant
- cd ~/MyProject
- mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=superapp
- cd superapp
- mvn package
- java -cp target/superapp-1.0-SNAPSHOT.jar com.mycompany.app.App
- mvn clean
- mkdir superapp-structure
- mv superapp-structure/ ..
- cd ..
- mv superapp superapp-structure/trunk
- mkdir superapp-structure/branches
- mkdir superapp-structure/tags
- sudo svn import superapp-structure file:///var/svn/repos/superapp-repository/superapp -m "First import.". The superapp-repository will be visible at http://localhost/trac/repos/browser
- svn co file:///var/svn/repos/superapp-repository/superapp/trunk superapp