Remote connection to locally running X session

5,628

Yes, the Xorg module allows you to share your :0 (local) display. In /etc/X11/xorg.conf in the "Module" section add

    Load "vnc"

and in the "Screen" section add:

    Option "SecurityTypes" "VncAuth"
    Option "UserPasswdVerifier" "VncAuth"
    Option "PasswordFile" "/root/.vnc/passwd"

Do explore other options for "UserPasswdVerifier." The VNC server will listening on tcp port 5900. Even using a VPN I would not directly connect to the port. Block all non-localhost access and use an SSH tunnel.

Share:
5,628

Related videos on Youtube

Maxim Veksler
Author by

Maxim Veksler

Doing healthy things at K Health

Updated on September 17, 2022

Comments

  • Maxim Veksler
    Maxim Veksler over 1 year

    One of the good (few) features windows has is it's RDP protocol implementation. This wonder allows me to work with my 2 screen setup in the office, then drive home, open a VPN connection followed by RDP connection to the office PC from home and get my environment exactly as I left it (except from the screen resolution which adapted to my home PC screen hardware).

    The above works, and it works great - On Windows. I want the same feature on Linux. I want to be able to open a Gnome / KDE / (other windows manager supports this feature) at the office computer then connect from home and have the displays exported to my current screen.

    I've tried several possible work around like having a VNC session constantly open and connecting to it both from work and from home - This works but is no fun (you lose the responsiveness of the "native" application, access to local storage and co.).

    Could you suggest a solution? Perhaps some Xorg plugin ?

    Thank you for reading, Maxim.

  • Maxim Veksler
    Maxim Veksler over 13 years
    I'm sorry but you seem to not understand the topic: The problem here is not connecting a remote desktop from Linux to Windows but it have a "Remote desktop like" experience on Linux (with linux desktop). xrdp OTOH does seems interesting, funny how I missed it.