Page 22 of 25 FirstFirst ... 122021222324 ... LastLast
Results 211 to 220 of 250

Thread: 32-Bit Chroot How-To

  1. #211
    Join Date
    Jan 2007
    Beans
    5

    Re: 32-Bit Chroot How-To

    I believe you have to copy your /etc/passwd into the same location in your chroot32 environment.

  2. #212
    Join Date
    Nov 2006
    Beans
    43
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: 32-Bit Chroot How-To

    when i input this command
    sudo gedit /etc/dchroot.conf
    gedits says this is a directory so i cannot add the line hoary/chroot
    is this an error in the direction everyone else seems to have this working also the reason i am trying to do this because i am having trouble printing after upgrading to feisty AMD64 from edgy i386 where i could print no problem so i want to see if it the 64 bit archutecture has anyone tryed this and does it work i will post if it works as a workaround

  3. #213
    Join Date
    Jan 2007
    Location
    Bronx, NY, USA
    Beans
    130
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Question Re: 32-Bit Chroot How-To

    Uhh.. I did this, but I don't need it anymore. What steps should I take to remove it? Deleting /chroot ? Uninstalling some programs?

    Thanks for the help. (I am using nspluginwrapper for firefox so I don't need it anymore).

  4. #214
    Join Date
    Apr 2006
    Location
    England
    Beans
    37
    Distro
    Edgy Eft Testing

    Re: 32-Bit Chroot How-To

    You just need to delete the chroot directory you used but VERY IMPORTANT! Unmount everything first or it will delete the stuff that is mounted in it, such as your home directory.

  5. #215
    Join Date
    Jan 2007
    Location
    Bronx, NY, USA
    Beans
    130
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: 32-Bit Chroot How-To

    I'm sorry, but what commands would that be, and would I need to run

    dchroot -d

    first?

    thanks

  6. #216
    Join Date
    Mar 2007
    Beans
    4

    Re: 32-Bit Chroot How-To

    umm I have a feeling I'm being very noobish here...but i have a problem on the first step...

    sudo debootstrap --arch amd64 hoary /chroot/ http://archive.ubuntu.com/ubuntu
    I: Retrieving Release
    E: Failed getting release file http://archive.ubuntu.com/ubuntu/dists/hoary/Release

    (arch i386 returns the same)

    and the next line returns:

    sudo chroot /chroot/
    chroot: cannot run command `/bin/bash': No such file or directory

    Help would be GREATLY appreciated!!

  7. #217
    Join Date
    May 2007
    Beans
    53
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: 32-Bit Chroot How-To

    does the chroot use the pdnsd installed in the 64 bit environment? if not, how do i set it up in the chroot? The networking is very slow in chroot as comp. to that in the 64 bit environment. i tried installing it via synaptic 32-- downloads fine, but it gives an error :"failed to start pdnsd"


    (Running 64bit Xubuntu feisty on AMD64 laptop)

  8. #218
    Join Date
    Aug 2007
    Beans
    7

    Re: 32-Bit Chroot How-To

    sorry but I'm new in this and i don't understand this part:

    sudo debootstrap --arch i386 hoary /chroot/ http://archive.ubuntu.com/ubuntu
    i copied it into the terminal and it says

    I: Retrieving Release
    E: Failed getting release file http://archive.ubuntu.com/ubuntu/dists/hoary/Release
    can you explain me what to do?

  9. #219
    Join Date
    Aug 2007
    Beans
    2

    Re: 32-Bit Chroot How-To

    Hello, try as follow:

    Step 1:

    sudo apt-get install dchroot debootstrap
    sudo mkdir /chroot/
    sudo gedit /etc/dchroot.conf
    Add this line: feisty /chroot
    sudo debootstrap --arch i386 feisty /chroot
    sudo cp /var/lib/locales/supported.d/local /chroot/var/lib/locales/supported.d
    sudo chroot /chroot
    dpkg-reconfigure locales

    Step 2:
    In another terminal window (or by existing chroot):

    sudo gedit /chroot/etc/apt/sources.list
    Add the following lines:
    deb http://archive.ubuntu.com/ubuntu feisty main restricted universe multiverse
    deb http://security.ubuntu.com/ubuntu feisty-security main restricted universe multiverse

    (We do this step because gedit has yet to be installed in the chroot environment)

    Step 3:
    In your chrooted environment (chroot /chroot):

    apt-get update ; apt-get upgrade

    Step 4:
    In another terminal window (or by existing chroot):

    sudo cp /etc/passwd /chroot/etc/
    sudo cp /etc/shadow /chroot/etc/
    sudo cp /etc/group /chroot/etc/
    sudo cp /etc/sudoers /chroot/etc/
    sudo cp /etc/hosts /chroot/etc/
    sudo gedit /etc/fstab
    Add the following lines:
    /home /chroot/home none bind 0 0
    /tmp /chroot/tmp none bind 0 0
    /dev /chroot/dev none bind 0 0
    /proc /chroot/proc proc defaults 0 0
    /media/cdrom0 /chroot/media/cdrom0 none bind 0 0
    /usr/share/fonts /chroot/usr/share/fonts none bind 0 0
    <snip />
    sudo mkdir /chroot/media/cdrom0
    sudo mkdir /chroot/usr/share/fonts
    sudo mount -a
    sudo gedit /usr/local/bin/do_dchroot
    Add the following:
    #!/bin/sh
    exec /usr/bin/dchroot -d "`echo $0 | sed 's|^.*/||'` `for i in "$@"; do echo -n '"'$i'" '; done`"

    sudo chmod 755 /usr/local/bin/do_dchroot

    Step 5:
    In a new terminal:

    dchroot -d
    sudo apt-get install synaptic
    sudo ln -s /usr/sbin/synaptic /usr/sbin/synaptic32
    exit
    sudo ln -s /usr/local/bin/do_dchroot /usr/local/bin/synaptic32
    sudo synaptic32
    Last edited by digitec; September 1st, 2007 at 10:25 AM.

  10. #220
    Join Date
    Mar 2005
    Location
    Ohio, USA
    Beans
    61
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: 32-Bit Chroot How-To

    why exactly are we chrooting in the first place??? to run 32-bit appz???

    i use flash 32 on my 64-bit firefox via nspluginwrapper

    skype via 32-bit libs and that new getlibs script

    i dont use java but im almost pretty sure that there is a better non chroot way.....

    chrooting is overkill

Page 22 of 25 FirstFirst ... 122021222324 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •