Rotating cube in Linux