On Wed, 2006-04-05 at 04:06 +0200, Meino Christian Cramer wrote:
> From: "Daniel Pielmeier" <[EMAIL PROTECTED]>
> Subject: Re: [gentoo-user] OT: Application for video cutting ?
> Date: Mon, 3 Apr 2006 11:37:52 +0200
> 
> Hi Daniel,
> 
>  thanks for your reply and thank you all other replies to my question!
>  How can I manage to install qt-4 without cripple the rest of my
>  system (qt-3 based) ?
> 
>  Is there a way of parallel installation/usage ? And if so -- how can
>  I manage it "gentoo-like" ?

I had the same question a week ago, and Chris White pointed me toward
one way: use 'chroot'.  This approach costs disk space and some time to
set up, but you're guaranteed to not mess anything up in your system and
you have a complete new sandbox to play with (or as many as you want).

Basically, get enough disk space on a filesystem somewhere large enough
to hold your entire installation, and copy everything (from / except for
your mount points like /proc and /dev) to that place.  Use 'cp -rp ...'
to preserve ownership/perms.  Write a script that sets up the mount
points for that new place like this:

mount -t proc none /path/to/clone/proc
mount --bind /dev /path/to/clone/dev
mount --bind /sys /path/to/clone/sys
...and so on...

Once you have that clone set up, you use chroot to change root into that
clone:

chroot /path/to/clone /bin/bash
  (/ for this shell is now that clone's root dir)
env-update
source /etc/profile
export PS1="(chroot) $PS1"

There you have it -- that shell is now pretending that /
is /path/to/clone.  emerge away and you're only affecting the clone.
You can even su to your usual user account, and run X and everything.
Just be sure to do the chroot when you're logged in as root at the
outmost term (not within X).

- Stephen
-- 
Stephen Bartlett
President, Bartlett Software, Inc.
http://www.bartlettsoftware.biz/ 

>  Thank you very much for your help in advance ! :)
> 
>  Keep hacking!
>  mcc
> 
> 
> > Hi!
> > 
> > If you just want to remove the adds from your recordings, i recommend
> > ttcut at http://ttcut.tritime.org/ it is not in portage and depends on
> > qt-4. Ttcut is able to cut frame accurately, so you can cut on I-, P-
> > and B-Frames.
> > I have written an ebuild, you will find it at
> > http://bugs.gentoo.org/show_bug.cgi?id=122162.
> > But you can also use the most recent version from svn under
> > svn://svn.berlios.de/ttcut/trunk.
> > Ttcut is in alpha state, so you may encounter problems too, but i
> > think it is worth a try.
> > 
> > HTH Daniel
> > 
> > -- 
> > gentoo-user@gentoo.org mailing list
> > 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to