From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EC6FM-00009o-Vx for garchives@archives.gentoo.org; Mon, 05 Sep 2005 01:58:09 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j851riGW018079; Mon, 5 Sep 2005 01:53:44 GMT Received: from mailserv.unb.ca (mailserv.unb.ca [131.202.3.23]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j851rfDj001408 for ; Mon, 5 Sep 2005 01:53:43 GMT Received: from jupiter.csd.unb.ca (fellows@jupiter.sun.csd.unb.ca [131.202.3.8]) by mailserv.unb.ca (8.13.1/8.13.1) with SMTP id j851ucKG029730; Sun, 4 Sep 2005 22:56:38 -0300 Message-Id: <200509050156.j851ucKG029730@mailserv.unb.ca> Received: by jupiter.csd.unb.ca (sSMTP sendmail emulation); Sun, 4 Sep 2005 22:56:38 -0300 To: gentoo-amd64@lists.gentoo.org, Peter Humphrey In-reply-to: <200509041702.07690.prh@gotadsl.co.uk> References: <200509041702.07690.prh@gotadsl.co.uk> Comments: In-reply-to Peter Humphrey message dated "Sun, 04 Sep 2005 17:02:07 +0100." Date: Sun, 04 Sep 2005 22:56:37 -0300 From: David Fellows X-UNB-MailScanner-Information: Please contact the ISP for more information X-UNB-VirusScanner: Found to be clean X-UNB-SpamDetails: X-MailScanner-From: fellows@unb.ca Subject: Re: [gentoo-amd64] Installing into a 32-bit chroot? Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org X-Archives-Salt: 364a91b7-f830-48f9-b660-469c176dbd3c X-Archives-Hash: f7c869990c6ab3c132375778d26e5c96 > 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