Well first of all it is best to start to learn using a nylon string acoustic guitar. Steel strings are rough on the fingers when you are just learning how to play. So whether you get it from ebay or the local music store, you need an acoustic guitar that's halfway decent. It doesn't need to be expensive, just playable.
When it comes to buying an electric guitar, you can easily start off with one of the less expensive models. You can get the buzz from playing a real honest to goodness electric guitar on whatever no-frills Stratocaster copy your music store has, and it will get through your initial guitar playing experiences.
If there's one single lesson that all guitar students of all styles of music need to learn, it's TAKE IT EASY - SLOW DOWN. The music will still be there, you don't have to rush out to meet it. If you have a tendency to go too fast, to try to force your body to do chord changes before the muscles have learnt them properly, ask yourself how you want to be sounding in a year's time. Because if you don't slow down when you are learning you are going to be sounding like a hat full of baby seals in one year - and probably twenty years time!
An important aspect of learning to play electric guitar is how you are going to be holding the guitar during your long hours of practice. If you do not pay attention to this stuff now, you could end up with back, neck and shoulder problems later from straining your muscles and skeleton.
Now you have your guitar, and of course a decent amplifier. A practice amp is good for use when playing near loved ones if you want to remain loved yourself. Another good idea is to get some kind of guitar effects program for your computer but be aware that some of them can be very hard on your computer's resources.
A tuner and a metronome are essentials. These are two bits of equipment which are part of the discipline of electric guitar playing. Get into the habit of tuning your guitar from time to time during practice sessions - you might be surprised how far out you can get without being aware of it! While you are first learning how to play electric guitar you probably won't be able to do too much jamming with friends until you develop a familiarity with your instrument. So once you feel you have gotten the hang of a song or a riff, try it out with the metronome. As slowly as you need to; you are not doing anybody any favors by rushing.
Do you need a teacher for electric guitar? Can you get all you need from books in your local music store or off the internet? It's true that looking for a person who can teach you what you need to know in a way that you can handle it is a bit of a trial. It's like any relationship, a lot better without the other person, but what can you do? If you want to try learning without a teacher then make Google your friend. If you are not used to using search engines, just type any questions into the search box in your own words, and the results you get will at least point you in the right direction. Start by looking for guitar forums. This is where you will find people like yourself who have questions together with people who have answers.
There are many ways online to learn to play guitar, some involve buying packages of videos and books which will be delivered to your house. Some give the less expensive option of downloading the videos and instructions. For the most part these guitar teaching methods are excellent. Another way to go is an online course where you can interact with your teacher and ask questions by email or on a forum. This is by far a better way to go because it can't be quite as easily forgotten about as a course that consists of physical goods or computer files.
As the distinction between electric guitars and synthesizers becomes less distinct the novice electric guitarist gets more opportunities to reproduce the sound of his or her favorite artist. But as your guitar skills expand you will have a world of electronic music to play with. Enjoy!