Archive for the 'Linux/Unix' Category
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
January 25th, 2012 | Posted in Linux/Unix | 1 Comment
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
February 16th, 2011 | Posted in Databases, Linux/Unix | 1 Comment
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
February 10th, 2011 | Posted in Linux/Unix, Programming - Ruby/Rails | 7 Comments
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
February 9th, 2011 | Posted in Linux/Unix | No Comments
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
February 9th, 2011 | Posted in Linux/Unix | No Comments
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
January 12th, 2011 | Posted in Linux/Unix | No Comments
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
January 12th, 2011 | Posted in Linux/Unix | 1 Comment
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
January 21st, 2010 | Posted in Linux/Unix | No Comments
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
November 20th, 2009 | Posted in Linux/Unix | 6 Comments
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
November 16th, 2009 | Posted in Linux/Unix | 1 Comment