![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
5 Cups of Ubuntu
![]() |
Most of this comes from http://digital-conquest.ath.cx/wiki/...h_debbootstrap but I wanted to put together a cleaned up version that worked for me here (There are typos and inaccuracies on the wiki page).
Quote:
Please let me know of any errors, enhancements, or corrections Last edited by Crad; May 13th, 2005 at 05:12 PM.. Reason: Updated to include making a directory for cdrom0 |
|
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() |
Re: 32-Bit Chroot How-To
To get Firefox setup with Flash I did the following:
As of right now sound is not working. If I figure out how to get the sound stuff working across the chroot, I'll post it here. Last edited by Crad; April 13th, 2005 at 03:49 PM.. Reason: Updated with symlink per minuo's suggestion |
|
|
|
|
|
#3 |
|
Dipped in Ubuntu
![]() Join Date: Mar 2005
Beans: 645
Ubuntu 9.10 Karmic Koala
|
Re: 32-Bit Chroot How-To
To get sound working, you need to mount --bind /dev /chroot/dev (or the equivalent fstab line).
In my case, I also had to add my username to the right group to have permission to write to /dev/dsp; but that was because I was using my old Mandrake system as the chroot, and it used a different number for the audio group. For an Ubuntu chroot, you should be set already. In another thread, someone said it was also necessary to modprobe ioctl32 before starting the chroot. I've not found that to be the case here, but perhaps that's because my chroot is using OSS. (?) |
|
|
|
|
|
#4 | |
|
Dipped in Ubuntu
![]() Join Date: Mar 2005
Beans: 645
Ubuntu 9.10 Karmic Koala
|
Re: 32-Bit Chroot How-To
P.S.:
Quote:
|
|
|
|
|
|
|
#5 | |
|
5 Cups of Ubuntu
![]() |
Re: 32-Bit Chroot How-To
Quote:
|
|
|
|
|
|
|
#6 |
|
Dipped in Ubuntu
![]() Join Date: Mar 2005
Beans: 645
Ubuntu 9.10 Karmic Koala
|
Re: 32-Bit Chroot How-To
You have "/chroot" in most places, but "/var/chroot" for the fstab lines. They should be "/chroot" too.
I've followed this guide (more or less), and I can confirm that sound works just by mounting /dev. For the record, that's: /dev /chroot/dev none bind 0 0 in /etc/fstab. (However, I also killed esd long ago, just to get sound working on the 64-bit side, and set everything to alsa then; I don't know if that makes a difference.) I now have two chroots on my system -- /old32 and /new32. Another thing I added is the "linux32" command (in the package of the same name). Put this before dchroot, and the 32-bit apps will think they're running under an i686 kernel -- which is necessary in some cases (mainly install scripts). Re Flash, you can install it from Synaptic. In fact there are, confusingly, two conflicting packages. I chose the big one -- the small one is apparently just a wrapper for Macromedia's installer. Themes are a little off for the 32-bit apps. But that could be an advantage, since it reminds me which version I'm using. Now we need a list of what hasn't been ported to 64-bit. (Another thread, perhaps.) Last edited by wmcbrine; April 8th, 2005 at 12:13 AM.. |
|
|
|
|
|
#7 | |
|
5 Cups of Ubuntu
![]() |
Re: 32-Bit Chroot How-To
Quote:
|
|
|
|
|
|
|
#8 | ||
|
First Cup of Ubuntu
![]() Join Date: Apr 2005
Beans: 5
|
The do_dchroot script was giving me problems, as parameters like:
Quote:
Quote:
I solved it in the following way: Code:
#!/bin/sh
for arg; do
arg=`echo $arg | sed -e 's/ /\\\ /g'`
args=`echo $args $arg`
done
/usr/bin/dchroot -d "`echo $0 | sed 's|^.*/||'` $args"
Last edited by remkio; April 10th, 2005 at 11:04 AM.. |
||
|
|
|
|
|
#9 |
|
5 Cups of Ubuntu
![]() Join Date: Nov 2004
Location: Kent, England
Beans: 27
|
Re: 32-Bit Chroot How-To
Many thanks Crad, having followed your instructions I am now able to chroot into 32 bit hoary. I nearly gave up and returned to 32 system but am now a confirmed 64-bitter.
![]() |
|
|
|
|
|
#10 |
|
A Carafe of Ubuntu
![]() Join Date: Jan 2005
Beans: 113
|
Re: 32-Bit Chroot How-To
I've followed the instructions at the head of this thread, but when I reach step 5, I get some problems.... then it all falls apart...
Any help? Thanks! Code:
~$ dchroot -d
Executing shell in 'hoary' chroot.
dchroot: chdir: No such file or directory
dchroot: Child exited non-zero.
dchroot: Operation failed.
~$
Code:
~$ dchroot
Executing shell in 'hoary' chroot.
No directory, logging in with HOME=/
/$exit
logout
~$ synaptic32
(hoary) synaptic32
dchroot: chdir: No such file or directory
dchroot: Child exited non-zero.
dchroot: Operation failed.
:~$
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|