Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Headless TeamViewer on Ubuntu 19.10

  1. #11
    Join Date
    Nov 2019
    Beans
    7

    Smile Re: Headless TeamViewer on Ubuntu 19.10

    I figured out how to get it working. I changed my GRUB config. I shall post the answer once I'm done testing in a few days.

    Quote Originally Posted by LHammonds View Post
    Well, a monitor does not demand a GUI. It can display the CLI just as well.
    True. I agree. I have both GUI and CLI use cases.

    Quote Originally Posted by LHammonds View Post
    Just curious, but what do you need the GUI for?
    To test few GUI applications I make, run VMs and couple of other GUI only applications I use.
    Last edited by howefield; 3 Days Ago at 11:13 AM. Reason: posts mereged.

  2. #12
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    18,812
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Headless TeamViewer on Ubuntu 19.10

    Another option? I have zero idea if this works on 19.10. Way, way, too new for me.

    I use x2go, which isn't tied into any GPU. Local or remote access are separate, so the x2go desktop is separate from the X11 session if you happen to be logged in. Some programs, mostly web browsers will only allow 1 instance running per username by default. There are ways to override that for most or just run each in a private firejail container.

    My main desktop runs inside a virtual machine and the VM host doesn't have GUI libraries loaded. x2go works fine, but it doesn't like heavy GUIs like Gnome3. There are plenty of other DE/WM options which work fine. openbox, fvwm, Mate, and other gnome2-based DEs should all work fine.

    One liability of x2go is that it uses ssh tunnels, part of the NX protocol, so external ssh connectivity is required. Also, an x2go client must be loaded on the clients. Many NX tools have slightly different interfaces which make them incompatible.

    Don't know if x2go is useful for your needs.

  3. #13
    Join Date
    Nov 2019
    Beans
    7

    Thumbs up Re: Headless TeamViewer on Ubuntu 19.10

    Here's what I did and it's been perfectly working for me:


    Step 1: Open Terminal and paste
    Code:
    sudo nano /etc/default/grub
    Step 2: Update the line
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT
    to include
    Code:
    nomodeset
    .
    Step 3:
    Code:
    sudo update-grub && sudo reboot
    At this point, TeamViewer should be able to load, and you should be able to log in. But the resolution is bad and the graphics aren't good either.

    Step 4: Open Terminal and paste
    Code:
    sudo apt install xserver-xorg-video-dummy -y
    Step 5: Make a script called
    Code:
    monitor.sh
    with contents as
    Code:
    sudo rm /usr/share/X11/xorg.conf.d/xorg.conf
    and
    Code:
    nomonitor.sh
    with contents as
    Code:
    sudo cp xorg.conf /usr/share/X11/xorg.conf.d/
    . This can be kept in home folder for easier accessibility.


    Step 6: The contents of
    Code:
    xorg.conf
    are as follows:


    Code:
    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 "1366x768"
        EndSubSection
    EndSection
    Step 7: Now all that's required is to run one of those scripts according to the situation (monitor connected or disconnected) and TeamViewer, VNC, AnyDesk, etc will start working fine with any resolution.

    Quote Originally Posted by TheFu View Post
    Another option? I have zero idea if this works on 19.10. Way, way, too new for me.

    I use x2go, which isn't tied into any GPU. Local or remote access are separate, so the x2go desktop is separate from the X11 session if you happen to be logged in. Some programs, mostly web browsers will only allow 1 instance running per username by default. There are ways to override that for most or just run each in a private firejail container.

    My main desktop runs inside a virtual machine and the VM host doesn't have GUI libraries loaded. x2go works fine, but it doesn't like heavy GUIs like Gnome3. There are plenty of other DE/WM options which work fine. openbox, fvwm, Mate, and other gnome2-based DEs should all work fine.

    One liability of x2go is that it uses ssh tunnels, part of the NX protocol, so external ssh connectivity is required. Also, an x2go client must be loaded on the clients. Many NX tools have slightly different interfaces which make them incompatible.

    Don't know if x2go is useful for your needs.
    @TheFu Thanks for the suggestion. I'll have a look at this as well. Right now, I have got it working perfectly fine. Just needed some additional configuration.

    @howefield @uRock This thread can be closed.
    Last edited by howefield; 3 Days Ago at 11:12 AM. Reason: posts merged.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

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