Linux Unified Kernel
От: Иво Георгиев <ivshti__at__gmail< dot >com>
На: 19-02-2008@10:15 GMT+2
Оценка: 1/НеутраленТози проект ми намирисва лошо...
Отворих страницата, и видях, че е свързано с Wine.Явно става въпрос за ядро с вграден Wine :(
Или пък може да използва само dll-те на wine, което ще е хубаво.
[Отговори на този коментар]
Към: Linux Unified Kernel
От: zinko
На: 19-02-2008@12:05 GMT+2
Оценка: 1/НеутраленМдааам , да му наблъскат в ядрото всичко възможно. Следват примера на уиндоус ...
[Отговори на този коментар]
Към: Linux Unified Kernel
От: Георги Даракиев <g_darakiev __@__ mail __точка__ bg>
На: 19-02-2008@14:13 GMT+2
Оценка: 1/Неутраленwe
Редактиран на: 14-06-2012@23:05
[Отговори на този коментар]
Към: Linux Unified Kernel
От: deant
На: 19-02-2008@14:36 GMT+2
Оценка: 1/НеутраленИ кво е лошото като е с уаин?
[Отговори на този коментар]
how to install
От: bulg
На: 19-02-2008@14:42 GMT+2
Оценка: 1/НеутраленQuick start
===========
To get the support of Linux Unified Kernel, there are 3 basic steps to go:
1. Build Linux kernel
2. Build Linux Unified Kernel module
3. Build Wine
To run Win32 applications on Linux Unified Kernel, just do it like running
a Linux program.
For more details, please read the rest of the file.
Requirements
============
Linux-2.6.23
Wine-0.9.40
The current version (0.2.1) of Linux Unified Kernel provides 2 patches for
both Linux kernel and Wine, so the versions should be specified.
Basic requirements:
Make sure you have installed the X11 development include files
(called xlib6g-dev in Debian and XFree86-devel in Red Hat).
Build tool requirements:
Make sure you have at least gcc 3.2 available which Linux kernel 2.6.23
requires.
Building Linux kernel
=====================
To build Linux Unified Kernel, the first thing is to patch the Linux
kernel 2.6.23. First, cd to the top-level directory of the kernel-source
code (linux-2.6.23), then run the following command:
patch -p1 < path/patchfile
where "path" is the path of the patch file and "patchfile" is its file
name (In this package, it is unifiedkernel-0.2.1-k2.6.23.diff in the
directory "kernel").
After patching kernel, configure it like:
make menuconfig
The general configuration file is provided in the patch (you can also
configure it yourself), you can just save and exit to run the next
commands:
make
make modules_install
make install
Then reboot your system to build the Linux Unified Kernel module.
Building Linux Unified Kernel module
====================================
To build the module, cd to the "module" directory and run the command:
make
Then install the module to get the Linux Unified Kernel support:
insmod unifiedkernel.ko
Building Wine
=============
To use the Win32 programs, you need to build the user space environment.
The script install.sh will help you do this building work automatically:
./install.sh -w wine_path -f patch_file -p prefix
where "wine_path" is the path of the Wine-source code(0.9.40), "patch_file"
is the patch file name of Wine(unifiedkernel-0.2.1-w0.9.40.diff), and
"prefix" is the directory of storing the built-in programs whose default is
"/usr/local"
Running programs
================
After the 3 steps of building, you can run none-installed Win32 programs
that APPLIST lists.
For example:
./calc.exe (running Win32 Program calculator in the
current directory)
/usr/notepad.exe (running Win32 Program Notepad in an
absolute directory)
or double-click the icon created either by the install program or by
yourself.
As this release of Linux Unified Kernel doesn't support build-in EXE
perfectly, so you need to install the Win32 applications like Microsoft
Office 2000 that need installation in the Wine environment.
Everytime you want to install a Win32 program, please follow the 3 steps:
./switch.sh -p prefix -w wine_path -d wine (chang to the Wine
running environment)
wine setupfile (install application)
./switch.sh -p prefix -w wine_path -d unifiedkernel (chang to the Unified
Kernel running
environment)
where "setupfile" is the file name of the installation file like
"setup.exe", and the options "prefix" and "wine_path" represent the same
meanings as they are in the script install.sh.
After that, you can run a Win32 program with the Linux Unified support.
* Note: everytime you want to install a Win32 application, please use the
3-step installation, and after that, it will keeps you running Win32 programs
in Linux Unified Kernel environment.
Linux Unified Kernel is not yet completed, so several programs may crash
or not work exactly as on Microsoft Windows. You can report these bugs to
linux@insigma.com.cn.
UNINSTALL
========
If you don't want to use Linux Unified Kernel any more, you can uninstall
it.
1. Uninstall module:
rmmod unifiedkernel.ko
cd to the directory "module" and run command:
make clean
2. Unpatch Linux kernel 2.6.23 and Wine 0.9.40:
cd to the top-level directory of the kernel-source code or Wine, then run
the command:
patch -R -p1 < path/patchfile
where "path" is the path of the patch file and "patchfile" is its file
name.
And then, you can rebuild them.
[Отговори на този коментар]
Може ли да мислите преди да пишете?
От: Уайнър
На: 19-02-2008@19:10 GMT+2
Оценка: 1/НеутраленМоже ли да мислите преди да пишете глупости?
Тук от новината до коментарите се приказват всякакви небивалици.
1. Поддръжка на Windows приложения без Wine е възможна единствено, ако пренапишеш всички части на Wine наново.
2. Тази част от Wine, която може да влезе в kernel-а няма да промени абсолютно нищо по начина, по който функционират Windows приложенията, нито ще окаже някакво влияние на ядрото, и в общи линии е една безсмислена гимнастика.
3. Ядро с вграден Wine е абсурдна идея, и е невъзможно да бъде направено.
Преди да пишете на тема Wine ще ви помоля да се образовате. Не може да говорите за нещо, без да си имате идея, как функционира.
Wine се състои от две части.
1. Програма за зареждане на PE изпълними файлове (формата за изпълними файлове на Windows). Linux ползва ELF формат.
Това е единствената част от Wine, която би имало логика да влезе в ядрото, но това е практически безсмислено. Wine приложения могат да бъдат както PE изпълними файлове, така и ELF изпълними файлове, разлика няма нито в производителността, нито в начина на работа. Някои Linux програми също използват PE формат — всички писани на Mono.
2. Библиотеки, които заместват библиотеките от Windows API. Wine в този смисъл не се различава по никакъв начин от Qt. Спокойно можеш да пишеш Wine приложения, както пишеш Qt приложения.
За всички, които злословят по Wine, с него има свързано само едно лошо нещо — API-то му е собственическо и нестандартизирано, и използването му за писане на нови приложения не е препоръчително. Но дори в това няма нищо лошо.
Wine не е бавен, понеже се опитва да „емулира“ Windows, приложение използващо Wine с нищо не е по-лошо от обикновено GNU/Linux приложение. (Освен ако не тръгнете да гледате недъзите на Windows API или недъзите на Wine имплементацията им.) Използването на Wine само по себе си не деградира приложението по никакъв начин, то работи все едно е стандартно GNU/Linux приложение, и също така работи, както би работило, ако беше пуснато под Windows. (Ако си затворим очите за тия същите недъзи.)
Съществуването на Wine е хубаво, защото помага едно от ограниченията на приложенията писани само за Windows да бъде премахнато.
Wine = (Mono - C# - Mono API) + Qt + n*glitch = Qt + n*glitch
Долния ред обезсмисля всякакъв Linux Unified Kernel, и постига същия ефект без компилиране на никакви глупости и без никаква видима разлика.
echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
[Отговори на този коментар]
Към: Може ли да мислите преди да пишете?
От: aSa
На: 20-02-2008@18:48 GMT+2
Оценка: 1/НеутраленПо това, което чета в Babelfish преводите от китайски на оригиналния сайт, една от основните идеи на модула за ядрото е да осигури възможността Windows драйвери за устройства да се инсталират и използват под Linux - нещо, което използвания като база ReactOS се опитва да постигне, докато WINE за момента дори не планира подобна функционалност.
[Отговори на този коментар]