Remmina - The GTK+ Remote Desktop Client  v1.4.2
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-Arch-Linux.md
Go to the documentation of this file.
1 # Quick and dirty guide for compiling remmina on Arch
2 
3 These are the instructions for people who want to test the latest version of Remmina on Arch linux
4 
5 You will obtain Remmina compiled under the /opt/remmina_devel/ subdir, so it will not mess up your system too much. This is ideal for testing remmina.
6 
7 You will also find the uninstall instructions at the bottom of this page.
8 
9 You must be **root** to follow this guide.
10 
11 **1.** Update your system
12 ```
13 pacman -Syu
14 ```
15 and reboot if needed.
16 
17 Install packages needed to compile FreeRDP and Remmina:
18 ```shell
19 pacman -S base-devel git libssh libvncserver gnome-keyring libgnome-keyring libpulse \
20  vte3 cmake libappindicator-gtk3 docbook-utils docbook-xsl spice-gtk spice-protocol
21 ```
22 **2.** Remove installed versions of remmina and freerdp
23 
24 ```
25 pacman -Rs remmina freerdp
26 ```
27 
28 **3.** Create a new directory for development in your home directory, and cd into it
29 ```
30 mkdir ~/remmina_devel
31 cd ~/remmina_devel
32 ```
33 
34 **4.** Download the latest source code of FreeRDP from its master branch
35 ```
36 git clone --branch 2.0.0 https://github.com/FreeRDP/FreeRDP.git
37 cd FreeRDP
38 ```
39 **5.** Configure FreeRDP for compilation (don't forget to include -DWITH_PULSE=ON)
40 ```
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 .
42 ```
43 Please note that the above line will make FreeRDP install in /opt/remmina_devel/freerdp
44 
45 **6.** Compile FreeRDP and install
46 ```
47 make && make install
48 ```
49 **7.** Make your system dynamic loader aware of the new libraries you installed. For Arch x64:
50 ```
51 echo /opt/remmina_devel/freerdp/lib64 | sudo tee /etc/ld.so.conf.d/freerdp_devel.conf > /dev/null
52 sudo ldconfig
53 ```
54 Please note: in your system the above lib directory could be different (`/opt/remmina_devel/freerdp/` in manjaro)
55 
56 **8.** Link executable in /usr/local/bin
57 ```
58 ln -s /opt/remmina_devel/freerdp/bin/xfreerdp /usr/local/bin/
59 ```
60 **9.** Test the new freerdp by connecting to a RDP host
61 ```
62 xfreerdp +clipboard /sound:rate:44100,channel:2 /v:hostname /u:username
63 ```
64 **10.** Now clone remmina repository, to your devel dir:
65 ```
66 cd ~/remmina_devel
67 git clone https://gitlab.com/Remmina/Remmina.git
68 ```
69 **11.** Configure Remmina for compilation
70 ```
71 cd Remmina
72 cmake -DWITH_TELEPATHY=off -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/remmina -DWITH_APPINDICATOR=off -DCMAKE_PREFIX_PATH=/opt/remmina_devel/freerdp --build=build .
73 ```
74 **12.** Compile remmina and install it
75 ```
76 make && make install
77 ```
78 **13.** Link the executable
79 ```
80 ln -s /opt/remmina_devel/remmina/bin/remmina /usr/local/bin/
81 ```
82 **14.** Run remmina
83 ```
84 remmina
85 ```
86 NOTES for execution:
87 * Icons and .desktop files are not installed, so don't search for remmina in Gnome Shell. You can only launch it from a terminal or pressing ALT-F2 and typing remmina.
88 * Gnome Shell will never show you the system tray icon and menu. Press Super+M to see the remmina icon on the message bar.
89 
90 ## Uninstall everything
91 **1.** Remove the devel directory
92 ```
93 rm -rf ~/remmina_devel/
94 ```
95 **2.** Remove the binary directory and the symlink
96 ```
97 rm -rf /opt/remmina_devel/ /usr/local/bin/remmina
98 ```