Convection in a box: linear theory