Migrating Subversion

A little bit ago I needed to migrate all my subversion repositories over to my fresh new Ubuntu server.  I personally manage the server so it also gets interesting trying to do upgrade Ubuntu by installing a fresh new install.

Migrating to another server

Now let’s migrate to a new server. Just need to export it and then create a repository and then import it.
Export

svnadmin dump REPOS_PATH > export.txt

Import
First things first.  Make sure you have your users specified.  Here is a quick tip on adding new users for your subversion system:

htpasswd -b /svn/users/passwords username password

or

htpasswd /svn/users/passwords username

Create New Repository

svnadmin create /svn/repos/test
chown -R apache.apache /svn/repos/test

Quick Setup
We just need to configure Apache to point to the correct subversion location.  On Ubuntu I have the following specified in my apache.conf file:

<Location /svn/thoughtsway>
DAV svn
SVNPath /home/svn/location_of_svn_repository
AuthType Basic
AuthName “<NAME_OF_YOUR_SERVER> Subversion System”
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>

Resources

  • http://www.ferdychristant.com/blog/articles/DOMM-6NFJ6J
  • http://www.subversionary.org/howto/setting-up-a-server-on-fedora-core-4
  • http://www.polarion.org/index.php?page=overview&project=fasttrack

Eclipse Helios on STS

Here is the latest that I have found!

“If all goes as planned we’ll release STS 2.3.3.M2 including the usual installers next week.”

Looks like they have it some what working in the nightly builds.

Eclipse Helios

The new version of Eclipse is out!

Eclipse Helios

Here is a demo of the new Java features which is interesting to watch.

There are a lot of nice additions!

A couple things I have noticed so far:

  • Support for formatting Annotations correctly!
  • It has added additional out-of-the-box support for JavaScript.
  • I was able to creat a new JavaScript formatter!  I have been waiting for this feature so that our whole team can use the same formatting options like the Java formatter.
  • I would not recommend installing Aptana yet as it is not fully compatible with the new version of Eclipse.
  • I would recommend creating a new workspace if you previously installed Aptana.  Otherwise, you will get errors trying to find Aptana specific settings (as it is not installed).

Groovy Links

Here are some useful links for getting your hands wet with Groovy/Grails programming:

Programming Resources

Groovy resource: http://pleac.sourceforge.net/pleac_groovy/index.html

Plug-ins: Grails Plugins

Forum: http://grails.1312388.n4.nabble.com/

Blogs: http://groovyblogs.org/entries/recent

Book references: Recipes!

Design Ideas

Get the ideas flowing: 99designs.com

Quickly generate rounded corners: http://www.roundedcornr.com/

Joomla Installation Issue on Ubuntu Fix

MOSUSER::Store Failed

Problem

mosuser:: store failed
Duplicate entry ‘0’ for key 1 SQL=INSERT INTO mos_users(‘name’, ‘username’, ’email’, ‘password,’gid’, ‘registerDate’) VALUES (‘Dave’, ‘Dave’, ‘xxxx@yourdomain.com’, ‘xkjojosjclkvjosjojxkc’, ’18’,’2004-08-05′)

Solution
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

Redmine with GIT Repository Setup on Ubuntu

This is a few pointers on setting up redmine having git as a repository hooked up to it.  This also takes into account using gitosis for authentication.

Installed under:
/opt/redmine
Forwarding from Apache to the Webbrick server
<VirtualHost *:80>
Servername timetrack.ryanalberts.com
ProxyPass / http://127.0.0.1:3001/
ProxyPassReverse / http://127.0.0.1:3001/
</VirtualHost>
Had to add the exact IP for redmine in the proxy pass for security reasons:
/etc/apache2/sites-enabled$ sudo vi ../mods-enabled/proxy.conf

Linux Change Password

Change user password (you will need to have proper privileges in order to do someone elses)
passwd   Change your own password.
passwd someone   Change someone’s password.
passwd -d someone   Delete someone’s password.