Subject: Re: console messages in X screwing up the screen
To: None <port-mac68k@netbsd.org>
From: Tim & Alethea Larson <thelarsons3@cox.net>
List: port-mac68k
Date: 05/24/2006 07:01:01
Hauke Fath wrote:
>> thelarsons3@cox.net wrote:
>>> I'm trying to set up my Mystic CC for use as an X-terminal.
>
> Do you use startx etc., or do you use xdm? Because the latter executes
> GiveConsole and TakeConsole scripts that make sure you own all the
> important bits after you have logged in. (If you want to set up an X
> terminal, you most likely want xdm.)
So far I'm using startx just to play with the config for the apps and my
personal environment. I'd like to move to xdm though.
> If you log in as an unprivileged user, obviously you cannot change
> ownership of /dev/console. You could probably get away with 'chmod 666
> /dev/console' and/or 'chmod u+s /usr/X11R6/bin/xconsole' for testing.
I did the chmod to xconsole so that the screen didn't bork. Then I also
changed syslog.conf to not send the auth messages to the console.
(Thanks, Bruce!) Since those are the only ones I see day-to-day, the
problem is solved now.
>>> Question 1: my xterm gives the warning "utmp_update: /dev/ttyp0: Is not
>>> owned by you" when I launch it.
I've tried to read up on what utmp_update is, but it makes no sense to
me yet.
>>> Question 3: how do I chown the console? Is this something I put in my
>>> personal X scripts, or a system X script, or what?
>
> As I said, if you use xdm, it does that for you. My /etc/X11/xdm/Xsetup_0
> script then starts xconsole,
>
> #!/bin/sh
> #
> # $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $
> # $Id: Xsetup_0.sh,v 1.1 2004/07/18 15:00:18 hauke Exp $
> xhost +localhost
> xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
>
> though I don't know whether the distributed version does this, too.
>
> I can send you my xdm setup as sample, if it helps any.
Could you, please? I'm having a hard time understanding the
relationships between all the various pieces that go into an X system,
because everything is so abstracted and distinct. It's great because it
allows the network transparency, but it makes it more confusing too. I
tried merely enabling xdm=YES in my rc.conf but I'm not sure what all
the defaults do. I tried reading the xdm man page to understand the
whole X initiation process, but there's A LOT there!
From what I understand so far, you can make boxes openly broadcast for
X connections, or you can restrict connections to other machines that
know about them specifically, or you can disallow X connections
altogether. Obviously you can connect to yourself too. I'd want to set
up this machine (conrad) to work with all three modes, supplying a login
prompt containing itself, specific machines that I've opened to conrad,
as well as "open" machines on the LAN.
This stuff is pretty general to X, so if there's a more proper forum for
this, just let me know.
Thanks,
Tim
--
Tim & Alethea
christtrek.org