In random order:
1) Copywrited music - Without permission, no, it isn't legal. Whether or not you get in trouble is a different matter, but regardless of whether or not it is freeware, it is illegal. "Intellectual property", in the eyes of the law, has become almost the exact same as normal "property" - I may fully disagree with it and think that's crap, but that is the state of the law at present.
2) Base the game off the book - sure, no problem. It just depends to what extent you really mean "base" and not "turn the book into a game". Still, unless you go exceptionally overboard, I highly doubt it could cause any problems
3) Oh, similar to the above - the words of the book are still copywrited, so you cannot legally just copy significantly large amounts of conversations and such and use it in the game.
4) Names and appearances...oof. First it is important to note that you can pretty well be sued by anyone for any reason whatsoever, at least in america now adays, it is just a question of "will you". So it is usually useful to ask "will I piss someone off with this enough for them to sue me" than whether or not it is legal
There is a kind of alternate-viewpoint novel called "The Wind Done Gone" that is basically "Gone With The Wind" from, I think, a black slaves perspective...and they got sued by the controllers of Gone With The Wind, but that was almost entirely because it visciously attacked the basis, setting, and character of Gone With The Wind (even if the attacks were perfectly valid in every logical and moral context). If you aren't going to turn it into an all-out attack on the book, then on that point you can "not worry about it".
Now, with that said, you in all likelyhood can use many of the names and settings and appearances and such, etc - but doing so completely can be more problematic, because then you are tredding close to just translating the book into being a game - which is less unlikely to piss someone off.
5) Using the title, more than nearly any other possible action (barring actually copying the book into the game itself), would be likely to piss someone off enough to sue, and just in general get you in trouble. It may be helpful to recall that, for instance Jerassic Park was a BOOK - the movie studios had to BUY the rights to turn it into a movie. If someone had decided to make a movie called Jerassic Park based on the movie without permission, this would obviously piss plenty of people off, even if it was a little indie film most people would never even hear of.
So, don't use the books title, or particularly similar variants, in your game's title. You can mention how it was INSPIRED by the book (free legal advice: Do Not Use The Words "Based On [someone/something you don't have written permission from]", Ever!), and similar and such and such, but that is about as far as you should probably go. So you can say "[title of game] was inspired by [title of book], and is similar to it in many ways", and variants thereof, and that should be just fine.
"My house has a 3D interface. I'm constantly losing crap, running into things, and it's always a mess."