Results 1 to 3 of 3

Thread: Remote access returns error: "X: user not authorized to run the X server, ab

  1. #1
    Join Date
    Mar 2007
    Beans
    680

    Remote access returns error: "X: user not authorized to run the X server, ab

    Hi,
    on desktop computer I have Ubuntu 8.04 configured as headless server. On laptop I have Ubuntu 8.04.

    Desktop is by default running without "X server". If I need graphics I start it by command "startx". X-server starts successfully without any error.

    But if I try to do the same using remote laptop:
    1. ssh -X userid@ip_of_desktop
    2. startx
    and second command returns error:
    Code:
    X: user not authorized to run the X server, aborting.
    xinit:  Server error.
    I can't quite understand if running commands within desktop using the same password as from remote laptop why I am not authorized to startx?

    But if I start X on local desktop I can execute any graphic application on remote laptop (e.g. firefox).

    The only problem is I can't start-up X-server remotely.

    Directory .Xauthority on desktop has my userid privileges (read/write)

    Regards,
    Abcuser
    Last edited by abcuser; October 13th, 2008 at 06:52 AM.

  2. #2
    Join Date
    Mar 2007
    Beans
    680

    Re: Remote access returns error: "X: user not authorized to run the X server, abortin

    Hi,
    I figured out. On laptop I just executed firefox command without executing startx and Firefox starts on remote computer. I don't understand this but it is working.

    I would like to understand. Can you please provide info to the following question: When "ssh -X userid@ip_remote_server" is executed where is X-server started?
    1. On my laptop
    2. On remote desktop computer

    If now I understand correctly, X-server is started on my laptop? Is it?
    Thanks
    Last edited by abcuser; October 13th, 2008 at 07:21 AM.

  3. #3
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Remote access returns error: X: user not authorized to run the X server

    what are the permissions of ~/.Xauthority on the server ?

    ls -a to show them.

    Try deleting this file and try forwarding x applications.

    Generally it is best to forward single applications rather then the entire desktop. If you wish to forward the entire desktop use either a new x session of Xephyr.

    How to Xephyr ~ AKA Multiple, nested X sessions - Ubuntu Forums
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

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
  •