|
参考
http://www.linuxsir.cn/forum.php ... p;highlight=win4lin
http://forums.gentoo.org/viewtopic.php?t=171727
经过一天的努力终于在gentoo2004.1下安装好了win4lin,现写下安装过程.我没有直接下载patch,是直接emerge win4lin的,用的是linux-2.6.6-win4lin-r1的内核.[PHP]#ACCEPT_KEYWORDS="~x86" emerge win4lin
#cd /usr/src/linux-2.6.6-win4lin-r1
#make menuconfig[/PHP]
确保以下选项已编入内核
loadable module support->Enable loadable module support
System V IPC(默认已选)
Executable file format->Kernel support for ELF binaries
Device Drivers->Networking support->networking options->tcp/ip
file system->CD-ROM/DVD filesystems->ISO 9660 CDROM filesystem support
Include NeTraverse Win4Lin Support(for 2.4:windows application surport->Win4Lin Support)
[PHP]#make
#make install
#emerge unmerge win4lin
#ACCEPT_KEYWORDS="~x86" emerge -O win4lin[/PHP]
修改grub,重启LINUX
[PHP]# cp /etc/rc.d/init.d/Win4Lin /etc/init.d/
#/etc/init.d/Win4Lin start[/PHP]
然后,你要有一个Win98的CDROM或者ISO,我是用的ISO文件。
还需要有98的启动软盘或者软件镜像,不过我emerge win4lin完之后好像有个说明是可以用win95,win98 or winme的
[PHP]# mount -o loop win98.iso /mnt/cdrom
# loadwindowsCD fromdir /mnt/cdrom[/PHP]
此过程中会有以下几个问题:
[PHP]You can use a real floppy or image file of such a floppy.
Do you have an appropriate real Windows boot floppy now ? (y/n/q) n
Do you have an appropriate image file now ? (y/n/q) y
Enter the filename of the boot floppy image: /home/crystal/win98se.img
Is /home/crystal/win98se.img correct? (y/n/q) y[/PHP]
[PHP]#ebuild /var/db/pkg/app-emulation/win4lin-5.1/win4lin-5.1.ebuild config[/PHP]
生成licence
[PHP]# sh /opt/win4lin/registerme.sh
Your license evaluation code is:
-> Win4Lin 4.x:
1w4e053x-n0aaf8-7tw9-587j-h47j-d6
-> Win4Lin 5.x
1w5e055x-n0ca34-xjhx-xx3c-4c3c-73[/PHP]
记得记下licence
输入License ,如果没提示,必须
[PHP]# unloadwindowsCD
# loadwindowsCD fromdir /mnt/cdrom[/PHP]
然后已普通用户身份安装windows
[PHP]$ installwindows
...
Which type of networking is to be installed now?
(Type 'w' for Winsock 2 networking, 'v' for VNET networking,
or 'q' to Quit the installation of Windows, and then press
return or enter.)
[w/v/q] v
...[/PHP]
我选了Vnet,装好windows后不能上网,因为默认安装了一个拨号网络适配器,把所有的拨号网络删掉,手动设置ip和网关以及DNS |
|