I admit it, this is something I rarely did before moving to Ecuador. Now if someone else smiled first...that was different.
But here I greet strangers on the street with Buenos Dias (good morning) or Buenas Tardes (good afternoon) and a smile. Invariably I get a huge smile back as well as a return greeting.
I highly recommend trying this, greet strangers with a smile and see what happens.