summaryrefslogtreecommitdiff
path: root/settransexamples.mdwn
blob: 2013392410f51c6b2f24aa28d87b0a1665333d4b (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[[meta copyright="Copyright © 2007 Free Software Foundation, Inc."]]
[[meta license="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled
[[GNU_Free_Documentation_License|/fdl]]."]]

## Setting up translators - HowTo

Translators can be got from hurd-extras <http://www.nongnu.org/hurdextras/>
<pre>
cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/hurdextras co <modulename> 
</pre>

* httpfs translator 
<pre>
     $ settrans -a tmp/ /hurd/httpfs www.hurd-project.com/        (or)
     $ settrans -a tmp/ /hurd/httpfs www.hurd-project.com/ --proxy=<proxy> --port=<port>
     $ cd tmp/
     $ ls -l      
</pre>

* ftpfs translator
<pre>    
     $ settrans -cgap ftp /hurd/hostmux /hurd/ftpfs /
     $ cd ftp
     ftp$ ls
     ftp$ cd ftp.fr.debian.org
     ftp/ftp.fr.debian.org $ ls
</pre>

* tarfs  translator 
<pre>
    You can use tarfs to mount (almost) any tar file:
    $ settrans -ca a /hurd/tarfs -z myfile.tar.gz
    $ settrans -ca b /hurd/tarfs -y myfile.tar.bz2
    $ settrans -ca c /hurd/tarfs myfile.tar
            You can even use it to create new tar files:
    $ settrans -ca new /hurd/tarfs -cz newfile.tar.gz
    $ cp -r all my files  new/
    $ syncfs new
           This is not as fast as "tar czvf newfile.tar.gz all my files" but at least, it's more original. ;)
</pre> 
    
* cvsfs translator 
<pre>
    $ settrans -ac cvsfs_testing /hurd/cvsfs cvs.savannah.nongnu.org /sources/hurdextras
    $ cd cvsfs_testing
</pre>
   
* pfinet translator --  configuring your network interface 
<pre>
    $ settrans -fgca /servers/socket/2 /hurd/pfinet -i <interface> -a <ip address> -m <subnet mask> -g <gateway ip>
</pre>
   
* Console translator -- setting up virtual consoles  
<pre>
    $ console -d vga -d pc_mouse -d pc_kbd -d generic_speaker /dev/vcs
</pre>
   
* iso9660fs translator --  'mounting' your cdrom 
<pre>
    $ settrans -ac /cdrom /hurd/iso9660fs /dev/<cdrom device file>      
</pre>
   
* ext2fs translator  -- 'mounting' an ext2fs partition 
<pre>
    $ settrans -ac /linux /hurd/ext2fs /dev/<partition device file>   
</pre>

* unionfs translator 
<pre>
    To join "foo/" "bar/" and "baz/" in the directory "quux/", just do:

    $ settrans -capfg quux/ /hurd/unionfs foo/ bar/ baz/

    If you want to join even quux/ contents in the union itself, add -u as a translator argument.
    You can add filesystems at run-time with the fsysopts command.
</pre>    

--IsaacPraveen - 14 May 2006