To align your bike's gears, first shift the bike to the smallest front and rear gears. Then adjust the barrel adjuster on the rear derailleur until the chain runs smoothly and quietly on the smallest cog. Repeat the process with the larger gears until all the gears are aligned.