Setting up vnc server and no physical display : Ubuntu 16.04 LTS

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











up vote
0
down vote

favorite












I am trying to setup a vnc server on Ubuntu 16.04 LTS which has unity desktop installed. I do not want to install other desktop environment.



I started with installing x11vncserver and later realized that it does not work when the server does not have a physical monitor. It gives the error as



*** XOpenDisplay failed. No -display or DISPLAY.


(There are ways to emulate the monitor but I did not try it.)



After removing it, I tried vncserver ( xvnc )
which does work but I need to move to gnome panel and it looks really weird and low quality.



Connection details: Gigabit ethernet (all the way from client to server) but not on local network.



Can somebody help. Thanks.










share|improve this question

























    up vote
    0
    down vote

    favorite












    I am trying to setup a vnc server on Ubuntu 16.04 LTS which has unity desktop installed. I do not want to install other desktop environment.



    I started with installing x11vncserver and later realized that it does not work when the server does not have a physical monitor. It gives the error as



    *** XOpenDisplay failed. No -display or DISPLAY.


    (There are ways to emulate the monitor but I did not try it.)



    After removing it, I tried vncserver ( xvnc )
    which does work but I need to move to gnome panel and it looks really weird and low quality.



    Connection details: Gigabit ethernet (all the way from client to server) but not on local network.



    Can somebody help. Thanks.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to setup a vnc server on Ubuntu 16.04 LTS which has unity desktop installed. I do not want to install other desktop environment.



      I started with installing x11vncserver and later realized that it does not work when the server does not have a physical monitor. It gives the error as



      *** XOpenDisplay failed. No -display or DISPLAY.


      (There are ways to emulate the monitor but I did not try it.)



      After removing it, I tried vncserver ( xvnc )
      which does work but I need to move to gnome panel and it looks really weird and low quality.



      Connection details: Gigabit ethernet (all the way from client to server) but not on local network.



      Can somebody help. Thanks.










      share|improve this question













      I am trying to setup a vnc server on Ubuntu 16.04 LTS which has unity desktop installed. I do not want to install other desktop environment.



      I started with installing x11vncserver and later realized that it does not work when the server does not have a physical monitor. It gives the error as



      *** XOpenDisplay failed. No -display or DISPLAY.


      (There are ways to emulate the monitor but I did not try it.)



      After removing it, I tried vncserver ( xvnc )
      which does work but I need to move to gnome panel and it looks really weird and low quality.



      Connection details: Gigabit ethernet (all the way from client to server) but not on local network.



      Can somebody help. Thanks.







      ubuntu vnc x-server unity






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 26 '16 at 18:27









      ankit7540

      206210




      206210




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          I use this to set up a virtual monitor for my headless server to work with VNC and Steam in-home streaming:



          /etc/X11/xorg.conf.d/10-monitor.conf

          Section "Monitor"
          Identifier "Monitor0"
          VendorName "Unknown"
          ModelName "Unknown"
          HorizSync 28.0 - 33.0 #Virtual monitor needs this
          VertRefresh 43.0 - 72.0 #this, too
          Option "DPMS"
          EndSection

          Section "Device"
          Identifier "Device0"
          Driver "nvidia" #change for AMD or Intel
          VendorName "NVIDIA Corporation" #this, too
          Option "NoLogo" "1" #also this
          EndSection

          Section "Screen"
          Identifier "Screen0"
          Device "Device0"
          Monitor "Monitor0"
          DefaultDepth 24
          SubSection "Display"
          Depth 24
          Virtual 1920 1080
          Option "AllowEmptyInitialConfiguration" "True"
          EndSubSection
          EndSection


          Adjust as needed to fit your GPU and monitor setup.
          Note that this configuration only works for X. Mir and Wayland use a different configuration setup.






          share|improve this answer






















          • Thanks for reply. Above looks like emulating a display. 2 questions. Is your solution applicable to x11vnc server which is of course based on x.org ? Do we need to do any more setting like making the server specifically use this 'monitor' ?
            – ankit7540
            Nov 27 '16 at 13:35







          • 1




            If it uses the X graphics stack, it should work without further configuration, since this is just telling X that there's a display to use "right there" and the EDID probe missed it. ;)
            – Mioriin
            Nov 28 '16 at 5:48










          • What if I do not have NVIDIA? My graphic card is on board. Can I simply remove Section "Device" ? BTW, this file /etc/X11/xorg.conf.d/10-monitor.conf does not exist on Ubuntu 18.04. Does it work there too?
            – ar2015
            Apr 18 at 3:57










          • @ar2015 As per the comment in the file, you change Driver to the appropriate driver on your system. Yours would likely be "intel" or "i915". If the file does not exist, you simply create it.
            – Mioriin
            Apr 18 at 15:56











          • @Mioriin, thanks a lot. For VendorName can I use "intel Corporation"? Are these names arbitrary? Also if sometimes I connect a monitor, do they create any problem for a normal display?
            – ar2015
            Apr 18 at 22:41


















          up vote
          0
          down vote













          The tutorial linked below might help you. The tutorial assumes you are running the server version of Ubuntu. If you are running the desktop version of Ubuntu then some of the installations are not necessary so adjust accordingly.



          Use dpkg -l packageName to check if you already have a package installed. The first column would indicate ii for items that you do not need to install because they are already installed.



          Link to a tutorial for VNC on Ubuntu with no physical display.






          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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f326234%2fsetting-up-vnc-server-and-no-physical-display-ubuntu-16-04-lts%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            I use this to set up a virtual monitor for my headless server to work with VNC and Steam in-home streaming:



            /etc/X11/xorg.conf.d/10-monitor.conf

            Section "Monitor"
            Identifier "Monitor0"
            VendorName "Unknown"
            ModelName "Unknown"
            HorizSync 28.0 - 33.0 #Virtual monitor needs this
            VertRefresh 43.0 - 72.0 #this, too
            Option "DPMS"
            EndSection

            Section "Device"
            Identifier "Device0"
            Driver "nvidia" #change for AMD or Intel
            VendorName "NVIDIA Corporation" #this, too
            Option "NoLogo" "1" #also this
            EndSection

            Section "Screen"
            Identifier "Screen0"
            Device "Device0"
            Monitor "Monitor0"
            DefaultDepth 24
            SubSection "Display"
            Depth 24
            Virtual 1920 1080
            Option "AllowEmptyInitialConfiguration" "True"
            EndSubSection
            EndSection


            Adjust as needed to fit your GPU and monitor setup.
            Note that this configuration only works for X. Mir and Wayland use a different configuration setup.






            share|improve this answer






















            • Thanks for reply. Above looks like emulating a display. 2 questions. Is your solution applicable to x11vnc server which is of course based on x.org ? Do we need to do any more setting like making the server specifically use this 'monitor' ?
              – ankit7540
              Nov 27 '16 at 13:35







            • 1




              If it uses the X graphics stack, it should work without further configuration, since this is just telling X that there's a display to use "right there" and the EDID probe missed it. ;)
              – Mioriin
              Nov 28 '16 at 5:48










            • What if I do not have NVIDIA? My graphic card is on board. Can I simply remove Section "Device" ? BTW, this file /etc/X11/xorg.conf.d/10-monitor.conf does not exist on Ubuntu 18.04. Does it work there too?
              – ar2015
              Apr 18 at 3:57










            • @ar2015 As per the comment in the file, you change Driver to the appropriate driver on your system. Yours would likely be "intel" or "i915". If the file does not exist, you simply create it.
              – Mioriin
              Apr 18 at 15:56











            • @Mioriin, thanks a lot. For VendorName can I use "intel Corporation"? Are these names arbitrary? Also if sometimes I connect a monitor, do they create any problem for a normal display?
              – ar2015
              Apr 18 at 22:41















            up vote
            2
            down vote



            accepted










            I use this to set up a virtual monitor for my headless server to work with VNC and Steam in-home streaming:



            /etc/X11/xorg.conf.d/10-monitor.conf

            Section "Monitor"
            Identifier "Monitor0"
            VendorName "Unknown"
            ModelName "Unknown"
            HorizSync 28.0 - 33.0 #Virtual monitor needs this
            VertRefresh 43.0 - 72.0 #this, too
            Option "DPMS"
            EndSection

            Section "Device"
            Identifier "Device0"
            Driver "nvidia" #change for AMD or Intel
            VendorName "NVIDIA Corporation" #this, too
            Option "NoLogo" "1" #also this
            EndSection

            Section "Screen"
            Identifier "Screen0"
            Device "Device0"
            Monitor "Monitor0"
            DefaultDepth 24
            SubSection "Display"
            Depth 24
            Virtual 1920 1080
            Option "AllowEmptyInitialConfiguration" "True"
            EndSubSection
            EndSection


            Adjust as needed to fit your GPU and monitor setup.
            Note that this configuration only works for X. Mir and Wayland use a different configuration setup.






            share|improve this answer






















            • Thanks for reply. Above looks like emulating a display. 2 questions. Is your solution applicable to x11vnc server which is of course based on x.org ? Do we need to do any more setting like making the server specifically use this 'monitor' ?
              – ankit7540
              Nov 27 '16 at 13:35







            • 1




              If it uses the X graphics stack, it should work without further configuration, since this is just telling X that there's a display to use "right there" and the EDID probe missed it. ;)
              – Mioriin
              Nov 28 '16 at 5:48










            • What if I do not have NVIDIA? My graphic card is on board. Can I simply remove Section "Device" ? BTW, this file /etc/X11/xorg.conf.d/10-monitor.conf does not exist on Ubuntu 18.04. Does it work there too?
              – ar2015
              Apr 18 at 3:57










            • @ar2015 As per the comment in the file, you change Driver to the appropriate driver on your system. Yours would likely be "intel" or "i915". If the file does not exist, you simply create it.
              – Mioriin
              Apr 18 at 15:56











            • @Mioriin, thanks a lot. For VendorName can I use "intel Corporation"? Are these names arbitrary? Also if sometimes I connect a monitor, do they create any problem for a normal display?
              – ar2015
              Apr 18 at 22:41













            up vote
            2
            down vote



            accepted







            up vote
            2
            down vote



            accepted






            I use this to set up a virtual monitor for my headless server to work with VNC and Steam in-home streaming:



            /etc/X11/xorg.conf.d/10-monitor.conf

            Section "Monitor"
            Identifier "Monitor0"
            VendorName "Unknown"
            ModelName "Unknown"
            HorizSync 28.0 - 33.0 #Virtual monitor needs this
            VertRefresh 43.0 - 72.0 #this, too
            Option "DPMS"
            EndSection

            Section "Device"
            Identifier "Device0"
            Driver "nvidia" #change for AMD or Intel
            VendorName "NVIDIA Corporation" #this, too
            Option "NoLogo" "1" #also this
            EndSection

            Section "Screen"
            Identifier "Screen0"
            Device "Device0"
            Monitor "Monitor0"
            DefaultDepth 24
            SubSection "Display"
            Depth 24
            Virtual 1920 1080
            Option "AllowEmptyInitialConfiguration" "True"
            EndSubSection
            EndSection


            Adjust as needed to fit your GPU and monitor setup.
            Note that this configuration only works for X. Mir and Wayland use a different configuration setup.






            share|improve this answer














            I use this to set up a virtual monitor for my headless server to work with VNC and Steam in-home streaming:



            /etc/X11/xorg.conf.d/10-monitor.conf

            Section "Monitor"
            Identifier "Monitor0"
            VendorName "Unknown"
            ModelName "Unknown"
            HorizSync 28.0 - 33.0 #Virtual monitor needs this
            VertRefresh 43.0 - 72.0 #this, too
            Option "DPMS"
            EndSection

            Section "Device"
            Identifier "Device0"
            Driver "nvidia" #change for AMD or Intel
            VendorName "NVIDIA Corporation" #this, too
            Option "NoLogo" "1" #also this
            EndSection

            Section "Screen"
            Identifier "Screen0"
            Device "Device0"
            Monitor "Monitor0"
            DefaultDepth 24
            SubSection "Display"
            Depth 24
            Virtual 1920 1080
            Option "AllowEmptyInitialConfiguration" "True"
            EndSubSection
            EndSection


            Adjust as needed to fit your GPU and monitor setup.
            Note that this configuration only works for X. Mir and Wayland use a different configuration setup.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 18 mins ago









            Feliks Montez

            1032




            1032










            answered Nov 26 '16 at 18:43









            Mioriin

            1,674412




            1,674412











            • Thanks for reply. Above looks like emulating a display. 2 questions. Is your solution applicable to x11vnc server which is of course based on x.org ? Do we need to do any more setting like making the server specifically use this 'monitor' ?
              – ankit7540
              Nov 27 '16 at 13:35







            • 1




              If it uses the X graphics stack, it should work without further configuration, since this is just telling X that there's a display to use "right there" and the EDID probe missed it. ;)
              – Mioriin
              Nov 28 '16 at 5:48










            • What if I do not have NVIDIA? My graphic card is on board. Can I simply remove Section "Device" ? BTW, this file /etc/X11/xorg.conf.d/10-monitor.conf does not exist on Ubuntu 18.04. Does it work there too?
              – ar2015
              Apr 18 at 3:57










            • @ar2015 As per the comment in the file, you change Driver to the appropriate driver on your system. Yours would likely be "intel" or "i915". If the file does not exist, you simply create it.
              – Mioriin
              Apr 18 at 15:56











            • @Mioriin, thanks a lot. For VendorName can I use "intel Corporation"? Are these names arbitrary? Also if sometimes I connect a monitor, do they create any problem for a normal display?
              – ar2015
              Apr 18 at 22:41

















            • Thanks for reply. Above looks like emulating a display. 2 questions. Is your solution applicable to x11vnc server which is of course based on x.org ? Do we need to do any more setting like making the server specifically use this 'monitor' ?
              – ankit7540
              Nov 27 '16 at 13:35







            • 1




              If it uses the X graphics stack, it should work without further configuration, since this is just telling X that there's a display to use "right there" and the EDID probe missed it. ;)
              – Mioriin
              Nov 28 '16 at 5:48










            • What if I do not have NVIDIA? My graphic card is on board. Can I simply remove Section "Device" ? BTW, this file /etc/X11/xorg.conf.d/10-monitor.conf does not exist on Ubuntu 18.04. Does it work there too?
              – ar2015
              Apr 18 at 3:57










            • @ar2015 As per the comment in the file, you change Driver to the appropriate driver on your system. Yours would likely be "intel" or "i915". If the file does not exist, you simply create it.
              – Mioriin
              Apr 18 at 15:56











            • @Mioriin, thanks a lot. For VendorName can I use "intel Corporation"? Are these names arbitrary? Also if sometimes I connect a monitor, do they create any problem for a normal display?
              – ar2015
              Apr 18 at 22:41
















            Thanks for reply. Above looks like emulating a display. 2 questions. Is your solution applicable to x11vnc server which is of course based on x.org ? Do we need to do any more setting like making the server specifically use this 'monitor' ?
            – ankit7540
            Nov 27 '16 at 13:35





            Thanks for reply. Above looks like emulating a display. 2 questions. Is your solution applicable to x11vnc server which is of course based on x.org ? Do we need to do any more setting like making the server specifically use this 'monitor' ?
            – ankit7540
            Nov 27 '16 at 13:35





            1




            1




            If it uses the X graphics stack, it should work without further configuration, since this is just telling X that there's a display to use "right there" and the EDID probe missed it. ;)
            – Mioriin
            Nov 28 '16 at 5:48




            If it uses the X graphics stack, it should work without further configuration, since this is just telling X that there's a display to use "right there" and the EDID probe missed it. ;)
            – Mioriin
            Nov 28 '16 at 5:48












            What if I do not have NVIDIA? My graphic card is on board. Can I simply remove Section "Device" ? BTW, this file /etc/X11/xorg.conf.d/10-monitor.conf does not exist on Ubuntu 18.04. Does it work there too?
            – ar2015
            Apr 18 at 3:57




            What if I do not have NVIDIA? My graphic card is on board. Can I simply remove Section "Device" ? BTW, this file /etc/X11/xorg.conf.d/10-monitor.conf does not exist on Ubuntu 18.04. Does it work there too?
            – ar2015
            Apr 18 at 3:57












            @ar2015 As per the comment in the file, you change Driver to the appropriate driver on your system. Yours would likely be "intel" or "i915". If the file does not exist, you simply create it.
            – Mioriin
            Apr 18 at 15:56





            @ar2015 As per the comment in the file, you change Driver to the appropriate driver on your system. Yours would likely be "intel" or "i915". If the file does not exist, you simply create it.
            – Mioriin
            Apr 18 at 15:56













            @Mioriin, thanks a lot. For VendorName can I use "intel Corporation"? Are these names arbitrary? Also if sometimes I connect a monitor, do they create any problem for a normal display?
            – ar2015
            Apr 18 at 22:41





            @Mioriin, thanks a lot. For VendorName can I use "intel Corporation"? Are these names arbitrary? Also if sometimes I connect a monitor, do they create any problem for a normal display?
            – ar2015
            Apr 18 at 22:41













            up vote
            0
            down vote













            The tutorial linked below might help you. The tutorial assumes you are running the server version of Ubuntu. If you are running the desktop version of Ubuntu then some of the installations are not necessary so adjust accordingly.



            Use dpkg -l packageName to check if you already have a package installed. The first column would indicate ii for items that you do not need to install because they are already installed.



            Link to a tutorial for VNC on Ubuntu with no physical display.






            share|improve this answer
























              up vote
              0
              down vote













              The tutorial linked below might help you. The tutorial assumes you are running the server version of Ubuntu. If you are running the desktop version of Ubuntu then some of the installations are not necessary so adjust accordingly.



              Use dpkg -l packageName to check if you already have a package installed. The first column would indicate ii for items that you do not need to install because they are already installed.



              Link to a tutorial for VNC on Ubuntu with no physical display.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                The tutorial linked below might help you. The tutorial assumes you are running the server version of Ubuntu. If you are running the desktop version of Ubuntu then some of the installations are not necessary so adjust accordingly.



                Use dpkg -l packageName to check if you already have a package installed. The first column would indicate ii for items that you do not need to install because they are already installed.



                Link to a tutorial for VNC on Ubuntu with no physical display.






                share|improve this answer












                The tutorial linked below might help you. The tutorial assumes you are running the server version of Ubuntu. If you are running the desktop version of Ubuntu then some of the installations are not necessary so adjust accordingly.



                Use dpkg -l packageName to check if you already have a package installed. The first column would indicate ii for items that you do not need to install because they are already installed.



                Link to a tutorial for VNC on Ubuntu with no physical display.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 25 at 19:09









                H2ONaCl

                1346




                1346



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f326234%2fsetting-up-vnc-server-and-no-physical-display-ubuntu-16-04-lts%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

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

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?