The Moon is a Harsh Mistress, Robert Heinlein (1966)
A computer technician on the moon, penal colony and grain farm for Earth, discovers that Luna's central computer system has woken up. Computer and tech not only become friends, but also foment a revolution against Terra. This novel is "harder" science fiction than i usually read, full of detail about spaceflight, ballistics, radar ... in addition to libertarian politics, kinship systems, and principles for organizing a conspiracy. Impressive and satisfying, but tainted by a current of sexism that surfaces now and then, this SF masterpiece is a classic in good and bad senses of the term.