HOW TO: Recording Internal Audio in Ubuntu or Mint
This how-to should show the steps required to record whatever audio is playing on your computer, similar to recording "stereo mix" in windows. This makes recording audio played by any application, including flash videos, possible.
I'm using the Sound Recorder application that comes in standard Ubuntu installations. To set this up using other programs (like audacity) just substitute it in these instructions.
This appears to be persistent so that you will only have to do this once, but you will have to repeat these steps to record in another application.
Source: link