631 ipp is internet printing protocol, either case, you don't need all those other ports open (except for x11, i don't use windows manager, so i'm not sure about this). anyways, if you're curious what those ports do, try the following:

lsof -i typeort
grep something /etc/services

hope this helps.

-w0rm3y