chroot to oldlinux to run legacy app, with X

Gilboa Davara gilboad at gmail.com
Mon Sep 25 17:38:11 UTC 2006


On Mon, 2006-09-25 at 16:53 +0000, Jack Byers wrote:
> 
> Jack Byers     byersj at hotmail.com
> 
> >first do folowing two commands  from your mainlinux
> >[root at bootp byers]# mount --bind /tmp /corni/tmp
> >[root at bootp byers]# xhost local:localhost
> then do the chroot:
> >
> ># /usr/sbin/chroot /corni
> 
> >I think this will work chrooting from any linux to any other linux,
> >_except_
> >I have been told trouble will occur
> >if trying to chroot from a 64bit linux to a 32bit linux
> >I  dont yet have 64bit linux but will soon
> >Any advice when trying chroot 64bit ->32 bit?
> >
> >Jack
> >
> >
> 
> Don't forget the .Xauthority cookie.
> $ cp  /home/<your home>/.Xauthority   /mnt/FC4/home/<your chroot home>
> 
> Gilboa
> 
> ----
> Gilboa,
> thanks for response
> I have never yet needed to copy .Xauthority
> 
> did you intend this as something required when trying to chroot from 64bit 
> linux ->32 bit linux
> as per my original question?
> or just general good advice?
> 
> Jack
> 
> 

Copying the .Xauthority file saves you the need to open access to your X
server. (xhost +localhost)
Other then that, you just chroot into the 32bit Linux and execute the
command.

Gilboa




More information about the fedora-list mailing list