Results 1 to 4 of 4

Thread: XRDP and XVNC setup help

  1. #1

    Default XRDP and XVNC setup help

    Hello, I have searched all over Google and I cannot find a step-by-step guide on how to install XRDP or XVNC properly.

    Basically, I have this installed on a machine on my local network that doesn't need to be connected to my KVM switch and I would like to remote into it, other than SSH, so I can use the desktop for specific things.

    However, when I set up XRDP or XVNC, they all try to connect via the loopback address instead of just going straight to the desktop.

    Prime example:


    Is there a config file that I've missed?

    When I search for ~/.Xsession, it says file does not exist.

  2. #2
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,037

    Default Re: XRDP and XVNC setup help

    On Fri, 25 Oct 2013 05:06:02 +0000, ClassANetwork wrote:

    > However, when I set up XRDP or XVNC, they all try to connect via the
    > loopback address instead of just going straight to the desktop.


    That's generally (at least for VNC servers) because the communication's
    not encrypted.

    Try:

    ssh -L 5911:localhost:5901 user@systemaddress

    Replace "user" with your username and "systemaddress" with the address of
    the target server. You may need to adjust the forwarded port as well,
    depending on how the remote system is set up.

    This will cause a secure tunnel to be created over the port to the remote
    system that you can then run vncviewer over using:

    vncviewer localhost:11

    (That connects to port 5911 on the local system, which is forwarded to
    port 5901 on the remote server's loopback adapter)

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  3. #3

    Default Re: XRDP and XVNC setup help

    Quote Originally Posted by hendersj View Post
    On Fri, 25 Oct 2013 05:06:02 +0000, ClassANetwork wrote:

    > However, when I set up XRDP or XVNC, they all try to connect via the
    > loopback address instead of just going straight to the desktop.


    That's generally (at least for VNC servers) because the communication's
    not encrypted.

    Try:

    ssh -L 5911:localhost:5901 user@systemaddress

    Replace "user" with your username and "systemaddress" with the address of
    the target server. You may need to adjust the forwarded port as well,
    depending on how the remote system is set up.

    This will cause a secure tunnel to be created over the port to the remote
    system that you can then run vncviewer over using:

    vncviewer localhost:11

    (That connects to port 5911 on the local system, which is forwarded to
    port 5901 on the remote server's loopback adapter)

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at openSUSE Forums FAQ
    Thanks for the reply.

    I tried the above, and this is what I get through PuTTY.

    Code:
    applejack@linux-thy1:~> ssh -L 5911:localhost:5901 applejack@linux-thy1
    ssh: Could not resolve hostname linux-thy1: Name or service not known
    applejack@linux-thy1:~> vncviewer localhost:11
    Error: Can't open display:
    applejack@linux-thy1:~>
    I also tried connecting via TightVNC, and I get this error.



    I should I also explain that I tried allowing VNC/RDP through Firewall, and it just ends up resetting itself every time I go into YaST. So I ended up turning Firewall off just to see if maybe it wasn't a config file that I forgot to edit or if I was literally doing something wrong, and I can connect to the machine, but I cannot log in.

  4. #4
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,037

    Default Re: XRDP and XVNC setup help

    On Fri, 25 Oct 2013 06:56:03 +0000, ClassANetwork wrote:

    > Could not resolve hostname linux-thy1


    Try using the IP address. If you don't have DNS configured and the
    hostname isn't defined in /etc/hosts (on the machine you're connecting
    from), there's no name resolution in place.

    Using the IP address will work around that.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Posting Permissions

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