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

📄 bochs-dlx.in

📁 用vc++编写的虚拟机仿真系统。可以模拟真实操作系统的一些功能。
💻 IN
字号:
#!/bin/shBOCHS=@prefix@/bin/bochsDLXINST=@prefix@/bochs/dlxlinuxGZIP=@GZIP@if [ ! -z $1 ]; then  DLXPATH=$1else  DLXPATH=$HOME/.bochsdlxfiCONFFILE=$HOME/.bochsdlx/bochsconfmakedlxdir() {  echo   echo ---------------------------------------------------------------  echo To run the DLX Linux demo, I need to create a directory called   echo $DLXPATH, and copy some configuration files   echo and a 10 megabyte disk image into the directory.  echo ---------------------------------------------------------------  ok='unknown'  while test $ok = 'unknown'; do    echo Is that okay? [y/n]    read j    case $j in	    y*) ok=1 ;;	    n*) ok=0 ;;    esac  done  if test $ok != 1; then    echo Aborting    exit 1  fi  #echo DEBUG: Creating $HOME/.bochsdlx/bochsrc  echo DLXPATH=$DLXPATH > $CONFFILE  . $CONFFILE  for file in bochsrc.txt README testform.txt; do    if [ ! -f $DLXPATH/$file ]; then      echo Copying $DLXINST/$file '->' $DLXPATH/.      cp $DLXINST/$file $DLXPATH/.    else      echo "ERROR: $file already exists in $DLXPATH. Remove it to replace."    fi;  done  if [ ! -f $DLXPATH/hd10meg.img ]; then    echo Uncompressing $DLXINST/hd10meg.img.gz '->' $DLXPATH/hd10meg.img    $GZIP -dc $DLXINST/hd10meg.img.gz > $DLXPATH/hd10meg.img  else    echo "ERROR: hd10meg.img already exists in $DLXPATH. Remove it to replace."  fi}echo ---------------------------------------------------------------echo "            DLX Linux Demo, for Bochs x86 Emulator"echo ---------------------------------------------------------------echo -n "Checking for bochs binary..."if test ! -x $BOCHS; then  echo FAILED  echo ERROR: I could not find bochs in $BOCHS  exit 1fiecho okecho -n "Checking for DLX linux directory..."if test ! -d $DLXINST; then  echo FAILED  echo ERROR: I could not find the DLX linux directory.  exit 1fiecho okecho -n "Checking for $GZIP..."$GZIP < /dev/null > /dev/null if test $? = 0; then  echo okelse  echo not found  echo ERROR: without $GZIP in your PATH, I cannot continue.  exit 1fiecho -n "Checking for $HOME/.bochsdlx directory..."if test -d "$HOME/.bochsdlx"; then  echo "ok"  if test -f "$CONFFILE"; then    . $CONFFILE  else    makedlxdir  fielse  #echo DEBUG: Creating $HOME/.bochsdlx  mkdir -p $HOME/.bochsdlx  mkdir -p $DLXPATH  makedlxdirfiecho Entering $DLXPATHcd $DLXPATH# Now that we're in the DLXPATH, make sure that bochsrc.txt & hd10meg.img existif test ! -f bochsrc.txt; then  echo ERROR: bochsrc.txt not found  exit 1fiif test ! -f hd10meg.img; then  echo ERROR: hd10meg.img not found  exit 1fiecho Running bochs# ok now try it$BOCHS -nocontrolpanelechoecho ---------------------------------------------------------------echo The DLX Linux demo is over.  If you want to free up the disk echo space in your account, remove the .bochsdlx directory in yourecho home directory.  Example:echo "   rm -rf ~/.bochsdlx"echo Please be careful with rm -rf because it can make a mess.echo ---------------------------------------------------------------exit 0

⌨️ 快捷键说明

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