Archive for the 'Linux/Unix' Category

Fetch error installing Java on Ubuntu 11.04. Solved!

I am running Ubuntu 11.04 and was trying to install the Java OpenJDK 6.0 (and 7.0) on my system but I received the following error: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing? I tried installing several different Java packages but all of them failed with the same error. Finally, [...]

Click here to read the full post

How to install PostgreSQL 8.4 on CentOS 5.5

If you have tried installing PostgreSQL database on CentOS 5.5 using yum, you will notice that you an old, outdated version! There are several ways to get the 8.4.x version of Postgres installed on this OS, but here is the quick and easy method! Installing PostgreSQL 8.4.x on CentOS 5.5 Download the PostgreSQL 8.4 repository [...]

Click here to read the full post

How to install Ruby 1.8.7 on CentOS 5.5 Linux

Have you tried doing yum install ruby in CentOS 5.5? If you have the default repositories configured, you will notice that it installs the ancient Ruby 1.8.5. Not ready to move up to Ruby 1.9, but would like to install Ruby 1.8.7 – well here is how to do it! Install Ruby 1.8.7 on CentOS [...]

Click here to read the full post

Linux – How to disable ‘Last Login’ welcome message

When you login (via SSH or other method), to a Linux box, you will see a Welcome message that displays your Last Login time and date as well as other general information regarding the system. Here is an example: Linux sp-ubuntu 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010 i686 GNU/Linux Ubuntu 10.10 Welcome [...]

Click here to read the full post

Linux – How to find the number of files in a folder?

This seems like a pretty simple piece of information to ask for, but then why is there no intuitive way for Linux novices to accomplish this? In Windows command-line, the output of the dir command includes the number of files and the number of folders in the current directory. Well, here are some ways you [...]

Click here to read the full post

Free Linux utility to convert PDF to Text file

Are you looking for a fast, easy, and free way to convert a PDF document to a plain-text .txt format? Luckily, there is a built-in program in most Linux distributions that can do this called pdftotext. To convert, simply do: pdftotext -layout filename.pdf filename.txt

Click here to read the full post

How to create a large number of files in Linux (thousands or millions)

Do you need an ultra fast way to create a large number of files in Linux? Perhaps, you are doing some load testing for an application and you need to create 1000 or even 1,000,000 files in the matter of seconds. Well, here is how to do it! There are two parts to creating these [...]

Click here to read the full post

Using Linux ‘head’ command to preview a file

This article will show you how to use the head command in Linux. head is used to print out the beginning of a file. For example, this is useful when you have a giant text file and you want to preview the contents without attempting to open the entire file. Here are some common examples [...]

Click here to read the full post

How to add a Windows/Linux network printer in Ubuntu 9.10

This article will show you how to add a network printer on a Ubuntu 9.10 system. Let’s go ahead and get started… Navigate to System –> Administration –> Printing Then choose Server –> New –> Printer from the Printer configuration window The New Printer wizard will be displayed. Here you can add either local or [...]

Click here to read the full post

Linux: How to Kill all instances of a script/program by using a string search

This article will show you how to kill (or end) multiple processes or instances of a running script with a single command. If you are like me, you have run into this situation many many times. You run the ps command to list all the currently running processes and you see that there are multiple [...]

Click here to read the full post