The linear theory of thermal plasma free-electron laser