P
P
Pavel Bezrukov2015-12-20 14:54:34
linux
Pavel Bezrukov, 2015-12-20 14:54:34

How to run a program on Linux in the context of the 1st session?

Good afternoon.
Setting up functional tests.
Here is an interesting article on this topic habrahabr.ru/post/239645 it tells how to run the firefox browser in the background and how, if desired, connect via rdp to see how the tests behave there.
The problem turned out to be that when I run selenium node via ssh or rc.local, then connecting via rdp, I don't see firefox starting and running tests.
Well, if you run selenium node to connect via rdp, I naturally see it.
How can I make my selenuim node run at system startup, but when I connect via rdp, I get to the same (session???)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
justpusher, 2015-12-24
@justpusher

In the referenced article, Selenium and Firefox are intentionally running in the background (actually in a separate session :10), it is logical that you do not see them.
There are two ways to do what you want:
1. Run Selenium in the same session you are connecting to via RDP - most likely it is session :0
To do this, replace :10 with :0 in the line export DISPLAY=:10
If you connected via SSH and if you want to run something in session :0 - try also export DISPLAY=:0 and then run the desired program.
2. Connect, if necessary, to session :10
Your vnc server is running :10, which means it will listen on localhost:5910. You can connect with any VNC client, but you will most likely have to forward port 5910 of the remote computer to yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question