LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to build a 32 bit chroot for 64bit (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-build-a-32-bit-chroot-for-64bit-298313/)

nathj72 03-06-2005 10:03 AM

how to build a 32 bit chroot for 64bit
 
i am running mandrake x86_64 and i am not able to run some games, every where tells me i need a 32 bit chroot. how do i make one on my machine.

Joey.Dale 03-26-2005 03:14 PM

There is this new godlike creation, that very few people know about. Its called GOOGLE With it and my magical guru like god powers, I found this:
Quote:

You can type dchroot -d "command" and it executes that command in the chroot.

I have this script do_chroot in /usr/local/bin:
#!/bin/sh
/usr/bin/dchroot -d "`echo $0 | sed 's|^.*/||'` $*"

Then I create a symbolic link from that to the command I want to execute in the chroot, e.g.:
ln -s /usr/local/bin/do_chroot /usr/local/bin/firefox
which will execute firefox in the chroot environment when I launch it in my normal 64 bit environment. To launch my amd64 firefox I can type /usr/bin/firefox.

Instead if you want you can just create a script for launching the 32bit firefox e.g.:
#!/bin/bash
dchroot -d "firefox"

put it in /usr/local/bin and add it to the gnome menu.

If you're going to start a program that only works in 32bit, first type dchroot -d and you'll be in the 32 bit environment.

What is really amazing is that it was the 2nd result for "32 bit chroot"

-Joey


All times are GMT -5. The time now is 10:57 AM.