To install the Flash player plug-in, do the following:

Code:
wget http://virjacode.com/projects/beefup/dloads/linux_flash.tar.gz
tar xzf linux_flash.tar.gz
cd install_flash_player_10_linux
mkdir /usr/lib/mozilla/plugins
install -m 0755 libflashplayer.so /usr/lib/mozilla/plugins/
cd ..
rm linux_flash.tar.gz
rm -r install_flash_player_10_linux
Now open up Firefox, on Youtube or whatever, and watch a Flash video or two.

Next here comes the command line fun

First you need to navigate to the folder where Firefox stores its cache:

Code:
cd ~/.mozilla/firefox/`cat ~/.mozilla/firefox/profiles.ini | grep -m 1 Path= | awk '{print substr($1,6,length($1)-5)}'`/Cache
In this folder is a load of randomly named files. We have to do some filtering to find the videos we want. Firstly, let's say we only want files greater than 1 megabyte:

Code:
find -size +1M
Next, for every file that is found, we wanna check if it's a Flash video file. We used the built-in Linux program called "file" to figure out what kinda file it is:

Code:
 find -size +1M | xargs file -F " "
Next, we use "grep" to filter out any files that aren't Flash files:

Code:
find -size +1M | xargs file -F " " | grep Flash
We can use awk to get the file name on its own:

Code:
find -size +1M | xargs file -F " " | grep Flash | awk '{print $1}'
Next I find it's helpful to see the file sizes, because when I'm ripping videos from my Firefox cache I'm usually looking for a fairly decent size video:

Code:
find -size +1M | xargs file -F " " | grep Flash | awk '{print $1}' | xargs ls -lh
From there just choose a file and copy it to your home folder, and remember to give the file an "FLV" extension:

Code:
cp 000aaa000bb ~/some_video.flv
Next you can play it with VLC:

Code:
cd
vlc some_video.flv &