Results 1 to 7 of 7

Thread: NXserver, No .Xauthority file in user's home directory

  1. #1

    Default NXserver, No .Xauthority file in user's home directory

    Been trying to get nxserver running on 11.2 i386 at location A and keep getting an error on connecting from client at location B.

    Code:
    NX> 203 NXSSH running with pid: 6439
    NX> 285 Enabling check on switch command
    NX> 285 Enabling skip of SSH config files
    NX> 285 Setting the preferred NX options
    NX> 200 Connected to address: 72.4.183.23 on port: 22
    NX> 202 Authenticating user: nx
    NX> 208 Using auth method: publickey
    /usr/bin/xauth:  /usr/NX/home/nx/.Xauthority not writable, changes will be ignored
    HELLO NXSERVER - Version 3.4.0-8 - LFE
    NX> 105 Hello NXCLIENT - Version 3.4.0
    NX> 134 Accepted protocol: 3.4.0
    NX> 105 Set shell_mode: shell
    NX> 105 Set auth_mode: password
    NX> 105 Login 
    NX> 101 User: test
    NX> 102 Password: *********
    NX> 103 Welcome to: son-72-4-183-23 user: test
    NX> 105 Listsession --user="test" --status="suspended\054running" --geometry="1680x1050x24+render" --type="unix-gnome" 
    NX> 127 Available sessions: 
    
    Display Type             Session ID                       Options  Depth Screen         Status      Session Name
    ------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
    
    NX> 148 Server capacity: not reached for user: test
    NX> 105 Start session with: --link="adsl" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="dads\04520puter\045202" --type="unix-gnome" --geometry="1680x955" --client="linux" --keyboard="pc102\057us" --screeninfo="1680x955x24+render" 
    NX> 595 ERROR: A fatal error occurred in NX Server.
    NX> 595 ERROR: The exception id is: C4C23356. To get detailed information about
    NX> 595 ERROR: the error search for the string C4C23356 in the system log
    NX> 595 ERROR: file (usually '/var/log/messages').
    NX> 500 ERROR: Last operation failed.
    NX> 280 Exiting on signal: 15
    So I go to /var/log/messages and see this:
    Code:
    cat /var/log/messages |grep C4C23356
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 ERROR: NXNODE Ver. 3.4.0-6  (Error id eC038EC)
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 ERROR: create session: run commands
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 ERROR: execution of last command failed
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 last command: /usr/bin/xauth -v -f /home/test/.nx/C-son-72-4-183-23-1006-3D6106AF5E95D9613A15662135AC80C4/authority source /home/test/.nx/C-son-72-4-183-23-1006-3D6106AF5E95D9613A15662135AC80C4/scripts/authority
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 exit value: 1
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 stdout: Using authority file /home/test/.nx/C-son-72-4-183-23-1006-3D6106AF5E95D9613A15662135AC80C4/authority
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 Writing authority file /home/test/.nx/C-son-72-4-183-23-1006-3D6106AF5E95D9613A15662135AC80C4/authority
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 stderr: /usr/bin/xauth:  creating new authority file /home/test/.nx/C-son-72-4-183-23-1006-3D6106AF5E95D9613A15662135AC80C4/authority
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 /usr/bin/xauth: /home/test/.nx/C-son-72-4-183-23-1006-3D6106AF5E95D9613A15662135AC80C4/scripts/authority:3:  bad display name "son-72-4-183-23:1006" in "add" command
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NX> 596 init: stdin arguments: user=test,userip=71%2e125%2e115%2e224,uniqueid=3D6106AF5E95D9613A15662135AC80C4,display=1006,node_number=0,server_name=son%2d72%2d4%2d183%2d23,license=%28None%29,subscriptionid=None,productid=LFE,reconnect=1,balance_host=72%2e4%2e183%2e23,encryption_mode=3,connection=local,images=64M,cache=16M,client=linux,media=0,backingstore=1,encryption=1,strict=0,clipboard=both,shpix=1,rootless=0,composite=1,session=dads%2520puter%25202,shmem=1,type=unix%2dgnome,virtualdesktop=1,screeninfo=1680x955x24%2brender,keyboard=pc102%2fus,geometry=1680x955,link=adsl
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NXNodeExec::exec('startsession', 'user=test&userip=71%2e125%2e115%2e224&uniqueid=3D6106AF5E95D9613...', 'localhost', 22) called at handlers/nxserver.pl line 3575
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NXShell::handler_session_start('--link="adsl" --backingstore="1" --encryption="1" --cache="16M" ...') called at NXShell.pm line 373
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NXShell::handle_command('startsession', '--link="adsl" --backingstore="1" --encryption="1" --cache="16M" ...') called at NXShell.pm line 145
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) NXShell::run() called at nxserver.pl line 4493
    Dec 20 06:02:35 son-72-4-183-23 NXSERVER-3.4.0-8[2026]: ERROR: (exception id C4C23356) eval {...} called at nxserver.pl line 4452
    After a little digging, I found that there is no .Xauthority file in the /home/user/ directory. Is there something I can do to create it? Help would be greatly appreciated.

    thanks,
    Bruce
    suse 11.2, 64bit, Gnome, Desktop PC, Gigabyte965/964, Intel quad, 4gb ram, Nvidia GeForce 7300 gs.

  2. #2
    Join Date
    Dec 2008
    Location
    GMT-7
    Posts
    382

    Default Re: NXserver, No .Xauthority file in user's home directory

    I've only dabbled a little bit with NoMachine, but I have found that the client machine's Desktop manager is a factor: what OS and window manager is running at your "location B"?
    Desk: AMD Phenom II X4 945 8GB RAM Radeon HD 3300 Arch Linux Xfce 4.8
    Lap: Intel 2.13GHz Core i3 M330 8GB RAM nVidia GeForce 310M Arch Linux KDE 4.7.3

  3. #3
    Join Date
    Dec 2009
    Location
    Thailand
    Posts
    60

    Default Re: NXserver, No .Xauthority file in user's home directory

    Try re-install NX Server.

    How to install FreeNX on openSUSE 11

  4. #4

    Default Re: NXserver, No .Xauthority file in user's home directory

    Been out for a while. Thanks for the response. I removed nomachine, deleted the /usr/NX & /home/username/.nx dir, removed the nx user and installed freenx on pc at location A (suse 11.2) I was able to connect fine. But when I removed freenx and reinstalled nomachine nxclient, node and server in the correct order, generated a key, paste the key into the client pc at location B (also suse 11.2) I get the same error message again. After that I installed nxnode and nxserver on the pc at location B wich already has nx client installed and was ablet to connect to it with a third computer (laptop w/suse 11.0) using instructions above. And pc at location A now has /home/username/.Xauthority file with username:usr as owner. freenx won't work because I need the abillity to share the same desktop to help out my Mom who lives to far to drive. thanks again.
    suse 11.2, 64bit, Gnome, Desktop PC, Gigabyte965/964, Intel quad, 4gb ram, Nvidia GeForce 7300 gs.

  5. #5

    Default Re: NXserver, No .Xauthority file in user's home directory

    Never mind!
    All I had to do was read the error message in /var/log/messages. You know. The part that says "Bad display name". So I added the host name of the server in the server's /etc/hosts file and its working. Thanks anyway.
    Bruce.
    suse 11.2, 64bit, Gnome, Desktop PC, Gigabyte965/964, Intel quad, 4gb ram, Nvidia GeForce 7300 gs.

  6. #6

    Default Re: NXserver, No .Xauthority file in user's home directory

    Thank youuuuuuuuuuu!!

    What an unbelievable hassle, had Nomachine up & running in minutes with Gnome, and then server reboot broke installation, 5 hours of futile searching.

    Updating /etc/hosts did the trick.

    I love/hate linux ;--)

  7. #7

    Default Re: NXserver, No .Xauthority file in user's home directory

    Its pretty old but want to say thanks a bunch for hint anyway.
    I had 2 identical installs of sles 11.3, at least i thought i had. Turns out, after your advice, i remembered that in one of VM's i neglected to check "Add hostname to hosts file" during install.
    doh, im older by 2 hours again, dangit :/

Posting Permissions

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