Installing and using ia32-bit programs in debian-amd64 Systems

Source: Internet
Author: User
Install and use the ia32-bit program-Linux Release Technology-Debian information in the debian-amd64 system. See the following for details. Note: ubuntu belongs to the debian series. This article is applicable to ubuntu, But I didn't try it.

Many people now have 64 machines. However, 64 applications are relatively scarce. SUSE and UBUNTU versions of 64-bit systems integrate 32-bit programs, but my favorite DEBIAN does not. Therefore, I wrote this article with reference to some materials. I hope it will be helpful to anyone who has installed 64DEBIAN and wants to use a 32-bit program.

My parent system is 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/sarge-i386
4. aptitude update; aptitude upgrade
5. aptiutde install locales
Set locale I set to zh_CN.UTF-8

6. Set the time zone in tzconfig.

7. Set the system (executed in the parent System)
Mount necessary Directories

Mount the directories you need to use in chroot. First, edit the/etc/fstab file of the parent system (warning: incorrect file editing may cause the system to fail to start up) add the following lines at the end of the/etc/fstab file:

# 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 defaults 0 0

8. Archive and mount these systems (in the parent System)
Sudo mounted/chroot/sarge-i386/home
Sudo mount/chroot/sarge-i386/tmp
Sudo mounting/chroot/sarge-i386/proc

9. Set the user
To be able to use your current account in the a32-chroot, copy the user material in the AMD64 system to the chroot. (Execute the following command in the parent System)

Sudo cp/etc/passwd/chroot/sarge-i386/etc/
Sudo cp/etc/shadow/chroot/sarge-i386/etc/
Sudo cp/etc/group/chroot/sarge-i386/etc/

10. Install software in the chroot sarge-i386 system. Aptitude install ttf-arphic-uming openoffice.org)

11. Install dchroot in the parent system to execute a 32-bit program.
Sudo aptitude install dchroot
Sudo nano/etc/dchroot. conf

Add the following at the end of the file:
# Ia32 chroot
Ia32, chroot, sarge-i386

Run the following command in the parent system to run the ia32-bit program:

Dchroot-c ia32-d (Application)

12. Create an ia32 application initiator on the desktop.
Enter "dchroot-c ia32-d (Application)" in the "command" line in the dialog box)
For example, dchroot-c ia32-d gmplayer

Note: openoffice should first make a link in ia32. In the ia32 system, ln-s/usr/lib/openoffice/program/soffice/usr/bin/soffice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.