File: Linux.html

package info (click to toggle)
bochs 2.3-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 14,116 kB
  • ctags: 16,927
  • sloc: cpp: 130,524; ansic: 18,822; sh: 7,922; makefile: 3,836; yacc: 1,056; asm: 463; perl: 381; lex: 280; csh: 3
file content (144 lines) | stat: -rw-r--r-- 3,987 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<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't
think that newer versions of linux or other distributions cannot be
done 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 CD
and the boot & supplementary floppy disks.  Installing
Linux from other vendors is also possible, but I assume
you have RedHat 5.0 for the script file, and for these
instructions.

Second, you need a real Linux system to create the
disk image file, for use with bochs.  This can be
later transfered to another platform.

Third, you should have already configured/compiled
bochs 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_sup

Mount your RedHat 5.0 CD.  The mountpoint and instructions
may be different for your system.

  linux-root> mount /mnt/cdrom

Now edit the install script in bochs-YYMMDD/misc, called
'install_redhat50'.  It has a small section of configurable
parameters you can edit.  Then run it as root.  Make sure
you are in the directory.

  linux-root> cd bochs-YYMMDD/misc
  linux-root> ./install_redhat50

If this went well, then you're hard disk image file
is prepared for you, and has a small set of packages
from 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 you
original Linux system, transfer over the 2 floppy
image files, and the hard disk image file now.

Copy the boot floppy image to your working file

  unix-> cp 1.44_redhat_boot 1.44

Point your floppya directive to this working file

  [edit .bochsrc]

Boot bochs from the floppy

  unix-> bochs boot:a

The Welcom To Red Hat Linux screen appears.  At the
boot: prompt, enter 'rescue' and [Return]

  boot:  rescue [Return]

The Color Choices menu appears
press [Return] to take the default

The Keyboard Type menu appears
press [Return] to take the default

The Second Floppy menu appears
Copy the Supplementary floppy image to your working file

  unix-> cp 1.44_redhat_sup 1.44

Type [Return] to let the install program know you inserted
the new floppy.

The SCSI Configuration menu appears
Type [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 partitions
for this example, so use 'hda', not 'hda1'.

  # mkdir /mnt
  # mount -t ext2 /dev/hda /mnt

Run lilo, so you can boot from the hard disk.  Then
unmount the hard drive.

  # /mnt/sbin/lilo -r /mnt
  # umount /mnt

Bomb out of bochs, by clicking on the Power button.  Now
fire up bochs again, booting from the hard drive.

  unix-> bochs boot:c

You can type [Return] at the LILO prompt:

  LILO boot: [Return]

At the login prompt, login as root.  For kicks, try
compiling the sample "hello.cc" program I included.
It should already be in your /root directory, ready
to be compiled.

  [root@bochs /root]# gcc -c hello.cc
  [root@bochs /root]# ./a.out

When you're ready to shutdown Linux, you can
shutdown as normal:

  [root@bochs /root]# shutdown -h now

Enjoy,
-Kevin
</PRE>

</BODY>
</HTML>