This paper is concerned with temperature effects on the modeling and vibration characteristics of Euler-Bernoulli beams with symmetric and nonsymmetric boundary conditions. It is assumed that in the considered model the temperature increases/decreases instantly, and the temperature variation is uniformly distributed along the length and the cross-section. By using the extended Hamilton’s principle, the mathematical model which takes into account thermal and mechanical loadings, represented by partial differential equations (PDEs), is established. The PDEs of the planar motion are discretized to a set of second-order ordinary differential equations by using the Galerkin method. As to three different boundary conditions, eigenvalue analyses are performed to obtain the close-form eigenvalue solutions. First four natural frequencies with thermal effects are investigated. By using the Lindstedt-Poincaré method and multiple scales method, the approximate solutions of the nonlinear free and forced vibrations (primary, super, and subharmonic resonances) are obtained. The influences of temperature variations on response amplitudes, the localisation of the resonance zones, and the stability of the steady-state solutions are investigated, through examining frequency response curves and excitation response curves. Numerical results show that response amplitudes, the number and the stability of nontrivial solutions, and the hardening-spring characteristics are all closely related to temperature changes. As to temperature effects on vibration behaviors of structures, different boundary conditions should be paid more attention.