2011/08/26

Undelete in Linux (ext3 file system)

I accidentally wide out my 200 and some gigabytes of mp3 (again) by rsync'ing between bad disk. Luckily I found this undelete program and recover most of them.

http://extundelete.sourceforge.net

Also check out this great article if you're techie: http://carlo17.home.xs4all.nl/howto/undelete_ext3.html

Install BootCamp 4.0

If you upgrade to Lion from Snow Leopard + Win7 bootcamp, you might find that you can't download new bootcamp 4.0 from Bootcamp Assistant. The way I go around it is by downloading it from Apple's CDN:

  1. Download Bootcamp 4.0 Drivers, here's a link on some Apple CDN for the .pkg file containing the drivers (603MB): http://bit.fosk.it/bootcamp40
  2. Open this file with 7Zip in Windows, and go through a few layers to extract BootCampESD.pkg\Payload\Payload~\.\Library\Application Support\BootCamp\WindowsSupport.dmg\0.Apple_ISO
  3. Rename the file from 0.Apple_ISO to BootCamp4.iso
  4. Extract the iso with 7Zip to a folder.
  5. Open command prompt and navigate to the extracted folder, for example:
    E:
    cd WindowsSupport\Drivers\Apple
  6. From the prompt in that folder, run msiexec /i BootCamp64.msi

2011/05/12

Generating Video Thumbnails With FFMPEG

Check out flowplayer's - http://flowplayer.org/tutorials/generating-thumbs.html

In short,

ffmpeg -i [video_file] -f image2 -vframes 1 [output_image].jpg


For example,

ffmpeg -ss 12 -i flowplayer.mov -f image2 -vframes 1 flowplayer-12.jpg

Finding video/ image file info

In ffmpeg, you can determine video or image file info:


ffmpeg -i my_video_filename


Another option is exiftool tool.

1. Install on RHEL
yum install perl-Image-ExifTool.noarch
**you need to have rpmforge repository installed.

2. Use it
exiftool my_video_file

2011/05/07

Install Google Chrome on RHEL

This howto explains howto install Google Chrome Web browser on Fedora 14, Fedora 13, Fedora 12 and Red Hat 6 (RHEL 6). Best way to install and keep up-to-date with Google Chrome browser is use Google’s own YUM repository.

1. Enable Google YUM repository

Add following to /etc/yum.repos.d/google.repo file:
32-bit
[google]
name=Google - i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
64-bit
[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
Note: Both 32-bit and 64-bit repos can be placed in the same file.

2. Install Google Chrome with YUM (as root user)

Install Google Chrome Stable Version

## Install Google Chrome Stable version ##
yum install google-chrome-stable

Install Google Chrome Beta Version

## Install Google Chrome Beta version ##
yum install google-chrome-beta

Install Google Chrome Unstable Version

## Install Google Chrome Unstable version ##
yum install google-chrome-unstable

This Day in History