Archive for the ‘netbeans’ Category

Installing Xdebug on Ubuntu 10.04

By Automater on May 21st, 2010

Install Xdebug

1
sudo apt-get install php5-xdebug

Update xdebug.ini
Now we need to update the xdebug.ini file. Use the following command to open the file with gedit:

1
<code>sudo gedit /etc/php5/apache2/conf.d/xdebug.ini</code>

Change the file so it looks like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
<code>; configuration for php xdebug module
zend_extension="/usr/lib/php5/20090626/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000</code>

Restart Apache
All left to do now is restart Apache with the following command:

1
<code>sudo /etc/init.d/apache2 restart</code>

Now you can check if all is OK with phpinfo(). You should see the following text:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH

Installing the latest NetBeans in Ubuntu

By Automater on April 10th, 2010

First you have to install jdk by running this command in terminal

for jdk 6 (or whatever the latest version is)
sudo apt-get install sun-java6-jdk sun-java6-plugin

Then download netbeans ide from here

The downloaded file will be a sh file, most probably in your desktop

Now open the terminal(from Application->Accessories)

Then go to your desktop folder or the folder in which you have downloaded the installer file

cd /home/username/Desktop

Then run this command, the last portion of the command will be the name of the file you downloaded

sudo sh netbeans-6.8-ml-javase-linux.sh (6.8 was the latest version presently)

That’s it, your installer will start and the next processes are as usual.

More detailed instructions can be found in Netbeans Wiki page