- 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:
- 代码: 全选
# apt-get install build-essential (install gcc, make, patch, and so on)- 代码: 全选
# apt-get install libncurses5-dev (library for make-menuconfig)
For ubuntu:
- If you can compile Wine for Longene successfully, skip the following step:
- 代码: 全选
# apt-get build-dep wine1.2
Download the required dependent packages of wine from http://wiki.winehq.org/Recommended_Packages, for ubuntu, you can run the following command:
- uncompress linux-2.6.30.tar.bz2
- 代码: 全选
# tar jxvf linux-2.6.30.tar.bz2- 代码: 全选
#patch –p1 < path/longene-0.3.0-linux-2.6.30.diff- 代码: 全选
# make menuconfig- 代码: 全选
#make menuconfig- 代码: 全选
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)- 代码: 全选
1. [ ] Enable loadable module support -> Module versioning support
2. [ ] Processor type and features -> Symmetric multi-processing support- 代码: 全选
3. [ ] General setup ->enable deprecated sysfs features to support old userspace tools
4. [ ] Processor type and features -> Enable -fstack-protector buffer overflow detection- 代码: 全选
# make
# make modules_install
# make install- 代码: 全选
# mkinitramfs –o /boot/initrd.img-2.6.30-longene-0.3.0 /lib/modules/2.6.30-longene-0.3.0
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:
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
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:
The features should be included:
The features should be excluded:
if you use ubuntu 10.04 / fedora 12 / 13, exclude these features:
After configuration, run the following commands:
For some releases of Linux(such as ubuntu), you need to generate initrd.img file manually.
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- 代码: 全选
rpcss.exe.so
explorer.exe.so
services.exe.so
winemenubuilder.exe.so- 代码: 全选
# ldconfig
If you have installed pure Wine before , you should delete the following exe.so in /usr/local/ib/wine:
Open /etc/ld.so.conf and add the path: /usr/local/lib , then run the following command:
III. Compile the Longene module
- Enter the top directory of Longene module, and compile:
- 代码: 全选
# make- 代码: 全选
# insmod unifiedkernel.ko
After compilation, it will generate unifiedkernel.ko, then insmod the module
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- 代码: 全选
# rmmod unifiedkernel
# make clean- 代码: 全选
# make distclean
Uninstall the Longene module, enter directory of module, run the following command:
Uninstall the kernel of Linux-2.6.30-longene-0.3.0, enter the top directory of kernel, run the following commands:
Then delete the added boot selection item of kernel.

