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

"Find All EXCEPT" using bash script

find . \( ! -name “hobba*” \)

The above command invokes the “find” command asking it to search in the current directory (“.”) and return all files except those starting with the string “hobba”. Note: Take care of the spaces as one more or less space character can ruin the whole script.

The above script is taken from a bash script written by Osama Magdy that deletes all files in a certain directory except one.

Tagged , | Leave a comment