Amazon EC2 Installation

Forum / NoMachine for Linux / Amazon EC2 Installation

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #689
    RobMunfy
    Participant

    Hi,

    I am trying to install NoMachine on Ubuntu for Amazon EC2. However, when I connect through my local computer to the EC2 instance, NoMachine simply reports that there are “No available sessions on this server”. I think my issue is that I haven’t started an X session. However, when I run startx on the remote machine, it replies that there are no displays.

    Any help?

    Thanks

    #706
    titan
    Participant
    #708
    RobMunfy
    Participant

    I tried this but didn’t get the file /var/run/Xvfb-0.auth after install Xvfb

    #710
    titan
    Participant

    Please check the step 3. You must create that file using:

    $ sudo xauth -f /var/run/Xvfb-0.auth add :0 . <16 digit cookie>

    #713
    titan
    Participant

    Adding to the article:

    Don’t worry if xauth says “file /var/run/Xvfb-0.auth does not exist”. The file will be created at that time.

    Just in case this puzzled you ;-).

    #714
    RobMunfy
    Participant

    Thanks

    #715
    RobMunfy
    Participant

    I believe I’ve done everything the article says, but I’m still getting nomachine reporting that there are no available sessions

    #722
    titan
    Participant

    # ps auxwww | grep X

    Please post the output. You should have a Xvfb running. The output should also tell the port, for example :2. On the console try:

    # DISPLAY=:2 xterm

    Assuming it’s a bash-like shell. See if xterm can connect without errors.

    #727
    titan
    Participant

    Just found this:

    http://www.linuxforums.org/forum/ubuntu-linux/199110-ubuntu-amazon-ec2-remote-desktop.html

    Wow, another Temviewer shill.

    I presume you are the same RobMunfy. I’m really interested in knowing how Teamviewer performs without a display :-).

    #728
    RobMunfy
    Participant

    That is indeed me. I guess that won’t work then! Was just looking around for alternative suggestions.

    The output is as follows:
    ubuntu@ip-10-208-64-102:~$ ps auxwww | grep X
    nx 1495 0.5 1.4 235424 56656 ? Sl 09:25 0:00 /usr/NX/bin/nxserver.bin root 1365 –startup
    nx 1506 0.0 0.1 252660 4228 ? Sl 09:25 0:00 /usr/NX/bin/nxd
    nx 1508 1.1 1.6 241996 63044 ? Sl 09:25 0:01 /usr/NX/bin/nxserver.bin –localsession
    nx 1542 1.0 1.1 223408 44572 ? Sl 09:25 0:01 /usr/NX/bin/nxnode.bin
    root 1727 0.0 0.0 65544 2196 pts/0 S 09:27 0:00 sudo Xvfb :0 -auth /var/run/Xvfb-0.auth -screen 0 1024x768x24
    root 1728 2.0 1.1 188252 44896 pts/0 S 09:27 0:00 Xvfb :0 -auth /var/run/Xvfb-0.auth -screen 0 1024x768x24
    ubuntu 2084 0.0 0.0 8176 948 pts/0 S+ 09:27 0:00 grep –color=auto X

    This looks fine to me..?

    However, for the xterm one:
    ubuntu@ip-10-208-64-102:~$ DISPLAY=:2 xterm
    xterm: Xt error: Can’t open display: :2

    Thanks for your help

    #739
    titan
    Participant

    Well, the :2 was just a guess ;-).

    Try:

    # DISPLAY=:0 xterm

    #746
    reza
    Participant

    It seems your perseverance helped us to find a bug 🙂

    http://www.nomachine.com/AR10K00710

    We have just edited AR10K00710 to provide instructions for
    launching Xvfb as unprivileged user, we made additional
    tests and we found some machines where running Xvfb as root
    prevents NoMachine to be able to connect to the X server.

    So please use:

    ‘Xvfb :0 -auth /var/run/Xvfb-0.auth -screen 0 1024x768x24 &’ instead.

    Be sure that your run Xvfb as the same user who starts the dekstop
    environment, otherwise the desktop will be not available.

    We have opened a trouble report on that topic:
    http://www.nomachine.com/TR11K04058

    • This reply was modified 11 years ago by reza.
    #784
    RobMunfy
    Participant

    Thanks, that worked.

    I shall take your perseverance comment as a complement!

Viewing 13 posts - 1 through 13 (of 13 total)

This topic was marked as closed, you can't post.