How to set up HP printing on Ubuntu — HP Laserjet P1005

Some HP printers can use one of the drivers already installed by default in Ubuntu. In those cases, all you usually need to do is plug your printer into your computer, and Ubuntu will recognize it and prompt you to set it up. It’s super quick & easy. The HP Laserjet P1005 that I purchased needed something more. This is a good quality, small, quiet, and cheap ($75 shipped from Newegg) monochrome laser printer. It comes with drivers, Windows drivers of course, which do you no good with Ubuntu. I read that I needed hplip. Turns out that I already had hplip installed on my system by default (which will work for many HP printers), but it didn’t do me any good. I needed to download & install the newest version. Here’s how I did it…
Download the automatic installer file here, the sourceforge page for hplip. Once downloaded follow the instructions on the download page to complete the installation. It will download some more stuff, and then install everything. It will also configure your HP printer. Now you’ll have the HP Device Manager in the Accessories menu, and you’ll also have nice, smooth printing.

screenshot-hp-device-manager-hp-laserjet-p1005

Source: http://howto-ubuntu.net/how-to-set-up-hp-printing-on-ubuntu/

Tagged , , | 1 Comment

Install Moblin 2.1 in Virtualbox

I faced a problem while trying to test the new release of Moblin (2.1) which is an OS primarily designed for netbooks. When trying to boot from the live image, I get an error message stating that the kernel is not supported and that I must have something called “pae” enabled, I googled around and found what “pae” is, it’s a feature in the processor and is an abbreviation for “Physical Address Extension” and here is a brief description (not quite good though) http://wiki.answers.com/Q/What_is_pae, anyway here are the steps I used to get this .img file running in my virtualbox:

  1. Download the .img file from the website
  2. Rename it to .iso
  3. Assign it in the storage (as a virtual ISO CD)
  4. Open the options for the virtual machine you’ve just created
  5. Click system -> Processor -> Enable PAE.

Now you can run it and continue with the live image or installation.

Enjoy :)!

Tagged , , , | 2 Comments

Convert IMG files to ISO in Ubuntu

I searched and searched and then found what?? Just rename the file to .iso 😀

Tagged , , | Leave a comment

AccuRev auto completion

AccuRev supports auto completion for its commands/Depots/Streams through a third-party plug-in.
Download form here:
http://www.fepus.net/software/accurev-tools/accurev-bash-completion-3.1.tar.gz

Tagged | Leave a comment

Bash Script To Find and Delete All Files Except Some When the filesystem reaches a specific size

#!/bin/sh

# This script checks if the /siebel filesystem reaches the warning limit of free space
# And then delete the old logs except those of last 12 hours

warninglimit=1572864    # This number is in KB, it’s equal to 1.5 GB,
                        # KB is used to avoid floating point numbers

filesystem=”/siebel”   # The filesystem to be monitored

size=`df -k $filesystem|grep $filesystem|awk ‘{ print $3; }’`   # Extract size of /siebel Filesystem in KB

if [ $size -le $warninglimit ]  # If fs size is less than warning lim.
    then
              find /siebel/siebsrvr/enterprises/ESPRD/$HOSTNAME/log -cmin +720 \( ! -name “ESPRD*” \) | xargs rm  # Delete log files that are more than 12 hours old from now (except those starting with “ESPRD”)
fi

Credit goes to Osama Magdy for the above script.

Tagged , | Leave a comment