Outside the big cities, make a habit of saying an appropriate Bonjour or Au revoir when entering or leaving a shop or cafe.
People will strongly disapprove of you if you do not say Bonjour and Au revoir when entering and leaving a café in most areas of France.