keep fresh water by you at all times and eat fresh foods every day.
keep your back straight and stretch at every opportunity.
keep the room ventilated and remove any food or dirty fabrics promptly.
keep the wall behind the screen as bright as the screen and look around the room regularly.
that's most common causes of headaches gone, if you still have any problems go to your doctor for advice, as it may any number of more complicated things. taking care of the basics makes it much easier to spot any other problems before they become serious.