Professional Web Applications Themes

NIC-activation => Xlib: connection to ":0.0" refused by server - Linux Setup, Configuration & Administration

Hi! I am running RedHat 9.0, default kernel (2.4.20, I think). I have installed today some rpms form the RedHat 9.0 CDs, among them samba (the smb server), and redhat-config-samba. They required several other rpms. Also, once I was at it, I installed the 8 other services available on the CD which I didn't have installed from before. I thought it would be a good idea to have them all. The 8 other services are stuff like NFS, DNS, DHTTP, and the like. I haven't yet tried out samba yet, because, to my great surspise I discovered that the X ...

  1. #1

    Default NIC-activation => Xlib: connection to ":0.0" refused by server

    Hi!

    I am running RedHat 9.0, default kernel (2.4.20, I think).

    I have installed today some rpms form the RedHat 9.0 CDs, among them
    samba (the smb server), and redhat-config-samba. They required several
    other rpms. Also, once I was at it, I installed the 8 other services
    available on the CD which I didn't have installed from before. I thought
    it would be a good idea to have them all. The 8 other services are stuff
    like NFS, DNS, DHTTP, and the like.

    I haven't yet tried out samba yet, because, to my great surspise I
    discovered that the X server doesn't work any more after I activate my
    laptop's NIC with the Network Device Control application. But it works
    just as it has always done, before I do that.

    Before NIC activation I get the following:

    ---
    [rootlocalhost catalin]# xhost
    access control enabled, only authorized clients can connect
    ---

    After NIC activation I get:

    ---
    [rootlocalhost root]# xhost
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified

    xhost: unable to open display ":0.0"
    [rootlocalhost root]#
    ---

    As a regular user I get the following after NIC activation:

    ---
    [catalinlocalhost catalin]$ xhost
    Xlib: connection to ":0.0" refused by server
    Xlib: Invalid MIT-MAGIC-COOKIE-1 key
    xhost: unable to open display ":0.0"
    [catalinlocalhost catalin]$
    ---

    Is there anyone who can help me out of this?



    Thanks a lot!

    Catalin



    --

    <<<< ================================== >>>>
    << We are what we repeatedly do. >>
    << Excellence, therefore, is not an act >>
    << but a habit. >>
    <<<< ================================== >>>>
    Doru-Catalin Guest

  2. #2

    Default Re: NIC-activation => Xlib: connection to ":0.0" refused by server

    Doru-Catalin Togea wrote:
     

    Why aren't you using "startx"?

    What happens if you try this first:

    # xhost +localhost

    --
    Paul Lutus
    http://www.arachnoid.com

    Paul Guest

  3. #3

    Default Re: NIC-activation => Xlib: connection to ":0.0" refused by server

    On Thu, 16 Oct 2003, Paul Lutus wrote:
     
    >
    > Why aren't you using "startx"?[/ref]

    Sorry, I didn't think of mentioning that I was already inte X-windows, as
    I boot into runlevel 5. The output examples are from the shells run within
    X.
     

    I thought of the same, and tried it. It changes my settings to

    ---
    [catalinlocalhost catalin]$ xhost
    access control disabled, clients can connect from any host
    [catalinlocalhost catalin]$
    ---

    The xhost settings remain like this even after activating my NIC, so this
    is a solution to my problem.

    I still would like to know why activating the NIC would invalidate all
    xhost users. I configured a share for samba and chose to allow permisions
    only for "the current user". Could it be that it sets my xhost users?

    Catalin


    --

    <<<< ================================== >>>>
    << We are what we repeatedly do. >>
    << Excellence, therefore, is not an act >>
    << but a habit. >>
    <<<< ================================== >>>>
    Doru-Catalin Guest

Similar Threads

  1. Replies: 0
    Last Post: October 19th, 10:16 PM
  2. Replies: 0
    Last Post: March 23rd, 04:03 PM
  3. "Connection closed by remote server" error in Opera
    By BGS in forum ASP.NET General
    Replies: 0
    Last Post: July 24th, 07:40 PM
  4. Replies: 5
    Last Post: July 9th, 05:25 AM
  5. IE6 "can not find server" with 100% strength wireless connection
    By Albert Tsay in forum Windows Networking
    Replies: 1
    Last Post: July 3rd, 10:08 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139