Realistic Landscape Creation Tool
 

Your Position: Join Wing -> Setup SVN Environment -> Setup SVN under Linux

SVN in terminal


1. Install subversion

    $sudo aptitude install subversion
or:
    $sudo apt-get install subversion

2. Create project folders

Example for folders:

    $mkdir wing
    $mkdir wing/source
    $mkdir wing/homepage

3. Checkout

The following commands can checkout source code from repository.

    $cd wing/source
    $svn co https://wing-007.svn.sourceforge.net/svnroot/wing-007/source/trunk

The following commands can checkout homepage from repository.

    $cd wing/homepage
    $svn co https://wing-007.svn.sourceforge.net/svnroot/wing-007/homepage/trunk

SVN and Eclipse


Install C++ compilers and debuggers:

    $sudo apt-get install build-essential

Install java

    $sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-fonts
    $sudo gedit /etc/jvm

Add following line at the top:

/usr/lib/jvm/java-6-sun

Set up environment:

    $echo 'export JAVA_HOME=/usr/lib/jvm/java-6-sun' >> ~/.bash_profile
    $echo 'export PATH=$PATH:$JAVA_HOME/bin' >> ~/.bash_profile
    $. ~/.bash_profile

Make sure you see correct JAVA version:

    $java -version

Sample output:

java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

Install Eclipse

    $sudo apt-get install eclipse eclipse-cdt

In order to load eclipse with the Sun JVM, edit the /etc/eclipse/java_home file. Add the path of the Sun JVM above the GCJ JVM entry.

/usr/lib/jvm/java-6-sun
/usr/lib/jvm/java-gcj
  [...]

To ensure that the change has happened, open Eclipse and click on Help -> About Eclipse SDK -> Configuration details and look for this line:

  [...]
-vm
/usr/lib/jvm/java-6-sun/bin/java
  [...]