If you go through the mainstream system, your agent will sell your book to a publisher (or you may sell it direct). You get an advance of anticipated earnings on the books, then after that amount is ‘earned out’, you start getting royalties.
But apart from the ‘big cheese’ […]