1 # Quick and dirty guide for compiling remmina on ubuntu 18.04
3 These are instructions for people or software developers who want to contribute to the latest version of Remmina on Ubuntu 18.04.
5 If you are an end user and you want to install the latest version of remmina, please use the "Remmina Team Ubuntu PPA - next branch", as explained on the [homepage of the wiki](https://gitlab.com/Remmina/Remmina/wikis/home).
7 By following these instructions, you will get Remmina and FreeRDP compiled under the /opt/remmina_devel/ subdir, so they will not mess up your system too much. This is ideal for testing remmina.
9 You will also find the uninstall instructions at the bottom of this page.
11 **1.** Install all packages required to build freerdp and remmina:
13 sudo apt install build-essential git-core cmake libssl-dev libx11-dev libxext-dev libxinerama-dev \
14 libxcursor-dev libxdamage-dev libxv-dev libxkbfile-dev libasound2-dev libcups2-dev libxml2 libxml2-dev \
15 libxrandr-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
16 libxi-dev libavutil-dev \
17 libavcodec-dev libxtst-dev libgtk-3-dev libgcrypt11-dev libssh-dev libpulse-dev \
18 libvte-2.91-dev libxkbfile-dev libtelepathy-glib-dev libjpeg-dev \
19 libgnutls28-dev libgnome-keyring-dev libavahi-ui-gtk3-dev libvncserver-dev \
20 libappindicator3-dev intltool libsecret-1-dev libwebkit2gtk-4.0-dev libsystemd-dev \
21 libsoup2.4-dev libjson-glib-dev libavresample-dev libsodium-dev \
24 **2.** Remove freerdp-x11 package and all packages containing the string remmina in the package name.
26 sudo apt purge "remmina*" "libfreerdp*" "libwinpr*" "freerdp*"
29 **3.** Create a new directory for development in your home directory, and cd into it
34 **4.** Download the latest source code of FreeRDP from its master branch
36 git clone --branch 2.0.0 https://github.com/FreeRDP/FreeRDP.git
39 **5.** Configure FreeRDP for compilation (don't forget to include -DWITH_PULSE=ON)
41 cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON -DWITH_CUPS=on -DWITH_WAYLAND=off -DWITH_PULSE=on -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/freerdp .
43 Please note that the above line will make FreeRDP install in /opt/remmina_devel/freerdp
45 **6.** Compile FreeRDP and install
47 make && sudo make install
49 **7.** Make your system dynamic loader aware of the new libraries you installed. For Ubuntu x64:
51 echo /opt/remmina_devel/freerdp/lib | sudo tee /etc/ld.so.conf.d/freerdp_devel.conf > /dev/null
55 **8.** Create a symbolik link to the executable in /usr/local/bin
57 sudo ln -s /opt/remmina_devel/freerdp/bin/xfreerdp /usr/local/bin/
59 **9.** Test the new freerdp by connecting to a RDP host
61 xfreerdp +clipboard /sound:rate:44100,channel:2 /v:hostname /u:username
64 **10.** Now clone remmina repository to your devel dir:
67 git clone https://gitlab.com/Remmina/Remmina.git
70 **11.** Configure Remmina for compilation
73 cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/remmina -DCMAKE_PREFIX_PATH=/opt/remmina_devel/freerdp --build=build .
75 **12.** Compile remmina and install it
77 make && sudo make install
79 **13.** Create a symbolik link to the the executable
81 sudo ln -s /opt/remmina_devel/remmina/bin/remmina /usr/local/bin/
87 Please note that icons and launcher files are not installed, so don't search for remmina using Unity Dash.
89 ## Uninstall everything
90 **1.** Remove the devel directory
92 rm -rf ~/remmina_devel/
94 **2.** Remove the binary directory
96 sudo rm -rf /opt/remmina_devel/
98 **3.** Cleanup symlinks and dynamic loader
100 sudo rm /etc/ld.so.conf.d/freerdp_devel.conf /usr/local/bin/remmina /usr/local/bin/xfreerdp