Install transfer switch next to meter socket. Run pipe and wire sized to code from meter socket to transfer switch. Run wiring from load side of transfer switch to main breaker panel. Terminate generator power and control wiring into proper terminals. Run conduit from transfer switch to generator for power and control above ground, secured across ground with unistrut hammered into ground.