The average person can keep a bear out of their tent while camping by keeping the food and garbage as far away as possible from your campsite.  It is also recommended to store food and drinks in boxes or bins instead of plastic bags. The smell of food and drinks encourages bears to enter your campsite, so it is also advised to store these items in the trunk of your car if at all possible and only bring them into the campground after dark.