Tag Archives: xfreerdp

Linux Mint LMDE Server Setup #4: Guacamole Remote Desktop

Here is how I installed Guacamole on LMDE Server:

1. Install guacamole-tomcat and libguac-client-rdp0:

$ sudo apt-get install guacamole-tomcat libguac-client-rdp0

2. Modify “/etc/guacamole/user-mapping.xml”. Mine looks like this:

<user-mapping>

    <authorize 
            username="user"
            password="5f4dcc3b5aa765d61d8327deb882cf99"
            encoding="md5">

        <connection name="Mint LMDE Server">
            <protocol>vnc</protocol>
            <param name="hostname">localhost</param>
            <param name="port">5900</param>
        </connection>

        <connection name="Windows 7 Ultimate">
            <protocol>rdp</protocol>
            <param name="hostname">localhost</param>
            <param name="port">3389</param>
        </connection>

    </authorize>

</user-mapping>

3. To get md5 hash from a password you can do like this:

 $ echo -n <your password> | md5sum

4. Install lightdm and lightdm-gtk-greeter and set it to be default window manager:

$ sudo apt-get install lightdm lightdm-gtk-greeter

5. Modify “/etc/lightdm/lightdm.conf”. Here is how mine looks like:

[LightDM]
start-default-seat=true
     
[XDMCPServer]
enabled=true
port=177
     
[SeatDefaults]
allow-guest=false
user-session=mate
session-wrapper=mate-session
greeter-session=lightdm-gtk-greeter
greeter-hide-users=true

6. Install vnc server:

$ sudo apt-get install vnc4server

7. Install xinet.d:

$ sudo apt-get install xinetd

8. Create file “/etc/xinetd.d/vnc” and put following text into that file:

service vnc
{
   disable     = no
   socket_type = stream
   protocol    = tcp
   wait        = no
   user        = nobody
   server      = /usr/bin/Xvnc4
   server_args = -inetd -once -query localhost -geometry 1920x1080 -depth 24 -securitytypes=none
   type        = UNLISTED
   port        = 5900
}

9. Restart xinetd, tomcat6 and guacd:

$ sudo service xinetd restart
$ sudo service tomcat6 restart
$ sudo service guacd restart

10. Open a webbrowser and go to <server address>:8080/guacamole.

guacamole1guacamole2guacamole3guacamole4guacamole5

11. Enjoy!