Not just anyone can become an op. One way you can become an op is like everyone said: Open up and register your own channel.
Another way to become an op is to become a regular in a channel and get to know the other ops or whoever "owns" the channel. Then the "owner" can give you ops. That's when the username, address, and password come in.