HIT Linux0.11 laboratory experiments have been done upstairs, but recent experiments that can not save the environment at the top. And sometimes suddenly cards, and all the credit in vain. I would like to get a lab environment on their computer for their own records, but also to have more "autonomy" of the.
Because of that experiment source inside something good, there bochs, do not have their own distribution, and moreover also used to it. Therefore, it is downloaded archive:
hit-oslab-linux-20110823.tar.gz Download:
https://github.com/hoverwinter/HIT-OSLab/blob/master/Resources/hit-oslab-linux-20110823.tar.gz
Once downloaded, unzip:
After the extraction is completed, you can see more than a oslab folder into extracting oslab folder,
You can see inside these folders, go to linux-0.11 folder, make all source code is compiled, error occurs at compile time:
One problem: as86: command not found
Solution: sudo aptitude install bin86
However, sometimes the inside of your system may not aptitude, anyway, we will do it with sudo apt-get install aptitude
Results are as follows:
Installation aptitude:
Installation bin86:
At this time, a problem has been resolved. Then enter commands make all
Second problem: gcc-3.4 command not found
Solution: This is because our system comes with gcc compiler version is relatively high, you can enter ls / user / bin / gcc * View gcc version
I can see no gcc-3.4 compiler version, it will be an error, how to do it?
solution:
http://old-releases.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/ open the site to find these deb packages installed on the inside:
gcc-3.4-base_3.4.6-6ubuntu2_i386.deb // first installation
cpp-3.4_3.4.6-6ubuntu2_i386.deb // second mounting
gcc-3.4_3.4.6-6ubuntu2_i386.deb // third installation
After downloading the installation package three sequentially installed sudo dpkg --force-depends -i xxx.deb
After check the version of gcc, then the system which has been found to gcc-3.4 version, so, let's go on!
This, Second problem has been resolved.
Then, make all, you can see a nice trip, no stumbling block.
Since then, a complete compilation is completed.
Under retreated oslab, enter ./run
We can see, bochs successfully entered into linux0.11 environment.