Forum / NoMachine for Linux / Amazon EC2 Installation
- This topic has 12 replies, 3 voices, and was last updated 11 years ago by RobMunfy.
-
AuthorPosts
-
November 14, 2013 at 12:21 #689RobMunfyParticipant
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
November 14, 2013 at 15:24 #706titanParticipantDid you check this?
November 14, 2013 at 15:45 #708RobMunfyParticipantI tried this but didn’t get the file /var/run/Xvfb-0.auth after install Xvfb
November 14, 2013 at 15:57 #710titanParticipantPlease 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 #713titanParticipantAdding 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 #714RobMunfyParticipantThanks
November 14, 2013 at 17:01 #715RobMunfyParticipantI 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 #722titanParticipant# 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 #727titanParticipantJust 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 #728RobMunfyParticipantThat 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 #739titanParticipantWell, the :2 was just a guess ;-).
Try:
# DISPLAY=:0 xterm
November 15, 2013 at 17:19 #746rezaParticipantIt 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.
November 18, 2013 at 10:35 #784RobMunfyParticipantThanks, that worked.
I shall take your perseverance comment as a complement!
-
AuthorPosts
This topic was marked as closed, you can't post.