Longene-0.3.0 Installation Guide

Discuss Linux Unified Kernel project in English

版主: liyijun, smile, linooxlee, Jeff91, Dekar

Longene-0.3.0 Installation Guide

帖子zxbeef » 2010-05-31 13:51

Prepare:
    Longene-0.3.0 only support for the root user, please login with root.
    Disable SELINUX: Because Selinux is defaultly enabled on Fedora 9 and above, so edit /etc/selinux/config and add "SELINUX=disabled" line at the end of the file, then reboot.
    Download longene-0.3.0.tar.bz2 from Download Center of Longene or from http://www.kernel.org

    Some packages or tools are missing in some releases of linux , so you must install them at first. If you can compile Longene successfully, skip the following steps:
    For ubuntu:
    代码: 全选
    # apt-get install build-essential   (install gcc, make, patch, and so on)


    代码: 全选
    # apt-get install libncurses5-dev   (library for make-menuconfig)

    If you can compile Wine for Longene successfully, skip the following step:
    Download the required dependent packages of wine from http://wiki.winehq.org/Recommended_Packages, for ubuntu, you can run the following command:
    代码: 全选
    # apt-get build-dep wine1.2

I. Compile linux kernel
    uncompress linux-2.6.30.tar.bz2
    代码: 全选
    # tar jxvf linux-2.6.30.tar.bz2


    patch the kernel before compile, the patch for Longene is in Longene-0.3.0.tar.bz2 which is named Longene-0.3.0-linux-2.6.30.diff. Enter the top directory of linux-2.6.30:
    代码: 全选
    #patch –p1 < path/longene-0.3.0-linux-2.6.30.diff


    Where Path means the directory where the patch is in

    Next configure the kernel(.config)
    The general configuration file is provided in the patch (you can also configure it yourself).
    Note that there is no config file included in longene-0.3.0-linux-2.6.34.diff patch, so if you use ubuntu 10.04 / fedora 12 / 13, you should copy /boot/config-*** to the top directory of linux-2.6.34, and rename it to .config
    代码: 全选
    # make menuconfig


    you just select “ save and exit”.

    If you decide to configure the patched kernel yourself, you can use your own configuration file or config-*** in /boot which is the default configuration of release. Copy it to the top directory of linux-2.6.30, and rename it to .config, then configure the kernel:
    代码: 全选
    #make menuconfig


    The features should be included:
    代码: 全选
    1. [*] General setup -> Longene support
    2. -*- General setup ->  Configure standard kernel features (for small systems) -> Load all symbols for debugging/ksymoops
    3. [*] General setup ->  Configure standard kernel features (for small systems) ->  Do an extra kallsyms pass
    4. [*] General setup -> Disable heap randomization
    5. [*] File systems -> Native language support ->
    Simplified Chinese charset (CP936, GB2312)


    The features should be excluded:
    代码: 全选
    1. [ ] Enable loadable module support -> Module versioning support
    2. [ ] Processor type and features -> Symmetric multi-processing support

    if you use ubuntu 10.04 / fedora 12 / 13, exclude these features:
    代码: 全选
    3. [ ] General setup ->enable deprecated sysfs features to support old userspace tools
    4. [ ] Processor type and features -> Enable -fstack-protector buffer overflow detection


    After configuration, run the following commands:
    代码: 全选
     # make
    # make modules_install
    # make install


    For some releases of Linux(such as ubuntu), you need to generate initrd.img file manually.

    代码: 全选
    # mkinitramfs –o /boot/initrd.img-2.6.30-longene-0.3.0  /lib/modules/2.6.30-longene-0.3.0


    Where initrd.img-2.6.30-longene-0.3.0 is the name of initrd.img file, you can named it.Then you should add the boot selection item manually:
    For ubuntu, modify /boot/grub/menu.list for ubuntu 9.04 or bellow, modify /boot/grub/grub.cfg for ubuntu 9.10, just copy the boot selection item of other kernel , replace the vmlinuz file and initrd.img file as Longene’s file.
    Reboot the system, you will see the new boot selection item like this: 2.6.30-longene-0.3.0, chose the item and enter the system.

II. Compile Wine For Longene
    Enter the top directory of Wine For Longene(wine-1.0-longene), then run following commands:
    代码: 全选
    # ./configure
    # make depend && make
    # make install


    If you have installed pure Wine before , you should delete the following exe.so in /usr/local/ib/wine:
    代码: 全选
    rpcss.exe.so
    explorer.exe.so
    services.exe.so
    winemenubuilder.exe.so


    Open /etc/ld.so.conf and add the path: /usr/local/lib , then run the following command:
    代码: 全选
    # ldconfig

III. Compile the Longene module

    Enter the top directory of Longene module, and compile:
    代码: 全选
     # make


    After compilation, it will generate unifiedkernel.ko, then insmod the module
    代码: 全选
    # insmod unifiedkernel.ko

Tips: you should insmod the module every time after you reboot system.

Now you can use Longene, enjoy yourself.


IV. Uninstall Longene
    Uninstall Wine For Longene , enter directory of wine-1.0-longene, run the following commands:
    代码: 全选
    # make uninstall
    # make distclean


    Uninstall the Longene module, enter directory of module, run the following command:
    代码: 全选
    # rmmod unifiedkernel
    # make clean


    Uninstall the kernel of Linux-2.6.30-longene-0.3.0, enter the top directory of kernel, run the following commands:
    代码: 全选
    # make distclean

Then delete the added boot selection item of kernel.
zxbeef
 
帖子: 577
注册: 2009-03-04 14:33

Re: Longene-0.3.0 Installation Guide

帖子casualfish » 2010-05-31 14:02

:D It's glad to see that both Chinese version and English version are put out at the same time.Hooray!
As there is nothing from the first, where does the dust collect itself?
casualfish
 
帖子: 74
注册: 2010-05-12 20:25

Re: Longene-0.3.0 Installation Guide

帖子Jeff91 » 2010-06-10 20:50

Howdy There,

I see there are now packages for Ubuntu 9.04/9.10 - do I need to do anything beyond installing this package for Longene to work on my system?

~Jeff
Bodhi Linux - Minimalistic and Enlightened - http://www.bodhilinux.com/
头像
Jeff91
 
帖子: 22
注册: 2010-06-09 11:04
地址: Blue Island, IL

Re: Longene-0.3.0 Installation Guide

帖子liuguo09 » 2010-06-11 10:17

Jeff91 写道:Howdy There,

I see there are now packages for Ubuntu 9.04/9.10 - do I need to do anything beyond installing this package for Longene to work on my system?

~Jeff


If you install Longene with the binary packages for Ubuntu 9.04/9.10, nothing else have to be done. Just run the commandline:
#./*.exe

However, if you build and install Longene from the source code, you should refer to the aforementioned Installation Guide. Never forget to run
#insmod ./unifiedkernel.ko
before running your windows app.

Wish u good luck!
Studies pass into character.
头像
liuguo09
 
帖子: 162
注册: 2009-08-03 11:35


回到 English

在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客