Entanglement among multiple parties is vital for practical quantum information applications. As two kinds of typical multipartite entangled state, the W and Greenberger-Horne-Zeilinger (GHZ) states have attracted a lot of attention. In this paper, we propose two practical linear optical schemes for multipartite entanglement distribution in noisy channels. Using the time-bin or spatial-mode degree of freedom (DoF) encoding, the influence of the noise will be eliminated and perfect W or GHZ state can be achieved among different nodes in a deterministic way. Moreover, we construct quantum circuits, which can be implemented with current technology. These results contribute to long-distance quantum communication both in theoretical and experimental points of view.