Use a brush and a vacuum to remove the lint in the duct. If you have a flexible duct (especially the plastic type!), replace it with rigid metal duct. To clean inside the dryer, unplug it and turn off the gas, then open either the top or the front. The procedure is the same for gas and electric dryers.