⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linux.html

📁 我师兄自己写的操作系统
💻 HTML
字号:
<HTML><HEAD>   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">   <META NAME="Author" CONTENT="Kevin Lawton">   <TITLE>Instructions for installing RedHat 5.0 for use with bochs</TITLE></HEAD><BODY TEXT="#000000" BGCOLOR="#ececec"  LINK="#3333cc" VLINK="#666666"><em>NOTE: This has not been updated in a long long time.  Please don'tthink that newer versions of linux or other distributions cannot bedone just because these old instructions talk about redhat 5.0.If you want to write updated install instructions, please go ahead.</em><H1>Instructions for installing RedHat 5.0 for use with bochs.</H1><PRE>First, you need to have the RedHat 5.0 installation CDand the boot & supplementary floppy disks.  InstallingLinux from other vendors is also possible, but I assumeyou have RedHat 5.0 for the script file, and for theseinstructions.Second, you need a real Linux system to create thedisk image file, for use with bochs.  This can belater transfered to another platform.Third, you should have already configured/compiledbochs on your target platform.########################################### This section done on your Linux system ###########################################Copy both boot & supplementary floppy disks to image files.  # stick in Boot disk  linux-> cp /dev/fd0 1.44_redhat_boot  # stick in Supplementary disk  linux-> cp /dev/fd0 1.44_redhat_supMount your RedHat 5.0 CD.  The mountpoint and instructionsmay be different for your system.  linux-root> mount /mnt/cdromNow edit the install script in bochs-YYMMDD/misc, called'install_redhat50'.  It has a small section of configurableparameters you can edit.  Then run it as root.  Make sureyou are in the directory.  linux-root> cd bochs-YYMMDD/misc  linux-root> ./install_redhat50If this went well, then you're hard disk image fileis prepared for you, and has a small set of packagesfrom the RedHat 5.0 CD on it.  You may add more later,using the script file as an example.############################################## This section done on your target platform ##############################################If you have a target system, different from youoriginal Linux system, transfer over the 2 floppyimage files, and the hard disk image file now.Copy the boot floppy image to your working file  unix-> cp 1.44_redhat_boot 1.44Point your floppya directive to this working file  [edit .bochsrc]Boot bochs from the floppy  unix-> bochs boot:aThe Welcom To Red Hat Linux screen appears.  At theboot: prompt, enter 'rescue' and [Return]  boot:  rescue [Return]The Color Choices menu appearspress [Return] to take the defaultThe Keyboard Type menu appearspress [Return] to take the defaultThe Second Floppy menu appearsCopy the Supplementary floppy image to your working file  unix-> cp 1.44_redhat_sup 1.44Type [Return] to let the install program know you insertedthe new floppy.The SCSI Configuration menu appearsType [Return] to accept No.You will now be at the Linux root prompt '#'.Make an empty directory to mount the hard drive over.Then mount the hard drive.  I didn't use any partitionsfor this example, so use 'hda', not 'hda1'.  # mkdir /mnt  # mount -t ext2 /dev/hda /mntRun lilo, so you can boot from the hard disk.  Thenunmount the hard drive.  # /mnt/sbin/lilo -r /mnt  # umount /mntBomb out of bochs, by clicking on the Power button.  Nowfire up bochs again, booting from the hard drive.  unix-> bochs boot:cYou can type [Return] at the LILO prompt:  LILO boot: [Return]At the login prompt, login as root.  For kicks, trycompiling the sample "hello.cc" program I included.It should already be in your /root directory, readyto be compiled.  [root@bochs /root]# gcc -c hello.cc  [root@bochs /root]# ./a.outWhen you're ready to shutdown Linux, you canshutdown as normal:  [root@bochs /root]# shutdown -h nowEnjoy,-Kevin</PRE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -