If you have smoked for many years or move into a place where a smoker previously lived, you'll have to do quite a bit of work to get rid of the smell.
If you don't want to do it yourself, use the services of a home disaster company.
TO GET RID OF TOBACCO SMOKE SMELL
~~ Open all your windows and air out the house as often as you can.
~~ Use window fans if you have them, making sure they suck the air out of the room and outdoors..
~~ Use a dehumidifier. Since cigarette smoke is sticky, any moisture that mixes with it causes it to smell more.
~~ Clean or throw out your drapes and window blinds. Clean your windows and screens.
~~ Clean your ceilings and walls to remove the nicotine. Also, use a primer like Kilz of Bulls Eye before you paint. If you don't take these steps, the nicotine will just bleed through the paint. Make sure the ceiling and wall surfaces are COMPLETELY DRY before priming and painting.
~~ Clean your light fixtures, including the light bulbs. Clean or replace your electrical outlet covers.
~~ Wash windows, both sides of doors, and door frames.
~~ Check your closets to see if they smell of smoke.
~~ If your bathroom smells of smoke, clean it thoroughly. If you have tile, clean the grout well and seal it. If you have an exhaust fan, take it apart and clean it or replace it.
~~ Furnace/Air Conditioning - Replace filters and clean the registers and vents.
NOTE: Make sure you have plenty of ventilation so the cleaning fumes don't bother you and also so your ceiling and walls will dry faster. If you have fans, run them to circulate air in the room(s).
UPHOLSTERED FURNITURE - Mix 50/50 water and clear ammonia and lightly mist the cushions, etc. Or spray on Febreze or use an upholstery cleaner.
WOOD FURNITURE - Take a damp cloth with a small amount of cleaner and wipe the wood. Follow with a clean damp cloth moistened with water. Don't soak the wood.
CARPET - Sprinkle baking soda on your carpet and leave on at least overnight. Vacuum and then shampoo. Make sure you let your carpet thoroughly dry. Open windows or run fans.
NOTE: Our walls, ceilings, furniture, floors, carpets, etc. are all not made of the same materials. So try a cleaner on a small area first to see if it cleans well. Also make sure the cleaner won't cause staining on upholstered or wood furniture.
Photo from flickr creative commons.