page_header

donderdag 4 november 2010

Restore Subversion repository

Followed instructions on ArchLinux

Logged on to previous install

Dumped the repository: svnadmin dump /var/svn > /tmp/svnrepo.dump


Logged on to Ubuntu server 10.10 install

mounted partition containing the previous install: sudo mount /dev/sda6 /mnt/temp

Dumped the repository: sudo svnadmin load /var/svn < /mnt/temp/tmp/svnrepo.dump

Change added group and changed permissions:
sudo groupadd svnusers
sudo usermod -a -G svnusers www-data
sudo usermod -a -G svnusers hans
sudo chown -R www-data:svnusers /var/svn
sudo chmod -R g+w /var/svn/db/

BubbleBoy install Subversion with Web access

Followed instructions on HowToGeek.com

Install the software: sudo apt-get install subversion libapache2-svn

Create a repository: sudo svnadmin create /var/svn

Edit the configuration file: sudo vim /etc/apache2/mods-enabled/dav_svn.conf

Uncomment the opening and closing Location tag
Uncomment the line DAV /svn
Set the correct path to the repository SVNPath /var/svn
Enable Basic Athentication uncomment AuthType, AuthName, AuthUserFile

Create the authentication file: sudo htpasswd -cm /etc/apache2/dav_svn.passwd [username]

Restart Apache server: sudo /etc/init.d/apache2 restart

I was able to access the Subversion repository on BubbleBoy

dinsdag 2 november 2010

Add content to BubbleBoy

Mount previous install on /mnt/temp: sudo mount /dev/sda6 /mnt/temp

Copy content across
First created archive directory: sudo mkdir /var/www/archive
Copied a directory structure: sudo cp -rv /mnt/temp/var/www/dev /var/www/archive
Copied the index file: sudo cp /mnt/temp/var/www/index.html /var/www

Installed vim: sudo apt-get install vim

Used vim to change paths mentioned in the index file

maandag 1 november 2010

BubbleBoy add Apache

Executed: sudo apt-get install apache2

Worked like a charm, was able to access the server: http://192.168.1.150

Error message on deamon start-up: "Could not reliably determine the server's fully qualified ..."

Added servername to server configuration file
sudo vi /etc/apache2/http.conf
Added line: ServerName hdr.is-a-geek.com

Restart server: sudo /etc/init.d/apache2 restart