1D ultracold bosons in different inhomogeneous systems