邪恶八进制信息安全团队技术讨论组's Archiver

EvilOctal 2005-3-20 01:43

[转载]通过FTP方式在计算中心四终端安装LINUX

文章作者:何斌武

1. 在Windows 95下制作启动盘
  使用Netscape或IE打开如下URL:
  [url]ftp://192.168.3.254/pub/Linux/redhat/redhat-5.2/i386/images/[/url]
      使用mouse右键的Save Link As, 将boot.img和supp.img存到自己的硬盘上。
  [url]ftp://192.168..254/pub/Linux/redhat/redhat-5.2/i386/dosutils/[/url]
      同样将rawrite.exe文件存到硬盘上。

  如果你希望安装mandrake 5.3(带KDE窗口管理器)请使用如下URL:
  [url]ftp://192.168.3.254/pub/Linux/mandrake-5.3/images/boot.img[/url]
  [url]ftp://192.168.3.254/pub/Linux/mandrake-5.3/images/supp.img[/url]
  [url]ftp://192.168.3.254/pub/Linux/mandrake-5.3/dosutils/rawrite.exe[/url]

  大家也可以从大工ftp服务器上取得相应文件,这时只用将上面URL中的192.168.3.254
  改为ftp.dlut.edu.cn即可。当然你也可以用其他FTP程序取得上面三个文件,但确认
  下载文件时使用的是binary方式。

  假设你将上面三个文件存在c:\temp目录下,在DOS方式下执行:

  c:\temp> rawrite boot.img A:
  C:\temp> rawrie  supp.img A:

  在磁盘上写上相应的标记,以区分这两张盘。然后准备开始安装。
  
  
2.用boot.img软盘启动机器,下面的安装过程中出现的对话窗口及相应的选择
  
  Choose a language: -> English
  Keyboard Type:      us
  Installation method:  FTP
  更换软盘,插入supp.img软盘,回车

  Installation Path: 选择Install
  Installation Class: 可选择custom,当然也可选择其他三种:Workstation/Server
  SCSI Configuation: No
  Disk Setup: 选择 Disk Druid  Or fdsik都可,下面示例使用的是fdisk

  Partition Disks:  /dev/hda - Model QUANTUM FIREBALL ST2.1A
           -> EDIT
       删除/dev/hda5, /dev/hda2
       新建两个分区:
         /dev/hda2  Primary Partition, 起始柱面:764
                             结束柱面:992
         /dev/hda3  Primary Partition 起始柱面: 993
                            结束柱面: 1023
       使用FDISK命令的t命令将/dev/hda3的ID改为82(Linux swap)
      
       使用w写盘
      
      退回Partition Disks窗口,选择Done
      
  Current Disk Partitions:
      使用Edit修改/dev/hda2的mount point为/, /dev/hda1为/mnt/dos
      使用EDIT时不要修改其他参数
      
      修改完后选择OK继续
      
  Active Swap Space:
      可选择 [ ] Check for bad blocks during format
      然后选择OK激合交换区空间
      
  Load Module:
      选择NE2000 and Compatiable , 使用AutoProbe(自动检测网卡).
      
  Boot Protocol
      选择Static IP Address
        (BootP,DHCP中心现有网络环境不支持)
      
      Configure TCP/IP:
            IP Address:  192.168.3.x (看一下显示器上贴的IP地址)
            Netmask:    255.255.255.0(输完IP后自动给出255.255.255.0)
            Default gateway(IP): 192.168.3.254 (输完IP后自动给出网关地址).
            Primary nameserver: 202.118.69.1
      Configure Network:
           Domainname:    dlut.edu.cn
           Hostname:     term机器号
           Secondary nameserver(IP): 202.118.66.6 (也可不填)
           Tertiary nameserver(IP):不填写
           
  FTP Setup:
      FTP Site name:
                192.168.3.254 (一终端使用192.168.1.254)
      Red Hat Directory:
                /pub/Linux/redhat/redhat-5.2/i386
                (同从大工FTP安装时的路径相同,如果安装mandrake-5.3
                此路径填写/pub/Linux/mandrake-5.3, 输入路径时请注意
                区分大小写).
      [ ] Use non-anonymous ftp or a proxy server 不要选此项
      
      OK继续
      
      如果网络配置正确应该出现: Retriving base/hdlist字样,然后弹出格式化分区
      窗口,否则请使用Alt+F3键切换到信息窗口,查看相关安装信息,正常情况下应该
      出现:
      *eth0 is available --using it for networking
      *configuring eth0 ip: 192.168.x.x nm:255.255.255.0 nw 192.168.3.0 bc:192.168.x.255
      *reverse name lookup failed
           出现以上信息表明安装程序已经识别了网卡
      *ftping base/hdlist to a fd
      *psFromHeaderListDest read 573 headers
      *ftping base/comps as /tmp/comps
      *ftping base/install3.tr as /tmp/install3.tr
      如果出现了上面的信息表明网络已经配置正确,可以通过FTP方式安装LINUX
    否则请记录相应的错误信息,通常错误原因是网络配置不对或未认识网卡,网线
    连接不对等原因。
     
    也可使用ALT+F4查看相关信息:如网卡信息,硬盘分区信息等等
    网卡信息:
    <4>NE*000 ethercard probe at 0x300: 00 80 c8 7f 93 6c
                            -----------------
                            此值为网卡的MAC地址
    <4>eth0: NE2000 found at 0x300, using IRQ3
            网卡IP地址及中断信息
     

   Partitions To Format:
      选择出现的所有分区
      [*] /dev/hda2 /
      
        [ ] Check for bad blocks during format
   在试验安装时可不选此项,但对于网络服务器等重要任何的机器,第一次安装时
   最好选择此项,当然检查坏块会影响安装时间
        
    OK继续
      
   Componets to Install: *表示安装相应部分,使用空格键选择
      Choose compoents to install:
      [ ] Printer Support
      [*] X Window System
      [ ] Mail/WWW/News Tools
      [ ] DOS/Windows Connectivity
      [ ] File manager
      [ ] Graphics manipulation
      [ ] X Games
      [ ] Console Games
      [ ] X multimedia support
      [ ] Console Multimedia
      [*] Networked Workstation
      [ ] Dialup Workstation
      [ ] News Server
      [ ] NFS Server
      [ ] SMB(samba) Connectivity
      [ ] IPX/Netware(tm) Connectivity
      [*] Anonymous FTP Server
      [*] Web Server
      [*] DNS Name Server
      [ ] Postgres (SQL) Server
      [ ] Network Mnagement Workstation
      [ ] Tex Document Dormatting  (最好别选此项)
      [ ] Emacs          (在试验时不要选择Emacs,硬盘空间不够)
      [ ] Emacs with X windows
      [*] C Development  
      [*] Development Libraries
      [ ] C++ Development
      [*] X Development
      [*] Extra Documentation
      [ ] Everything (完全安装,选择此项则上面的选择不起作用)
      
           [*] Select individual packages  (选择单独的包)
           
           OK继续
      
  Select Group:
      
          Base/Kernel:
                选择kernel-headers, kernel-source
          Development/System
                选择linuxconf
               
          Documentation
          Select Packages: 选择 faq howto howto-chinese
           
      
      Done, 继续安装
      
  Install log:
      选择OK继续
      
安装时出现一些不能读取rpm包或不能将FTP服务器置为passive mode的信息可忽略,
按回车键继续执行安装。
      
可使用ALT+F3查看当前安装了那些RPM包。
      
安装完成后出现配置信息:

mouseconfig 3.1.3  这一步是配置mouse类型,正确情况下会检测出PS/2 mouse,
      否则会让手工指定mouse类型
  
           
Configure Mouse:
      选择 Generic Mouse (PS/2)
         [*] Emulate  3 Buttons?
      OK继续
      
PCI Probe:
      PCI probing founnd a :
           PCI Entry: Mach64 VT
           X Server: Mach64
      OK继续

Minitor Setup:
      选择Custom
           OK
      Custom Monitor Setup: 看一屏幕的提示信息
           OK继续
      
      Custom Monitor Setup(Continued)
           选择Super VGA, 800x600 @ 56 Hz
              或 Extended Super VGA, 800x600 @ 60 Hz, 640x480 @ 72 Hz
              
      Custom Minitor Setup(Continued)
           选择 50-90
           
Screen Configuration:  选择Don&#39;t Probe

Video Memory:  2 meg

Clockchip Configuration:
      选择No Clockchip Setting (recommended)

Select Video Modes:
      8 Bits:  [*]640x480
            [*]800x600
      16 Bits: [*]640x480
            [*]800x600

Network Configuration:
      选择 Keep the current IP cofiguatioin
      OK继续
      
Configure Timezones:
      [ ] Hardware clock set to GMT
      选择PRC时区
      OK继续
      
Service:
      [ ] atd
      [*] crond
      [*] gpm
      [*] httpd
      [*] inet
      [*] kerneld
      [ ] keytable
      [ ] linuxconf
      [ ] lpd
      [ ] named
      [*] network
      [ ] nfsfs
      [ ] pcmcia
      [*] portmap
      [*] random
      [ ] routed
      [ ] ruserd
      [ ] rwhod
      [*] sendmail
      [*] syslog
      [ ] ypbind
      
      OK继续
      
Configure Printer:
      NO, 不安装打印机
Root Password:
      设置超级用户root的口令,输入两次
Bootdisk:
      可选择YES, 选择NO不制作引导盘
      
Lilo Installation:
      选择安装到/dev/hda Master Boot Record
      
      OK继续
Lilo Installation:
      不输入任何辅加参数,
      [ ] User linear mode(needed for some SCSI drivers)
      
      OK继续
      
Bootable Partitions
      选择OK继续
      
Done ,完成安装, 重新启动机器。

注:因为是在公用机房安装LINUX系统,请在机器重新启动后作如下修改:
(1) 修改/etc/lilo.conf文件,将DOS设置为默认启动操作系统,你可以
   在VI下将dos对应部分放在linux之前,然后再执行/sbin/lilo.

   如果执行结果显示为:
   Adding dos *
   Adding linux

   表明DOS为默认启动选项。

(2) 修改/etc/rc.d/rc3.d/S99local, 对如下行加上注释#,以防止系统重启时
   修改文件/etc/issue和/etc/issue.net.
   echo "" > /etc/issue
   echo "$R" >> /etc/issue
   echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue

   cp -f /etc/issue /etc/issue.net
   echo >> /etc/issue

   如果你对VI不太熟悉,请执行如下命令使系统不再执行S99local

   #cd /etc/rc.d/rc3.d
   #mv S99local localS99

(3) 修改文件/etc/issue, 请将超级用户的口令放在此文件中,以方便其他
   使用者,如加入如下内容:
   
   Hi, root&#39;s password is rootpass

页: [1]
© 1999-2008 EvilOctal Security Team