There are a variety of ways to go about that. I believe that both the Gnome desktop and KDE do that for you automaticlly. If, like me, you're using an environment that doesn't have that feature built in, I'd reccomendROX-Filer
; you probably also want to use ROX-session
to make sure that those icons stay stuck to your desktop.