LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-18-2014, 09:53 AM   #1
Bharat mistry
Member
 
Registered: Jul 2014
Posts: 34

Rep: Reputation: Disabled
.exe in linux


can i modify linux kernel(distro) which is directly support .EXE file without using wine. or is there any similar distro?
 
Old 08-18-2014, 09:54 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
No and no. Sorry.
 
Old 08-18-2014, 09:55 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
yes, with a lot of haxing, a lot of things would be possible (however the amount of time, money, energy would probably make it impractical).

reactos isnt linux. it is an open source re-implementation of the nt kernel.

Last edited by schneidz; 08-18-2014 at 09:57 AM.
 
Old 08-18-2014, 11:14 AM   #4
Bharat mistry
Member
 
Registered: Jul 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
But why i can't.... i can try by implimenting wine source code into kernel itself...

Last edited by Bharat mistry; 08-18-2014 at 11:16 AM.
 
Old 08-18-2014, 11:28 AM   #5
NGIB
Member
 
Registered: Sep 2013
Location: Sumter SC, USA
Distribution: MX, Lubuntu
Posts: 449

Rep: Reputation: Disabled
So, your goal is to turn Linux into Windows? Good luck and have fun...
 
Old 08-18-2014, 11:35 AM   #6
Bharat mistry
Member
 
Registered: Jul 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
but it is possible or not...
 
Old 08-18-2014, 11:44 AM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by Bharat mistry View Post
but it is possible or not...
All things are possible.

It is even pssible that you could learn all about GNU/Linux in the process... maybe. Keep us posted on your progress!

Last edited by astrogeek; 08-18-2014 at 11:46 AM.
 
Old 08-18-2014, 11:56 AM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You can have the kernel treat EXEs as executables and automatically execute them with Wine. You set that up using the kernel's misc binaries support.

I wrote a bit about it here:

http://duganchen.ca/writings/slackware/setup/
 
3 members found this post helpful.
Old 08-18-2014, 12:00 PM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Quote:
Originally Posted by Bharat mistry View Post
But why i can't.... i can try by implimenting wine source code into kernel itself...
Yes,. but that isn't what you asked for. See:

Quote:
can i modify linux kernel(distro) which is directly support .EXE file without using wine. or is there any similar distro?
If you would have asked about baking wine into the kernel earlier you would have gotten more help. But yes,..

--Edit

See Dugan's answer above
 
Old 08-18-2014, 12:03 PM   #10
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by dugan View Post
You can have the kernel treat EXEs as executables and automatically execute them with Wine. You set that up using the kernel's misc binaries support.

I wrote a bit about it here:

http://duganchen.ca/writings/slackware/setup/
I guess we can all learn new things!

You are a man of many talents Dugan Chen!

Reading your page I spotted a relevant typo:
Quote:
Now add the following to “/etc/rc.rc.local”:

Should probably be...

Now add the following to “/etc/rc.d/rc.local”:
 
Old 08-18-2014, 02:45 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
To support a .exe executable extension binary, yes, you would need to severely hack the kernel to support that extension format. Now also you would need to use a method of path read as well, you'd have to also support .dll libraries to support the binaries, as well as other issues.

Plus take into the fact you now would have to run binaries in kernel-mode rather than user-mode would present a problem with security and open the kernel to attacks.

Windows itself no longer runs applications in kernel-mode Ring-0. It runs them in user-mode Ring-3 with an API layer to mimic kernel functions we call the win32api. This API layer does work with the kernel however but in a secure mode.

In short it's not worth the effort to support applications that use .exe in UNIX when you can simply re-source and rebuild for UNIX.
 
Old 09-01-2014, 03:27 AM   #12
Bharat mistry
Member
 
Registered: Jul 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
If i rebuilt kernel with adding .exe modules of reactos then is it possible to execute .exe files ??????????
 
Old 09-01-2014, 04:16 AM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
No, you'd still need a proper API layer to use the resources of the system for the application, as well have a program that can execute the .exe binary with proper userland permissions. The API layer would require support of the kernel to gain Ring 0 support also.

The only existing API layer for Linux that supports .exe is Wine and it is user space only. Wine would have to be redeveloped to use kernel level support even through the misc file supports. You'd also need support through other vectors like video, audio, input, and networking with hardware acceleration through the drivers as well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cygwin g++-3.exe, gcc-3.exe corrupted to g++3.exe.dam and gcc-3.exe.dam pawanjanbandhu Linux - Newbie 2 12-03-2009 11:27 AM
cygwin g++-3.exe, gcc-3.exe corrupted to g++3.exe.dam and gcc-3.exe.dam pawanjanbandhu Linux - Software 1 11-17-2009 02:26 PM
autorun.exe and *.exe for linux eutalia2000 Linux - Newbie 3 12-23-2008 06:31 AM
samba compatibility with microsoft srvtools.exe (usrmgr.exe and srvmgr.exe) checkmate3001 Linux - Software 1 09-06-2008 05:08 AM
SETUP.EXE/autorun.exe don't run in wine mst3kman Linux - Games 3 01-22-2006 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration