LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: jessew

GNU 1.0

[复制链接]
发表于 2003-11-6 09:20:14 | 显示全部楼层
在本版算是了
好象GENTOO/LFS版还有更长的
发表于 2003-11-6 16:47:06 | 显示全部楼层

jessew,你是GNU的保罗

我们需要传道者。不过jessew你是不是认为如果让我们能够用上HURD,是不是更好一点。你应该装上HURD,指导我们,使用她,爱她,帮助她。
发表于 2003-11-7 23:17:39 | 显示全部楼层

gnu/hurd安装基本系统完毕,到时配好在写一篇文章

下载的gnu/hurd安装完了,本来可以早点完成的,可是因为分区太多,决定不了在哪个区
对grub又不熟悉,耽误了时间配置完图形界面让系统可以和linux一样用时再写些东西,顺便把官方的文档翻译一下.感觉安装比debian简单多了,用的是K4,
庆祝一下~~~~!!!!
发表于 2003-11-7 23:55:20 | 显示全部楼层

回复: gnu/hurd安装基本系统完毕,到时配好在写一篇文章

最初由 tianshan851 发表
下载的gnu/hurd安装完了,本来可以早点完成的,可是因为分区太多,决定不了在哪个区
对grub又不熟悉,耽误了时间配置完图形界面让系统可以和linux一样用时再写些东西,顺便把官方的文档翻译一下.感觉安装比debian简单多了,用的是K4,
庆祝一下~~~~!!!!



恭喜你:cool:

能否贴两张图!在写点详细的说明。
发表于 2003-11-8 03:44:15 | 显示全部楼层
对硬件的支持怎么样?
发表于 2003-11-8 08:12:05 | 显示全部楼层
还没有配置图形界面呢,最大的麻烦是设备都得自己用./MAKEDEV创建,一开始我没有完全按照安装说明的要求去做,所以终端不能转换大小写,谁知道是哪一步的问题?
我已经用export TERN=MACH
下面是别人的一篇安装说明,他用的是J2,现在K4有了一些改进,支持2gb磁盘分区,不过安装还是那么麻烦
发表于 2003-11-8 08:12:49 | 显示全部楼层
发信人: Chern_Yf (thinknerd),原信区: ustcbbs
标  题: GNU/Hurd 安装指南
发信站: 中国科大BBS站 (Sat, 28 Apr 2001 18:29:14),站内信件

其实 GNU/Hurd 的安装是如此的容易(如果你已经安装了 GNU/Linux 特别是
Debian 的话)我都觉得我的这份东西有点多余了

GNU/Hurd 安装指南


  1. 准备Hurd分区

     1.1 grub 对分区的命名方式

     在 grub 里, 分区命名为 (hdN,M). N, M为整数. N 为驱动器号,
     而 M 为分区号. 都是从 0 开始, 比如说 Linux 里的 hdb3 称为
     (hd1, 2).

     1.2 Hurd 对分区的命名方式

         Hurd 的命名方法与 Linux 有所不同. IDE 驱动器用数字编号, 从 hd0
     开始. 注意, 第二个 IDE 驱动器总是叫做 hd1, 不管它是 master 或
     slave. 类似地 SCSI 命名为 sd0, sd1 ....
     Linux 风格的分区称为 sn (从 BSD 家族来的习惯?), 其中 n 为分区号.
     所以, 比如说 Linux 里面的 hda3 会命名为 hd0s3.

     1.3 准备分区

         现在是真正准备分区了. 由于 Hurd 的文件系统服务器的实现上的原因,
     它现在不支持大于1G的分区(原因另述). 一般500M左右就可以了(但是
     我是给它分了900M左右). 这一步, 用 fdisk 就可以了. 把分区了类型
     设置为 Linux Native(0x83). 虽然为 Hurd 保留了一个类型(0x63)
     但是现在还不能工作. 然后用如下命令在上面建立 ext2 文件系统:

          mke2fs -O sparse_super -o hurd /dev/hda3 (我的情况)

     接下来就可以开始安装了 .


  2. 安装

     有几种方式, 先介绍在 Debian 下面的安装方法. 这种方法是相当简单的.

     2.1 Debian 下面的安装方法

     先到

      ftp://202.38.85.231/pub/hurd/install

     把所有的文件(也就是整个目录)给下载回去, 里面还有我安装时的 log,
     有许多错误不过都不要紧的. 然后把你的分区给 mount 上来.

      mount /dev/hda3  /mnt/gnu

         接下来就简单了:

          ./cross-install /mnt/gnu

      安装就此完成, 太简单了. 脚本 cross-install 里面有两个变量
      plist 和 oplist, 是要安装的 package 的列表. 你如果想在这
      一步安装其它软件的话, 可以自己编辑这个列表, 然后到

          ftp://202.38.85.231/pub/hurd/hurd

      下把需要的 deb 包给下载回去就可以了. 我已经对它作了一些改动
      里面还有一些问题. 比如说包间的依赖关系没有的到满足, 但是已经


     2.2 非 Debian 下面的安装

         有两种方法, 第一是为你的系统装上 dpkg , 然后就可以按照上面的
     方法安装. 第二是使用打包好的 tarball 来安装. 到

         ftp://202.38.85.231/pub/hurd/tarball

    下载文件 gnu-20000301.tar.gz, 然后把它解到相应的目录里面去就可
    以了:

        mount /dev/hda3 /mnt/gnu
        tar --same-owner -zxf gnu-20000301.tar.gz /mnt/gnu

    完成 .


  3. 引导

     目前, 只有 grub 才能引导 GNU/Hurd, 其实安装 grub 是相当的简单的. 如

        grub-install /dev/hda

     就完成了. 然后编辑一下 /boot/grub/menu.lst, 对应 Hurd 的一项可以这样
     写:

    title  GNU/Hurd
    root   (hd0,2)
    kernel /boot/gnumach.gz root=hd0s3
    module /boot/serverboot.gz

      注意一下前面关于 grub 和 Hurd 对分区的命名方法, 把它改成你的情况即可.
      不需要象 lilo 那样重新安装. 而且要注意要再重新安装 lilo 以至于覆盖了
      grub. 当然你也可以不编辑 menu.lst, 而是在引导时直接用 grub 的命令行
      也可以.

      然后就是, reboot. 引导到 hurd 后, login root, ./native-install
      基本的安装就完成了.

  4. 设置


         不象 Linux, Hurd 没有在 /dev 下面生成所有的设备文件, 你需要自己生
     成你需要的设备文件.

         cd /dev
                 ./MAKEDEV hd0s1 ...........

     4.2 网络的设置

     用如下命令:

           settrans /servers/socket/2 --goaway
       settrans -fg /servers/socket/2 \
         /hurd/pfinet --interface=eth0 --address=u.v.x.y\
         --gateway=uu.vv.xx.yy --netmask=uuu.vvv.xxx.yyy

     settrans 是 Hurd 里很常用的一个命令, 具体的含义我准备再写一篇介绍了
     Hurd 的基本概念以后再作解释.

     4.3 交换分区

     交换分区对 Hurd 非常重要, 可以按照 Linux 下 /etc/fstab 的方式
     写到 Hurd 的 /etc/fatab 文件中去.

  然后就可以 /sbin/reboot, Good luck and enjoy !

--
※ 来源: 中国科大BBS站 [bbs.ustc.edu.cn]
发表于 2003-11-8 09:47:09 | 显示全部楼层

正在翻译的GNU/HURD安装向导

Installing the Hurd
安装the hurd

Neal H. Wal?eld

cCopyright ? 2000, 2001, 2002, 2003 Neal H. Wal?eld <neal@cs.uml.edu>
Permission is granted to make and distribute verbatim copies of this manual provided the
copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modi?ed versions of this manual under the conditions for verbatim copying, provided also that the sections entitled “Copying” and “GNU General Public License” are included exactly as in the original, and provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another lan?guage, under the above conditions for modi?ed versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation.
1 Overview
1概述
The Debian GNU Hurd distribution, unlike distributions of other operating systems, does not have a nice installation program. One day it will and maybe you will help design and implement it; however, until that day, installing the GNU Hurd requires another operating system, speci?cally, another Unix?like system1 . Users have indicated successful installations using di?erent ?avors of GNU/Linux as well as the BSDs. The minimum requirements of the bootstrap operating system are the ability: to create an ext2 ?le system; to extract a tar archive on to it; and to install GNU Grub.
Debian GNU Hurd发行版不像别的操作系统的发行版,它没有一个好的安装程序,某一天会有,或者你会帮忙设计并实现它,然而,直到那一天为止,安装the GNU Hurd需要另一个操作系统,尤其是另一个类unix操作系统.用户指出已经成功的用不同喜好的GNU/Linux以及BSDs安装了它.安装一个可启动的操作系统的最小要求是具有以下能力:
创建一个ext2文件系统,解压一个tar包到上面,并安装GNU Grub
The GNU Hurd is similar in nature to any Unix?like system: after logging in, the user is presented with a shell and the familiar Unix VFS, virtual ?lesystem. Although GNU tries to be POSIX compliant, it is not Unix. The Hurd builds upon many of the Unix concepts and extends them to either add new functionality or to ?x what has been perceived as ?aws in the original design. The most noticeable di?erence is translators, user space programs which interact with the VFS. These ?flesystems do not live living in the kernel nor do they need to be run as root; they only need access to the backing store and the mount point. Another di?erence is that processes, rather having a single user identity ?fixed at creation time, have identity tokens which are disjoint from the process, i.e. they may be added with the appropriate permission from an authority or destroyed.
GNU Hurd 和任何unix类操作系统十分相似:登陆后用户会有一个shell和一个熟悉的Unix VFS虚?文件系统.虽然GNU尝试符合POSIX标准,但是他不是UNIX.the Hurd基于很多的Unix概念并且或者增加新的功能,或者去掉被发现是不正确的初始设计,来扩展它们.最值得关注的是转译器,与VFS交互的用户空间程序.这些文件系统并不长驻内核,也不需要用根用户运行;它们仅仅需要backing 存储和挂载点.另外一个不同在于进程,(这里很难翻译准确,大家帮忙)
Being familiar with the Unix environment is an imperative for feeling at ease in GNU. Having experience with the Debian tools will also prove invaluable to the con?guration and maintenance of a GNU/Hurd box.
熟悉UNIX 环境对于在GNU中感觉轻松是必要的,有使用debian工具的经验也会提高你配置和维护GNU/Hurd box的能力
This guide endeavors to make installing the Hurd as painless a process as possible. If there are errors, they are most certainly the author’s. Please report them, along with any other suggestions or criticisms, to him; all are gladly accepted.
本向导致力于尽量使得安装the Hurd成为一个没有痛苦的过程.如果有错误的话,大多数是作者的错误.请把它们连同任何建议或批评发给作者,这些错误会被高兴的采纳的.
2 Real Estate or Finding A Home
If you do not have an available partition or an extra hard drive, this can be the longest step. In this case, you will need to repartition the hard drive. One solution is to use GNU’s partition editor, Parted. It features not only basic partition editing but also partition resiz?ing and moving functionality. It can be found at http://www.gnu.org/software/parted. The manual is quite complete and includes several tutorials.
如果你没有一个可用的分区或者一个多余的硬盘,这一步可能是最长的一步.如果是这种情况,你需要重新划分硬盘分区.一种解决方案是使用GNU的分区编辑器,Parted,它不仅有基本的分区编辑特性,也具有重新划分分区以及移动分区的功能.你可以在http://www.gnu.org/software/part ... 包含一些教程.
The Hurd can only support partition sizes of up to approximately two gigabytes; anything larger than this will not work. This limitation is due to a design decision that was made several years ago in which the ?lesystem server maps the entire ?lesystem into virtual memory. As the amount of virtual memory available on an ia32 is only four gigabytes of which Mach allocates three gigabytes to the application and, of that, a signi?cant portion is reserved for the code, the stack and the heap, the ?nal, maximum contiguous virtual memory area that remains is generally about two gigabytes. This limitation is scheduled to be removed.
The Hurd只能支持最大大约为2G的分区大小.任何大于这个数值的分区都不会工作.这个限制是由于多年前做的一个决定:文件系统服务影射整个文件系统到虚?内存中.因为IA32的虚?内存总计只有4GB,而MACH分配3GB给应用程序,这其中一部分重要的部分保留给代码,堆栈和堆,最后,临近的虚?内存区域就只剩下大概2GB了,这个限制正在准备移除.
Philip Charles has created a set of CDs (available at http://www.debian.org/ports/hurd/hurd?cd) which contains a live Debian GNU/Linux system thereby arguably eliding this requirement, however, we maintain that this is functionally equivalent.
Having said that, a single two gigabyte filesystem is more than enough for a working system. Many, however, prefer at least two ?lesystems: a root ?lesystem and a second for ‘/home’. This latter scheme is highly advised for developers: compiling the Hurd can take up quite a bit of space.
就上面说的来说,一个2GB的文件系统对于一个可以工作的系统来说已经远远足够了.然而,最好有最少两个文件系统(分区),一个根分区,一个作为/home挂载点的分区.后一个分区对于程序员来说十分必要:因为编译the Hurd可能占用很大一部分空间.
发表于 2003-11-8 10:57:18 | 显示全部楼层
The Hurd supports several extensions to the ext2fs ?lesystem format. Foremost among these are passive translators and a fourth set of permission bits for unknown users (users without an identity?not the other user). To use these extensions, the owner of the partition must be set to hurd. mke2fs, unless speci?cally overridden on the command line, will set the owner to whatever operating system it is running on. As the Hurd will diligently respect this setting, care must be taken to set this appropriately or the Hurd will fail in subtle ways. Be aware that even if a file system is owned by a particular operating system, others may still use it; they just may not be able to use certain extensions.
The Hurd支持许多的ext2fs文件系统格式的扩展.这些中最重要的是被动转译器和给未知用户(没有身分的用户,而不是别的用户)四分之一组的许可.????要使用这些扩展,分区的用户必须设置为hurd.mke2fs,除非在命令行特别指定无效,否则会将任何在上面运行的操作系统(及其用户)都指定为其所有者.由于hurd会十分忠实的遵守这些设置.所以必须十分小心的设置这些,否则the Hurd可能会以微妙的方式失效而不工作.要意识到这一点:即使一个文件系统是由一个特定的操作系统拥有,别的操作系统也仍然会用到它;它们可能无法使用一些特殊的扩展.
To create a ?lesystem, use mke2fs and pass it ‘?-o hurd’ to designate the Hurd as the owner of the new ?le system. For instance, assuming the parition is ‘/dev/hda2’: # mke2fs ?-o hurd /dev/hda2
创建一个文件系统,用命令mke2fs并给它传递参数'-o hurd'指定Hurd作为新文件系统的所有者.例如:假设分区是'/dev/hda2'则命令为:#mke2fs -o hurd /dev/hda2.

3 The Boot Loader
3引导程序
Unlike GNU/Linux and the BSDs, the Hurd does not have its own boot loader; any boot loader that supports the multiboot standard can be used to load the Hurd. At the moment, there is only one project which that satis?es these requirements: Grub, the GRand Uni?ed Boot loader.
不像GNU/Linux和 the BSDs,hurd没有他自己的引导程序,任何支持多系统引导标准的引导程序都可以用来加载the Hurd,目前只有一个项目符合这些要求:Grub,the GRand Unified Boot loader.(译者注:lilo不支持hurd的大内核,OSloader不支持hurd,以后或许会有新的,或者一直用Grub)
A word about Grub. Unlike traditional boot loaders on the x86, such as LILO, Grub is very powerful. It has a command line interface, bootp, dummy terminal support and a plethora of other features. In addition, it can boot most any operating system. If you have ever booted an alpha or sparc, you will understand what Grub can do. Therefore, do not be scared: Grub is better. You will like it. You will not go back.
一句话概括Grub,不像x86上传统的引导程序,比如LILO,Grub是非常强大的.它有一个命令行界面,bootp,虚?终端支持和太多的别的特性.另外,它可以启动几乎任何操作系统.如果你曾经启动国alpha或者sparc的话,你就会明白Grub可以作什么.因此,你不用担心.Grub是出色的,你会喜欢她,并且不会回头找别的程序.
To ?find Grub, visit http://www.gnu.org/software/grub/. Here, there is a source tarball and a ?floppy image. If you choose to download the tarball, it is a normal configure, make and make install. Included is a wonderfully complete manual on how Grub works. Read it. If, on the other hand, you choose to download the ?oppy image, it is sufficient to dump it to a floppy disk to get a working Grub, for example:
# dd if=grub?boot?image of=/dev/fd0
You can always install Grub onto your hard drive at a later date.
你可以访问http://www.gnu.org/software/grub/    去找到Grub
在这里有一个源码包和软盘映象,如果你选择下载源码包,只需要
像平常一样configure,make ,make install.里面有一个完整的,精彩
的手册解释Grub如何工作的,阅读它.另一方面,如果你选择下载软盘
映像的话,将其完全转到一个软盘得到一个可以工作的Grub,如下操作:
# dd if=grub?boot?image of=/dev/fd0
你也可以在以后的任何一个时间将Grub安装到你的硬盘上.
发表于 2003-11-8 11:39:57 | 显示全部楼层
4跨平台安装
The next step is to download the base system at: ftp://alpha.gnu.org/gnu/hurd/contrib/marcus/gnu?latest.tar.gz
下一步是下载基本系统:ftp://alpha.gnu.org/gnu/hurd/contrib/marcus/gnu?latest.tar.gz
The tarball is setup to extract everything into the current directory. After the filesystem is mounted, the archive can be extracted. Assuming that the ?lesystem is on ‘/dev/hda2’, the mount point is ‘/gnu’ and archive is in current user’s home directory, the following is required:
# mount ?t ext2 /dev/hda2 /gnu
# cd /gnu
# tar ??same?owner ?xvzpf ~/gnu?latest.tar.gz
下一步是安装解压所有东西到当前目录,文件系统被挂载后
压缩包可以被解压,假设文件系统是在'/devhda2'上,挂载点是'/gnu'
而压缩包在当前用户的home目录.那么需要下面的步骤:
# mount ?t ext2 /dev/hda2 /gnu
# cd /gnu
# tar ??same?owner ?xvzpf ~/gnu?latest.tar.gz
5 Booting the Hurd
5启动the Hurd
All is now in readiness to boot the Hurd for the first time. After verifying that the Grub boot disk is in the drive, reboot. If all goes well, either a Grub menu or command line will be displayed. If presented with a menu, press c to go to the command line.
现在为第一次启动the Hurd所作的准备都做好了.确信Grub启动磁盘在驱动器中,重启.如果一切顺利,或者是命令行,或者是菜单将会显示在屏幕上.如果显示的是菜单,按住c键可以转到命令行.
First, GNU Mach needs to be loaded. This requires knowing the filesystem and the path to GNU Mach. Grub uses a partition nomenclature that is a bit different from both Linux and the Hurd: both IDE and SCSI drives are named ‘(hdN,M)’. N is the drive number (zero based) as enumerated by the BIOS. That is, Grub makes no distinction between IDE and SCSI disks. M identifies the partition on the drive. It is also zero based index. If this sounds confusing, relax: Grub is also helpful.
首先,GNU Mach需要被加载,这需要你知道GNU Mach的文件系统和路径Grub使用和linux及Hurd都有点不同的分区命名法.无论是IDE还是SCSI驱动器都命名为'(hdN,M)',N是像BIOS命名驱动器号那样来命名的驱动器号(由零开始),这就是说,Grub不区分IDE和SCSI磁盘.M区分(标志)磁盘上的分区.也是以零开始.如果听起来觉得迷惑的话,放松:实际上Grub也可以提供帮助.
To determine on which filesystem a particular file resides, Grub provides the find com?mand. When this command is issued along with a filename, Grub searches on each ?filesystem for the specified file and prints where it was found. For example, to search for the kernel, ‘/boot/gnumach.gz’:
grub> find /boot/gnumach.gz (hd0,0) Here, Grub is indicates that ‘/boot/gnumach.gz’ is on ‘(hd0,0)’.
要确定(决定)一个特别的文件放在哪个文件系统,Grub提供了find命令,当向其发出后跟文件名的find命令时Grub搜索每一个分区寻找指定的文件并打印出在哪里找到它.举个例子:要搜索内核'/boot/gnumach.gz':
grub> find /boot/gnumach.gz (hd0,0) Here, Grub is indicates that ‘/boot/gnumach.gz’ is on ‘(hd0,0)’.
Before loading the kernel, at least one option, the root partition, must be speci?ed on the command line. This will be used by the Hurd itself (i.e. not Grub). As such, it must be in terms that the Hurd can understand.
在加载内核前,最少需要在命令行指定一个选项,根分区.这个选项会被Hurd自己使用(记得,绝对不是GRUB).这样的条件,hurd才能懂得如何加载内核.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表