Keep to the right on the roadway, rather than riding in the middle of the road. Some streets have wide shoulders you can use, or you can use a street with a designated bike lane. Maintain a straight line when you're cruising and use hand signals when turning or changing lanes. If you ride erratically, it's difficult for drivers to know when to pass. Hand signals are a courtesy and an important part of safe bicycling.
Motorist feel more comfortable dealing with bicyclists who communicate their intentions.
More important, drivers tend to show them more respect. If possible choose an alternate route rather than taking busy streets and highways. By doing this you will make your trip safer and more enjoyable. If you are riding after dusk be sure to have a headlight and rear reflector. Legally, bicyclists are bound by the same laws as drivers.