vncserver grey screen ubuntu 16.04 LTS





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







17















Greeting.
I am on ubuntu 16.04 LTS. It is an amazon EC2 instance
I got grey screen upon installing and starting the vncserver
I try many suggestion regarding this issue but still cant get it work....
Thanks for the help



enter image description here



My logfile:



Xvnc Free Edition 4.1.1 - built Feb 25 2015 23:02:21
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40300000, The XFree86 Project, Inc
Tue Jul 19 03:03:37 2016
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: created VNC server for screen 0
error opening security policy file /etc/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
Tue Jul 19 03:03:44 2016
Connections: accepted: 0.0.0.0::61550
SConnection: Client needs protocol version 3.8
SConnection: Client requests security type VncAuth(2)
Tue Jul 19 03:03:50 2016
VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565
Tue Jul 19 03:03:51 2016
VNCSConnST: Client pixel format depth 8 (8bpp) colour-map


my xstartup



#!/bin/sh
# Uncomment the following two lines for normal desktop:
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 &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &









share|improve this question































    17















    Greeting.
    I am on ubuntu 16.04 LTS. It is an amazon EC2 instance
    I got grey screen upon installing and starting the vncserver
    I try many suggestion regarding this issue but still cant get it work....
    Thanks for the help



    enter image description here



    My logfile:



    Xvnc Free Edition 4.1.1 - built Feb 25 2015 23:02:21
    Copyright (C) 2002-2005 RealVNC Ltd.
    See http://www.realvnc.com for information on VNC.
    Underlying X server release 40300000, The XFree86 Project, Inc
    Tue Jul 19 03:03:37 2016
    vncext: VNC extension running!
    vncext: Listening for VNC connections on port 5901
    vncext: created VNC server for screen 0
    error opening security policy file /etc/X11/xserver/SecurityPolicy
    Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
    Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
    Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
    Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
    Tue Jul 19 03:03:44 2016
    Connections: accepted: 0.0.0.0::61550
    SConnection: Client needs protocol version 3.8
    SConnection: Client requests security type VncAuth(2)
    Tue Jul 19 03:03:50 2016
    VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565
    Tue Jul 19 03:03:51 2016
    VNCSConnST: Client pixel format depth 8 (8bpp) colour-map


    my xstartup



    #!/bin/sh
    # Uncomment the following two lines for normal desktop:
    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 &
    x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    gnome-session &









    share|improve this question



























      17












      17








      17


      9






      Greeting.
      I am on ubuntu 16.04 LTS. It is an amazon EC2 instance
      I got grey screen upon installing and starting the vncserver
      I try many suggestion regarding this issue but still cant get it work....
      Thanks for the help



      enter image description here



      My logfile:



      Xvnc Free Edition 4.1.1 - built Feb 25 2015 23:02:21
      Copyright (C) 2002-2005 RealVNC Ltd.
      See http://www.realvnc.com for information on VNC.
      Underlying X server release 40300000, The XFree86 Project, Inc
      Tue Jul 19 03:03:37 2016
      vncext: VNC extension running!
      vncext: Listening for VNC connections on port 5901
      vncext: created VNC server for screen 0
      error opening security policy file /etc/X11/xserver/SecurityPolicy
      Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
      Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
      Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
      Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
      Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
      Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
      Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
      Tue Jul 19 03:03:44 2016
      Connections: accepted: 0.0.0.0::61550
      SConnection: Client needs protocol version 3.8
      SConnection: Client requests security type VncAuth(2)
      Tue Jul 19 03:03:50 2016
      VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565
      Tue Jul 19 03:03:51 2016
      VNCSConnST: Client pixel format depth 8 (8bpp) colour-map


      my xstartup



      #!/bin/sh
      # Uncomment the following two lines for normal desktop:
      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 &
      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      gnome-session &









      share|improve this question
















      Greeting.
      I am on ubuntu 16.04 LTS. It is an amazon EC2 instance
      I got grey screen upon installing and starting the vncserver
      I try many suggestion regarding this issue but still cant get it work....
      Thanks for the help



      enter image description here



      My logfile:



      Xvnc Free Edition 4.1.1 - built Feb 25 2015 23:02:21
      Copyright (C) 2002-2005 RealVNC Ltd.
      See http://www.realvnc.com for information on VNC.
      Underlying X server release 40300000, The XFree86 Project, Inc
      Tue Jul 19 03:03:37 2016
      vncext: VNC extension running!
      vncext: Listening for VNC connections on port 5901
      vncext: created VNC server for screen 0
      error opening security policy file /etc/X11/xserver/SecurityPolicy
      Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
      Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
      Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
      Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
      Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
      Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
      Could not init font path element /usr/share/fonts/X11/100dpi/, removing from list!
      Tue Jul 19 03:03:44 2016
      Connections: accepted: 0.0.0.0::61550
      SConnection: Client needs protocol version 3.8
      SConnection: Client requests security type VncAuth(2)
      Tue Jul 19 03:03:50 2016
      VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565
      Tue Jul 19 03:03:51 2016
      VNCSConnST: Client pixel format depth 8 (8bpp) colour-map


      my xstartup



      #!/bin/sh
      # Uncomment the following two lines for normal desktop:
      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 &
      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
      gnome-session &






      16.04 vnc tightvncserver






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 19 '16 at 3:55









      edwinksl

      17.4k125487




      17.4k125487










      asked Jul 19 '16 at 3:13









      MookayamaMookayama

      186114




      186114






















          8 Answers
          8






          active

          oldest

          votes


















          17














          I had the same issue on Ubuntu 16.04 LTS (64bit). I updated ~/.vnc/xstartup file to look like below, worked successfully for me.



          # Uncomment the following two lines for normal desktop:
          # 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 &
          x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
          x-window-manager &

          gnome-panel &
          gnome-settings-daemon &
          metacity &
          nautilus &


          Reference: https://www.linode.com/docs/applications/remote-desktop/install-vnc-on-ubuntu-16-04






          share|improve this answer



















          • 3





            This was a partial fix for me. Nautilus loads just fine but that is all I have. I do not see the icons along the left and I do not see any way to launch any programs, not even a terminal. If this helps at all, when I issue 'echo $DESKTOP_SESSION' it returns an empty string.

            – Adrian Hood Sr
            Apr 26 '18 at 19:54








          • 1





            I had to install gnome-panel via sudo apt install gnome-panel, but once I did that it worked.

            – pheeper
            Aug 15 '18 at 15:38



















          5














          I had the same issue. To resolve it, I installed:



          $ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal


          Then I added the lines below to ~/.vnc/xstartup:



          gnome-panel &
          gnome-settings-daemon &
          metacity &
          nautilus &





          share|improve this answer


























          • and then don't forget to kill and restart the vncserver (like I did)

            – craq
            Sep 3 '18 at 4:56



















          2














          For anyone experiencing this problem on Xubuntu 16.04 LTS, I got my tightvncserver working by editing ~/.vnc/xstartup to this:



          #!/bin/sh

          xrdb $HOME/.Xresources
          xsetroot -solid grey
          #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
          #x-window-manager &
          # Fix to make GNOME work
          #export XKL_XMODMAP_DISABLE=1
          #/etc/X11/Xsession
          # fix to make xfce work:
          startxfce4 &


          The first two commented-out lines were already commented out presumably by the packager. I commented out the two lines following "fix to make GNOME work", and added the last two lines, so it can be shortened to just



          #!/bin/sh

          xrdb $HOME/.Xresources
          xsetroot -solid grey
          # fix to make xfce work:
          startxfce4 &


          Again, this applies specifically to Xubuntu, not Ubuntu with Unity or Gnome.






          share|improve this answer































            2














            Not mentioned in any of the answers at the time of writing: it is also worth noting that the xstartup file needs to be executable:



            chmod +x ~/.vnc/xstartup



            If not, the grey screen issue continues to occur regardless of the contents of the file.






            share|improve this answer































              1














              Just had the a similar problem and found a solution which I have not seen in any articles I read over the past few days trying to sort this out.



              In addition to @Waqas answer I had to make sure I own all files in my home folder. Clearly this is about some specific files but I did'nt have time to check this out



              sudo chown user:user /home/user


              Just thought it might help somebody.






              share|improve this answer































                0














                My xstartup config file already had following lines which were commented out by default.



                # Uncomment the following two lines for normal desktop:
                unset SESSION_MANAGER
                exec /etc/X11/xinit/xinitrc


                un-commenting them fixed the problem and now i can access my desktop via vnc client smoothly. it still launches terminal window at logon but if you exit that then it shows the usual desktop via vnc.






                share|improve this answer































                  -1














                  I finally got this working from vnc4server by "apt-get install xfce4", and found a working xtartup here (the rest of the tutorial was irrelevant for my needs, e.g. "apt-get install xfce4-*" was unneccessary):
                  http://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-vnc-on-ubuntu-16-04.html



                  #!/bin/sh
                  [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
                  startxfce4 &


                  I've more or less concluded getting gnome to work in vnc is a non-starter.






                  share|improve this answer































                    -1














                    I had the same issue after upgrading from 12.04 via 14.04 to 16.04. The essential tip that helped me was to install gnome-panel. Ref:
                    http://www.linuxforums.org/forum/ubuntu-linux/209177-vnc-grey-screen-hi-res.html



                    sudo apt-get install gnome-panel





                    share|improve this answer
























                      Your Answer








                      StackExchange.ready(function() {
                      var channelOptions = {
                      tags: "".split(" "),
                      id: "89"
                      };
                      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: true,
                      noModals: true,
                      showLowRepImageUploadWarning: true,
                      reputationToPostImages: 10,
                      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%2faskubuntu.com%2fquestions%2f800302%2fvncserver-grey-screen-ubuntu-16-04-lts%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown

























                      8 Answers
                      8






                      active

                      oldest

                      votes








                      8 Answers
                      8






                      active

                      oldest

                      votes









                      active

                      oldest

                      votes






                      active

                      oldest

                      votes









                      17














                      I had the same issue on Ubuntu 16.04 LTS (64bit). I updated ~/.vnc/xstartup file to look like below, worked successfully for me.



                      # Uncomment the following two lines for normal desktop:
                      # 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 &
                      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                      x-window-manager &

                      gnome-panel &
                      gnome-settings-daemon &
                      metacity &
                      nautilus &


                      Reference: https://www.linode.com/docs/applications/remote-desktop/install-vnc-on-ubuntu-16-04






                      share|improve this answer



















                      • 3





                        This was a partial fix for me. Nautilus loads just fine but that is all I have. I do not see the icons along the left and I do not see any way to launch any programs, not even a terminal. If this helps at all, when I issue 'echo $DESKTOP_SESSION' it returns an empty string.

                        – Adrian Hood Sr
                        Apr 26 '18 at 19:54








                      • 1





                        I had to install gnome-panel via sudo apt install gnome-panel, but once I did that it worked.

                        – pheeper
                        Aug 15 '18 at 15:38
















                      17














                      I had the same issue on Ubuntu 16.04 LTS (64bit). I updated ~/.vnc/xstartup file to look like below, worked successfully for me.



                      # Uncomment the following two lines for normal desktop:
                      # 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 &
                      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                      x-window-manager &

                      gnome-panel &
                      gnome-settings-daemon &
                      metacity &
                      nautilus &


                      Reference: https://www.linode.com/docs/applications/remote-desktop/install-vnc-on-ubuntu-16-04






                      share|improve this answer



















                      • 3





                        This was a partial fix for me. Nautilus loads just fine but that is all I have. I do not see the icons along the left and I do not see any way to launch any programs, not even a terminal. If this helps at all, when I issue 'echo $DESKTOP_SESSION' it returns an empty string.

                        – Adrian Hood Sr
                        Apr 26 '18 at 19:54








                      • 1





                        I had to install gnome-panel via sudo apt install gnome-panel, but once I did that it worked.

                        – pheeper
                        Aug 15 '18 at 15:38














                      17












                      17








                      17







                      I had the same issue on Ubuntu 16.04 LTS (64bit). I updated ~/.vnc/xstartup file to look like below, worked successfully for me.



                      # Uncomment the following two lines for normal desktop:
                      # 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 &
                      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                      x-window-manager &

                      gnome-panel &
                      gnome-settings-daemon &
                      metacity &
                      nautilus &


                      Reference: https://www.linode.com/docs/applications/remote-desktop/install-vnc-on-ubuntu-16-04






                      share|improve this answer













                      I had the same issue on Ubuntu 16.04 LTS (64bit). I updated ~/.vnc/xstartup file to look like below, worked successfully for me.



                      # Uncomment the following two lines for normal desktop:
                      # 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 &
                      x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                      x-window-manager &

                      gnome-panel &
                      gnome-settings-daemon &
                      metacity &
                      nautilus &


                      Reference: https://www.linode.com/docs/applications/remote-desktop/install-vnc-on-ubuntu-16-04







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Nov 18 '16 at 11:21









                      WaqasWaqas

                      3442614




                      3442614








                      • 3





                        This was a partial fix for me. Nautilus loads just fine but that is all I have. I do not see the icons along the left and I do not see any way to launch any programs, not even a terminal. If this helps at all, when I issue 'echo $DESKTOP_SESSION' it returns an empty string.

                        – Adrian Hood Sr
                        Apr 26 '18 at 19:54








                      • 1





                        I had to install gnome-panel via sudo apt install gnome-panel, but once I did that it worked.

                        – pheeper
                        Aug 15 '18 at 15:38














                      • 3





                        This was a partial fix for me. Nautilus loads just fine but that is all I have. I do not see the icons along the left and I do not see any way to launch any programs, not even a terminal. If this helps at all, when I issue 'echo $DESKTOP_SESSION' it returns an empty string.

                        – Adrian Hood Sr
                        Apr 26 '18 at 19:54








                      • 1





                        I had to install gnome-panel via sudo apt install gnome-panel, but once I did that it worked.

                        – pheeper
                        Aug 15 '18 at 15:38








                      3




                      3





                      This was a partial fix for me. Nautilus loads just fine but that is all I have. I do not see the icons along the left and I do not see any way to launch any programs, not even a terminal. If this helps at all, when I issue 'echo $DESKTOP_SESSION' it returns an empty string.

                      – Adrian Hood Sr
                      Apr 26 '18 at 19:54







                      This was a partial fix for me. Nautilus loads just fine but that is all I have. I do not see the icons along the left and I do not see any way to launch any programs, not even a terminal. If this helps at all, when I issue 'echo $DESKTOP_SESSION' it returns an empty string.

                      – Adrian Hood Sr
                      Apr 26 '18 at 19:54






                      1




                      1





                      I had to install gnome-panel via sudo apt install gnome-panel, but once I did that it worked.

                      – pheeper
                      Aug 15 '18 at 15:38





                      I had to install gnome-panel via sudo apt install gnome-panel, but once I did that it worked.

                      – pheeper
                      Aug 15 '18 at 15:38













                      5














                      I had the same issue. To resolve it, I installed:



                      $ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal


                      Then I added the lines below to ~/.vnc/xstartup:



                      gnome-panel &
                      gnome-settings-daemon &
                      metacity &
                      nautilus &





                      share|improve this answer


























                      • and then don't forget to kill and restart the vncserver (like I did)

                        – craq
                        Sep 3 '18 at 4:56
















                      5














                      I had the same issue. To resolve it, I installed:



                      $ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal


                      Then I added the lines below to ~/.vnc/xstartup:



                      gnome-panel &
                      gnome-settings-daemon &
                      metacity &
                      nautilus &





                      share|improve this answer


























                      • and then don't forget to kill and restart the vncserver (like I did)

                        – craq
                        Sep 3 '18 at 4:56














                      5












                      5








                      5







                      I had the same issue. To resolve it, I installed:



                      $ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal


                      Then I added the lines below to ~/.vnc/xstartup:



                      gnome-panel &
                      gnome-settings-daemon &
                      metacity &
                      nautilus &





                      share|improve this answer















                      I had the same issue. To resolve it, I installed:



                      $ sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal


                      Then I added the lines below to ~/.vnc/xstartup:



                      gnome-panel &
                      gnome-settings-daemon &
                      metacity &
                      nautilus &






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Aug 24 '18 at 8:42









                      zx485

                      1,47131315




                      1,47131315










                      answered Aug 23 '18 at 20:45









                      OluwamayowaOluwamayowa

                      5112




                      5112













                      • and then don't forget to kill and restart the vncserver (like I did)

                        – craq
                        Sep 3 '18 at 4:56



















                      • and then don't forget to kill and restart the vncserver (like I did)

                        – craq
                        Sep 3 '18 at 4:56

















                      and then don't forget to kill and restart the vncserver (like I did)

                      – craq
                      Sep 3 '18 at 4:56





                      and then don't forget to kill and restart the vncserver (like I did)

                      – craq
                      Sep 3 '18 at 4:56











                      2














                      For anyone experiencing this problem on Xubuntu 16.04 LTS, I got my tightvncserver working by editing ~/.vnc/xstartup to this:



                      #!/bin/sh

                      xrdb $HOME/.Xresources
                      xsetroot -solid grey
                      #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                      #x-window-manager &
                      # Fix to make GNOME work
                      #export XKL_XMODMAP_DISABLE=1
                      #/etc/X11/Xsession
                      # fix to make xfce work:
                      startxfce4 &


                      The first two commented-out lines were already commented out presumably by the packager. I commented out the two lines following "fix to make GNOME work", and added the last two lines, so it can be shortened to just



                      #!/bin/sh

                      xrdb $HOME/.Xresources
                      xsetroot -solid grey
                      # fix to make xfce work:
                      startxfce4 &


                      Again, this applies specifically to Xubuntu, not Ubuntu with Unity or Gnome.






                      share|improve this answer




























                        2














                        For anyone experiencing this problem on Xubuntu 16.04 LTS, I got my tightvncserver working by editing ~/.vnc/xstartup to this:



                        #!/bin/sh

                        xrdb $HOME/.Xresources
                        xsetroot -solid grey
                        #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                        #x-window-manager &
                        # Fix to make GNOME work
                        #export XKL_XMODMAP_DISABLE=1
                        #/etc/X11/Xsession
                        # fix to make xfce work:
                        startxfce4 &


                        The first two commented-out lines were already commented out presumably by the packager. I commented out the two lines following "fix to make GNOME work", and added the last two lines, so it can be shortened to just



                        #!/bin/sh

                        xrdb $HOME/.Xresources
                        xsetroot -solid grey
                        # fix to make xfce work:
                        startxfce4 &


                        Again, this applies specifically to Xubuntu, not Ubuntu with Unity or Gnome.






                        share|improve this answer


























                          2












                          2








                          2







                          For anyone experiencing this problem on Xubuntu 16.04 LTS, I got my tightvncserver working by editing ~/.vnc/xstartup to this:



                          #!/bin/sh

                          xrdb $HOME/.Xresources
                          xsetroot -solid grey
                          #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                          #x-window-manager &
                          # Fix to make GNOME work
                          #export XKL_XMODMAP_DISABLE=1
                          #/etc/X11/Xsession
                          # fix to make xfce work:
                          startxfce4 &


                          The first two commented-out lines were already commented out presumably by the packager. I commented out the two lines following "fix to make GNOME work", and added the last two lines, so it can be shortened to just



                          #!/bin/sh

                          xrdb $HOME/.Xresources
                          xsetroot -solid grey
                          # fix to make xfce work:
                          startxfce4 &


                          Again, this applies specifically to Xubuntu, not Ubuntu with Unity or Gnome.






                          share|improve this answer













                          For anyone experiencing this problem on Xubuntu 16.04 LTS, I got my tightvncserver working by editing ~/.vnc/xstartup to this:



                          #!/bin/sh

                          xrdb $HOME/.Xresources
                          xsetroot -solid grey
                          #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
                          #x-window-manager &
                          # Fix to make GNOME work
                          #export XKL_XMODMAP_DISABLE=1
                          #/etc/X11/Xsession
                          # fix to make xfce work:
                          startxfce4 &


                          The first two commented-out lines were already commented out presumably by the packager. I commented out the two lines following "fix to make GNOME work", and added the last two lines, so it can be shortened to just



                          #!/bin/sh

                          xrdb $HOME/.Xresources
                          xsetroot -solid grey
                          # fix to make xfce work:
                          startxfce4 &


                          Again, this applies specifically to Xubuntu, not Ubuntu with Unity or Gnome.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 14 '17 at 22:39









                          joelkjoelk

                          211




                          211























                              2














                              Not mentioned in any of the answers at the time of writing: it is also worth noting that the xstartup file needs to be executable:



                              chmod +x ~/.vnc/xstartup



                              If not, the grey screen issue continues to occur regardless of the contents of the file.






                              share|improve this answer




























                                2














                                Not mentioned in any of the answers at the time of writing: it is also worth noting that the xstartup file needs to be executable:



                                chmod +x ~/.vnc/xstartup



                                If not, the grey screen issue continues to occur regardless of the contents of the file.






                                share|improve this answer


























                                  2












                                  2








                                  2







                                  Not mentioned in any of the answers at the time of writing: it is also worth noting that the xstartup file needs to be executable:



                                  chmod +x ~/.vnc/xstartup



                                  If not, the grey screen issue continues to occur regardless of the contents of the file.






                                  share|improve this answer













                                  Not mentioned in any of the answers at the time of writing: it is also worth noting that the xstartup file needs to be executable:



                                  chmod +x ~/.vnc/xstartup



                                  If not, the grey screen issue continues to occur regardless of the contents of the file.







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Oct 22 '17 at 20:13









                                  nickcrabtreenickcrabtree

                                  571414




                                  571414























                                      1














                                      Just had the a similar problem and found a solution which I have not seen in any articles I read over the past few days trying to sort this out.



                                      In addition to @Waqas answer I had to make sure I own all files in my home folder. Clearly this is about some specific files but I did'nt have time to check this out



                                      sudo chown user:user /home/user


                                      Just thought it might help somebody.






                                      share|improve this answer




























                                        1














                                        Just had the a similar problem and found a solution which I have not seen in any articles I read over the past few days trying to sort this out.



                                        In addition to @Waqas answer I had to make sure I own all files in my home folder. Clearly this is about some specific files but I did'nt have time to check this out



                                        sudo chown user:user /home/user


                                        Just thought it might help somebody.






                                        share|improve this answer


























                                          1












                                          1








                                          1







                                          Just had the a similar problem and found a solution which I have not seen in any articles I read over the past few days trying to sort this out.



                                          In addition to @Waqas answer I had to make sure I own all files in my home folder. Clearly this is about some specific files but I did'nt have time to check this out



                                          sudo chown user:user /home/user


                                          Just thought it might help somebody.






                                          share|improve this answer













                                          Just had the a similar problem and found a solution which I have not seen in any articles I read over the past few days trying to sort this out.



                                          In addition to @Waqas answer I had to make sure I own all files in my home folder. Clearly this is about some specific files but I did'nt have time to check this out



                                          sudo chown user:user /home/user


                                          Just thought it might help somebody.







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Feb 8 '17 at 16:35









                                          Bart CBart C

                                          1113




                                          1113























                                              0














                                              My xstartup config file already had following lines which were commented out by default.



                                              # Uncomment the following two lines for normal desktop:
                                              unset SESSION_MANAGER
                                              exec /etc/X11/xinit/xinitrc


                                              un-commenting them fixed the problem and now i can access my desktop via vnc client smoothly. it still launches terminal window at logon but if you exit that then it shows the usual desktop via vnc.






                                              share|improve this answer




























                                                0














                                                My xstartup config file already had following lines which were commented out by default.



                                                # Uncomment the following two lines for normal desktop:
                                                unset SESSION_MANAGER
                                                exec /etc/X11/xinit/xinitrc


                                                un-commenting them fixed the problem and now i can access my desktop via vnc client smoothly. it still launches terminal window at logon but if you exit that then it shows the usual desktop via vnc.






                                                share|improve this answer


























                                                  0












                                                  0








                                                  0







                                                  My xstartup config file already had following lines which were commented out by default.



                                                  # Uncomment the following two lines for normal desktop:
                                                  unset SESSION_MANAGER
                                                  exec /etc/X11/xinit/xinitrc


                                                  un-commenting them fixed the problem and now i can access my desktop via vnc client smoothly. it still launches terminal window at logon but if you exit that then it shows the usual desktop via vnc.






                                                  share|improve this answer













                                                  My xstartup config file already had following lines which were commented out by default.



                                                  # Uncomment the following two lines for normal desktop:
                                                  unset SESSION_MANAGER
                                                  exec /etc/X11/xinit/xinitrc


                                                  un-commenting them fixed the problem and now i can access my desktop via vnc client smoothly. it still launches terminal window at logon but if you exit that then it shows the usual desktop via vnc.







                                                  share|improve this answer












                                                  share|improve this answer



                                                  share|improve this answer










                                                  answered May 2 '18 at 5:36









                                                  Amey SamantAmey Samant

                                                  1




                                                  1























                                                      -1














                                                      I finally got this working from vnc4server by "apt-get install xfce4", and found a working xtartup here (the rest of the tutorial was irrelevant for my needs, e.g. "apt-get install xfce4-*" was unneccessary):
                                                      http://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-vnc-on-ubuntu-16-04.html



                                                      #!/bin/sh
                                                      [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
                                                      startxfce4 &


                                                      I've more or less concluded getting gnome to work in vnc is a non-starter.






                                                      share|improve this answer




























                                                        -1














                                                        I finally got this working from vnc4server by "apt-get install xfce4", and found a working xtartup here (the rest of the tutorial was irrelevant for my needs, e.g. "apt-get install xfce4-*" was unneccessary):
                                                        http://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-vnc-on-ubuntu-16-04.html



                                                        #!/bin/sh
                                                        [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
                                                        startxfce4 &


                                                        I've more or less concluded getting gnome to work in vnc is a non-starter.






                                                        share|improve this answer


























                                                          -1












                                                          -1








                                                          -1







                                                          I finally got this working from vnc4server by "apt-get install xfce4", and found a working xtartup here (the rest of the tutorial was irrelevant for my needs, e.g. "apt-get install xfce4-*" was unneccessary):
                                                          http://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-vnc-on-ubuntu-16-04.html



                                                          #!/bin/sh
                                                          [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
                                                          startxfce4 &


                                                          I've more or less concluded getting gnome to work in vnc is a non-starter.






                                                          share|improve this answer













                                                          I finally got this working from vnc4server by "apt-get install xfce4", and found a working xtartup here (the rest of the tutorial was irrelevant for my needs, e.g. "apt-get install xfce4-*" was unneccessary):
                                                          http://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-vnc-on-ubuntu-16-04.html



                                                          #!/bin/sh
                                                          [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
                                                          startxfce4 &


                                                          I've more or less concluded getting gnome to work in vnc is a non-starter.







                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Jul 21 '17 at 15:53









                                                          David SmithDavid Smith

                                                          1




                                                          1























                                                              -1














                                                              I had the same issue after upgrading from 12.04 via 14.04 to 16.04. The essential tip that helped me was to install gnome-panel. Ref:
                                                              http://www.linuxforums.org/forum/ubuntu-linux/209177-vnc-grey-screen-hi-res.html



                                                              sudo apt-get install gnome-panel





                                                              share|improve this answer




























                                                                -1














                                                                I had the same issue after upgrading from 12.04 via 14.04 to 16.04. The essential tip that helped me was to install gnome-panel. Ref:
                                                                http://www.linuxforums.org/forum/ubuntu-linux/209177-vnc-grey-screen-hi-res.html



                                                                sudo apt-get install gnome-panel





                                                                share|improve this answer


























                                                                  -1












                                                                  -1








                                                                  -1







                                                                  I had the same issue after upgrading from 12.04 via 14.04 to 16.04. The essential tip that helped me was to install gnome-panel. Ref:
                                                                  http://www.linuxforums.org/forum/ubuntu-linux/209177-vnc-grey-screen-hi-res.html



                                                                  sudo apt-get install gnome-panel





                                                                  share|improve this answer













                                                                  I had the same issue after upgrading from 12.04 via 14.04 to 16.04. The essential tip that helped me was to install gnome-panel. Ref:
                                                                  http://www.linuxforums.org/forum/ubuntu-linux/209177-vnc-grey-screen-hi-res.html



                                                                  sudo apt-get install gnome-panel






                                                                  share|improve this answer












                                                                  share|improve this answer



                                                                  share|improve this answer










                                                                  answered Nov 15 '17 at 21:49









                                                                  JonJon

                                                                  1




                                                                  1






























                                                                      draft saved

                                                                      draft discarded




















































                                                                      Thanks for contributing an answer to Ask Ubuntu!


                                                                      • 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%2faskubuntu.com%2fquestions%2f800302%2fvncserver-grey-screen-ubuntu-16-04-lts%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

                                                                      數位音樂下載

                                                                      When can things happen in Etherscan, such as the picture below?

                                                                      格利澤436b