A comedic -- but authentic, since Marryat started life as a midshipman himself -- sea story from 1836. Dated, as you'd expect, but entertaining. Discworld fans will note that this book contains an early example of retrophrenology.
I read the Project Gutenberg electronic edition of this book.
ISBN 1846375339. Search for this book on Wikipedia or isbn.nu.