Mainly by doing things. Getting likes, posting messages, being around for a while. There are old badges that aren't really supported anymore. They were supposed to be updated in a site update a while ago, but they got put on the backburner for other projects