Texturing non-primitive objects...

Maybe you can help me. I know how to texture a cube, a single rectangle, etc. but I dont have any idea on how to texture, an sphere or an irregular body (e.g. a face). I read the red book but didnt find any information about this. I think I hav to set texture coordinates but dont know how to do that with irregular objects…Thx!