Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    About DISPLAY, remote desktop etc


    I want to remotely control a computer
    when I type "firefox" on shell through vpn
    it prompts: "
    Code:
    [root@canard ~]# firefox
    Error: no display specified
    "

    a solution is
    Code:
    export DISPLAY=":0.0"
    while I want to use tigerVNC, a remote Desktop tool, I configure the vnc server on that computer by following the article:

    zeusville.wordpress.com/2012/01/27/setting-up-vncserver-on-fedora-16/

    it says:
    Code:
    For our example I will setup vncserver to have display :3 running at a resolution of 1600900. If you want a different number simply replace it with the number of choice.
    my question is:

    what is the meaning of the 3 and :0.0
    if I hope tigerVNC and the vpn shell are using the same window, namely, if I type "firefox" on vpn shell and I can see the opened browser window on tigerVNC client, what numbers should I set?
    thanks!

  2. #2
    think of the VNC display number "3" as "3.0". so in your vpn session, if you want to send your display to the VNC session, do:

    Code:
    export DISPLAY=<ip_address>:3.0

  3. #3
    now I come to the remote computer, since I have ever export DISPLAY=:0.0
    now I can't open firefox on this computer
    how to recover?

  4. $spacer_open
    $spacer_close
  5. #4
    Quote Originally Posted by esolve View Post
    now I come to the remote computer, since I have ever export DISPLAY=:0.0
    now I can't open firefox on this computer
    how to recover?
    i'm not sure what you mean. are you saying you are trying to open Firefox on your local machine?

    please state exactly what you are trying to do, explain which machine you are on, and also show the output of:

    Code:
    echo $DISPLAY

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •