Turn the your fireplace gas off completely. Double-check this, because it's very important for your safety.
Clean the fireplace well to remove dust and soot. Have the chimney cleaned to remove material buildup. It's best to let a professional do this.
Set the grate in the fireplace, centering it. It should not touch the nearby aluminum gas line, since the grate gets very hot. Locate the threads on either side of the grate. Cover the one that doesn't sit next to the gas line with Teflon tape.
Place the log set in the fireplace to test where the logs will be positioned. Center them left to right and back to front. This allows gas to escape and provides a balanced look. Mark the position by nicking the fireplace.
Connect the gas line per log set instructions. Specific attachments vary depending on the ignition system but typically involve a short aluminum hose with connectors for the line and the burner. Connect as instructed, making sure the hose doesn't crease.
Cover threads and fittings with Teflon tape to prevent leaks. Test the leak by spraying soapy water on fittings and the hose and watching for bubbles. Repair any discovered leaks.
Set the burner pan per set instructions.
Set required material over the burner pan, depending on your type of fireplace. This usually consists of sand for a natural gas fireplace and volcanic rock for one using propane.
Add embers to your fireplace. Spread rock wool or similar soft material over the sand or rock.
Place logs where you marked them previously.