Win4Lin setup
From ArchWiki
| i18n |
|---|
| English |
| 简体中文 |
Installing Win4Lin 3.x
Boot your computer with the win4lin patch kernel
Enter instructions here (old link removed as website no longer active)
In root, extract Win4Lin-5.2.10c-d.i386.rpm (or other version) files with MC function F2.
Download Win4Lin-5.2.10c-d.i386.rpm:
Install mc:
pacman -S mc
Download mc.menu (mc.menu-x.xx.tar.gz):
Go to ftp://www.ibiblio.org/pub/linux/utils/package and download the file mc.menu-1.28.tar.gz.
tar zxvf mc.menu-x.xx.tar.gz. cd mc.menu-x.xx ./INSTALL
Make a backup and copy mc.menu to /usr/share/mc/
cd /usr/share/mc/ cp mc.menu mc.menu.save cd /usr/lib/mc/ cp mc.menu /usr/share/mc/
Extract Win4Lin files:
Run mc, select Win4Lin-5.2.10c-d.i386.rpm and press F2.
Copy and paste the folders as per location.
Run script win4lin/postinst_rpm.sh
/opt/win4lin/postinst_rpm.sh
The script doesn't create all the necessary links. Compare with this list:
/bin/dos --> /opt/win4lin/publicbin/dos
/bin/loadwindowsCD --> /opt/win4lin/adminbin/loadwindowsCD
/bin/win --> /opt/win4lin/publicbin/win
/usr/bin/dosboot --> /opt/win4lin/publicbin/dosboot
/usr/bin/dosinstall --> /opt/win4lin/adminbin/dosinstall
/usr/bin/fwin --> /opt/win4lin/publicbin/fwin
/usr/bin/installwindows --> /opt/win4lin/publicbin/installwindows
/usr/bin/listwinconfig --> /opt/win4lin/publicbin/listwinconfig
/usr/bin/mkimg --> /opt/win4lin/adminbin/mkimg
/usr/bin/netscapefile --> /opt/win4lin/publicbin/netscapfile
/usr/bin/quit.com --> /opt/win4lin/dosside/quit.com
/usr/bin/win''network --> /opt/win4lin/publicbin/win''network
/usr/bin/winadmin --> /opt/win4lin/publicbin/winadmin
/usr/bin/winadminreset --> /opt/win4lin/publicbin/winadminreset
/usr/bin/winconfig --> /opt/win4lin/publicbin/winconfig
/usr/bin/winsetup --> /opt/win4lin/publicbin/winsetup
/usr/lib/merge/ --> /opt/win4lin
Check if /var/win4lin/ folder was installed. If not check again when you have load the windows CD files (read point 7)
Edit /etc/default/merge
MERGE_CD_DEV_NAME=/dev/cdroms/cdrom0
Run script Win4Lin start
/etc/rc.d/init.d/Win4Lin start
Insert Windows '98 CD and run loadwindowsCD
loadwindowsCD
(if any error unload the windows files \"unloadwindowsCD\").
Add line in /etc/rc.local file (to start dos image at boot)
/etc/rc.d/init.d/Win4Lin start
Exit root and run 'installwindows' as a user rather than using the installer (winsetup)
Good luck
Appendix
- Download AL package (Win4Lin 3 and 5):
http://amlug.net/new-projects/win4lin/packages/ - Forum Discussion