LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2005, 10:03 AM   #1
nathj72
LQ Newbie
 
Registered: Jan 2005
Location: ottawa
Distribution: ubuntu
Posts: 7

Rep: Reputation: 0
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.
 
Old 03-26-2005, 03:14 PM   #2
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
32 bit sofware with 64bit cpu? computergee Linux - Software 6 05-25-2006 11:36 AM
Build a 32 bit chroot? Tomex Fedora 1 11-14-2005 12:31 PM
VPN build error on 64 bit ronban Programming 2 09-09-2005 02:48 AM
How can I build a 64bit kernel 2.4.28 oaitamrane Red Hat 1 12-08-2004 05:22 PM
Need help with 64bit Fedora/ 32 bit Windows Dual Boot Sliceman Fedora - Installation 0 05-20-2004 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration