All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomas Frydrych <tf+lists.yocto@r-finger.com>
To: yocto@yoctoproject.org
Subject: Re: Running Sato/X11 as non-root
Date: Wed, 06 Feb 2013 14:55:15 +0000	[thread overview]
Message-ID: <51126ED3.8040503@r-finger.com> (raw)
In-Reply-To: <51126B76.1060108@mlbassoc.com>

On 06/02/13 14:40, Gary Thomas wrote:
> In my attempt to get pulseaudio running, I need to bring up
> my X11 session with a user that is not root.  The default
> (core-image-sato) always starts X11 as root.  This yields
> these errors when starting (with pulseaudio installed):
>   W: [pulseaudio] main.c: This program is not intended to be run as root
> (unless --system is specified).
>   E: [autospawn] core-util.c: Home directory /home/root not ours.
>   W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
>   E: [pulseaudio] main.c: Failed to acquire autospawn lock
>   W: [pulseaudio] main.c: This program is not intended to be run as root
> (unless --system is specified).
>   E: [autospawn] core-util.c: Home directory /home/root not ours.
>   W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
>   E: [pulseaudio] main.c: Failed to acquire autospawn lock
> 
> So, I tried to make X run as user 'demo', which I created, by
> putting 'demo' in /etc/X11/Xusername.  Now it seems to try
> and run as 'demo', but falls over quite quickly:
>   Fatal server error:
>   [2951371.651] xf86OpenConsole: Cannot open /dev/tty0 (No such file or
> directory)
>   [2951371.651]
>   [2951371.651] (EE)
>   Please consult the The X.Org Foundation support
>          at http://wiki.x.org for help.
>   [2951371.651] (EE) Please also check the log file at
> "/var/log/Xorg.0.log" for additional information.
>   [2951371.651] (EE)
>   [2951371.652] (WW) xf86CloseConsole: KDSETMODE failed: Bad file
> descriptor
>   [2951371.652] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file
> descriptor
>   [2951371.652] Server terminated with error (1). Closing log file.
> 
> Any ideas how I get this going?
> 
> n.b. not only do I want to get this going for myself, but I think
> the discussion (and maybe subsequent documentation) is useful since
> this functionality is in OE-core (or is it only Poky/Yocto - hard
> to tell)...

The user that the rootless X in Poky is expecting is called xuser; if
you use your own, you need to make sure that it's in all the appropriate
groups the server needs it to be in, etc.; see the xserver-nodm-init recipe.

Tomas

-- 
http://sleepfive.com


      reply	other threads:[~2013-02-06 14:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-06 14:40 Running Sato/X11 as non-root Gary Thomas
2013-02-06 14:55 ` Tomas Frydrych [this message]

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=51126ED3.8040503@r-finger.com \
    --to=tf+lists.yocto@r-finger.com \
    --cc=yocto@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.