Wednesday, January 26, 2011

Installing Subversion

As with everything else in Linux, installing subversion was an adventure.
Here's the process (compiled from different sources) I used in case anyone else needs it and for when I have to install it on my other computer later.


Set up users and groups (Ubuntu Help Docs for Subversion):
Had to modify the users and groups directions because they seem out of date, added from the command line instead.
sudo addgroup subversion
sudo adduser <USERNAME> subversion
sudo adduser www-data subversion

Must log out here!

Create repos:
sudo mkdir /home/svn
cd /home/svn
sudo mkdir myproject
sudo svnadmin create /home/svn/myproject

Edit file permissions:
sudo chown -R www-data:subversion myproject
sudo chmod -R g+rws myproject

Install Rabbitcvs:
Integrates nicely into Nautilus
sudo add-apt-repository ppa:rabbitvcs/ppa
sudo apt-get update
sudo apt-get install rabbitvcs-core rabbitvcs-nautilus rabbitvcs-gedit rabbitvcs-cli

Server setup? (subversionary.org)
Still need to figure out if ssh starts at boot, and if not how to start it manually or automatically.
sudo apt-get install openssh-server
svn co svn+ssh://jaime@asus/home/svn/myproject

To checkout: 
svn co <address>

To check-in:
Do stuff with document
svn add <document>
svn commit -m "<comments go here>"


Success: 
I was able to log into the playground. Checking stuff out downloaded it onto my local drive. I created a test folder and file, added, and committed them, and they surprisingly showed up in the playground, so I must've done something right.
I still don't know how well the server part works, or the best way to go about testing that. 


Sugar News:
Still haven't had time to figure out how to install actual Activities in Sugar (due by Tuesday, plenty of time left), but our updated wiki is looking very nice!

No comments:

Post a Comment