A general method for proving the non-trivial linear homogeneous partition inequalities