From baecaca1378c5ff3de9794a95ea5dc09c51450ea Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 13 Nov 2007 17:52:00 +0100 Subject: Move to a suitable place. --- hurd/running/gnu/universal_package_manager.mdwn | 2 +- hurd/translator/examples.mdwn | 91 +++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 hurd/translator/examples.mdwn (limited to 'hurd') diff --git a/hurd/running/gnu/universal_package_manager.mdwn b/hurd/running/gnu/universal_package_manager.mdwn index bd6f8835..6f3c2f57 100644 --- a/hurd/running/gnu/universal_package_manager.mdwn +++ b/hurd/running/gnu/universal_package_manager.mdwn @@ -129,7 +129,7 @@ ii. Read about GNU Design iii. Read about translators -iv. Try out these cool translators [[SettransExamples]] +iv. Try out these cool [[translator_examples|translator/examples]] v. Add your name below and give a shout in the list. diff --git a/hurd/translator/examples.mdwn b/hurd/translator/examples.mdwn new file mode 100644 index 00000000..dc4f9a81 --- /dev/null +++ b/hurd/translator/examples.mdwn @@ -0,0 +1,91 @@ +[[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 + + cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/hurdextras co + +* httpfs translator + + + + $ settrans -a tmp/ /hurd/httpfs www.hurd-project.com/ + +or + + $ settrans -a tmp/ /hurd/httpfs www.hurd-project.com/ --proxy= --port= + $ cd tmp/ + $ ls -l + +* ftpfs translator + + + + $ settrans -cgap ftp /hurd/hostmux /hurd/ftpfs / + $ cd ftp + ftp$ ls + ftp$ cd ftp.fr.debian.org + ftp/ftp.fr.debian.org $ ls + +* tarfs translator + +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. ;) + +* cvsfs translator + + + + $ settrans -ac cvsfs_testing /hurd/cvsfs cvs.savannah.nongnu.org /sources/hurdextras + $ cd cvsfs_testing + +* pfinet translator -- configuring your network interface + + + + $ settrans -fgca /servers/socket/2 /hurd/pfinet -i -a -m -g + +* Console translator -- setting up virtual consoles + + + + $ console -d vga -d pc_mouse -d pc_kbd -d generic_speaker /dev/vcs + +* iso9660fs translator -- 'mounting' your cdrom + + + + $ settrans -ac /cdrom /hurd/iso9660fs /dev/ + +* ext2fs translator -- 'mounting' an ext2fs partition + + + + $ settrans -ac /linux /hurd/ext2fs /dev/ + +* unionfs translator + +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. -- cgit v1.2.3