Skip to main content

Posts

Showing posts from March, 2012

Hosting WordPress On OpenShift

If you’ve not heard of OpenShift, it’s: "a free, cloud-based application platform for Java, Perl, PHP, Python, and Ruby applications." OpenShift uses git to publish files to your site, so the general approach is to make your application locally, commit files to git and then push them to OpenShift. In practice this works very well, but there are a couple of gotcha’s that I encountered – I’ll explain those later. OpenShift express supports Java (with full AS7 support), Ruby, PHP, Perl and Python apps. In this post, I’m going to show the steps needed to host WordPress at OpenShift Express. Installing the client tools So, the first stage in setting up on OpenShift is to install the OpenShift client tools. On Ubuntu, this is achieved with apt-get $ sudo apt-get install ruby $ sudo apt-get install rubygems $ sudo apt-get install rhc Creating a domain and an application After installing the OpenShift tools, the next stage is to create a domain name to host the applicati...

Choosing a Java Version on Ubuntu

When you have got multiple versions of Java installed, you can choose which one you want to use by running the update-alternatives command. Running this command shows a list of installed Java JDKs and JREs allowing one to be selected as the default that is used when java needs to be executed. $ sudo update-alternatives --config javac If you prefer to use a gui instead of the command line, you can execute galternatives instead and define the default versions of software with the following dialog. $ sudo galternatives

Creating a Shortcut to Eclipse on the Ubuntu Unity Dock

If you use Eclipse on Ubuntu, you will probably have found that the version in the Ubuntu repositories doesn’t have all the plugins you’re used to, and will have installed Eclipse from a download at eclipse.org If this is the case, you can create a shortcut launcher to Eclipse using the gnome-desktop-item-edit application enabling Eclipse to be pinned to the Unity Dock. gnome-desktop-item-edit isn’t installed with a clean copy of Ubuntu however. To install run the following: $ sudo apt-get install gnome-panel After installation, you can create a new launcher by executing the following command: $ gnome-desktop-item-edit --create-new ~/.local/share/applications This will cause the following window to be displayed. Enter all the relevant details into the window (including selecting the icon) and press OK. This will create an Eclipse launcher. If you then navigate to this folder, you can drag and drop the Eclipse icon onto the Dock to create the pinned shortcut to Eclipse.