Read this website's Legal Guidelines and make sure you understand the risks of this repair. Place your iPhone 3GS on a clean flat and soft surface, such as a rubber mat or a piece of soft cloth and get the required opening tools and suction screen lifter.
Follow the steps of the iPhone 3GS ringerswitch replacement guide until you removed the front panel.