Media Temple SVN with Subclipse

So I recently decided I was gonna start my own SVN server for my side projects that always seem to get loose with versions of the code base never versioned properly and basic development ugliness.
Luckily, I use Media Temple for my hosting and they are so awesome as to allow even the lowly Grid-Server customers to setup SVN repositories on their accounts. So I dutifully followed the tutorials from Media Temples Knowledge Base and still came up short. Some may say what follows is obvious but it stumped me for hours:
1. Getting SSH access to your Grid-Server Account:
This is covered in this article from Media Temple's Knowledge Base but what stumped me for 30 minutes was which username and password to use. Luckily Media Temple are smart enough to keep this info for you in an easy to find location. Simply log into the Media Temple account center, click the admin button next to the domain you will use and click the 'Server Administration' button, there you will find the current Username and Password to use for using ssh. You connect with a command like:
ssh serverusername@s#####.gridserver.com
where ##### is your gridserver id from Media Temple which you can find by clicking the 'Server Guide' button in the admin for you domain.
2. Creating the SVN Repository
Once your have your ssh access we need to follow the instructions from this great tutorial but modify it for a Grid Service account, e.g.:
Create an svn dir
mkdir data/svn && cd data/svn
Create the svn and repository:
svadmin create --fs-type fsfs repositoryname
Then we need to change repository config located at data/svn/repositoryname/conf/svnserve.conf so it looks like the below (as shown by Ingrid Alongi).
To do this we can use any terminal text editor, the ssh command to open that file using vi while the current directory is data/svn
vi svn/reponame/conf/svnserve.conf
When the file is open change it like this:
anon-access = none
auth-access = write
password-db = passwd
realm = Whatever
3. Start your daemons
Last Step is something I saw nowhere else but from the above mentioned blog which seems to finish the setup process, which is to start the svn daemon which are basically the background engine of the svn.
svnserve -d
4. Connecting via Eclipse
So now you have your repository setup, to connect to it via Eclipse, open the 'SVN Repository Exploring'. This is the Subclipse plugin you downloaded before hand, if you did now, download it and start here again.
In this perspective, click the add SVN Locaiton button. This connection I got by trial and error, details matter...
Connection Location:
svn+ssh://serveradmin%serverusername@s#####.gridserver.com/home/#####/data/svn/repositoryname
where 'serveradmin' is really 'serveradmin', serverusername is the same as you used to connect via ssh to the server, ##### is always just the grid-server id, and repository name is the name you gave your repository in step 2. You user your server password.
This should be it...
COMMENTS (0)