Contact the code enforcement department for your city or town to inquire about local building codes relating to gas line installation. For example, the city of Minneapolis has specific requirements regarding the placement of the shutoff valve.
Acquire any necessary permits for the work to be done and pay the applicable fees.
Choose the type of pipe you want to install. Traditionally, gas lines have been run through galvanized or copper pipes, but other flexible materials like corrugated stainless steel tubing have been accepted by building inspectors in the state.
Turn off the gas supply using the shutoff at the meter.
Connect the pieces of pipe according to the manufacturer's recommendations. For example, you may need to sweat copper fittings or tighten threaded galvanized pipe with wrenches.
Turn on the gas. Check for leaks by spraying a solution of soapy water on each of the connection points.If the soap solution bubbles or you smell gas, immediately shut off the gas at the meter and retighten or redo the bad connections.
Call the local code enforcement office again to schedule an inspection.