LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3570|回复: 7

gentoo2004.1下win4lin安装手记

[复制链接]
发表于 2004-6-29 00:42:38 | 显示全部楼层 |阅读模式
参考
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
发表于 2004-7-1 06:42:28 | 显示全部楼层
怎么没人顶呢。。。。这篇不错阿;)
顺便放入心得日记和技术置顶区
发表于 2004-7-1 11:10:59 | 显示全部楼层
鼓捣到很晚都没搞上,不知道liqishan兄有没有出现过这种错误
http://www.linuxsir.cn/bbs/showthread.php?threadid=123182
发表于 2004-7-1 11:53:20 | 显示全部楼层
应该是你用的启动盘和win盘不相配引起的。
 楼主| 发表于 2004-7-1 11:57:44 | 显示全部楼层
如果出现如此错误
[PHP]CODESET_NS: dos: ERROR: Translation of UNIX code set 'gb2312' is not supported.
    (Code set file '/usr/lib/merge/lcs/gb2312' was not found.  err=-1)

Using code set '8859' instead.[/PHP]
查看/opt/win4lin/locale_codeset文件,我发觉我的文件里有一行是
zh_CN.GB2312   gbk
将其改成
zh_CN.gb2312   gbk
That's OK!
发表于 2004-7-1 14:10:26 | 显示全部楼层
liqishan兄的win98se.img在哪里下载的?
 楼主| 发表于 2004-7-1 17:26:25 | 显示全部楼层
最初由 风中追风 发表
liqishan兄的win98se.img在哪里下载的?

flp.img
发表于 2004-7-29 21:17:02 | 显示全部楼层
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: /root/flp.img
Is /root/flp.img correct? (y/n/q) y
Unrecognizeable disk type
Exiting...
This does not appear to be a boot floppy.
Cannot continue
Unable to continue install.
You must have a valid DOS boot floppy
before you can again try to install the
DOS from the Windows CD or boot drive
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表