Toddler first plane ride

Does anyone have any tips for flying with a 2 year old? Let me start with, it’s about a 3 hour flight. My son is 2 and has never flown before, I’m genuinely worried because he hates loud noises he gets scared pretty easily and is super shy. I’ve only flown by myself a handful of times so I’m not very experienced to begin with, I’m not sure what bringing him through security will be like, and I’m very worried about takeoff, I think he may freak out during take off and scream and cry. Also I foresee him not sitting well during the flight, being wiggly and uncooperative. Things to bring? How do I keep his ears from hurting from the pressure change? It was a very unexpected trip and we leave this Sunday night so I don’t have much time to prepare.