PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Debian Linux in Chroot
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Debian Linux in Chroot

Réponse
 
LinkBack Outils de la discussion
Vieux 31/07/2007, 10h10   #1
Masatran, R. Deepak
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Debian Linux in Chroot

I have two Linux installations in my hard drive, and I want to modify
Linux-2 from Linux-1, using Chroot. Basically "dpkg-reconfigure" and similar
stuff. How do I tell DPKG of Linux-2 to not disturb the daemons that are
running in Linux-1?

--
Masatran, R. Deepak <http://research.iiit.ac.in/~masatran/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGrvpTvnoghb5uX00RAlb+AJ9QtZXHhcXRH5QQBCzi/u9cw1IvTACfV+Tm
mlWTHH7OoolPjP+oiPDKbH0=
=7Mvl
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 31/07/2007, 12h20   #2
koffiejunkie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debian Linux in Chroot

Masatran, R. Deepak wrote:
> I have two Linux installations in my hard drive, and I want to modify
> Linux-2 from Linux-1, using Chroot. Basically "dpkg-reconfigure" and similar
> stuff. How do I tell DPKG of Linux-2 to not disturb the daemons that are
> running in Linux-1?
>


Say you are booted into Linux1, and linux 2 is mounted at /linux2, you
need to do this (assuming they are both recent distrobutions):

mount -t proc proc /linux2/proc
chroot /linux2

then inside the chroot, whatever you do should not disturb what's
cooking in Linux-1

Remember to unmount proc from Linux-2 after leaving the chroot.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 31/07/2007, 13h10   #3
Matthew K Poer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debian Linux in Chroot

I have also thought heavily about doing this sort of thing, for developing and
testing and such. My understanding is that there would be very close to
having two differant GNU/Linux operating systems running at once, but using
only one kernel. Once inside the chroot, BASH would be using tools
from /linux2/usr/bin, is that correct?

My understanding of chroot is extremely limited, right now. I have searched
around, but can anyone point me to anything specific that they know to be a
good tutorial/explanation or how chroot works and what its capabilities are?

On Tuesday 31 July 2007 7:15 am, koffiejunkie wrote:
> Masatran, R. Deepak wrote:
> > I have two Linux installations in my hard drive, and I want to modify
> > Linux-2 from Linux-1, using Chroot. Basically "dpkg-reconfigure" and
> > similar stuff. How do I tell DPKG of Linux-2 to not disturb the daemons
> > that are running in Linux-1?

>
> Say you are booted into Linux1, and linux 2 is mounted at /linux2, you
> need to do this (assuming they are both recent distrobutions):
>
> mount -t proc proc /linux2/proc
> chroot /linux2
>
> then inside the chroot, whatever you do should not disturb what's
> cooking in Linux-1
>
> Remember to unmount proc from Linux-2 after leaving the chroot.


--
Matthew K Poer <matthewpoer@gmail.com>
Location: GA, USA Web: http://matthewpoer.freehostia.com
GnuPG Public Key: 4DD0A9A6 Keyserver: subkeys.pgp.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGryU9kRdiiE3QqaYRAgkEAJ9rdrXEN7tgWiJeWOXXk6 wBC8O8kQCfa3X1
Q0it64LtIWP90HfanI9OksQ=
=OZtA
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 01/08/2007, 00h00   #4
- Tong -
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debian Linux in Chroot

On Tue, 31 Jul 2007 08:04:10 -0400, Matthew K Poer wrote:

> My understanding of chroot is extremely limited, right now. I have searched
> around, but can anyone point me to anything specific that they know to be a
> good tutorial/explanation or how chroot works and what its capabilities are?


Check this out:

System Chroot And Debootstrap
http://xpt.sourceforge.net/techdocs/nix/chroot/

HTH

--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 00h30   #5
Andrew J. Barr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debian Linux in Chroot

On 7/31/07, Matthew K Poer <matthewpoer@gmail.com> wrote:
> My understanding of chroot is extremely limited, right now. I have searched
> around, but can anyone point me to anything specific that they know to be a
> good tutorial/explanation or how chroot works and what its capabilities are?


chroot is a system call that causes all descended processes to treat a
directory in the filesystem as the root directory (/). When you do
this to an interactive Bash shell, you then have the ability to launch
programs and do development work, etc. from this chroot.

Debian has good tools for doing this sort of thing--debootstrap and
friends can install a new system (etch, lenny, sid, and more) in a
folder for you, and you can even install an entire 32-bit userland on
a 64-bit system, which is useful for running 32-bit Firefox with stuff
like the non-free Adobe Flash plugin (FYI-if you're going to point out
nspluginwrapper, please also tell me how to make sound with PulseAudio
work in that setup). Then there are tools like schroot (apt-get
install schroot) which can be configured to launch programs from
inside the chroot in one command line, complete with 32-bit uname()
emulation if so desired.

--
Andrew Barr

We matter more than pounds and pence,
your economic theory makes no sense...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 00h30   #6
Andrew J. Barr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debian Linux in Chroot

On 7/31/07, Matthew K Poer <matthewpoer@gmail.com> wrote:
> My understanding of chroot is extremely limited, right now. I have searched
> around, but can anyone point me to anything specific that they know to be a
> good tutorial/explanation or how chroot works and what its capabilities are?


chroot is a system call that causes all descended processes to treat a
directory in the filesystem as the root directory (/). When you do
this to an interactive Bash shell, you then have the ability to launch
programs and do development work, etc. from this chroot.

Debian has good tools for doing this sort of thing--debootstrap and
friends can install a new system (etch, lenny, sid, and more) in a
folder for you, and you can even install an entire 32-bit userland on
a 64-bit system, which is useful for running 32-bit Firefox with stuff
like the non-free Adobe Flash plugin (FYI-if you're going to point out
nspluginwrapper, please also tell me how to make sound with PulseAudio
work in that setup). Then there are tools like schroot (apt-get
install schroot) which can be configured to launch programs from
inside the chroot in one command line, complete with 32-bit uname()
emulation if so desired.

--
Andrew Barr

We matter more than pounds and pence,
your economic theory makes no sense...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 01/08/2007, 04h20   #7
Matthew K Poer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debian Linux in Chroot

Wow, you seem to be really singing the praises of chroot.

I have a spare 10gig partition on my hard drive. I originally considered
simply dual-booting Etch and Lenny, or Etch and Feisty, or something similar.
Perhaps instead I will make it a chroot jail for Lenny.

Big question answered: you can run X clients (applications) on your local,
non-chroot Xserver (display).

So, again, it is a completely separate operating system installation, running
on the same kernel as the active, base OS?

So how do you handle the /boot partition? Do you have to redirect to the
active kernel, or is this sort of automatically taken care of by debootstrap?
(I have never used debootstrap).

On Tuesday 31 July 2007 7:25 pm, Andrew J. Barr wrote:
> On 7/31/07, Matthew K Poer <matthewpoer@gmail.com> wrote:
> > My understanding of chroot is extremely limited, right now. I have
> > searched around, but can anyone point me to anything specific that they
> > know to be a good tutorial/explanation or how chroot works and what its
> > capabilities are?

>
> chroot is a system call that causes all descended processes to treat a
> directory in the filesystem as the root directory (/). When you do
> this to an interactive Bash shell, you then have the ability to launch
> programs and do development work, etc. from this chroot.
>
> Debian has good tools for doing this sort of thing--debootstrap and
> friends can install a new system (etch, lenny, sid, and more) in a
> folder for you, and you can even install an entire 32-bit userland on
> a 64-bit system, which is useful for running 32-bit Firefox with stuff
> like the non-free Adobe Flash plugin (FYI-if you're going to point out
> nspluginwrapper, please also tell me how to make sound with PulseAudio
> work in that setup). Then there are tools like schroot (apt-get
> install schroot) which can be configured to launch programs from
> inside the chroot in one command line, complete with 32-bit uname()
> emulation if so desired.


--
Matthew K Poer <matthewpoer@gmail.com>
Location: GA, USA Web: http://matthewpoer.freehostia.com
GnuPG Public Key: 4DD0A9A6 Keyserver: subkeys.pgp.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGr/n1kRdiiE3QqaYRAu8IAJ4mEO8axS/ssQQtmHx/OMG3cLLnmgCfdfe+
nzc9mnvP6eDsyHZKmbb++6Y=
=3jEa
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 01/08/2007, 07h40   #8
Bob Proulx
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debian Linux in Chroot

- Tong - wrote:
> Matthew K Poer wrote:
>
> > My understanding of chroot is extremely limited, right now. I have
> > searched around, but can anyone point me to anything specific that
> > they know to be a good tutorial/explanation or how chroot works
> > and what its capabilities are?

>
> Check this out:
>
> System Chroot And Debootstrap
> http://xpt.sourceforge.net/techdocs/nix/chroot/


Also see:

http://www.debian.org/doc/manuals/re....html#s-chroot

Bob


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 06h04.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15135 seconds with 16 queries