Chinaunix首页 | 论坛 | 博客
  • 博客访问: 941264
  • 博文数量: 102
  • 博客积分: 8134
  • 博客等级: 中将
  • 技术积分: 1072
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-21 15:30
文章分类

全部博文(102)

文章存档

2019年(1)

2018年(1)

2014年(1)

2013年(2)

2012年(1)

2011年(2)

2010年(5)

2009年(9)

2008年(10)

2007年(70)

分类: BSD

2007-11-21 16:04:36

在这里我们只兼容LinuxFreeBSD两个系统。

首先我们要重新编译内核,打开下面两个项:

option COMPAT_LINUX     # binary compatibility with Linux

option COMPAT_FREEBSD # binary compatibility with FreeBSD

如果已经激活这两项,我们必须执行下面两步,这样系统就可兼容他们了,但是在下次启动后无效:

# sysctl kern.emul.linux=1

# sysctl kern.emul.freebsd=1

我们修改/etc/sysctl.conf文件中的这两行,把前面的注释去掉,既每次开机都在兼容模式下了。

kern.emul.linux=1 # enable running Linux binaries

kern.emul.freebsd=1 # enable running freebsd binaries

到这里还要装两个系统的运行库,redhat_basefreebsd_lib.

要了解更多信息请参阅man手册compat_linux(8)compat_freebsd(8).

阅读(808) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~