Libreoffice is an ideal choice for laying out books, as long as the layout is fairly simple with not a lot of images.
Open a new LibreOffice Writer document.
We need at least three page styles:
Setting up paragraph styles
Setting the page break connected with chapter title paragraph style