Vibrations of inhomogeneous non-rotating gravitational systems