Remmina - The GTK+ Remote Desktop Client  v1.4.33
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
Compile-on-FreeBSD.md
Go to the documentation of this file.
1 # Compiling Remmina on FreeBSD 11
2 
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.
4 
5 ## How to compile FreeRDP
6 
7 Follow the next procedure to compile FreerRDP
8 
9 ### Install FreeRDP dependencies
10 
11 ```sh
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 pcre2
13 ```
14 ### Get FreeRDP code in you development environment
15 **1.** Prepare your dev environment
16 ```
17 mkdir ~/remmina_devel
18 cd ~/remmina_devel
19 ```
20 **2.** Get the source code
21 ```
22 git clone --branch stable-2.0 https://github.com/FreeRDP/FreeRDP.git
23 cd FreeRDP
24 ```
25 **3.** Configure FreeRDP
26 ```
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 .
28 ```
29 **4.** Compile and install
30 
31 ```
32 make && sudo make install
33 ```
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
36 ```
37 /opt/remmina_devel/freerdp/lib/
38 ```
39 And then restart ldconfig with
40 ```
41 service ldconfig restart
42 ```
43 **6.** Link the xfreerdp executable
44 
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
47 ```
48 sudo ln -s /opt/remmina_devel/freerdp/bin/xfreerdp /usr/local/bin/
49 ```
50 **7.** Test xfreerdp
51 ```
52 xfreerdp +clipboard /sound:rate:44100,channel:2 /v:hostname /u:username
53 ```
54 ## How to compile Remmina
55 **1.** Install Remmina dependencies.
56 ```
57 pkg install avahi-gtk3 gtk3 libgcrypt gnutls avahi vte3 telepathy-glib libSM openjpeg libvncserver libsodium libappindicator
58 ```
59 **2.** Install gnome keyring or similar password storage for your specific desktop
60 ```
61 pkg install gnome-keyring
62 ```
63 **3.** Clone Remmina
64 ```
65 cd ~/remmina_devel
66 git clone https://gitlab.com/Remmina/Remmina.git
67 ```
68 **4.** Configure compile settings
69 ```
70 cd Remmina
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 .
72 ```
73 **5.** Compile remmina and install it
74 ```
75 make && make install
76 ```
77 **6.** Run Remmina
78 ```
79 /opt/remmina_devel/remmina/bin/remmina
80 ```