Archive for the ‘Linux’ Category

lsof to the rescue!

Tuesday, April 15th, 2008

Have you ever got the error message ‘device is busy‘ and you had no idea what or who is using the device? In situations like this lsof is your best friend. Probably one of my favorite Linux commands. Name of the command stands for list open files and because everything in Linux is a file you can use it to gather information about virtually everything. When you execute it without any parameters it will display all the files that are open on your system.

To see all the files opened by process nautilus type

$ lsof -c nautilus.

To see all files opened by user ralphz type

$ lsof -u ralphz.

You can also check open files by process ID:

$ lsof -p 1233.

And one of the coolest features is to list all files that are currently open in the specified directory (recursively):

$ lsof +D /home/thor.

You can even chaeck what process and user are connected to a specific Internet host:

$ lsof -i@www.google.com.

That’s not all! Tones of other functions are available. Check man lsof for more info.

See my other video tutorials HERE.

Eclipse PDT #1.5

Wednesday, April 9th, 2008

Last week I showed you how to install Eclipse PDT but I forgot to show you how to add its shortcut to Applications menu – this episode will correct this mistake :) .

Sorry for short episode this week.

This video was made using open source tools from A to Z on Ubuntu 7.10 Gusty Gibbon.

Enjoy.

See my other video tutorials HERE.

Enjoy.


Eclipse PDT Episode #1.5 from ralphz on Vimeo.

Eclipse PDT #1

Thursday, April 3rd, 2008

This is the first of the series of video tutorials I’m planning to release about Eclipse PDT. This is the first time I’m doing something like this so please be understanding :P

Project’s homepage describes it as:

This project encompasses all development components necessary to develop PHP and facilitate extensibility. It leverages the existing Web Tools Project in providing developers with PHP capabilities.

Project Principles:

  • Intuitive and easy to learn
  • Seamless integration with the Web Tools project
  • Adherence to Eclipse standards
  • Extensibility
  • Continuous support of PHP developments

Personally I use it every day and I think it’s the best development IDE for PHP. In this video tutorial I will show you how to install Eclipse PDT 1.0.2. On Ubuntu 7.10. I’m not sure if all the commands will be clearly visible on the video so here they are in order of appearance:

  • Install Java:

$sudo apt-get install sun-java6-bin sun-java6-jre

  • Set Sun’s Java Virtual Machine (JVM) as default:

$sudo update-alternatives --config java

  • This file defines the default system JVM search order:

$vim /etc/jvm

  • Check default java:

$java -version

This video was made using open source tools from A to Z on Ubuntu 7.10 Gusty Gibbon.

Enjoy.

See my other video tutorials HERE.

Best viewed in full screen with scaling off !!!


Episode #1. Installing Eclipse PHP IDE by ralphz from ralphz on Vimeo.