Skip to content

Instantly share code, notes, and snippets.

@dragolabs
Created April 29, 2020 20:09
Show Gist options
  • Save dragolabs/8e559113567faed32327ef24fdce775b to your computer and use it in GitHub Desktop.
Save dragolabs/8e559113567faed32327ef24fdce775b to your computer and use it in GitHub Desktop.

Revisions

  1. dragolabs created this gist Apr 29, 2020.
    44 changes: 44 additions & 0 deletions ubuntu-vnc-without-monitor.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    ## Install Video Dummy Package

    ```
    sudo apt-get install xserver-xorg-video-dummy
    ```

    ## Create Default X Windows Configuration File

    Create / Edit xorg.conf file
    Rename file if already exists for backup

    ```
    sudo vi /usr/share/X11/xorg.conf.d/xorg.conf
    ```

    Add the following content to the file
    Set the resolution to what you like (whatever resolution the screen is that is used to connect remotely is probably is a good idea)

    ```
    Section "Device"
    Identifier "Configured Video Device"
    Driver "dummy"
    EndSection
    Section "Monitor"
    Identifier "Configured Monitor"
    HorizSync 31.5-48.5
    VertRefresh 50-70
    EndSection
    Section "Screen"
    Identifier "Default Screen"
    Monitor "Configured Monitor"
    Device "Configured Video Device"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    Modes "1920x1080"
    EndSubSection
    EndSection
    ```

    Save the file
    Reboot and Test