A ways into chapter 5 Wheatley should open the control room by smashing the window. Put one portal on the white wall behind the turret, and another beside you. Eliminate the turret, and stand in it's place for a few seconds for the achievement. Note that this is missable.