From: Chris Gianelloni <wolf31o2@gentoo.org>
To: gentoo-catalyst@lists.gentoo.org
Subject: Re: [gentoo-catalyst] Re: Re: livecd-stage1 pkgconfig
Date: Fri, 08 Jul 2005 15:18:36 -0400 [thread overview]
Message-ID: <1120850317.11567.122.camel@cgianelloni.nuvox.net> (raw)
In-Reply-To: <pan.2005.07.08.18.21.49.428125@novazur.fr>
[-- Attachment #1: Type: text/plain, Size: 2385 bytes --]
On Fri, 2005-07-08 at 14:21 -0400, Christophe PEREZ wrote:
> >> - create a user (with livecd/users I suppose)
> >
> > 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 it
> 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
OK. This was an oversight on my part. Here's how you can fix it
locally (this will be in the next catalyst)...
Edit /usr/lib/catalyst/livecd/files/livecd-bashrc and change the third
mention of "startx", where it is on a line of its own, to ##STARTX.
Next, edit /usr/lib/catalyst/livecd/runscript-support/livecdfs-update.sh
and change line 83 from:
sed -i "s/startx/su - $first_user -c startx/" /root/.bashrc
to:
sed -i "s/##STARTX/su - $first_user -c startx/" /root/.bashrc
This will resolve the bug. I didn't pay much attention to what I was
doing here, apparently. I apologise.
Anyway, I've now fixed this is catalyst 1.1.10.1 (the first bug fix).
> > 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 ?
Well, the root user is automatically logged in, and when his .bashrc is
executed, it will run startx, or in your case, it will run su - chris -c
startx to start X as user chris.
> Thank you for all your help even if you can't understand all what I mean ;-)
Hehehe.... it's all good. Sometimes the language barrier makes things
harder, sometimes it doesn't exist.
--
Chris Gianelloni
Release Engineering - Strategic Lead/QA Manager
Games - Developer
Gentoo Linux
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-07-08 19:19 UTC|newest]
Thread overview: 67+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-05 23:39 [gentoo-catalyst] livecd-stage1 pkgconfig Christophe PEREZ
2005-07-06 13:47 ` Chris Gianelloni
2005-07-06 18:47 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-08 5:57 ` Christophe PEREZ
2005-07-08 6:20 ` Christophe PEREZ
2005-07-08 14:22 ` Chris Gianelloni
2005-07-08 14:19 ` Chris Gianelloni
2005-07-08 18:21 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-08 19:18 ` Chris Gianelloni [this message]
2005-07-08 20:14 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-12 3:46 ` Christophe PEREZ
2005-07-12 14:12 ` Chris Gianelloni
2005-07-12 16:32 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-12 17:01 ` Chris Gianelloni
2005-07-12 17:26 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-12 17:34 ` Christophe PEREZ
2005-07-12 18:06 ` Chris Gianelloni
2005-07-12 19:17 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-12 18:05 ` [gentoo-catalyst] Re: " Chris Gianelloni
2005-07-12 19:14 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-12 19:43 ` Christophe PEREZ
2005-07-12 19:59 ` Chris Gianelloni
2005-07-12 20:18 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-14 5:03 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-14 13:14 ` Chris Gianelloni
2005-07-14 17:29 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-14 18:06 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-14 18:21 ` Chris Gianelloni
2005-07-14 18:33 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-14 18:42 ` Christophe PEREZ
2005-07-14 18:57 ` Chris Gianelloni
2005-07-14 19:36 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-14 19:53 ` Chris Gianelloni
2005-07-15 0:52 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-15 15:31 ` Chris Gianelloni
2005-07-15 18:37 ` [gentoo-catalyst] " Christophe PEREZ
2006-09-16 19:49 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-09 5:52 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-09 7:00 ` Christophe PEREZ
2005-07-09 13:56 ` Paul Smith
2005-07-09 17:18 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-12 3:42 ` Christophe PEREZ
2006-04-16 3:10 ` [gentoo-catalyst] " Christophe PEREZ
2006-04-17 13:02 ` Chris Gianelloni
2006-04-17 15:47 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-10 4:26 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-11 19:25 ` Christophe PEREZ
2005-07-11 19:44 ` Chris Gianelloni
2005-07-11 21:04 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-12 22:23 ` Christophe PEREZ
2005-07-13 4:04 ` Christophe PEREZ
2005-07-13 14:26 ` Chris Gianelloni
2005-07-13 15:23 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-13 15:38 ` Michiel de Bruijne
2005-07-13 15:38 ` Chris Gianelloni
2005-07-13 16:57 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-13 17:05 ` Chris Gianelloni
2005-07-13 17:34 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-13 18:22 ` Chris Gianelloni
2005-07-13 19:35 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-13 19:47 ` [gentoo-catalyst] " Chris Gianelloni
2005-07-13 19:53 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-13 17:38 ` [gentoo-catalyst] Re: " Christophe PEREZ
2005-07-11 21:04 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-11 21:17 ` Chris Gianelloni
2005-07-11 21:33 ` [gentoo-catalyst] " Christophe PEREZ
2005-07-11 21:19 ` [gentoo-catalyst] " Christophe PEREZ
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=1120850317.11567.122.camel@cgianelloni.nuvox.net \
--to=wolf31o2@gentoo.org \
--cc=gentoo-catalyst@lists.gentoo.org \
/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