After having tried multiple different methods of trying to take a screencast and save it as a gif I have come to the conclusion that LICEcap (so far) is the best for Linux. Ultimately, I don’t think there is one really good way to save animated gifs in Ubuntu or Linux, but LICEcap comes the closest.