public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: David Fellows <fellows@unb.ca>
To: gentoo-amd64@lists.gentoo.org, Peter Humphrey <prh@gotadsl.co.uk>
Subject: Re: [gentoo-amd64] Installing into a 32-bit chroot?
Date: Sun, 04 Sep 2005 22:56:37 -0300	[thread overview]
Message-ID: <200509050156.j851ucKG029730@mailserv.unb.ca> (raw)
In-Reply-To: <200509041702.07690.prh@gotadsl.co.uk>

> Hello all,
> 
> I'd like to see if I can install gambas into my 32-bit chroot jail. It's 
> masked out of everything but vanilla x86 systems, which I think is what I 
> have in /mnt/gentoo32 (the chroot jail).
> 
> Using emerge to install gambas brings all sorts of other things, including a 
> duplicate xorg-x11 installation, which seems a bit excessive to me. How do 
> I go about emerging into /mnt/gentoo32 with full X functionality etc, but 
> without all the baggage? Perhaps someone's already done this and can advise 
> me.

A year ago I made a chroot to run gnucash in.  I just did an emerge in the 
chroot and made all of xorg - ate the compile time and disk space.  You just 
need the Xclient libraries, but it wasn't worth the effort to figure out 
what could be pruned. 

To run gnucash  I start an sshd service in the chroot listening on port 2232
( and leave it running indefinitely). SSHD is configured to do X forwarding.
You do NOT start the X server in the chroot.
In 64 bit I created a /home/me/home32 directory in my 64 bit home directory
/home/me. Then I made /home available to the chroot.
As per the the 32 bit chroot instructions I created a user id for myself that
matches the 64 bit UID with home directory /home/me/home32.
I also had to set up the ssh  keys, known hosts files, etc.

Then I use the command 
ssh -X -p2232 localhost
to connect to the chroot
and execute gnucash.

I have discovered that not all X clients are happy to talk to an X server that
is running on a machine with a different word size.  This is not chroot 
specific and it affects both 32 bit client to 64 bit server and 64 bit client 
to 32 bit server.  My short list, from experience is
  gnome xterm - OK 
  emacs - dies on first mouse click
  xeyes - OK
  gnucash - spews a steady stream of X errors/warnings, but does its thing.
	  (sometimes you are lucky)
  wine - dies on startup IRCC

So you roll the dice with gambas.

If any X perts can explain how to overcome this, I'd like to know. I vaguely 
recall looking briefly and deciding that each client had to be modified.

Perhaps VNC would work better than X through ssh. Anybody have any experience?

> 
> I don't really understand properly how chroots work, and in particular 
> whether it's possible to install, e.g., gambas in /mnt/gentoo32 and have it 
> use libraries etc. elsewhere. Or do I really have to install a virtually 
> complete gentoo 32-bit system to enable it to work?
> 
> -- 
> Rgds
> Peter Humphrey
> Linux Counter 5290, August 1993.
> -- 
> gentoo-amd64@gentoo.org mailing list
> 

Dave F

-- 
gentoo-amd64@gentoo.org mailing list



  parent reply	other threads:[~2005-09-05  1:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-04 16:02 [gentoo-amd64] Installing into a 32-bit chroot? Peter Humphrey
2005-09-04 21:14 ` [gentoo-amd64] " Duncan
2005-09-06 20:14   ` Tres Melton
2005-09-07  8:00     ` Peter Humphrey
2005-09-07 14:09     ` Billy Holmes
2005-09-05  1:56 ` David Fellows [this message]
2005-09-05  3:08   ` [gentoo-amd64] " Barry.SCHWARTZ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200509050156.j851ucKG029730@mailserv.unb.ca \
    --to=fellows@unb.ca \
    --cc=gentoo-amd64@lists.gentoo.org \
    --cc=prh@gotadsl.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox