Camtasia (you can find it here) is a cool software for Mac and Windows, used to record your screen while simultaneously record your webcam stream.
It is very useful for screencasts, to give them more of a personal touch, or in case you need to record how people behave while testing out your website or application.
It a can be a fundamental tool, but what if you're on Ubuntu Linux? What's the alternative?
Well, we need to use two softwares. One is Kazam available from the Ubuntu Software Centre. This is a complete screencasting tool, which you need to set like in the following image:
Please note that you have to activate and set the audio source as "Built in Analog Stereo" (or whatever your input) so that you can record audio too.
Now, for the webcam bit, I found the best option to be GUVC View, also available in the Software Center. Once installled it, it should open up. Go to the settings, and just to be sure disable the audio input.
You should see your nice mug now, on a second window. What you want to do is to tell this window to always be on top, like so:
Now you can move this window in the proper position on your screen, and start recording your screencast using Kazam. Before starting, you might want to select the encoder type (MP4 or WebM) and select the region to be recorded through the button Record Region so that you don't end up recording unnecessary screen regions.