Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: XOpenDisplay(NULL) Fails as ROOT

  1. #11
    dd@home.dk NNTP User

    Default Re: XOpenDisplay(NULL) Fails as ROOT

    > openSUSE user since 1996 (when it was S.u.S.E.)

    hi Ken, have not seen you around here...so welcome if you are new
    hereabouts (i mean, maybe i just missed seeing your input)...

    couple/three things:

    1. using nntp (as you and i are doing) we can also use "code tags"
    simply by typing them....like when i give hints on (say) command line
    code i give it like this:

    Code:
    su -
    zypper lr -d
    so, here in nntp you will see the actual "code tags" but the folks on
    the web side see something else (see
    http://forums.opensuse.org/showthread.php?t=476509 to get an
    idea)....the tags here don't make a great deal of difference, but it
    makes a LOT of difference to the helpers on the web side..

    other "tags" are available if you wish to use them (about the only other
    i use are the quote and /quote), Carlos uses the URL tags often.....more
    at: http://forums.opensuse.org/misc.php?do=bbcode
    they might be useful to you if you wanna hang out and also contribute to
    the new folks who streams in here daily...

    2. speaking of contributing, i'm not sure it is useful to spend a lot of
    time here as the spelling police...Henk's mother tongue isn't english
    and that goes for a lot of the helpers and askers...so, a little slack
    is usually needed to get along and keep things cool..

    compared to you i'm a SUSE-noob (only got into Linux a little in '98 as
    IBM started murdering OS/2, and didn't discover SUSE until about
    2002...so, i look forward to your contributions to the folks new to
    openSUSE, and expect you will teach me a trick or two, too....so, hang
    around....you are welcome....but, go easy on the police thing--it really
    doesn't add to the pleasure or fun for the new folks...please.

    around here we say, often:

    Have a lot of fun.

    --
    dd



  2. #12

    Default Re: XOpenDisplay(NULL) Fails as ROOT

    On 07/04/12 12:27, dd@home.dk pecked at the keyboard and wrote:
    >> openSUSE user since 1996 (when it was S.u.S.E.)

    >
    > hi Ken, have not seen you around here...so welcome if you are new
    > hereabouts (i mean, maybe i just missed seeing your input)...
    >
    >
    > compared to you i'm a SUSE-noob (only got into Linux a little in '98
    > as IBM started murdering OS/2, and didn't discover SUSE until about
    > 2002...so, i look forward to your contributions to the folks new to
    > openSUSE, and expect you will teach me a trick or two, too....so, hang
    > around....you are welcome....but, go easy on the police thing--it
    > really doesn't add to the pleasure or fun for the new folks...please.
    >
    > around here we say, often:
    >
    > Have a lot of fun.
    >


    I do have a lot of fun with linux and like to run it in when a friend
    asks to help reload the "Windows" OS.

    Sorry about that. My only point was if other things are going to
    "policed" using a spell checker should be recommended as well. Don't get
    me wrong I make a lot of mistakes myself. I also commend people on the
    list where English is their second or third language. Most speak it
    better then a lot of Americans I know.

    I'll help out where I can but the old memory ain't what it used to be.
    Sometimes I have a hard time remembering what I did yesterday. :-) Goes
    along with my CFS.

  3. #13
    dd@home.dk NNTP User

    Default Re: XOpenDisplay(NULL) Fails as ROOT

    > Sometimes I have a hard time remembering what I did yesterday. :-)

    what were we talking about?

    --
    dd

  4. #14

    Default Re: XOpenDisplay(NULL) Fails as ROOT

    Quote Originally Posted by martin_helm View Post

    Undo that and use "su -".
    Hi Martin,

    "su -" works thanks however I need to start this program during the boot sequence before the login screen so I need to sort out the following:

    X must have started; must run as ROOT; ROOT must have access to X.

    In Ubuntu I call the program via LightDM as rc.local is before X has started.

    FYI, I use LibUSB-1.0 to read/write small amounts of data to a bespoke HID so I need to find and ID the device so I can open and read/write. That's why the program needs to run as ROOT.

    Apologies for not tagging Code snippet.


    David

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •