blob: 6a3bb30e99a5eb2293d233021196c79998922302 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
What this little Hurd image can do
----------------------------------
### About this text
This is the README file accompanying a
[disk\_image](http://draketo.de/dateien/hurd/bab-hurd-qemu-2008-10-29.img.tar.bz2) for
[[running the GNU/Hurd via qemu|hurd/running/qemu]]. To run the disk image,
just use `qemu -m 512 -drive
cache=writeback,index=0,media=disk,file=disk_image.img`.
You can find the custom *.bashrc* used to tell the user about it as well as this text itself
in the Mercurial repository [hurd_intro](http://bitbucket.org/ArneBab/hurd_intro).
### Intro
The Hurd has some unique capabilities, and we created this simple image
to enable you to easily try two of them:
* The simplest of translators: Hello World!
* Transparent FTP
### Hello World
To try out the simplest of translators, you can go the following simple steps:
$ cat hello
$ setrans hello /hurd/hello
$ cat hello
"Hello World!"
$ settrans -g hello
$ cat hello
What you do with these steps is first verifying that the file "hello" is empty.
Then you setup the translator /hurd/hello in the file/node hello.
After that you check the contents of the file, and the translator returns "Hello World!".
To finish it, you tell the translator to go away from the file "hello" via "settrans -g hello" and verify that now the file is empty again.
### Transparent FTP
We already setup a a transparent FTP translator for you at /ftp:
With it you can easily access public FTP via the file system, for example the one from the GNU project:
$ ls /ftp://ftp.gnu.org/
But you can also do this very easily yourself:
$ # Setup the translator on the node ftp:
$ settrans -c ftp: /hurd/hostmux /hurd/ftpfs /
and you can access FTP sites via the pseudo-directory ftp:, for example with
$ ls ftp://ftp.gnu.org/
What you do here is setting up the translator /hurd/hostmux on ftp: and passing it the translator /hurd/ftpfs to use for resolving accesses as well as / as additional path component.
These were only two 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.
You might currently be logged in as root, but you could just as well do the same as normal user.
Why don't you try it out?
|