The answers to these questions are complicated enough that I must referyou tohttp://www.tldp.org/Read all you can and then do some experimenting. Post any issues aboutwhich you are confused here, afterwards.