Mr. Spaceship by Dick, Philip K.
 is a Project Gutenberg book, now on Github.