Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved 20.04 linode machine -> Cloudron + Guacamole -> RDP and VNC not working

    Guacamole
    3
    15
    587
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JakeTheGinge last edited by

      So after a few hours i cant seem to get RDP and VNC work.

      For RDP it says: "The remote desktop server is currently unreachable."
      (Yes i ignored certificate and tried different securities)

      For VNC it says: "The remote desktop server is currently unreachable."

      Host is filled correctly
      Domain is setup fine and filled out correct with cloud flare
      Any advice would be super helpful because im doing exactly what the videos say to do and it doesn't work 😞

      Logs for RDP: 412bc3c5-1be6-444a-8a6d-e30299f2294e-image.png

      girish 1 Reply Last reply Reply Quote 0
      • Topic has been marked as a question  J JakeTheGinge 
      • girish
        girish Staff last edited by girish

        I was able to get RDP working as well.

        • Install RDP server as per https://hands-on.cloud/how-to-set-up-remote-desktop-on-ubuntu-xrdp/ . I set it up with snake oil certs as described.

        • Remmina connection worked:
          1cda6d5f-9087-4ecc-852b-e353d134ecce-image.png

        • Guac configuration (ignore server cert is needed because of snake oil cert):
          1ef45532-a978-4171-b20d-a2d313d94126-image.png

        • Connection works
          4ef22167-9a61-4b2c-8c45-a7d81e6e28ef-image.png

        1 Reply Last reply Reply Quote 0
        • nebulon
          nebulon Staff last edited by

          Since you use Cloudflare, can you double check that the domain is actually not proxied via Cloudflare? This would not work as the ports would not be forwarded then.

          J 2 Replies Last reply Reply Quote 0
          • J
            JakeTheGinge @nebulon last edited by

            @nebulon proxy off.png

            1 Reply Last reply Reply Quote 0
            • J
              JakeTheGinge @nebulon last edited by

              @nebulon managed to get this now but not sure where to move now 😕
              all i get now.png

              1 Reply Last reply Reply Quote 0
              • nebulon
                nebulon Staff last edited by

                To be honest, I have never much used Guacamole myself so from the info in this thread I am also a bit lost giving further advice.

                From the last screenshot, does that indicate that you had an initial connection working fine but then it disconnected? If so can you check if the app as such was restarted maybe due to memory issues?

                1 Reply Last reply Reply Quote 0
                • Moved from Support by  girish girish 
                • girish
                  girish Staff last edited by

                  I did a test run of this.

                  I first setup a VNC server per this guide . I ran the vncserver like so:

                  root@vnc:~# vncserver -interface 0.0.0.0
                  
                  New 'X' desktop is vnc:1
                  
                  Starting applications specified in /root/.vnc/xstartup
                  Log file is /root/.vnc/vnc:1.log
                  

                  Then, I tried to connect with Remmina (note the port number since it's display :1):

                  64cf4353-16eb-4a07-9f3d-c18a36bc8a83-image.png

                  I was able to connect after specifying the password.

                  Next, I setup guacamole on Cloudron. I set protocol to VNC and then provided the below parameters:

                  9826769d-4d63-4a12-9dc9-88d006800d7f-image.png

                  That's it, it connects:

                  94e6a24a-d9bf-442d-8821-0790dfda1b12-image.png

                  J 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @JakeTheGinge last edited by

                    @JakeTheGinge The issue shouldn't be cloudflare related . Are you able to connect via VNC without guacamole? Are you able to connect with a simple telnet <ip> <port> from your Cloudron server?

                    1 Reply Last reply Reply Quote 0
                    • girish
                      girish Staff last edited by girish

                      I was able to get RDP working as well.

                      • Install RDP server as per https://hands-on.cloud/how-to-set-up-remote-desktop-on-ubuntu-xrdp/ . I set it up with snake oil certs as described.

                      • Remmina connection worked:
                        1cda6d5f-9087-4ecc-852b-e353d134ecce-image.png

                      • Guac configuration (ignore server cert is needed because of snake oil cert):
                        1ef45532-a978-4171-b20d-a2d313d94126-image.png

                      • Connection works
                        4ef22167-9a61-4b2c-8c45-a7d81e6e28ef-image.png

                      1 Reply Last reply Reply Quote 0
                      • J
                        JakeTheGinge @girish last edited by

                        @girish Alright so i got VNC working, it was the "vncserver -interface 0.0.0.0" that fixed it..... it wasn't in the guide, how did you know? and what does it mean?

                        Obviously I'll research this.

                        Onto RDP now, will update you on that... thankyou very much for helping me get some progress. Sucks being that close to the answer but thanks.

                        girish 1 Reply Last reply Reply Quote 0
                        • Topic has been marked as solved  girish girish 
                        • girish
                          girish Staff @JakeTheGinge last edited by

                          @JakeTheGinge said in 20.04 linode machine -> Cloudron + Guacamole -> RDP and VNC not working:

                          @girish Alright so i got VNC working, it was the "vncserver -interface 0.0.0.0" that fixed it..... it wasn't in the guide, how did you know? and what does it mean?

                          0.0.0.0 means to listen all IP addresses. Without it, vnc server only listens on localhost.

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            JakeTheGinge @girish last edited by JakeTheGinge

                            @girish RDP might be close, but when i enable UFW firewall.. it blocks guacamole from loading

                            Yes i enabled 80, 443, 4822, 3389, 8080, https, http, 22, ssh so on etc

                            doesn't want to load when enabled 😕

                            RDP is working outside of guacamole though, which is a good sign atleast

                            girish 1 Reply Last reply Reply Quote 0
                            • girish
                              girish Staff @JakeTheGinge last edited by

                              @JakeTheGinge Are you enabling all these ports on Cloudron or on the RDP/VNC server? Cloudron+Guacamole server doesn't need anything other than http and https as such. You don't have and shouldn't run ufw as well.

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                JakeTheGinge @girish last edited by JakeTheGinge

                                @girish alright so i dont need UFW?

                                I can now get to the RDP login screen, once i login it it disconnect, if i type wrong credentials then it asks to login again
                                https://gyazo.com/7275514f10d2bee62619d274594fb161

                                girish 1 Reply Last reply Reply Quote 0
                                • girish
                                  girish Staff @JakeTheGinge last edited by

                                  @JakeTheGinge Maybe you are hitting https://askubuntu.com/questions/1308551/xrdp-disconnects-immediately-after-correct-credentials (there's some comment here that xfce works but not gnome). Also, see https://c-nergy.be/blog/?p=16698 .

                                  In any case, I am pretty sure, this is not networking related at this point since you are able to connect.

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    JakeTheGinge @girish last edited by

                                    @girish I'm all good now, thanks for the help.

                                    Sorry if I annoyed you, rdp and vnc are working.

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Powered by NodeBB