How to install SmartSVN on Ubuntu 10.10

来源:互联网 发布:疯狂java讲义电子版 编辑:程序博客网 时间:2024/05/22 05:32

I’m sure there are some nice SVN clients available for Linux, but I’m used to using SmartSVN. Here’s how I got it working on Ubuntu Linux 10.10.

1) You’ll need Sun Java JRE 1.5 or higher or SmartSVN won’t run. Open Synaptic Package Manager and go to Settings -> Repositories. Under the Other Software tab, make sure that Canonical Partners is ticked.

2) Search for sun-java6-jre and install. Once installed, find sun-java6-jre again in the list of packages. Right-click and select properties, then find the installed files list. In my installation, there was an entry for /usr/lib/jvm/java-6-sun-1.6.0.22 – make a note of the location on yours.

Location of sun-java6-jre in Synaptic Package Manager
3) Download the generic Linux archive from Syntevo site

4) Extract the tar to your home folder. I created a sub-directory called Apps and put it in there. In the bin subfolder, open smartsvn.sh in a text editor.

5) Near the top of the file (around line 6), uncomment the Java Runtime Environment line and set the path to the location noted above. I set the line to SMARTSVN_JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.22

Changing location of jre66) Now you can create a shortcut on the Applications menu. Right-click on Applications and select Edit Menus. Under the Programming header, create a new Application entry named SmartSNV. The command should be /home/jason/Apps/smartsvn-6_6_3/bin/smartsvn.sh or browse to your bin/smartsvn.sh file.

7) Click on the icon and navigate to the SmartSVN bin folder. Select one of the png images – I went for smartsvn-32.png. Now you can close and your new shortcut is created.

Setting up the shortcut for SmartSVN on Linux8) Select SmartSVN from the menu and enjoy :)

转载地址:http://iheartubuntu.wordpress.com/2011/01/20/how-to-install-smartsvn-on-ubuntu-10-10/

原创粉丝点击