Welcome to the forum!
Could you be just a bit more specific about what it is that you need that's different from Hagar's sample because your sample doesn't look substantially different--well, it's not obvious to me at least.
You can configure the vertical border under Format > Page > Border
You can configure the line numbering under Tools > Line Numbering.
OK, I do see one important difference: the numbers don't actually count lines. The numbers at the left follow constant double-spacing, where the text varies between single and double-spaced.
I don't see any way to do that with Writer's line numbering; you'd need to use a separate frame or something with the numbering. If you do that, then there's no guarantee that the margin numbering will always line up with the text lines.
Here's a sample you can play with. This uses a frame on the left to provide the line numbers.