Christoffer Kjølbæk I have a blog, therefore I am…

1Nov/096

Howto use Eclipse with PHP and SVN in Ubuntu 9.10

This little guide will show how to set up Eclipse for developing PHP sites using PHP Development Tools Project and Subversion.

Install Eclipse Galileo from repository:

sudo apt-get install eclipse

A number of dependencies are required inside Eclipse, which has to be added. Start Eclipse from the menu, and select Help > Install new software... The below list of update sites has to be added, which is done be typing the URL in "Work with", click Add and then type the name in the name field followed by Ok. Do this for the below update sites (name followed by URL):

EMF, http://download.eclipse.org/modeling/emf/updates/releases/
MyLyn, http://download.eclipse.org/tools/mylyn/update/e3.4/
GEF, http://download.eclipse.org/tools/gef/updates/releases/
DLTK, http://download.eclipse.org/releases/galileo/
Webtool, http://download.eclipse.org/webtools/updates/

PDT
Add http://download.eclipse.org/tools/pdt/updates/2.0/ with name PDT. Open "PDT SDK 2.1.2" and select "PHP Development Tools (PDT) Runtime Feature", click Next twice, accept the license and click Finish.

Subclipse
SVN integration (or one of them) in Eclipse is called Subclipse and is installed through update sites as well. Select Help > Install new software... and add http://subclipse.tigris.org/update_1.6.x into the "Work with" field and click Add type "Subclipse" in name and click Ok. Select all three options and click Next, Next, accept License and click Finish.

Checking out a project
Select File -> New -> Other in the new window select SVN -> Checkout Projects from SVN and click Next.

Select "Create a new repository location", click Next. Type SVN repository in URL, click Next. Type username and password if required. Select the part of the repository containing the project, click Finish.

If the repository not already holds project settings for Eclipse, select "Check out as a project configured using the New Project Wizard" and click Finish. In the New Project Wizard select PHP -> PHP Project and click Next. Give the project a name and you are ready to go - have fun! :)

1Nov/090

Re-install / upgrade to Ubuntu 9.10 and keep encrypted data from previous version

When Ubuntu first started with encrypted hard drive support, I made a LVM system inside the encrypted system. I do not like to upgrade Ubuntu from one version to another, and I do not want to copy all my data for each installation. My LVM system therefore have root, swap and home, so that home can survive the re-installation.

Unfortunately, the installer (the alternative one) do not recognise the encrypted hard drive, and is therefore not able to use it. This little guide helps you to reuse your LVM layout - and your data!

NB: Use this guide at your own risk!