Forum / NoMachine for Linux / Amazon EC2 Installation
- This topic has 12 replies, 3 voices, and was last updated 10 years, 9 months ago by
RobMunfy.
-
AuthorPosts
-
November 14, 2013 at 12:21 #689
RobMunfy
ParticipantHi,
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
November 14, 2013 at 15:24 #706titan
ParticipantDid you check this?
November 14, 2013 at 15:45 #708RobMunfy
ParticipantI tried this but didn’t get the file /var/run/Xvfb-0.auth after install Xvfb
November 14, 2013 at 15:57 #710titan
ParticipantPlease check the step 3. You must create that file using:
$ sudo xauth -f /var/run/Xvfb-0.auth add :0 . <16 digit cookie>
November 14, 2013 at 16:26 #713titan
ParticipantAdding 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 ;-).
November 14, 2013 at 16:53 #714RobMunfy
ParticipantThanks
November 14, 2013 at 17:01 #715RobMunfy
ParticipantI believe I’ve done everything the article says, but I’m still getting nomachine reporting that there are no available sessions
November 14, 2013 at 19:05 #722titan
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.
November 15, 2013 at 09:44 #727titan
ParticipantJust 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 :-).
November 15, 2013 at 10:32 #728RobMunfy
ParticipantThat 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 XThis 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: :2Thanks for your help
November 15, 2013 at 15:19 #739titan
ParticipantWell, the :2 was just a guess ;-).
Try:
# DISPLAY=:0 xterm
November 15, 2013 at 17:19 #746reza
ParticipantIt 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 10 years, 9 months ago by
reza.
November 18, 2013 at 10:35 #784RobMunfy
ParticipantThanks, that worked.
I shall take your perseverance comment as a complement!
-
This reply was modified 10 years, 9 months ago by
-
AuthorPosts
This topic was marked as closed, you can't post.