Home Home > 2010 > 02
Sign up | Login

Deprecation notice: openSUSE Lizards user blog platform is deprecated, and will remain read only for the time being. Learn more...

Archive for February, 2010

Writing man pages

February 7th, 2010 by

Here are a few resources for those among you thinking of writing proper documentation for your new project, or to contribute writings or translations to your favorite Community.

Man pages are written in Troff, the original UNIX typesetting system. Nowadays, few people (most notably man page writers and IETF RFC authors) regularly use this markup, but it is rather simple and elegant once you get to know it. For writing man pages, the learning curve is very good, as you only need to know a few macros and, just as if you were working on html and pilfering the sources of an existing  page doing just what you need, you have a wealth of examples to teach you right there on your trusty *NIX box. As the Wikipedia points out:

Troff features commands to designate fonts, spacing, paragraphs, margins, footnotes and more. Unlike many other text formatters, troff can position characters arbitrarily on a page, even overlapping them, and has a fully programmable input language. Separate preprocessors are used for more convenient production of tables, diagrams, and mathematics.

But you don’t need to master all that! For man pages, what you need is knowledge of the man macro package, originally written by James Clark and documented in man(7) or groff_man(7) depending on your distro. Troff input is processed from text files, so you just need your favorite text editor, and a bit of time to play with the markup to learn it in the process.

Here is a way to get started quickly: Linux Journal published a great tutorial a few years back, and the Linux Manual contains the ever-important style guidelines in man-pages(7). Start from scratch, or make a copy of an existing manual page and start editing. One more tip for you:

man ./foo.1

is your friend, to see what you just wrote and marked up in all its glory — and bugs.

WEB RESOURCES
Linux Journal: Writing man Pages Using groff
The Linux Manual:
man-pages(7)
The Linux Manual:
man(7)

BOOKS
Arnold Robbins, Nelson Beebe, Classic Shell Scripting (O’Reilly – 9780596005955) – Appendix A “Writing Man Pages” is for you.
Dale Dougherty, Tim O’Reilly, Unix Text Processing (out of print, released in the public domain) – all the Troff you could ever want, but not the man macros.

Hermes Twittering about openSUSE Factory

February 1st, 2010 by

I'm going to FOSDEM, the Free and Open Source Software Developers' European Meeting

Last week we updated Hermes on our production servers, they’re running a version now which will become a first Hermes release. I hope to get it packaged and released this week to present it on FOSDEM where I’ll give a talk about Hermes. Don’t miss it if you’re interested in this useful technology.

There went in a lot of technical improvement and bugfixes which one gets aware of if a system like Hermes runs in production for quite some time, such as missing indexes here and there which slow down the database and stuff like that. But that is another story.

What I actually wanted to talk about is the the fact that Hermes now is twittering now for you. You can follow it under the OBSHermes Twitter account. Hermes currently twitters about version updates of all packages in the openSUSE Factory project, so this is your tweet if you want to be at the bleading edge of Factory.

It is configurable for the administrator what actually is twittered. Is there other useful information around the openSUSE project which you would like to see twittered about? If so, please let me know.