首 页文章中心

Linux学习网

您的位置Linux学习网 > Linux基本应用 > 文章内容

debian系统中安装和使用ia32位的程序(amd64)

作者:together  来源:5dlinux.com  发布时间:2007-11-23 8:31:00
如今许多人拥有64的机器。但是64的应用程序相对匮乏。SUSE和UBUNTU等版本的64位系统整合了32位程序,但是我最喜爱的DEBIAN却没有。因此参考了一些资料胡乱写了这个东东,希望对安装了64DEBIAN又想使用32位程序的朋友有所帮助。

我的父系统是DEBIAN-AMD64/SID
1、aptitude install linux32 ia32-libs debootstrap
2、debootstrap --arch i386 sarge /chroot/sarge-i386 http://debian.cn99.com/sarge
3、chroot /chroot/sarge-i386
4、aptitude update;aptitude upgrade
5、aptiutde install locales
设定locale 我设为zh_CN.UTF-8

6、tzconfig设定时区

7、设置系统(在父系统中执行)
挂载必要的目录

挂载些你需要在 chroot 中使用的目录,首先编辑父系统的/etc/fstab (警告:错误的编辑此文件可能导致系统无法开机)在/etc/fstab文件的最后加上以下几行:

# ia32 chroot
/home /chroot/sarge-i386/home none bind 0 0
/tmp /chroot/sarge-i386/tmp none bind 0 0
proc /chroot/sarge-i386/proc proc defaults 0 0

8、存档,然后挂载这些系统(在父系统中)
sudo mount /chroot/sarge-i386/home
sudo mount /chroot/sarge-i386/tmp
sudo mount /chroot/sarge-i386/proc

[1] [2]  下一页

收藏本页到: 365Key | del.icio.us | | 添加到雅虎收藏+
  • 网站帮助 - 广告合作 - 网站地图