Ubuntu 13.10: Programming/Editors

This post is part of my install notes for my Ubuntu 13.10 setup.

These are the steps that I took to set up my programming environment.  Since I dabble in a myriad of different little projects, I need a myriad of different tools.

GVim

GVim is a multi-purpose editor that I like to use.  I simply installed it from the software center.

In addition, I created the personal plugin folders in my home directory.  The plugin folders went under ~/.vim

Vim Plugin Folders

Also, I put my configuration file in ~/.vimrc.

Brackets

I have really liked using Brackets for my PHP/Angular/HTML development.  It’s easy to install.

I just downloaded the deb package from the website:

Brackets Download

Java

I installed the OpenJDK Java 7 Runtime from the Software Center.  I also had to check the additional option for the Web Browser plugin:

Installing Java Browser Plugin

Here are some handy links for testing to make sure Java installed properly:

Eclipse

I downloaded the latest 4.2.2 version (3.8.1 is version in the Software Center) from the Eclipse Website.  I just downloaded the Java EE, 64-bit version. I had downloaded it in the download folder.  So, I just extracted it there:

cd ~/Downloads
tar -xzvf eclipse*.tar.gz

Then, I copied it to /usr/share:

sudo cp -r eclipse /usr/share/

Rather than put the eclipse binary on the path, I did a symbolic link to put it in the /usr/bin directory:

sudo ln -s /usr/share/eclipse/eclipse /usr/bin/eclipse

Next, I created the icon so that I could create the Menu shortcut.  I had to convert the xpm:

cd /usr/share/eclipse/
sudo convert icon.xpm -resize 48x48 /usr/share/icons/eclipse.png

I used MenuLibre to add a shortcut to the menus to make launching it easier:

Adding Eclipse to the Menu

After that, Eclipse launched fine.  I am getting a little lazy, and rather than documenting installing the plugins, let me just point you to my old post for screenshots.

The short end is just installing the plugins from Help > Install New Software.  This time, the site was already there:
http://download.eclipse.org/releases/kepler

And, I added these plugins:

  • Collaboration > Command Line Interface for Java Implementation of Git
  • Collaboration > Eclipse Git Team Provider
  • Collaboration > Eclipse GitHub Integration with task focused interface
  • Collaboration > Java Implementation of Git
  • Collaboration > Java Implementation of Git – optional Java 7 libraries
  • Collaboration > Mylyn Context Connector: Eclipse IDE
  • Collaboration > Mylyn Context Connector: Java Development
  • Collaboration > Mylyn Context Connector: Plug-in Development
  • Collaboration > Mylyn Task List
  • Collaboration > Mylyn Task-Focused Interface
  • Collaboration > Mylyn Versions Connector: Git
  • General Purpose Tools > Swing Designer
  • General Purpose Tools > Swing Designer Documentation
  • Web, XML, Java EE and OSGi Enterprise Development > Eclipse Web Developer Tools
  • Web, XML, Java EE and OSGi Enterprise Development > Eclipse Java Web Developer Tools
  • Web, XML, Java EE and OSGi Enterprise Development > Eclipse XML Editors and Tools
  • Web, XML, Java EE and OSGi Enterprise Development > Javascript Development Tools
  • Web, XML, Java EE and OSGi Enterprise Development > PHP Development Tools

Java FX

I had to install Sun’s Java.  I couldn’t find the jfxrt.jar in my OpenJDK installation. So, I installed it using the repository from WebUpd8:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Next, I installed the JavaFX Scene Builder by downloading the DEB package from Oracle’s website.  Now, the 2.0 version is out.

Finally, to make developing with Java FX easier, I installed the e(fx)clipse plugin for Eclipse.  Their install page is pretty good and detailed.

I just added the Site URL to Window > Preferences under Install/Update > Available Software:
http://download.eclipse.org/efxclipse/updates-nightly/site

On the Install Dialog, I picked e(fx)clipse – install > e(fx)clipse – IDE – Kepler.  Then, I just let it do it’s thing:

Installing e(fx)clipse

Android SDK

I downloaded the SDK from Google’s Website.  Google has apparently changed the way they deliver the SDK now.  Now, it comes with a complete branded Eclipse installation.  But, I have Eclipse already setup for my other development, and  I would like to combine them. So, I am copying out just the SDK directory and moving that to my ~/app directory.

So, my Android SDK home is now: ~/app/android-sdk.  Then, I added the following download site to Eclipse:
https://dl-ssl.google.com/android/eclipse/

I installed all of the “Developer Tools” from that site:

Installing Android SDK in Eclipse

After Eclipse restarted, I set the Android Home Directory to the SDK folder, under Window > Preferences and the Android section.

Setting the Android SDK direcitory

I also decided to try the Android Studio, too.  I downloaded it from Google’s website.  Then, it was just a matter of copying the extracted folder to my bin directory and using the LibreMenu program to create a shortcut to the bin/studio.sh.

SQL Developer

I use SQL Developer for querying Oracle databases when I am at a client with Oracle.  So, here’s how I installed it: I downloaded the zip file from Oracle’s SQL Developer Download Page.

I downloaded the Windows 32/64 bit version, the one without the jre (sqldeveloper-4.0.0.13.80-no-jre.zip).  Next, I installed the “sqldeveloper-package” from the software center.  Note that you have to search for “sqldeveloper” because “sql developer” does not find it. I ran this to build and install the package:


make-sqldeveloper-package -b output \
sqldeveloper-4.0.0.13.80-no-jre.zip
sudo dpkg -i sqldeveloper_4.0.0.13.80+0.2.4-1_all.deb

When I started it for the first time, it asks for the location of java.

 Oracle SQL Developer
 Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.

Type the full pathname of a JDK installation (or Ctrl-C to quit), the path will be stored in /home/skp/.sqldeveloper/4.0.0/product.conf

I answered:


/usr/lib/jvm/java-7-oracle/

Now, it begins to start, but it crashes before it gets past the splash screen. I’ll have to troubleshoot that later.

Update: I figured it out — see this post.

Update: Git

I forgot to install git.  I had already installed the command-line tool with some dependency or something earlier.  Still, I like using the Git Cola Gui to help with some tasks.

Installing Git Cola GUI

Resources

Leave a Comment

Your email address will not be published. Required fields are marked *