Why VNC not showing actual Remote Desktop

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












5















Ok i installed vnc server on RHEL 5.9 and also installed Tightvnc viewer on windows 7 and from RHEL i started vncserver and assigned the password using vncpasswd.



Then from tightvnc viewer i gave the IP and listening port xxx.xxx.xxx.xxx:1. It successfully connected with VNC server installed and running on RHEL. And then I gave the password and then BOOOM it gave me this hideous interface



enter image description here



When Actual Desktop is like this



enter image description here



Ok people tell me what Im missing










share|improve this question

















  • 7





    What you are missing is an appreciation of the minimalistic beauty of twm.

    – Warren Young
    Jan 18 '13 at 14:27











  • @WarrenYoung: Indeed, which is the hideous one again?

    – sr_
    Jan 18 '13 at 14:28















5















Ok i installed vnc server on RHEL 5.9 and also installed Tightvnc viewer on windows 7 and from RHEL i started vncserver and assigned the password using vncpasswd.



Then from tightvnc viewer i gave the IP and listening port xxx.xxx.xxx.xxx:1. It successfully connected with VNC server installed and running on RHEL. And then I gave the password and then BOOOM it gave me this hideous interface



enter image description here



When Actual Desktop is like this



enter image description here



Ok people tell me what Im missing










share|improve this question

















  • 7





    What you are missing is an appreciation of the minimalistic beauty of twm.

    – Warren Young
    Jan 18 '13 at 14:27











  • @WarrenYoung: Indeed, which is the hideous one again?

    – sr_
    Jan 18 '13 at 14:28













5












5








5


3






Ok i installed vnc server on RHEL 5.9 and also installed Tightvnc viewer on windows 7 and from RHEL i started vncserver and assigned the password using vncpasswd.



Then from tightvnc viewer i gave the IP and listening port xxx.xxx.xxx.xxx:1. It successfully connected with VNC server installed and running on RHEL. And then I gave the password and then BOOOM it gave me this hideous interface



enter image description here



When Actual Desktop is like this



enter image description here



Ok people tell me what Im missing










share|improve this question














Ok i installed vnc server on RHEL 5.9 and also installed Tightvnc viewer on windows 7 and from RHEL i started vncserver and assigned the password using vncpasswd.



Then from tightvnc viewer i gave the IP and listening port xxx.xxx.xxx.xxx:1. It successfully connected with VNC server installed and running on RHEL. And then I gave the password and then BOOOM it gave me this hideous interface



enter image description here



When Actual Desktop is like this



enter image description here



Ok people tell me what Im missing







rhel vnc






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 18 '13 at 14:00









OmiPenguinOmiPenguin

1,550265890




1,550265890







  • 7





    What you are missing is an appreciation of the minimalistic beauty of twm.

    – Warren Young
    Jan 18 '13 at 14:27











  • @WarrenYoung: Indeed, which is the hideous one again?

    – sr_
    Jan 18 '13 at 14:28












  • 7





    What you are missing is an appreciation of the minimalistic beauty of twm.

    – Warren Young
    Jan 18 '13 at 14:27











  • @WarrenYoung: Indeed, which is the hideous one again?

    – sr_
    Jan 18 '13 at 14:28







7




7





What you are missing is an appreciation of the minimalistic beauty of twm.

– Warren Young
Jan 18 '13 at 14:27





What you are missing is an appreciation of the minimalistic beauty of twm.

– Warren Young
Jan 18 '13 at 14:27













@WarrenYoung: Indeed, which is the hideous one again?

– sr_
Jan 18 '13 at 14:28





@WarrenYoung: Indeed, which is the hideous one again?

– sr_
Jan 18 '13 at 14:28










5 Answers
5






active

oldest

votes


















5














What you see probably is the X11 session defined in ~/.vnc/xstartup, a minimal X11 session, maybe something like (this is how it looks like on Debian)



#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &


on another display, probably :1.



There're two things you can do:



  • To access a different desktop that looks the same, you have to start it in this xstartup file, e.g.
    with exec gnome-session or something similar, have a look for
    documentation on xinitrc or xsession[rc])

  • To access the same desktop session, you need a different VNC server. x11vnc can do desktop sharing; in your GNOME environment, Vino is probably the preferable choice (as Ignacio pointed out)





share|improve this answer

























  • Great info. Just one quick question I have three users on server and I want only TWO users to have access to vnc server. root and emerg users can use the vnc. HOW TO DO THIS

    – OmiPenguin
    Jan 19 '13 at 8:27











  • (If I guessed the VNC server you use right,) you might be able to use Xvnc with inetd as described in its man page (last paragraph of the linked section). Another (kind of high-overhead but neat) solution might be using the Guacamole remote desktop gateway and configuring access there.

    – sr_
    Jan 19 '13 at 11:47


















5














vncserver doesn't connect to the actual desktop; it creates a virtual desktop that is configured separately. If you want to access the actual desktop then you need to use either the VNC X extension or Vino.






share|improve this answer


















  • 7





    Could you please provide a bit more information of how to do this

    – OmiPenguin
    Jan 18 '13 at 14:13











  • @Ignacio, Could you please add few details. That will definitely help beginner. Since, I couldn't understand, what to do with VNC X extension

    – Ravi
    Jan 5 '16 at 6:16



















1














Please uncomment following two lines in xstartup file under ~/.vnc/xstartup:



Before:



#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &


After:



unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &





share|improve this answer

























  • Please could you explain in your answer what those lines do?

    – mwfearnley
    Mar 14 '17 at 11:08


















0














I faced the same issue on solaris 11 and after a little search I found out the gnome desktop is not even installed. So I installed it using:



pkg install --accept solaris-desktop


Then killed the running vnc-server:



vncserver -kill :1


and after running vnc again using this command



vncserver -kill :1


I was able to see the real desktop using vnc-viewer.






share|improve this answer






























    -2














    #!/bin/sh
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    gnome-session &


    Add gnome-session & at the end of the xstartup file






    share|improve this answer
























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f61750%2fwhy-vnc-not-showing-actual-remote-desktop%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      What you see probably is the X11 session defined in ~/.vnc/xstartup, a minimal X11 session, maybe something like (this is how it looks like on Debian)



      #!/bin/sh
      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      x-window-manager &


      on another display, probably :1.



      There're two things you can do:



      • To access a different desktop that looks the same, you have to start it in this xstartup file, e.g.
        with exec gnome-session or something similar, have a look for
        documentation on xinitrc or xsession[rc])

      • To access the same desktop session, you need a different VNC server. x11vnc can do desktop sharing; in your GNOME environment, Vino is probably the preferable choice (as Ignacio pointed out)





      share|improve this answer

























      • Great info. Just one quick question I have three users on server and I want only TWO users to have access to vnc server. root and emerg users can use the vnc. HOW TO DO THIS

        – OmiPenguin
        Jan 19 '13 at 8:27











      • (If I guessed the VNC server you use right,) you might be able to use Xvnc with inetd as described in its man page (last paragraph of the linked section). Another (kind of high-overhead but neat) solution might be using the Guacamole remote desktop gateway and configuring access there.

        – sr_
        Jan 19 '13 at 11:47















      5














      What you see probably is the X11 session defined in ~/.vnc/xstartup, a minimal X11 session, maybe something like (this is how it looks like on Debian)



      #!/bin/sh
      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      x-window-manager &


      on another display, probably :1.



      There're two things you can do:



      • To access a different desktop that looks the same, you have to start it in this xstartup file, e.g.
        with exec gnome-session or something similar, have a look for
        documentation on xinitrc or xsession[rc])

      • To access the same desktop session, you need a different VNC server. x11vnc can do desktop sharing; in your GNOME environment, Vino is probably the preferable choice (as Ignacio pointed out)





      share|improve this answer

























      • Great info. Just one quick question I have three users on server and I want only TWO users to have access to vnc server. root and emerg users can use the vnc. HOW TO DO THIS

        – OmiPenguin
        Jan 19 '13 at 8:27











      • (If I guessed the VNC server you use right,) you might be able to use Xvnc with inetd as described in its man page (last paragraph of the linked section). Another (kind of high-overhead but neat) solution might be using the Guacamole remote desktop gateway and configuring access there.

        – sr_
        Jan 19 '13 at 11:47













      5












      5








      5







      What you see probably is the X11 session defined in ~/.vnc/xstartup, a minimal X11 session, maybe something like (this is how it looks like on Debian)



      #!/bin/sh
      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      x-window-manager &


      on another display, probably :1.



      There're two things you can do:



      • To access a different desktop that looks the same, you have to start it in this xstartup file, e.g.
        with exec gnome-session or something similar, have a look for
        documentation on xinitrc or xsession[rc])

      • To access the same desktop session, you need a different VNC server. x11vnc can do desktop sharing; in your GNOME environment, Vino is probably the preferable choice (as Ignacio pointed out)





      share|improve this answer















      What you see probably is the X11 session defined in ~/.vnc/xstartup, a minimal X11 session, maybe something like (this is how it looks like on Debian)



      #!/bin/sh
      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      x-window-manager &


      on another display, probably :1.



      There're two things you can do:



      • To access a different desktop that looks the same, you have to start it in this xstartup file, e.g.
        with exec gnome-session or something similar, have a look for
        documentation on xinitrc or xsession[rc])

      • To access the same desktop session, you need a different VNC server. x11vnc can do desktop sharing; in your GNOME environment, Vino is probably the preferable choice (as Ignacio pointed out)






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Apr 13 '17 at 12:36









      Community

      1




      1










      answered Jan 18 '13 at 14:27









      sr_sr_

      13.1k3445




      13.1k3445












      • Great info. Just one quick question I have three users on server and I want only TWO users to have access to vnc server. root and emerg users can use the vnc. HOW TO DO THIS

        – OmiPenguin
        Jan 19 '13 at 8:27











      • (If I guessed the VNC server you use right,) you might be able to use Xvnc with inetd as described in its man page (last paragraph of the linked section). Another (kind of high-overhead but neat) solution might be using the Guacamole remote desktop gateway and configuring access there.

        – sr_
        Jan 19 '13 at 11:47

















      • Great info. Just one quick question I have three users on server and I want only TWO users to have access to vnc server. root and emerg users can use the vnc. HOW TO DO THIS

        – OmiPenguin
        Jan 19 '13 at 8:27











      • (If I guessed the VNC server you use right,) you might be able to use Xvnc with inetd as described in its man page (last paragraph of the linked section). Another (kind of high-overhead but neat) solution might be using the Guacamole remote desktop gateway and configuring access there.

        – sr_
        Jan 19 '13 at 11:47
















      Great info. Just one quick question I have three users on server and I want only TWO users to have access to vnc server. root and emerg users can use the vnc. HOW TO DO THIS

      – OmiPenguin
      Jan 19 '13 at 8:27





      Great info. Just one quick question I have three users on server and I want only TWO users to have access to vnc server. root and emerg users can use the vnc. HOW TO DO THIS

      – OmiPenguin
      Jan 19 '13 at 8:27













      (If I guessed the VNC server you use right,) you might be able to use Xvnc with inetd as described in its man page (last paragraph of the linked section). Another (kind of high-overhead but neat) solution might be using the Guacamole remote desktop gateway and configuring access there.

      – sr_
      Jan 19 '13 at 11:47





      (If I guessed the VNC server you use right,) you might be able to use Xvnc with inetd as described in its man page (last paragraph of the linked section). Another (kind of high-overhead but neat) solution might be using the Guacamole remote desktop gateway and configuring access there.

      – sr_
      Jan 19 '13 at 11:47













      5














      vncserver doesn't connect to the actual desktop; it creates a virtual desktop that is configured separately. If you want to access the actual desktop then you need to use either the VNC X extension or Vino.






      share|improve this answer


















      • 7





        Could you please provide a bit more information of how to do this

        – OmiPenguin
        Jan 18 '13 at 14:13











      • @Ignacio, Could you please add few details. That will definitely help beginner. Since, I couldn't understand, what to do with VNC X extension

        – Ravi
        Jan 5 '16 at 6:16
















      5














      vncserver doesn't connect to the actual desktop; it creates a virtual desktop that is configured separately. If you want to access the actual desktop then you need to use either the VNC X extension or Vino.






      share|improve this answer


















      • 7





        Could you please provide a bit more information of how to do this

        – OmiPenguin
        Jan 18 '13 at 14:13











      • @Ignacio, Could you please add few details. That will definitely help beginner. Since, I couldn't understand, what to do with VNC X extension

        – Ravi
        Jan 5 '16 at 6:16














      5












      5








      5







      vncserver doesn't connect to the actual desktop; it creates a virtual desktop that is configured separately. If you want to access the actual desktop then you need to use either the VNC X extension or Vino.






      share|improve this answer













      vncserver doesn't connect to the actual desktop; it creates a virtual desktop that is configured separately. If you want to access the actual desktop then you need to use either the VNC X extension or Vino.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jan 18 '13 at 14:07









      Ignacio Vazquez-AbramsIgnacio Vazquez-Abrams

      33.6k66982




      33.6k66982







      • 7





        Could you please provide a bit more information of how to do this

        – OmiPenguin
        Jan 18 '13 at 14:13











      • @Ignacio, Could you please add few details. That will definitely help beginner. Since, I couldn't understand, what to do with VNC X extension

        – Ravi
        Jan 5 '16 at 6:16













      • 7





        Could you please provide a bit more information of how to do this

        – OmiPenguin
        Jan 18 '13 at 14:13











      • @Ignacio, Could you please add few details. That will definitely help beginner. Since, I couldn't understand, what to do with VNC X extension

        – Ravi
        Jan 5 '16 at 6:16








      7




      7





      Could you please provide a bit more information of how to do this

      – OmiPenguin
      Jan 18 '13 at 14:13





      Could you please provide a bit more information of how to do this

      – OmiPenguin
      Jan 18 '13 at 14:13













      @Ignacio, Could you please add few details. That will definitely help beginner. Since, I couldn't understand, what to do with VNC X extension

      – Ravi
      Jan 5 '16 at 6:16






      @Ignacio, Could you please add few details. That will definitely help beginner. Since, I couldn't understand, what to do with VNC X extension

      – Ravi
      Jan 5 '16 at 6:16












      1














      Please uncomment following two lines in xstartup file under ~/.vnc/xstartup:



      Before:



      #unset SESSION_MANAGER
      #exec /etc/X11/xinit/xinitrc

      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      twm &


      After:



      unset SESSION_MANAGER
      exec /etc/X11/xinit/xinitrc

      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      twm &





      share|improve this answer

























      • Please could you explain in your answer what those lines do?

        – mwfearnley
        Mar 14 '17 at 11:08















      1














      Please uncomment following two lines in xstartup file under ~/.vnc/xstartup:



      Before:



      #unset SESSION_MANAGER
      #exec /etc/X11/xinit/xinitrc

      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      twm &


      After:



      unset SESSION_MANAGER
      exec /etc/X11/xinit/xinitrc

      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      twm &





      share|improve this answer

























      • Please could you explain in your answer what those lines do?

        – mwfearnley
        Mar 14 '17 at 11:08













      1












      1








      1







      Please uncomment following two lines in xstartup file under ~/.vnc/xstartup:



      Before:



      #unset SESSION_MANAGER
      #exec /etc/X11/xinit/xinitrc

      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      twm &


      After:



      unset SESSION_MANAGER
      exec /etc/X11/xinit/xinitrc

      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      twm &





      share|improve this answer















      Please uncomment following two lines in xstartup file under ~/.vnc/xstartup:



      Before:



      #unset SESSION_MANAGER
      #exec /etc/X11/xinit/xinitrc

      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      twm &


      After:



      unset SESSION_MANAGER
      exec /etc/X11/xinit/xinitrc

      [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
      xsetroot -solid grey
      vncconfig -iconic &
      xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      twm &






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Oct 30 '15 at 7:30









      garethTheRed

      24.8k36381




      24.8k36381










      answered Oct 30 '15 at 7:18









      Gaurav KaseraGaurav Kasera

      111




      111












      • Please could you explain in your answer what those lines do?

        – mwfearnley
        Mar 14 '17 at 11:08

















      • Please could you explain in your answer what those lines do?

        – mwfearnley
        Mar 14 '17 at 11:08
















      Please could you explain in your answer what those lines do?

      – mwfearnley
      Mar 14 '17 at 11:08





      Please could you explain in your answer what those lines do?

      – mwfearnley
      Mar 14 '17 at 11:08











      0














      I faced the same issue on solaris 11 and after a little search I found out the gnome desktop is not even installed. So I installed it using:



      pkg install --accept solaris-desktop


      Then killed the running vnc-server:



      vncserver -kill :1


      and after running vnc again using this command



      vncserver -kill :1


      I was able to see the real desktop using vnc-viewer.






      share|improve this answer



























        0














        I faced the same issue on solaris 11 and after a little search I found out the gnome desktop is not even installed. So I installed it using:



        pkg install --accept solaris-desktop


        Then killed the running vnc-server:



        vncserver -kill :1


        and after running vnc again using this command



        vncserver -kill :1


        I was able to see the real desktop using vnc-viewer.






        share|improve this answer

























          0












          0








          0







          I faced the same issue on solaris 11 and after a little search I found out the gnome desktop is not even installed. So I installed it using:



          pkg install --accept solaris-desktop


          Then killed the running vnc-server:



          vncserver -kill :1


          and after running vnc again using this command



          vncserver -kill :1


          I was able to see the real desktop using vnc-viewer.






          share|improve this answer













          I faced the same issue on solaris 11 and after a little search I found out the gnome desktop is not even installed. So I installed it using:



          pkg install --accept solaris-desktop


          Then killed the running vnc-server:



          vncserver -kill :1


          and after running vnc again using this command



          vncserver -kill :1


          I was able to see the real desktop using vnc-viewer.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 19 at 13:17









          Vahid FVahid F

          134




          134





















              -2














              #!/bin/sh
              [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
              [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
              xsetroot -solid grey
              vncconfig -iconic &
              x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
              gnome-session &


              Add gnome-session & at the end of the xstartup file






              share|improve this answer





























                -2














                #!/bin/sh
                [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
                [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
                xsetroot -solid grey
                vncconfig -iconic &
                x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                gnome-session &


                Add gnome-session & at the end of the xstartup file






                share|improve this answer



























                  -2












                  -2








                  -2







                  #!/bin/sh
                  [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
                  [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
                  xsetroot -solid grey
                  vncconfig -iconic &
                  x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                  gnome-session &


                  Add gnome-session & at the end of the xstartup file






                  share|improve this answer















                  #!/bin/sh
                  [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
                  [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
                  xsetroot -solid grey
                  vncconfig -iconic &
                  x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                  gnome-session &


                  Add gnome-session & at the end of the xstartup file







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jul 15 '15 at 13:12









                  Community

                  1




                  1










                  answered Apr 2 '15 at 11:21









                  UmerUmer

                  11




                  11



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f61750%2fwhy-vnc-not-showing-actual-remote-desktop%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown






                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay