Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to install win4lin with gentoo-dev-sources (Updated).
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Mon May 10, 2004 4:43 pm    Post subject: How to install win4lin with gentoo-dev-sources (Updated). Reply with quote

I'm using gentoo-dev-sources-2.6.7-r14. First, dowload the patches here:
http://www.netraverse.com/member/downloads/kernel_patch.php
Specifically, I need mki-adapter26_1_3_6.patch (for 2.6 kernel) AND Kernel-Win4Lin3-2.6.7.patch.
Then I did:
Code:
# cd /usr/src
# cp -a linux-2.6.7-gentoo-r14 win4lin
# rm linux
# ln -s win4lin linux
# cd linux

It's also a good idea to change the EXTRAVERSION in the Makefile so as not to conflict with your existing kernel. Copy over the downloaded patches and patch the kernel:
Code:
# patch -p1 < Kernel-Win4Lin3-2.6.7.patch > patch.log 2>&1
# patch -p1 < mki-adapter26_1_3_6.patch >> patch.log 2>&1
# less patch.log

If there's no error messages in patch.log, you can start recompiling your kernel. Make sure you compile in the following options:

Enable loadable module support
System V IPC
Kernel support for ELF binaries
Networking support
TCP/IP networking
ISO 9660 CD-ROM filesystem support
Include NeTraverse Win4Lin Support

When the kernel is ready, reboot with it. First check that your win4lin-enabled 2.6 kernel has compiled properly, type:
Code:
# modprobe mki-adapter
# cat /proc/mki-adapter/version

If you get an error either from modprobe or cat, then your kernel did not compile or boot correctly. However, if the win4lin-enabled kernel compiled properly, the output of the cat command will show the corresponding mki-adapter*.patch version number, in my case it should be 1.3.6.
Then, you can emerge win4lin without installing the win4lin kernel:
Code:
# emerge -O win4lin

When win4lin has been emerged (the current stable version is 5.1.1), mount your windows CD and do some initial configurations:
Code:
# mount /mnt/cdrom
# ebuild /var/db/pkg/app-emulation/win4lin-5.1.1/win4lin-5.1.1.ebuild config

Note: If things go wrong here, you may try starting the win4lin service first:
# /etc/init.d/Win4Lin start
before you run the ebuild.... command again.


After the setup program finished copying windows files and creating dos image, you may replace the evaluation license number in /var/win4lin/install/license.lic with your legitimate license number, then start the Win4lin service to activate the number:
Code:
# /etc/init.d/Win4Lin start    # or restart

Now it's time to do personal setup, as a user do:
Code:
$ installwindows

If asked about network-setup, just choose Winsock; then you'll find yourself installing windows again. :D
Finally, do:
Code:
# rc-update add Win4Lin default

_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!


Last edited by Hauser on Thu Nov 11, 2004 5:32 pm; edited 2 times in total
Back to top
View user's profile Send private message
- NEO -
n00b
n00b


Joined: 16 Aug 2003
Posts: 32
Location: Denmark

PostPosted: Fri May 28, 2004 10:25 pm    Post subject: Reply with quote

Exactly what I were looking for to get that god d*mn win4lin to work. :D

Thank you so much!
_________________
/Neo
...because I believe in something...
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Sat Jun 12, 2004 5:32 pm    Post subject: Reply with quote

After you boot the new kernel, if you want to confirm that it has compiled properly, type:
Code:
# modprobe mki-adapter
# cat /proc/mki-adapter/version

In my case it shows the correct version, ie 1.3.4. If you get an error either from modprobe or cat, then your kernel did not compile or boot correctly.
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
MertonKnight
n00b
n00b


Joined: 13 Jan 2004
Posts: 2
Location: Vienna, VA

PostPosted: Mon Jun 14, 2004 2:38 am    Post subject: Reply with quote

Woked Perfectly. Thank You. :D
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2460
Location: Edmonton, AB

PostPosted: Sat Jun 19, 2004 3:59 am    Post subject: Reply with quote

After following these instructions and rebooting I got a blank screen.
Could it be because I didn't have a valid license?

I have an Windows 98-upgrade edition, so I think win4lin does not support this version, does it?
I've tried in the past installing win4lin but when I loaded Win98 CD it asked for older version Win95 CD and at that point win4lin didn't know what to do.
I know that Win98 is looking for one file from Win95 (though I forgot which one) to verify that I have an original older version.

I suppose it could be possible (if I find which file it is) to make an ISO image of Win98 CD and manipulate it somehow to include just that one file and make a new ISO image.

I would like to free the last computer from Windows but I need few programs that don't run on Linux.
_________________
#Thelma
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Fri Oct 22, 2004 1:36 pm    Post subject: Reply with quote

I've updated the how-to with gentoo-dev-sources-2.6.7-r14.
Hope you guys find it useful. :)
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
tysn
n00b
n00b


Joined: 21 Feb 2005
Posts: 4

PostPosted: Mon Feb 21, 2005 7:12 am    Post subject: Reply with quote

when I came to this step:
$installwindows

I got an error saying:
NOT_SUID_ROOT:dos:dosexec is not installed SUID root, or is installed on a filesystem that is mounted nosuid.

Anybody help me?
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Thu Apr 07, 2005 8:27 am    Post subject: Reply with quote

tysn wrote:
when I came to this step:
$installwindows

I got an error saying:
NOT_SUID_ROOT:dos:dosexec is not installed SUID root, or is installed on a filesystem that is mounted nosuid.

Anybody help me?

Try
Code:
# cd /opt/win4lin/publicbin
# chown root dosexec && chmod u+s dosexec

_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
snoopyliuyu
n00b
n00b


Joined: 24 Apr 2005
Posts: 2

PostPosted: Sun Apr 24, 2005 3:56 am    Post subject: Reply with quote

i tried your way to install
but when run $installwindows
after i choose "w" for winsock
it comes "An error occured while trying to initialize the VGA video adapter"
and i can not continue.
someone can help me?
thanks very much!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum