Setting up svn server on Ubuntu 11.04, VPS

21
Sep/11
1

Hi again after a long long long time I decided to send a new post! surprise surprise…

recently i again started playing with vps an needed to install svn server. as my clumsy friend huseyin massed up with permissions i wanted this post to stay in my blog so he can open and remember how to install svn server whenever he wants! (as far as he is online :) )

first of all it should be noted that ubuntu is installed on a VPS and I connect it via a ssh client as ‘root’, but still I’ll use sudo for the sake of the post. My name is UMUT so I will create UMUT for the username and HUSEYIN for my clumsy friens, besides I will create the repository in /home/svn and only users with permissions can access to the repo.

here are the shell commands:

sudo apt-get update
sudo apt-get install nano apache2 subversion libapache2-svn

  • at this point it may ask you if you really want to install the packages, asnwer yes by pressing ‘Y’

htpasswd -cm /etc/apache2/dav_svn.passwd UMUT

  • we created the file, it will ask you the password here, type the password

htpasswd -m /etc/apache2/dav_svn.passwd HUSEYIN

  • as the file is created we dont put -cm but -c instead, it will ask for the pass of HUSEYIN, again type the pass,

nano /etc/apache2/dav_svn.authz

  • copy and past the following 2 lines in order to give the read/write permission to everyone logged in the svn, and then ctrl+o to save and ctrl+x to exit

[/]

* = rw

svnadmin create /home/svn

nano /etc/apache2/mods-enabled/dav_svn.conf

  • a long file will show up, we need to uncomment (delete # ’s) the following lines

<Location /svn>

DAV svn

SVNPath /home/svn

AuthType Basic

AuthName “Subversion Repository”

AuthUserFile /etc/apache2/dav_svn.passwd

AuthzSVNAccessFile  /etc/apache2/dav_svn.authz

Require valid-user

#  SVNAutoversioning on

#  Satisfy Any

</Location>

cd /home/svn

mkdir dav

chmod -R 770 ./*

chown -R www-data:www-data ./*

/etc/init.d/apache2 restart

keep in mind that you need to enter http://ip_or_site_name/svn as we defined in/etc/apache2/mods-enabled/dav_svn.conf

that’s all hope it works

ref: http://blog.ortimo.com/svn-serveron-ubuntu-11-04/257/

Filed under: Ubuntu, svn

Setting Up a Home Server with Ubuntu 9.10

16
Apr/10
0

It’s being a long time since my last post in my blog but this time I wanted to come across with something different which I think might be quite useful for whom wants to assess their old PCs or laptops.

If ten years ago someone had told me that one day I will have three computers at home in my service, I only would have laughed. But today it is real :) I actually have 2 laptops (one is my mother’s which would have made me laugh even more) and one desktop.

The desktop is an AMD athlon 2500 1GB RAM and NVidia 6600GT, one of the laptops is a 512MB RAM (384MB after sharing ) intel 1.6 GHz and other laptop is a intel dualcore 1.8GHz with 2GB RAM. After buying my laptop I gave up using my PC for more than one year. It was resting in peace :)

Recently I decided to assess it and wanted to set it up as a server for downloading stuff and for experimental uses. However in my first try I couldn’t manage to install Ubuntu 9.10 as I was using my two 120GB disks with Raid0. Unfortunately Ubuntu 9.10 (yes it is the desktop version not the server one) having some problems with Raid 0 on my hardware. I removed the strip and also one of the hdds, started installation… Booom!!! my cdrom wasn’t working properly. There was only one way; to install Ubuntu via a usb drive.

Typing ‘install ubuntu from usb’ on google, I found https://help.ubuntu.com/community/Installation/FromUSBStick and https://help.ubuntu.com/community/USB%20Installation%20Media . Using UNBootin (http://unetbootin.sourceforge.net/) as advised and setting the usb drive as the boot media from my pc’s setup, installation started at last! It should be noted that if the usb drive is an external harddrive then UNbootin doesn’t seem to work, instead use an usb pendrive. Installing ubuntu from a pendrive works pretty fast and flawles.

Anyway

TO BE CONTINUED…