diff --git a/hurd/documentation/translator_primer.mdwn b/hurd/documentation/translator_primer.mdwn index e5c8c160..ed97e167 100644 --- a/hurd/documentation/translator_primer.mdwn +++ b/hurd/documentation/translator_primer.mdwn @@ -17,7 +17,7 @@ powerful one. Here is an introductionary text. ## Intro The Hurd has some unique capabilities, and we created this simple image -to enable you to easily try three of them: +to enable you to easily try a few of them: * The simplest of translators: Hello World! * Transparent FTP @@ -47,6 +47,18 @@ you remove the translator from the file "hello" via "settrans -g hello". Having done that, verify that now the file is empty again. +### Getting your Daily Fortune + +The run translator returns the result of running a program. When mounted on a filesystem node, reading from that file would return the result of executing the program. When combined with the fortune program you can create a file that will give you a different fortune every time you access it. + +$ sudo apt-get install fortune +$ settrans -c ~/.signature /hurd/run /usr/games/fortune +$ cat ~/.signature + Your lucky number has been disconnected. +$ cat ~/.signature + Don't look now, but there is a multi-legged creature on your shoulder. + + ### Transparent FTP We already setup a a transparent FTP translator for you at /ftp: @@ -76,7 +88,7 @@ Now that we can access ftp.gnu.org transparently, let's mount a remote ISO file: It is interesting to note that since the ISO9660 format is indexed, ftpfs does not have to download the whole ISO file, it merely fetches what iso9660fs requests. -These were only three basic usages of translators on the Hurd. We're sure you'll quickly see many other ways to use this. +These were only a few basic usages of translators on the Hurd. We're sure you'll quickly see many other ways to use this. As a last comment: You can setup a translator on any node you have access to, so you can for example mount any filesystems as normal user.