If I were you I’d spend my time and energy on finding a good power supply first. Very strange inexplicable things happen on an under-powered Pi. I have some adapters that say “2 Ampère” but they don’t work w/ the Pi. Those USB power adapters are pretty cheap on DealExtreme etc. Buy another.