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 1DqxUV-0007XP-8C for garchives@archives.gentoo.org; Fri, 08 Jul 2005 18:22:23 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j68ILfbt012292; Fri, 8 Jul 2005 18:21:41 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j68ILe1E026220 for ; Fri, 8 Jul 2005 18:21:41 GMT Received: from alamentin-101-1-11-68.w81-248.abo.wanadoo.fr ([81.248.110.68] helo=serveur1.novazur.fr) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DqxTy-0002su-12 for gentoo-catalyst@lists.gentoo.org; Fri, 08 Jul 2005 18:21:50 +0000 Received: by serveur1.novazur.fr (Postfix, from userid 9) id 8CC9B2615EE; Fri, 8 Jul 2005 14:21:49 -0400 (AST) To: gentoo-catalyst@lists.gentoo.org Path: not-for-mail From: Christophe PEREZ Newsgroups: gmane.linux.gentoo.catalyst Subject: [gentoo-catalyst] Re: Re: livecd-stage1 pkgconfig Date: Fri, 08 Jul 2005 14:21:49 -0400 Organization: KanelXP Message-ID: References: <1120657640.4744.25.camel@cgianelloni.nuvox.net> <1120832397.11567.84.camel@cgianelloni.nuvox.net> NNTP-Posting-Host: kanelxp.novazur.fr Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 X-Trace: serveur1.novazur.fr 1120846909 19494 192.168.0.1 (8 Jul 2005 18:21:49 GMT) X-Complaints-To: usenet@news.novazur.fr NNTP-Posting-Date: Fri, 8 Jul 2005 18:21:49 +0000 (UTC) User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) X-Face: &Ec&b_$u{}:I"8+fEW`ON}.yYSNdE'}+lZFCWs.5.rCWL.-VG`S<6C5MRse@xvV,w$.[*&!47N6U~5)eW${2[2r2BH2Mgr#b,agj_n Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c00abcaa-c44b-47b6-a06d-7e502449413c X-Archives-Hash: fb50287d1377a49dac6e3bc24700460c Le Fri, 08 Jul 2005 10:19:57 -0400, Chris Gianelloni a =E9crit=A0: > fsscript is a script, run after the default scripts, that makes changes > to the filesystem and is run within the chroot. Ok. > livecd/overlay is an overlay over the CD, not the filesystem within the > CD. We use this for the docs and snapshot, etc on the Universal CD to > get things on the outside of the loop. This is for things, like, addin= g > a README to the root of the CD. >=20 > livecd/root_overlay overlays the files within the chroot and the CD's > filesystem. If you want to add a working configuration for a user, the= n > you would have an overlay that looks like this: Oh, I had a really great understanding problem. Overlays are not scripts... shame on me. > /home/$user/.config >=20 > This would copy .config to /home $user. ok, now, I think I understand. >> I want X is automaticaly launched at boot. >=20 > This is easy. Use generic-livecd as your livecd/type (you should never > use anything else since you are not building releases anyway) I think, and hope my livecd-stage2 is generic based... > and make > sure you have X in your USE flags for livecd-stage1, when you install > livecd-tools. have it. > If you want opengl support, then you will also need the opengl USE flag= . forgot it. >> I add xdm:default to livecd/rcadd >=20 > You should use this if you want opengl support: >=20 > livecd/rcadd: > x-setup|default > xdm|default >=20 > Use this if you do not: >=20 > livecd/rcadd: > mkxf86config|default > xdm|default I'll try that. >> But, I have to create a xorg.conf dynamicaly. >=20 > Now, these will create your xorg.conf file for you. Also, if you choos= e > to use opengl, then you will need to install the nvidia and ati drivers > during your livecd-stage2 packages for your kernels. Of course. >> I tought to use xorg -configure to create configuration, but I don't k= now >> how to add this command (in which script) in my livecd. >=20 > Bad idea. The only one I found myself ;-) > Try using the stuff I've already built and tested. =3D] Sure. >> In the same way, I want to add parameters of configuration during the >> creation of the livecd (this is not at cd boot), have I to add them in >> fsscript or root_overlay ? >=20 > I don't really understand this exactly. But anything that you want > changed should be in a fsscript *unless* it is just adding files. The > fsscript is just a shell script that is executed by catalyst within the > chroot. Ok, it's more clear now. > To update parameters during boot, you'll need to do some work, dependin= g > on the parameters you need to adjust. I can't really help more without > more information. I was talking about creating X configuration etc... that is only possible during boot. But you already answer to that. Le Fri, 08 Jul 2005 10:22:19 -0400, Chris Gianelloni a =E9crit=A0: >> - create a user (with livecd/users I suppose) >=20 > livecd/users: cperez of course. I tried that, and I have something very strange. I'm not very good at shell scripting, but when I see that, I don't find i= t really normal : livecd ~ # cat /root/.bashrc #!/bin/bash if [ -x /usr/bin/X ]; then if [ -e /etc/su - chris -c startx ]; then rm -f /etc/su - chris -c startx su - chris -c startx cat /etc/motd fi fi "-x /usr/bin/X", I understand, but what is that : "-e /etc/su - chris -c startx" ??? My livecd/users is "chris" Of course, I always have an error at boot : .bashrc: line 4: [: too many arguments >> - add a good xfce4 configuration in $HOME of this user (which script?) >=20 > livecd/root_overlay: /tmp/overlay with /home/cperez/.xcfe in it. of course. clear. >> during boot : >> - create xorg configuration >> - start x (I have to find the best way to do that) >=20 > See previous email. I only do that, I read it, I read it, and I read it again... I learn it ;= -) > If you follow the directions there, X will be auto-started. I might > suggest avoiding the use of the xdm init script, and instead using a > livecd/xinitrc to start X, as the build will try to execute "startx" > automatically as the first user specified in livecd/users when using > livecd/type generic-livecd. I found this solution too, but if I don't use xdm, what will execute X ? Thank you for all your help even if you can't understand all what I mean = ;-) --=20 Christophe PEREZ -- gentoo-catalyst@gentoo.org mailing list