- tftp_send_optack() was not 64-bit clean (patch from SF bug #1787500)
[bochs-mirror.git] / docs-html / Linux.html
blob594fffc9ff8f1c5edf0cc699377840b5221a3403
1 <HTML>
2 <HEAD>
3 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
4 <META NAME="Author" CONTENT="Kevin Lawton">
5 <TITLE>Instructions for installing RedHat 5.0 for use with bochs</TITLE>
6 </HEAD>
7 <BODY TEXT="#000000" BGCOLOR="#ececec" LINK="#3333cc" VLINK="#666666">
10 <em>
11 NOTE: This has not been updated in a long long time. Please don't
12 think that newer versions of linux or other distributions cannot be
13 done just because these old instructions talk about redhat 5.0.
14 If you want to write updated install instructions, please go ahead.
15 </em>
16 <H1>Instructions for installing RedHat 5.0 for use with bochs.</H1>
18 <PRE>
19 First, you need to have the RedHat 5.0 installation CD
20 and the boot & supplementary floppy disks. Installing
21 Linux from other vendors is also possible, but I assume
22 you have RedHat 5.0 for the script file, and for these
23 instructions.
25 Second, you need a real Linux system to create the
26 disk image file, for use with bochs. This can be
27 later transfered to another platform.
29 Third, you should have already configured/compiled
30 bochs on your target platform.
32 ##########################################
33 # This section done on your Linux system #
34 ##########################################
36 Copy both boot & supplementary floppy disks to image files.
38 # stick in Boot disk
39 linux-> cp /dev/fd0 1.44_redhat_boot
40 # stick in Supplementary disk
41 linux-> cp /dev/fd0 1.44_redhat_sup
43 Mount your RedHat 5.0 CD. The mountpoint and instructions
44 may be different for your system.
46 linux-root> mount /mnt/cdrom
48 Now edit the install script in bochs-YYMMDD/misc, called
49 'install_redhat50'. It has a small section of configurable
50 parameters you can edit. Then run it as root. Make sure
51 you are in the directory.
53 linux-root> cd bochs-YYMMDD/misc
54 linux-root> ./install_redhat50
56 If this went well, then you're hard disk image file
57 is prepared for you, and has a small set of packages
58 from the RedHat 5.0 CD on it. You may add more later,
59 using the script file as an example.
61 #############################################
62 # This section done on your target platform #
63 #############################################
65 If you have a target system, different from you
66 original Linux system, transfer over the 2 floppy
67 image files, and the hard disk image file now.
69 Copy the boot floppy image to your working file
71 unix-> cp 1.44_redhat_boot 1.44
73 Point your floppya directive to this working file
75 [edit .bochsrc]
77 Boot bochs from the floppy
79 unix-> bochs boot:a
81 The Welcom To Red Hat Linux screen appears. At the
82 boot: prompt, enter 'rescue' and [Return]
84 boot: rescue [Return]
86 The Color Choices menu appears
87 press [Return] to take the default
89 The Keyboard Type menu appears
90 press [Return] to take the default
92 The Second Floppy menu appears
93 Copy the Supplementary floppy image to your working file
95 unix-> cp 1.44_redhat_sup 1.44
97 Type [Return] to let the install program know you inserted
98 the new floppy.
100 The SCSI Configuration menu appears
101 Type [Return] to accept No.
103 You will now be at the Linux root prompt '#'.
104 Make an empty directory to mount the hard drive over.
105 Then mount the hard drive. I didn't use any partitions
106 for this example, so use 'hda', not 'hda1'.
108 # mkdir /mnt
109 # mount -t ext2 /dev/hda /mnt
111 Run lilo, so you can boot from the hard disk. Then
112 unmount the hard drive.
114 # /mnt/sbin/lilo -r /mnt
115 # umount /mnt
117 Bomb out of bochs, by clicking on the Power button. Now
118 fire up bochs again, booting from the hard drive.
120 unix-> bochs boot:c
122 You can type [Return] at the LILO prompt:
124 LILO boot: [Return]
126 At the login prompt, login as root. For kicks, try
127 compiling the sample "hello.cc" program I included.
128 It should already be in your /root directory, ready
129 to be compiled.
131 [root@bochs /root]# gcc -c hello.cc
132 [root@bochs /root]# ./a.out
134 When you're ready to shutdown Linux, you can
135 shutdown as normal:
137 [root@bochs /root]# shutdown -h now
139 Enjoy,
140 -Kevin
141 </PRE>
143 </BODY>
144 </HTML>