Andy Jarrett // Code. Develop. Create.

Creating a new project on Jumpbox's Trac/Subversion

First off if you don't know of Jumpbox let me give you a quick run-down
JumpBox saves you time and headaches by building virtual machines that handle all the mundane tasks related to installing and managing server based software. With a JumpBox there's no fiddling with database scripts, no editing configuration files and no worrying about whether or not you have the right version of library X to go with library Y.
In short, Jumpbox offers virtual machines of your favourite open-source software, ready-to-run for free, and all images are will run on a host of virtualisation software, check out the compatibility list hereThis is great for just testing out new software but for a nominal fee you can also purchase a license to your VM image which allows SSH connections so you can tinker more under the hood. For the trac/subversion license this costs $49 (£25ish) which when you consider the billable time you would loose setting this up with all the libraries it almost pays for its self by the time you've run the app once.Now you're up-to-speed this brings me to my post. With access terminal access you can now go in and add more projects to the trac/subversion setup. After some digging, googling, and playing around i think I have the steps:
  • From the terminal you'll need to login over SSH. With Mac's this is already built into the terminal so from the command line
    ssh admin@{jumpbox IP}
  • You'll be asked to enter the password you created when setting up your jumpbox VM. From the terminal we're going to run some basic SVN command to create a new repos.
  • sudo mkdir /storage/projects/svn/myNewProjectsudo chown admin:admin /storage/projects/svn/myNewProjectsvnadmin create /storage/projects/svn/myNewProjectsudo trac-admin /var/data/projects/trac/myNewProject initenv "myNewProject title" sqlite:db/trac.db svn /var/data/projects/svn/myNewProject /usr/share/trac/templatessudo chown -R www-data:www-data /var/data/projects/svn/myNewProjectsudo chown -R www-data:www-data /var/data/projects/trac/myNewProject
  • Next we update the Apache conf file
    sudo vi /etc/apache2/mods-enabled/dav_svn.conf
    For a quick guide in vi check out http://www.jerrywang.net/vi/ Add the following: DAV svnSVNPath /var/data/projects/svn/myNewProjectAuthType BasicAuthName "myNewProject Repository"AuthUserFile /var/data/projects/trac.passwdRequire valid-user
  • Restart Apachesudo /etc/init.d/apache2 restart

You can view you new repos at http://{jumpbox IP}/svn/myNewProject/

You can view the trac site at http://{jumpbox IP}/projects/myNewProject/


I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee. Your support keeps this site running and the coffee brewing! ☕️