LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3973|回复: 16

debian-K8-hurd(GNU/Hurd)的安装笔记

[复制链接]
发表于 2005-2-1 17:09:29 | 显示全部楼层 |阅读模式
以前没有接触过debian,今天装了一个mini的,没什么软件。
如何从cd上安装软件 :thank
发表于 2005-2-1 17:13:30 | 显示全部楼层
精华里面有 先挂iso或cd 修改source.list 然后apt
好象也可以用deselect命令 但昨天没成功 不知道如何选择目录什么的
回复 支持 反对

使用道具 举报

发表于 2005-2-1 17:29:06 | 显示全部楼层
try apt-setup
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-1 17:34:05 | 显示全部楼层
:thank
我用的hurd

贴上两张mini图片

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-1 22:56:24 | 显示全部楼层
首先要感谢debian版各位前辈的帮助,才能够比较顺利安装这个deb-hurd,谢谢各位!

下面是我的debian-K8-hurd(GNU/Hurd)的安装笔记,因为首次接触debian,请大家多指点:

一、下载及相关信息:

http://ftp.gnuab.org
http://www.gnu.org/software/hurd
http://www.debian.org/ports/hurd/
http://hurd.gnu.org
http://hurd.gnufans.org/bin/view/Hurd/

因为我的网速比较慢,所以先下了个32MB的mini.iso进行安装(有很多种安装方法,我的可能是其中最笨的)

二、安装:

硬盘配置:

ide0主盘安装redhat9.0(hd0);
ide1主盘用来安装debian-k8-hurd;(/-->(hd2,0); swap -->(hd2,1))
ide1从盘为光驱(hd3)。

1)
为了引导mini-GNU/Hurd,先安装一个最小的redhat9.0带grub的系统;

2)
从光盘启动安装那个mini-debian-k8-hurd,分区-->格式化(选GNU/Hurd)-->挂载root-->安装baseGNU-->


『注:
(A)如果没有安装grub引导的其他系统,把第一张盘中的grub-94.iso刻盘引导,
(或者下载这个文件
http://www.linuxsir.cn/bbs/showthread.php?t=176218
刻盘)
这时你的安装位置可能是这样:/-->(hd0,0); swap-->(hd0,1)
(B)[2005-02-13添加]如果你重启时kernel panic blocksize 1024 != vm_xxxxxxblocksize 4096,那么你只好从头开始,手动重新格式化这个分区:ALT+F2进入第二控制台,
mke2fs -o hurd -b 4096 /dev/hda1
接下来再到第一控制台挂载root-->安装baseGUN。

(C)切换到第二控制台ALT+F2

cd /target
mkdir boot/grub
cp lib/grub/i386-pc/* boot/grub/


用nano-tiny创建文件boot/grub/menu.lst,内容如下:

  1. [color=Blue]timeout 10
  2. color light-grey/black red/light-grey

  3. title Debian GNU/Hurd

  4. root (hd0,0)
  5. kernel /boot/gnumach.gz root=device:hd0s1
  6. module /hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed ${root} $(task-create) $(task-resume)
  7. module /lib/ld.so.1 /hurd/exec $(exec-task=task-create)[/color]
复制代码



umount hurd根分区-->reboot重新启动

3)
在grub界面下,按c进入命令行,输入下面内容进行hurd引导(建议把下面内容添加到redhat9.0的grub引导菜单中,省得每次启动都要输入,具体步骤参照grub的手册):

  1. [color=Green]root (hd2,0)
  2. kernel /boot/gnumach.gz root=device:hd2s1
  3. module /hurd/ext2fs.static --multiboot-command-line=${kernel-command-line}  --host-priv-port=${host-port} --device-master-port=${device-port}  
  4. --exec-server-task=${exec-task} -T typed ${root} $(task-create) $(task-resume)
  5. module /lib/ld.so.1 /hurd/exec $(exec-task=task-create)[/color]
复制代码

boot

『如果用debian-K8-hurd-i386-CD1.iso里面的grub-94.iso刻盘引导;则可以先root (hd0,0),然后cat /boot/grub/menu.lst查看需要输入的内容,照着打就方便多了^_^;或者干脆root (hd0,0)然后setup (hd0)再reboot ;-D』

4)

如果启动顺利的话,将进入单用户的shell提示符下面,这时候你应该是在/下面,继续安装:

export TERM=mach
./native-install


安装提示,会要求你重新启动;

cd /dev
MAKEDEV hd2 hd2s1 hd2s2 hd3
mkdir /cdrom

输入重启命令:
reboot


5)

再次进入shell提示符下面后,还得再次进行第4)的步骤(不解):

export TERM=mach
./native-install


接下来,添加/etc/fstab中的内容:
[PHP]
/dev/hd2s1  /         ext2                  rw         1  1
/dev/hd2s2  none      swap                  sw         0  0
/dev/hd3    /cdrom    iso9660fs             ro,noauto  0  0
[/PHP]
一个mini系统总算安装成功。

6)

第二天cd1.iso刚好下载完,把光盘放入cdrom中,安装man:

mount /cdrom或者settrans -c /cdrom /hurd/iso9660fs /dev/hd3(不知道为什么apt-cdrom不能自动安装光驱,所以先手动挂上;卸载光盘:settrans -fg /cdrom
apt-cdrom add
apt-get install man


7)
按照上面方法,安装了vim

·注:安装软件捷径在第一张盘
less /cdrom/hurd-doc/Cook-doc #看安装说明
/cdrom/upgrade/install.sh #安装软件
/cdrom/upgrade/gui.sh #安装桌面


8)
What is the GNU Hurd?

The GNU Hurd is the GNU project's replacement for the Unix kernel.
The Hurd is a collection of servers that run on the Mach
microkernel to implement file systems, network protocols,
file access control, and other features that are implemented
by the Unix kernel or similar kernels (such as Linux).

GNU Hurd 是什么?
GNU Hurd 是代替 Unix 内核的 GNU 项目。Hurd 是运行在 Mach 微内核的服务
器集,她实现文件系统、网络协议、文件访问控制以及其他 Unix 内核或
类 Unix 内核(如 Linux )所实现的功能。

What the Hurd means

According to Thomas Bushnell, BSG, the primary architect of the
Hurd: `Hurd' stands for `Hird of Unix-Replacing Daemons'. And,
then, `Hird' stands for `Hurd of Interfaces Representing Depth'.
We have here, to my knowledge, the first software to be named by
a pair of mutually recursive acronyms.

意思是 “代替 Unix”的精灵接口是深度的象征!

宰相肚里能撑船的意思?



9)
Hurd 的优点:

Advantages of the Hurd

The Hurd is not the most advanced kernel known to the planet
(yet), but it does have a number of enticing features:

·it's free software
    Anybody can use, modify, and redistribute it under the terms
of the GNU General Public License (GPL).

·it's compatible
    The Hurd provides a familiar programming and user
environment. For all intents and purposes, the Hurd is a modern
Unix-like kernel. The Hurd uses the GNU C Library, whose
development closely tracks standards such as ANSI/ISO, BSD,
POSIX, Single Unix, SVID, and X/Open.

·it's built to survive
    Unlike other popular kernel software, the Hurd has an
object-oriented structure that allows it to evolve without
compromising its design. This structure will help the Hurd
undergo major redesign and modifications without having to be
entirely rewritten.

·it's scalable
    The Hurd implementation is aggressively multithreaded so that
it runs efficiently on both single processors and symmetric
multiprocessors. The Hurd interfaces are designed to allow
transparent network clusters (collectives), although this feature
has not yet been implemented.

·it's extensible
    The Hurd is an attractive platform for learning how to become
a kernel hacker or for implementing new ideas in kernel
technology. Every part of the system is designed to be modified
and extended.

·it's stable
    It is possible to develop and test new Hurd kernel components
without rebooting the machine (not even accidentally). Running
your own kernel components doesn't interfere with other users,
and so no special system privileges are required. The mechanism
for kernel extensions is secure by design: it is impossible to
impose your changes upon other users unless they authorize them
or you are the system administrator.

·it exists
    The Hurd is real software that works Right Now. It is not a
research project or a proposal. You don't have to wait at all
before you can start using and developing it.


目前只安装到这儿,先把笔记抄下。感觉有点晕,不知道从何处着手。。。

dselect我也用不上,老出错。
我这儿好象没找到apt-setup
回复 支持 反对

使用道具 举报

发表于 2005-2-1 23:10:17 | 显示全部楼层
linux和hurd,运行起起来效率更高?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-1 23:23:29 | 显示全部楼层
debian 的两个不同内核版本:debian GNU/Linux 和 debian GNU/Hurd;
不知道那个效率好些;不过,如果有纯GNU的dists版本,我倒是想试试

请问怎么列出光盘的软件包列表?
我的dselect的access里面怎么没有cdroms选项?
只有cdrom选项。

:help
回复 支持 反对

使用道具 举报

发表于 2005-2-2 09:22:24 | 显示全部楼层
呵呵,顺道参观了一下,
想装,不过另外想了想自己不是研究操作系统的,所以还是放弃了,
等以后再说了:)
回复 支持 反对

使用道具 举报

发表于 2005-2-3 20:25:37 | 显示全部楼层
等人报告hurd优点再说...........先用linux
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-3 21:19:22 | 显示全部楼层
在gnu网站上没看到详细的hurd资料。

通常在linux下可以用alt + fn,mach控制台我也不会用,不知道如何在不同控制台之间进行切换;
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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