Migrar de novo para gitea 🙏

This commit is contained in:
2025-12-25 04:35:39 -03:00
parent 9d45b0adde
commit 6eab2ae945
237 changed files with 18444 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
---
title: "Installing Windows 98 using Qemu in postmarketOS"
date: 2022-12-25T19:46:13-03:00
draft: false
tags: ['linux', 'postmarketOS', 'windows', 'emulation']
---
So, in the [previous article](/posts/linux-on-a-samsung-tab-2-7-inches) I installed postmarketOS on my Samsung Galaxy Tab 2 (7 inches), and I wanted to create a website on it. But I was encouraged to create my personal website on Azure, so in the end I didn't install a web server on the tablet.
I was wondering what will be the performance of Qemu on my tablet, emulating a x86 processor on a ARM device, and I installed qemu in the tablet, in the first place:
```bash
sudo apk add qemu qemu-img qemu-system-i386
```
Then I tried to run qemu directly from the console. Qemu has a built-in VNC server, so I was hoping to connect from my PC using TightVNC, but it was a complete failure, because I didn't knew that postmarketOS has a firewall that I had to deal with. So, after hours of googling, I found that I could install a package that enables VNC access from the firewall without having to mess with configuration files:
```bash
sudo apk add -i postmarketos-config-nftables-vncserver
```
Now I can run qemu, but I first [downloaded Windows 98 SE](https://winworldpc.com/product/windows-98/98-second-edition) from WinWorldPC and unzipped the file containing the ISO file of the installation disk.
After that, I created a small (1 GB) hard disk image, because my tablet only has about 2 GB free on disk:
```bash
qemu-img create -f qcow2 w98.qcow2 1G
```
Now I can run the Windows Setup from qemu. I am emulating a machine with 64 MB of RAM, booting from CD-ROM:
```bash
qemu-system-i386 -cdrom win98.iso -boot order=dc -drive file=w98.qcow2 -m 64
```
The setup process was very slow, but I felt happy when the graphical setup started:
![Windows 98 Setup starting](/images/windows-98-qemu-01.png)
After passing through the installation steps, I left the installer make its work:
![Windows 98 Installing](/images/windows-98-qemu-02.png)
It is sad that only remains __301 minutes__ for the installation to complete...