I do agree, I'm working from home for 6 months, and being lonely is the hardest part. My dream for now is to work in a small office as a part of a small, talented and concentrated team.
The idea of "co-working" is gaining steam in many cities. You could certainly start up a group in your area if there isn't one. Basically you just get together with other people who work remotely, but perhaps in somewhat the same vein (web apps, a certain language, whatever), and you can form a team that you can bounce ideas off of and get support from. It could even just be occasional or for lunch every day or something like that, but it helps.
"Co-working" has kept me sane over the years. :) There's not too many locally who do this, but the ones I know drop by the same coffee shops on occasion and we run into each other. It's a welcome break from the loneliness of being alone all day. (Although I have a newborn at home now and have essentially become a stay-at-home dad in addition to working from home. You want stress, give that a try. :))
I even live in a lost city as far as technology is concerned and have found at least a couple of others who also work from home doing software development. We try to get together and work from a coffee shop every now and then.
Look around for local Linux user groups or programming language interest groups - you'll probably find some other kindred spirits.
Same happened to me. Whenever I felt lonely I would go to a small coffee shop near my house. I found out that I like seeing people coming and going, I met some interesting people and made some friends.