LinuxSir.cn,穿越时空的Linuxsir!

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

征lunar测试方面的东西....

[复制链接]
发表于 2003-3-18 12:34:03 | 显示全部楼层 |阅读模式
关于lunar的一些简单介绍

lunar,是一个很新的linux distro

下载地址http://lunar-linux.org

 楼主| 发表于 2003-3-18 19:05:59 | 显示全部楼层

<.1>lunar的初步硬盘安装.....

Lunar linux使用图形配置方式来管理整个linux系统的安装过程!!!!

。下载http://www.lunar-linux.com/lunar/lunar-1.3.iso.bz2

接开bz2文件,成lunar-1.3.iso

分出一个空分区--比如hda3

在自己的linux环境下,同时你的内核要支持loopback.....

mount ./lunar-1.3.iso /mnt/lunar -o loop

把hda3加载在---比如目录下/lunar下......

cp -Rp /mnt/lunar/* /lunar

这是第一步。和Gentoo等,如出一辙!!!
下一步,启动。。。

cp /lunar/isolinux/linux 到你的grub所在分区,以后就可以引导了。。。
boot> root
boot>kernel /boot/linux root=/dev/hda3

这个最有趣的部分是“具体配置“的部分。。。。。

<在/sbin/lunar.install是配置安装脚本〉

常用命令...

lunar lva lin lrm lget
...........
<参考如下>
Installing lunar without CD burner


On Tue, Jul 16, 2002 at 09:59:12PM +0200, Jasper Huijsmans wrote:
> Hello list,
>
> I'd like to try Lunar linux, but I don't have a CD burner. Is it
> possible to install Lunar without starting from CD? I would guess yes.
> Has anyone tried that?

I did that, successfully. "How" follows:

---
Suppose you don't have a CD-ROM drive or an installation ISO available, but
you want to turn your existing linux installation into Lunar-Linux.
This will practically mean wiping out whatever you have left of your
current distribution and starting over with the new one. Here's what
you need:

  1. - One hard disk partition with enough space to hold the contents of
  2. the installation ISO. Also you can't install to this partition; two
  3. separate hard disks are a good idea.

  4. - Loopback device support in your kernel (for copying the contents if
  5. of the ISO to the partition)

复制代码

0. Of course, as always when you're installing something, back up
whatever important you have on your hard disk.

1. Copy the contents of the ISO to your temporary partition. For
example, I wanted to install Lunar on the first disk (/dev/hda), and
used an empty 300-meg ext2 partition /dev/hdb4 to contain a copy of the
ISO during the installation. The procedure went like this:
...

  1. -rw-r--r-- 1 root root 161546240 May 29 01:37 lunar-20020503.iso
  2. golem:/tmp# mount ./lunar-20020503.iso /mnt -t iso9660 -o loop=/dev/loop0
  3. golem:/tmp# mount /dev/hdb4 /mnt2 -t ext2
  4. golem:/tmp# cp -Rp /mnt/* /mnt2

复制代码

>From now on, we'll assume that you've mounted the ISO to /mnt and the

temporary volume to /mnt2.

2. Next we need to boot the kernel which resides on the temporary

partition (/mnt2/isolinux/linux), and mount the file

(/mnt2/isolinux/initrd.gz) as the root file system. We can do this with

lilo. Create a temporary lilo.conf.tmp which contains the following:


  1. --begin /tmp/lilo.conf--
  2. boot=/dev/fd0
  3. vga=normal
  4. image=/mnt2/isolinux/linux
  5. label=lunar-install
  6. ramdisk=8192
  7. initrd=/mnt2/isolinux/initrd.gz
  8. root=/dev/ram0
  9. --begin /tmp/lilo.conf--

复制代码

    This one will make a boot floppy disk which will boot into your newly

born temporary install disk. If you wanted to boot straight from your

hard disk, you could use boot=/dev/hda (which installs on the MBR of the

first disk), but it will of course wipe your current boot sector. I did

it and got problems - use with caution  

Then run lilo to write the boot sector to the floppy:

  1. root at golem:/tmp# lilo -C ./lilo.conf
  2. Warning: LBA32 addressing assumed
  3. Added lunar-install *
  4. root at golem:/tmp#
复制代码



3. Not so fast! Don't reboot yet. The installation is (as of the time of

writing this, at least) configured to run the file

/usr/sbin/lunar.install if it is booted on a read-only device (such as a

CD-ROM), and to delete that file if it is booted on a hard disk. This

causes an unpleasant surprise to the unaware (at least to me it did  

Before booting the temporary disk, you must change the file

/mnt2/etc/init.d/lunar (which is run at the boot time) so that it won't

delete that precious file:


  1. --begin /mnt2/etc/init.d/lunar--
  2. if [ -x /usr/sbin/lunar.install ]; then
  3. # comment out this line:
  4. # /bin/rm -f /usr/sbin/lunar.install 2> /dev/null ||
  5. /usr/sbin/lunar.install
  6. fi
  7. --end /mnt2/etc/init.d/lunar--
复制代码



4. Now let's boot with the floppy disk. If everything goes fine, first

the installer will mount the initrd image as root, containing some

kernel modules. You should load all kernel modules which you will need

to access your temporary hard disk, in the same manner as you would have

to load your CD-ROM driver. For example, if you were using /dev/sdb4

instead of /dev/hda4 for your temporary disk, select your SCSI driver,

etc. etc. Most IDE ATA/100 drivers and similar are already compiled in

the installation kernel, I think, so you don't need to take care of

those. When comes the time to select your root device, you should

select the same temporary device as before, except that it is now in

devfs-style path since the installer supports only devfs. For example,

  1. if the temporary partition was /dev/hdb4 in the normal /dev system, it's
  2. /devices/discs/disc1/part4 now.
复制代码

  Go to the shell and check if you're unsure.


5. After this you can hopefully manage to continue installing as if you

were booting from CD-ROM; the installer prompts to repartition and

format your partitions and swap spaces, etc. Don't wipe out your

temporary partition yet  

6. Finally, the installer lets you configure the kernel and compiles it,

and then reboots - or alternatively lets you go to the shell to do

whatever you want to do. This is a good change to move the installer

out of the way so that it won't be run again when you boot for the

second time. (Remember the change we made in step 3?) Just simple

  1. "mv /mnt/root/usr/sbin/lunar.install /mnt/root/usr/sbin/lunar.install.old"
复制代码
will do.

7. If everything goes fine, you've got a fresh installation with minimal

default settings (I had to do 'lin dhcpcd', for example, to get the

network up). Enjoy.

---

Antti.

P.S. After I installed my system the thought that you could install
lunar straight from the ISO image via the loopback filesystem popped
into my mind, but I was too lazy to reinstall my system, testing if it
would work for real. But you might want to try if you're brave enough
 楼主| 发表于 2003-3-18 19:17:17 | 显示全部楼层
lunar中很重要的一条指令:lunar

模块和软件安装,解却包依赖问题,重新配置优化选项全在这里了,有一个统一conle下的界面,用起

来很容易,就像freebsd下的sysinstall一样

lunar还可以设置对gcc 2 或gcc 3编译的优化,对C 和C ++编译的优化,X86,ALAPH,solaris,powerpc

的优化,优化速度包括5档,none,fast,faster,fastest和small,speedy速度优化包括

speedy.risky,pointers.....的优化选项,还包括sse,sse2,3dnow等额外选项。。。。,真是太多

了。


安装过程有一个统一的基本界面,是先自己添加modules,然后分区,加载分区,拷贝基本系统文件,

然后定制内核优化部分(这可能是fans最关心的部分),接下来是重新编译内核(当然是最新的2.4.20

版再加上lunar自己打得补丁),写lilo或grub,配置timezone,eth,hostname,最后就是reboot。


他是从开发者的网站下载再来编译的,这点就像freebsd的port的概念,make过程中如果缺少

dependence,就会再去下载和make那个依赖包。

编译内核过程--不用自己把make dep,make BZimage,make modules。。。,自己书写lilo和grub,自

己运行lilo,重不出错

发表于 2003-3-18 19:31:11 | 显示全部楼层
哇,QING兄已经开始了,偶还没安装,怕了,怕分区把硬盘搞爆了,偶用光盘安装的,QING兄可以具体讲一下分区部分吗,谢谢了!
 楼主| 发表于 2003-3-19 10:24:34 | 显示全部楼层
嗨!!还是有人在用的,我们不知道而已啊!!!


http://home.swbell.net/kenmann/Lunar-Install.html
 楼主| 发表于 2003-3-19 10:28:14 | 显示全部楼层
快照--BOOT



 楼主| 发表于 2003-3-19 10:29:16 | 显示全部楼层
initrd

 楼主| 发表于 2003-3-19 10:30:04 | 显示全部楼层
fail

 楼主| 发表于 2003-3-19 10:30:52 | 显示全部楼层
install1

 楼主| 发表于 2003-3-19 10:31:45 | 显示全部楼层
install2


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

本版积分规则

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