I can remember the term being used in elementary school in the late 50s. Eg: "He thought he was a big wheel, until he found out that squares don't roll." But there were many other uses with no geometrical connotations. (Mainly simple uses such as "Don't be a square" or "He's such a square.") My suspicion is that it comes from beatnik terminology. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.