Environment setup for linux. Files have been liberally borrowed from colleagues and the internet.