1 # Compiling Remmina on FreeBSD 11
3 In order to use Remmina, you need at least one plugin, here we explain you how to build Remmina with most plugins but mainly with FreeRDP support.
5 ## How to compile FreeRDP
7 Follow the next procedure to compile FreerRDP
9 ### Install FreeRDP dependencies
12 pkg install cmake gccmakedep git pkgconf libX11 libXext libXinerama libXcursor libXdamage libXv libxkbfile alsa-lib cups ffmpeg pulseaudio libssh libXi libXtst libXrandr xmlto gstreamer1 gstreamer1-plugins ffmpeg libx264 qt5-qmake qt5-buildtools
14 ### Get FreeRDP code in you development environment
15 **1.** Prepare your dev environment
20 **2.** Get the source code
22 git clone --branch stable-2.0 https://github.com/FreeRDP/FreeRDP.git
25 **3.** Configure FreeRDP
27 cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON -DWITH_PULSE=ON -DWITH_CUPS=on -DWITH_WAYLAND=off -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/freerdp .
29 **4.** Compile and install
32 make && sudo make install
34 **5.** Add the freerdp library path to ldconfig
35 Edit the file `/etc/ld-elf.so.conf`, create it if it does not exits. A add the line
37 /opt/remmina_devel/freerdp/lib/
39 And then restart ldconfig with
41 service ldconfig restart
43 **6.** Link the xfreerdp executable
45 If you use Gnome, you probably have FreeRDP installed under /usr/local. Gnome needs vinagre that needs FreeRDP, so you won't be able to remove FreeRDP, that shouldn't be an issue as we installed the git version under /opt... But keep this in mind if you'll have troubles.
46 If you don't have Gnome, you can link xfreerdp under /usr/local/bin
48 sudo ln -s /opt/remmina_devel/freerdp/bin/xfreerdp /usr/local/bin/
52 xfreerdp +clipboard /sound:rate:44100,channel:2 /v:hostname /u:username
54 ## How to compile Remmina
55 **1.** Install Remmina dependencies.
57 pkg install avahi-gtk3 gtk3 libgcrypt gnutls avahi vte3 telepathy-glib libSM openjpeg libvncserver libsodium libappindicator
59 **2.** Install gnome keyring or similar password storage for your specific desktop
61 pkg install gnome-keyring
66 git clone https://gitlab.com/Remmina/Remmina.git
68 **4.** Configure compile settings
71 cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_APPINDICATOR=OFF -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/remmina -DCMAKE_PREFIX_PATH=/opt/remmina_devel/freerdp --build=build .
73 **5.** Compile remmina and install it
79 /opt/remmina_devel/remmina/bin/remmina