Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Screen sharing using command line

  1. #1
    Join Date
    Jan 2008
    Beans
    6

    Screen sharing using command line

    Hi,

    I recently installed Ubuntu LTS 20.04.02 and was able to turn on Screen Sharing under Settings using the GUI--works well. However, is there a way to do this using command line, rather than GUI?

    thank you,

    -sul

  2. #2
    Join Date
    Mar 2017
    Beans
    1

    Re: Screen sharing using command line

    never mind
    Last edited by kckit; April 26th, 2021 at 11:16 PM.

  3. #3
    Join Date
    May 2010
    Beans
    1,360

    Re: Screen sharing using command line

    Did you resolve the issue? If so can you please share the solution as it may help others

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Screen sharing using command line

    Use x2go if you want a remote desktop. https://wiki.x2go.org/doku.php/doc:u...esktop-sharing

    Use tmux or screen if you want to share a terminal with other people.
    https://www.howtoforge.com/sharing-t...mux-and-screen

  5. #5
    Join Date
    Jan 2008
    Beans
    6

    Re: Screen sharing using command line

    no resolution as yet. I am still waiting on an answer to the question.

  6. #6
    Join Date
    Jan 2008
    Beans
    6

    Re: Screen sharing using command line

    thanks for the tip. x2go client is very unstable on windows 10. session opens a black screen and simply closes--no error message is displayed.

  7. #7
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,742
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Screen sharing using command line

    Quote Originally Posted by sul View Post
    thanks for the tip. x2go client is very unstable on windows 10.
    Can't confirm this at all, I use it daily. Did you properly configure both sides (e.g. "x2goserver" is installed + running on the Linux side) and e.g. select a desktop environment that's installed on the Linux side?

  8. #8
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,742
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Screen sharing using command line

    Quote Originally Posted by sul View Post
    However, is there a way to do this using command line, rather than GUI?
    Totally NOT RECOMMENDED method because this relies on an unsafe and easy hackable protocol (VNC), but if you have the GNOME desktop you can try this command:
    Code:
    /usr/lib/vino/vino-server --display=:0
    It should default to the settings you have defined previously, e.g. when you activated it using the desktop.

  9. #9
    Join Date
    Jan 2008
    Beans
    6

    Re: Screen sharing using command line

    Quote Originally Posted by scorp123 View Post
    Totally NOT RECOMMENDED method because this relies on an unsafe and easy hackable protocol (VNC), but if you have the GNOME desktop you can try this command:
    Code:
    /usr/lib/vino/vino-server --display=:0
    It should default to the settings you have defined previously, e.g. when you activated it using the desktop.
    Thank you but no joy for me. it results in error:

    Code:
    Unable to init server: Could not connect: Connection refused
    Cannot open display: :0
    I'm using ssh (putty) on my windows pc. Looks like vino requires logging into the desktop environment of the physical machine for this command to work. Unfortunately, this doesn't help my situation.

    -sul.

  10. #10
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Screen sharing using command line

    Quote Originally Posted by sul View Post
    Thank you but no joy for me. it results in error:

    Code:
    Unable to init server: Could not connect: Connection refused
    Cannot open display: :0
    I'm using ssh (putty) on my windows pc. Looks like vino requires logging into the desktop environment of the physical machine for this command to work. Unfortunately, this doesn't help my situation.

    -sul.
    With x2go, you don't need putty. Also, the x2goclient accepts pointing at a profile, which can be configured using ssh-keys (use the x2go version, not putty's version) for trusted connections. I've never used Win10, but on prior versions, x2go was solid for weeks. I'd be surprised if that wasn't still the situation. Leads me to think there is an issue on your system or a fundamental misunderstanding about how things need to be setup.

    After using x2go, very few people would want to return to using RDP or VNC-based tools if they don't have other mandates. x2go is much faster and can be tuned for the speed of the network and both systems.

Page 1 of 2 12 LastLast

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
  •