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.
Available online as Project Gutenberg book 6629.