Tag Archives: ubuntu

How to kill a zombie process

sudo kill -9 pid

Compartir es necesario

Más información: http://fcforum.net/es/

Turpial – Twitter client that works in Ubuntu Lucid

I try gwibber (the default twitter client that comes with Ubuntu Lucid) and I don’t like the UI that they proposed.  I also tried the echofon firefox extension but I wanted something integrated with the OS.

I will give it a try to Turpial it seems lighter and more intuitive.

http://turpial.org.ve/downloads/

the deb package

https://launchpad.net/~effie-jayx/+archive/turpial/+files/turpial_1.0-0ubuntu1_all.deb

Extend sudo timeout in Ubuntu

In a terminal window:

sudo visudo

Edit the file and add

Defaults timestamp_timeout = 45

This means extending the timeout to 45 minutes

Enable variable highlighting with Eclipse

There is a great functionality in Netbeans 6.8 that comes by defaut: You select a variable and then all variables in the same page are highlight:

You can enable this behavior in  Eclipse Ganymede, just go to this config page

Window->Preferences->General->Text Editors

And then change the “When mouse into hover” option  to “Enrich on click”

Setting your PHP error reporting

In your virtual host open an add/edit

php_admin_value display_errors on
php_admin_value error_reporting 6143 # for all errors notice, warnings, etc
php_admin_value error_reporting 6135 #show warnings less strict

Or edit your php.ini (example in ubuntu)

sudo vim /etc/php5/apache2/php.ini

Install Xdebug in Ubuntu Lucid Lynx

#in order to install phpsize because the pecl will need this

sudo apt-get install php5-dev

sudo apt-get install php-pear # in order to install xdebug

sudo pecl install xdebug

sudo apt-get install php5-xdebug

Edit your php.ini configuration and edit this settings

display_errors on

html_errors=on

Print a phpinfo() and check if xdebug is correctly installed. You can use the php -v command

Install Apache2 + PHP5 + MySQL + Eclipse+ PHPEclipse + Mercurial +SVN in Ubuntu 10.04 Lucid Lynx

This is sooo useful when you have a new laptop/PC is a must for every true developer…

# Instalando el servidor Apache version 2
sudo apt-get install apache2

# PHP5
sudo apt-get install php5

# Servidor MySQL
sudo apt-get install mysql-server-5.1

# Módulo de apache para mysql
sudo apt-get install libapache2-mod-auth-mysql php5-mysql

sudo apt-get install phpmyadmin  # opcional

sudo apt-get install mysql-query-browser  # opcional ( MYSQL query browser)

sudo apt-get install vim # an useful editor

sudo apt-get install meld # a freaking easy merge tool

sudo apt-get install openjdk-6-jre # yeah sun-java6-jre is  deprecated now in Lucid at least in the beta

sudo apt-get install mercurial # of course

Download Eclipse Ganymede not Galileo

http://www.eclipse.org/ganymede/

Note: There are some issues with Eclipse Galileo, when you trying to install  *obligatory* plugins like PHPEclipse, Mercurial or SVN, simply it does not work.

Add this plugins:

PHPEclipse

http://update.phpeclipse.net/update/stable/1.2.x/

Mercurial

http://www.vectrace.com/eclipse-update/

SVN

http://subclipse.tigris.org/update_1.4.x

At least but no last do a :

hg clone https://chamilo.googlecode.com/hg/ chamilo

To get your last Installation of Chamilo 😉

And for turn an SVN/Mercurial project to a PHP project in order to have the inspect function feature edit your .project file and add this:

<buildSpec>
<buildCommand>
<name>net.sourceforge.phpeclipse.parserbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>net.sourceforge.phpeclipse.phpnature</nature>
</natures>

Here the short way for install the deb packages:

sudo apt-get install apache2 php5 mysql-server-5.0 libapache2-mod-auth-mysql php5-mysql phpmyadmin  mysql-query-browser vim meld openjdk-6-jre mercurial vim

If you have some issues with the openjdk6-jre installation you may try installing this version.

Eclipse Galileo tip: Turn a X proyect into a PHP proyect

There was a way of turning a SVN proyect into a PHP proyect with the inspect functionality:

Turn SVN project into a PHP project in Eclipse

There is another way: click right in the proyect icon then chose this:
Configure-> Add PHP support

That’s it!

Ubuntu tips

An online community dedicated to tips, tweaks, hints and hacks for Ubuntu

I just love the logo:

http://www.ubuntukungfu.org/