国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home System Tutorial LINUX toss! Running DOS on Raspberry Pi

toss! Running DOS on Raspberry Pi

Jul 19, 2024 pm 05:23 PM
linux linux tutorial Red Hat linux system linux command linux certification red hat linux linux video

Different CPU architectures mean that running DOS on the Raspberry Pi is not easy, but it’s not that troublesome.

toss! Running DOS on Raspberry Pi

FreeDOS may be familiar to everyone. It is a complete, free and well-compatible operating system for DOS. It can run some older DOS games or commercial software, and can also develop embedded applications. Any program that can run on MS-DOS can run on FreeDOS.

As the initiator and project coordinator of FreeDOS, many users will ask me questions as an insider. And the question I get asked most often is: "Can FreeDOS run on a Raspberry Pi?"

This question is not surprising. After all, Linux can run very well on the Raspberry Pi, and FreeDOS is an older operating system that takes up less resources than Linux. So why can’t FreeDOS run on the Raspberry Pi?

Simply put. Due to the CPU architecture, FreeDOS cannot run independently on the Raspberry Pi. Like other DOS-like systems, FreeDOS requires an Intel x86 architecture CPU and BIOS to provide basic runtime services. The Raspberry Pi runs on an ARM architecture CPU, which is not binary compatible with Intel CPUs and does not have a BIOS. Therefore, Raspberry Pi does not support FreeDOS at the hardware level.

However, you can still run FreeDOS on the Raspberry Pi through a PC emulator. Although this may be slightly insufficient, it is still a method to run FreeDOS on the Raspberry Pi.

How about DOSBox?

Some people may ask: "Why not use DOSBox?" DOSBox is an open source cross-platform x86 emulator that can also be used on Linux. It can provide a DOS-like running environment for application software, especially game software, so If you just want to play DOS games, DOSBox is a good choice. But in the eyes of the public, DOSBox is designed specifically for DOS games, and when it comes to running some other DOS application software, DOSBox only performs mediocrely.

For most people, this is just a matter of personal preference. I like to use FreeDOS to run DOS games and other programs. A complete DOS system allows me to experience better flexibility and controllability than DOSBox. I only use DOSBox for gaming, and otherwise choose full FreeDOS.

Install FreeDOS on Raspberry Pi

QEMU (Quick EMUlator) is an open source virtual machine software that can run DOS systems on Linux systems. Many popular Linux systems come with QEMU. QEMU also runs on my Raspbian system on the Raspberry Pi. Below are some screenshots of me using QEMU on the Raspbian GNU/Linux 9 (Stretch) system on the Raspberry Pi.

I used QEMU last year when I wrote an article about how to run DOS programs in Linux systems. The steps to use QEMU to install and run FreeDOS on the Raspberry Pi are basically the same as on other GNOME-based systems. There is no big difference.

In QEMU you need to build a virtual machine by adding various components. First specify a virtual disk image to install and run DOS, and create a virtual disk image through the qemu-img command. FreeDOS does not require much space, so I only created a 200MB virtual disk:

qemu-img create freedos.img 200M

Unlike PC emulators such as VMware or VirtualBox, using QEMU requires adding various components to build a virtual machine. Although it is a bit troublesome, it is not difficult. I used the following parameters to install FreeDOS using QEMU on the Raspberry Pi:

qemu-system-i386 -m 16 -k en-us -rtc base=localtime -soundhw sb16,adlib -device cirrus-vga -hda freedos.img -cdrom FD12CD.iso -boot order=d

You can find a complete introduction to these commands in my other articles. Simply put, the above command specifies an Intel i386-compatible virtual machine and allocates 16MB of memory, an English input keyboard, a real-time clock based on system time, a sound card, a music card, and a VGA card. The file freedos.img is designated as the first hard drive (C:), and the FD12CD.iso image is designated as the CD-ROM (D:) drive. QEMU is configured to boot from the CD-ROM in D:.

You only need to follow the prompts to install FreeDOS 1.2 easily. But since microSD cards are slow when faced with heavy I/O, installing the operating system takes a long time.

Running FreeDOS on Raspberry Pi

你的運(yùn)行情況取決于使用哪一種 microSD 卡。我用的是 SanDisk Ultra 64GB microSDXC UHS-I U1A1 ,其中 U1 這種型號(hào)專用于支持 1080p 的視頻錄制(例如 GoPro),它的最低串行寫速度能夠達(dá)到 10MB/s。相比之下,V60 型號(hào)專用于 4K 視頻錄制,最低連續(xù)寫入速度能達(dá)到 60MB/s。如果你的樹莓派使用的是 V60 的 microSD 卡甚至是 V30(也能達(dá)到 30MB/s),你就能明顯看到它的 I/O 性能會(huì)比我的好。

FreeDOS 安裝好之后,你可以直接從 C: 進(jìn)行啟動(dòng)。只需要按照下面的命令用 -boot order=c 來指定 QEMU 的啟動(dòng)順序即可:

?qemu-system-i386 -m 16 -k en-us -rtc base=localtime -soundhw sb16,adlib -device cirrus-vga -hda freedos.img -cdrom FD12CD.iso -boot order=c?

只要樹莓派的 QEMU 上安裝了 FreeDOS,就不會(huì)出現(xiàn)明顯的性能問題。例如游戲通常在每一關(guān)開始的時(shí)候會(huì)加載地圖、怪物、聲音等一系列的數(shù)據(jù),盡管這些內(nèi)容需要加載一段時(shí)間,但在正常玩的時(shí)候并沒有出現(xiàn)性能不足的現(xiàn)象。

FreeDOS 1.2 自帶了很多游戲以及其它應(yīng)用軟件,可以使用 FDIMPLES 包管理程序來安裝它們。FreeDOS 1.2 里面我最喜歡的是一款叫 WING 的太空射擊游戲,讓人想起經(jīng)典的街機(jī)游戲 Galaga(WING 就是 Wing Is Not Galaga 的遞歸縮寫詞)。

As-Easy-As 是我最喜歡的一個(gè) DOS 應(yīng)用程序,作為 20 世紀(jì)八九十年代流行的電子表格程序,它和當(dāng)時(shí)的 Lotus 1-2-3 以及現(xiàn)在的 Microsoft Excel、LibreOffice Calc 一樣具有強(qiáng)大的威力。As-Easy-As 和 Lotus 1-2-3 都將數(shù)據(jù)保存為 WKS 文件,現(xiàn)在新版本的 Microsoft Excel 已經(jīng)無法讀取這種文件了,而 LibreOffice Calc 視兼容性而定有可能支持。鑒于 As-Easy-As 的初始版本是一個(gè)共享軟件,TRIUS 仍然為 As-Easy-As 5.7 免費(fèi)提供激活碼。

我也非常喜歡 GNU Emacs 編輯器,F(xiàn)reeDOS 也自帶了一個(gè)叫 Freemacs 的類 Emacs 的文本編輯器。它比 FreeDOS 默認(rèn)的 FreeDOS Edit 編輯器更強(qiáng)大,也能帶來 GNU Emacs 的體驗(yàn)。如果你也需要,可以在 FreeDOS 1.2 中通過FDIMPLES包管理程序來安裝。

是的,你或許真的可以在樹莓派上運(yùn)行 DOS

即使樹莓派在硬件上不支持 DOS,但是在模擬器的幫助下,DOS 還是能夠在樹莓派上運(yùn)行。得益于 QEMU PC 模擬器,一些經(jīng)典的 DOS 游戲和 DOS 應(yīng)用程序能夠運(yùn)行在樹莓派上。在執(zhí)行磁盤 I/O ,尤其是大量密集操作(例如寫入大量數(shù)據(jù))的時(shí)候,性能可能會(huì)受到輕微的影響。當(dāng)你使用 QEMU 并且在虛擬機(jī)里安裝好 FreeDOS 之后,你就可以盡情享受經(jīng)典的 DOS 程序了。

The above is the detailed content of toss! Running DOS on Raspberry Pi. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Postman Integrated Application on CentOS Postman Integrated Application on CentOS May 19, 2025 pm 08:00 PM

Integrating Postman applications on CentOS can be achieved through a variety of methods. The following are the detailed steps and suggestions: Install Postman by downloading the installation package to download Postman's Linux version installation package: Visit Postman's official website and select the version suitable for Linux to download. Unzip the installation package: Use the following command to unzip the installation package to the specified directory, for example /opt: sudotar-xzfpostman-linux-x64-xx.xx.xx.tar.gz-C/opt Please note that "postman-linux-x64-xx.xx.xx.tar.gz" is replaced by the file name you actually downloaded. Create symbols

The difference between programming in Java and other languages ??Analysis of the advantages of cross-platform features of Java The difference between programming in Java and other languages ??Analysis of the advantages of cross-platform features of Java May 20, 2025 pm 08:21 PM

The main difference between Java and other programming languages ??is its cross-platform feature of "writing at once, running everywhere". 1. The syntax of Java is close to C, but it removes pointer operations that are prone to errors, making it suitable for large enterprise applications. 2. Compared with Python, Java has more advantages in performance and large-scale data processing. The cross-platform advantage of Java stems from the Java virtual machine (JVM), which can run the same bytecode on different platforms, simplifying development and deployment, but be careful to avoid using platform-specific APIs to maintain cross-platformity.

Where is the pycharm interpreter? Where is the pycharm interpreter? May 23, 2025 pm 10:09 PM

Setting the location of the interpreter in PyCharm can be achieved through the following steps: 1. Open PyCharm, click the "File" menu, and select "Settings" or "Preferences". 2. Find and click "Project:[Your Project Name]" and select "PythonInterpreter". 3. Click "AddInterpreter", select "SystemInterpreter", browse to the Python installation directory, select the Python executable file, and click "OK". When setting up the interpreter, you need to pay attention to path correctness, version compatibility and the use of the virtual environment to ensure the smooth operation of the project.

How to manually install plugin packages in VSCode How to manually install plugin packages in VSCode May 15, 2025 pm 09:33 PM

The steps to manually install the plug-in package in VSCode are: 1. Download the .vsix file of the plug-in; 2. Open VSCode and press Ctrl Shift P (Windows/Linux) or Cmd Shift P (Mac) to call up the command panel; 3. Enter and select Extensions:InstallfromVSIX..., then select .vsix file and install. Manually installing plug-ins provides a flexible way to install, especially when the network is restricted or the plug-in market is unavailable, but attention needs to be paid to file security and possible dependencies.

Detailed introduction to each directory of Linux and each directory (reprinted) Detailed introduction to each directory of Linux and each directory (reprinted) May 22, 2025 pm 07:54 PM

[Common Directory Description] Directory/bin stores binary executable files (ls, cat, mkdir, etc.), and common commands are generally here. /etc stores system management and configuration files/home stores all user files. The root directory of the user's home directory is the basis of the user's home directory. For example, the home directory of the user user is /home/user. You can use ~user to represent /usr to store system applications. The more important directory /usr/local Local system administrator software installation directory (install system-level applications). This is the largest directory, and almost all the applications and files to be used are in this directory. /usr/x11r6?Directory for storing x?window/usr/bin?Many

After installing Nginx, the configuration file path and initial settings After installing Nginx, the configuration file path and initial settings May 16, 2025 pm 10:54 PM

Understanding Nginx's configuration file path and initial settings is very important because it is the first step in optimizing and managing a web server. 1) The configuration file path is usually /etc/nginx/nginx.conf. The syntax can be found and tested using the nginx-t command. 2) The initial settings include global settings (such as user, worker_processes) and HTTP settings (such as include, log_format). These settings allow customization and extension according to requirements. Incorrect configuration may lead to performance issues and security vulnerabilities.

MySQL installation tutorial teach you step by step the detailed steps for installing and configuration of mySQL step by step MySQL installation tutorial teach you step by step the detailed steps for installing and configuration of mySQL step by step May 23, 2025 am 06:09 AM

The installation and configuration of MySQL can be completed through the following steps: 1. Download the installation package suitable for the operating system from the official website. 2. Run the installer, select the "Developer Default" option and set the root user password. 3. After installation, configure environment variables to ensure that the bin directory of MySQL is in PATH. 4. When creating a user, follow the principle of minimum permissions and set a strong password. 5. Adjust the innodb_buffer_pool_size and max_connections parameters when optimizing performance. 6. Back up the database regularly and optimize query statements to improve performance.

Comparison between Informix and MySQL on Linux Comparison between Informix and MySQL on Linux May 29, 2025 pm 11:21 PM

Informix and MySQL are both popular relational database management systems. They perform well in Linux environments and are widely used. The following is a comparison and analysis of the two on the Linux platform: Installing and configuring Informix: Deploying Informix on Linux requires downloading the corresponding installation files, and then completing the installation and configuration process according to the official documentation. MySQL: The installation process of MySQL is relatively simple, and can be easily installed through system package management tools (such as apt or yum), and there are a large number of tutorials and community support on the network for reference. Performance Informix: Informix has excellent performance and

See all articles