ssh in to a virtualbox server using nat and host-only adapter

With vmware, if you have your virtual machine set to nat networking, they set up an adapter for you, and you have access to the outside world as well, without exposing your machine using bridged networking, now with virtualbox, it's another story... If you chose the nat network setting in virtualbox, you will be able to connect to the outside network, but you cant connect in using ssh or similar. The solution: add another network adapter using the "host-only adapter" setting. Configure that adapter with dhcp, voila! Now you can ssh in on eth1 and connnect to the internet using eth0.

Dumping a stream using mplayer

Here is an example how to dump a stream using mplayer, this works with both realaudio and windows media, the example is recording a windows media stream from NRK:

mplayer mms://straumod.nrk.no/rod/petre/petreh_081031_21.wma -dumpstream -dumpfile petreh_081031_21.wma
mplayer -ao pcm hot97.wma
lame --preset standard audiodump.wav