der_eismann
Posts: 27
Joined: Sat Jan 21, 2017 5:10 pm
Location: Berlin

How To: Compile & install latest Remmina and FreeRDP from Git

Fri Feb 17, 2017 6:56 pm

Hey everyone,
I personally love Remmina, but it really bugs me that all distros just offer the old version 1.1 from 2014 because they didn't have a real release since then. Reasons to follow these instructions are for example the missing support for RD gateways in Remmina 1.1 and several other options. However the latest Git versions can always be a little but buggy.
For Ubuntu they offer their own PPA for the latest GitHub version, but for our young Solus you have to do it on your own. I'll show you how. Tips and corrections welcome!

Step 1
Install basic compiling tools with

Code: Select all

sudo eopkg it -c system.devel

Step 2
In case you were using the versions from the repos before we need to uninstall them with

Code: Select all

sudo eopkg rm remmina freerdp

Step 3
Install all the necessary packages needed for compiling

Code: Select all

sudo eopkg it git pulseaudio-devel cups-devel ffmpeg-devel gstreamer-1.0-devel libxrandr-devel alsa-lib-devel gstreamer-1.0-plugins-base-devel libxv-devel libxkbfile-devel libx11-devel libgtk-3-devel libssh-devel libvncserver-devel libtelepathy-glib-devel libsecret-devel

Step 4
Create a new directory for the source code with

Code: Select all

mkdir ~/remmina_devel

Code: Select all

cd ~/remmina_devel

Step 5
Clone the git repository

Code: Select all

git clone https://github.com/FreeRDP/FreeRDP.git

Code: Select all

cd FreeRDP

Step 6
Configure FreeRDP

Code: Select all

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 .

Step 7
Compile and install with

Code: Select all

make && sudo make install

Step 8
Make system aware of new libraries

Code: Select all

sudo mkdir /etc/ld.so.conf.d

Code: Select all

echo /opt/remmina_devel/freerdp/lib64 | sudo tee /etc/ld.so.conf.d/freerdp_devel.conf > /dev/null

Code: Select all

sudo ldconfig

Step 9
Create a system link for the binary

Code: Select all

sudo ln -s /opt/remmina_devel/freerdp/bin/xfreerdp /usr/bin/

Well done, you just installed the latest FreeRDP. If this is everything you need you are finished, if you also need Remmina continue with Step 10.

Step 10
Now download Remmina source code

Code: Select all

cd ~/remmina_devel

Code: Select all

git clone https://github.com/FreeRDP/Remmina.git -b next

Code: Select all

cd Remmina

Step 11
Configure Remmina

Code: Select all

cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_AVAHI=off -DWITH_APPINDICATOR=OFF -DWITH_FREERDP=ON -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/remmina -DCMAKE_PREFIX_PATH=/opt/remmina_devel/freerdp --build=build .

Step 12
Compile and install

Code: Select all

make && sudo make install

Step 13
Create symbolic link

Code: Select all

sudo ln -s /opt/remmina_devel/remmina/bin/remmina /usr/bin/

Step 14
Create a launcher file to list it in the menu

Code: Select all

sudo gedit /usr/share/applications/remmina.desktop
Insert the following text and save:
[Desktop Entry]
Version=1.0
Name=Remmina
Name[ca]=Remmina
Name[cs]=Remmina
Name[de]=Remmina
Name[el]=Remmina
Name[es]=Remmina
Name[eu]=Remmina
Name[fr]=Remmina
Name[hu]=Remmina
Name[it]=Remmina
Name[lt]=Remmina
Name[nl]=Remmina
Name[pl]=Remmina
Name[pt_BR]=Remmina
Name[pt_PT]=Remmina
Name[ru]=Remmina
Name[tr]=Remmina
Name[uk]=Remmina
Name[zh_CN]=Remmina
GenericName=Remote Desktop Client
GenericName[ca]=Client d'escriptori remot
GenericName[cs]=Klient vzdálené pracovní plochy
GenericName[de]=Verbindung zu Fremdrechnern
GenericName[el]=Πελάτης απομακρυσμένης επιφάνειας εργασίας
GenericName[es]=Cliente de escritorio remoto
GenericName[eu]=Urruneko mahaigainaren bezeroa
GenericName[fr]=Afficheur de bureau distant
GenericName[hu]=Távoli asztal kliens
GenericName[it]=Client per connessione a desktop remoto
GenericName[lt]=Nutolusio darbastalio klientas
GenericName[nl]=Client voor verbinding met extern bureaublad
GenericName[pl]=Klient zdalnego pulpitu
GenericName[pt_BR]=Cliente de área de trabalho remota
GenericName[pt_PT]=Cliente de ambiente de trabalho remoto
GenericName[ru]=Клиент удалённого доступа к рабочему столу
GenericName[tr]=Uzak Masaüstü İstemcisi
GenericName[uk]=Клієнт з'єднання з віддаленою стільницею
GenericName[zh_CN]=远程桌面客户端
X-GNOME-FullName=Remmina Remote Desktop Client
Comment=Connect to remote desktops
Comment[bg]=Свързване към отдалечени компютри
Comment[ca]=Connecteu-vos a escriptoris remots
Comment[cs]=Připojení ke vzdáleným plochám
Comment[da]=Tilslut fjernskriveborde
Comment[de]=Zu entfernten Arbeitsflächen verbinden
Comment[el]=Συνδεθείτε σε απομακρυσμένους υπολογιστές
Comment[es]=Conectarse a escritorios remotos
Comment[eu]=Konektatu urruneko mahaigainekin
Comment[fr]=Connectez-vous à des bureaux distants
Comment[hu]=Kapcsolódás távoli asztalhoz
Comment[id]=Mengakses remote desktop
Comment[it]=Connessione a desktop remoti
Comment[kk]=Қашықтаған жұмыс үстелдерге қосылу
Comment[lt]=Jungtis prie nutolusių kompiuterių
Comment[nl]=Verbinding maken met bureaubladen op afstand
Comment[pl]=Łączy ze zdalnymi pulpitami
Comment[pt_BR]=Conecte-se a áreas de trabalho remotas
Comment[pt_PT]=Estabelecer ligação com computadores remotos
Comment[ru]=Подключение к удалённым рабочим столам
Comment[sk]=Pripojenie k vzdialeným pracovným plochám
Comment[sv]=Anslut till fjärrskrivbord
Comment[th]=เชื่อมต่อไปยังพื้นโต๊ะระยะไกล
Comment[tr]=Uzak masaüstlerine bağlan
Comment[uk]=Приєднатися до віддаленого комп’ютера
Comment[zh_CN]=连接到远程桌面
TryExec=remmina
Exec=remmina
Icon=remmina
Terminal=false
Type=Application
Categories=GTK;GNOME;X-GNOME-NetworkSettings;Network;
Actions=Profile;Tray;

[Desktop Action Profile]
Name=Create a New Connection Profile
Name[ca]=Crea un perfil de connexió nou
Name[cs]=Vytvořit nový profil připojení
Name[de]=Ein neues Verbindungsprofil erstellen
Name[el]=Δημιουργία νέου προφίλ σύνδεσης
Name[es]=Crear un perfil de conexión nuevo
Name[eu]=Sortu konexio profil berri bat
Name[fr]=Créer un nouveau profil de connexion
Name[hu]=Új kapcsolatprofil létrehozása
Name[it]=Crea un nuovo profilo di connessione
Name[lt]=Sukurti naują prisijungimo profilį
Name[nl]=Een nieuw verbindingsprofiel aanmaken
Name[pt_BR]=Criar um novo perfil de conexão
Name[pt_PT]=Criar um Novo Perfil de Ligação
Name[ru]=Создать профиль нового соединения
Name[sk]=Vytvoriť nový profil pripojenia
Name[sv]=Skapa en ny anslutningsprofil
Name[tr]=Yeni Bir Bağlantı Profili Oluştur
Name[uk]=Створити новий профіль з’єднання
Name[zh_CN]=新建连接配置
Exec=remmina --new

[Desktop Action Tray]
Name=Start Remmina Minimized
Name[ca]=Inicia el Remmina minimitzat
Name[cs]=Spustit Remmina minimalizované
Name[de]=Reminna minimiert starten
Name[el]=Έναρξη του Remmina ελαχιστοποιημένου
Name[es]=Iniciar Remmina minimizado
Name[eu]=Abiatu Remmina minimizatuta
Name[fr]=Démarrer Remmina en mode réduit
Name[hu]=Remmina indítása minimalizálva
Name[it]=Avvia Remmina minimizzato
Name[lt]=Paleisti Remmina suskleistą
Name[nl]=Remmina geminimaliseerd starten
Name[pt_BR]=Iniciar Remmina minimizado
Name[pt_PT]=Iniciar o Remmina Minimizado
Name[ru]=Сворачивать Remmina после запуска
Name[sk]=Spustiť program Remmina minimalizovaný
Name[sv]=Starta Remmina minimerat
Name[tr]=Remmina'yı Küçültülmüş Başlat
Name[uk]=Запустити Rammina у системному лотку
Name[zh_CN]=启动后自动最小化
Exec=remmina --icon

Congratulations. If you did every step correctly you now have installed the latest Remmina.
Image

bakano
Posts: 90
Joined: Wed Mar 01, 2017 11:57 pm
Location: Texas
Contact: Website

Re: How To: Compile & install latest Remmina and FreeRDP from Git

Mon Mar 06, 2017 9:48 pm

THANK YOU THANK YOU THANK YOU!!!

Apologies if there is a "Like" or "Thank" button I missed :)

-JMV :ugeek:

der_eismann
Posts: 27
Joined: Sat Jan 21, 2017 5:10 pm
Location: Berlin

Re: How To: Compile & install latest Remmina and FreeRDP from Git

Tue Mar 07, 2017 3:09 am

You're welcome :) Good to know it helped somebody.

David82cz
Posts: 3
Joined: Thu Nov 10, 2016 5:56 pm

Re: How To: Compile & install latest Remmina and FreeRDP from Git

Wed Apr 05, 2017 9:30 am

Fixed also not working copy & paste issue. Thx a lot.

bakano
Posts: 90
Joined: Wed Mar 01, 2017 11:57 pm
Location: Texas
Contact: Website

Re: How To: Compile & install latest Remmina and FreeRDP from Git

Tue Apr 18, 2017 1:13 pm

As a strange FYI, I *think* the "Solus 2017.04.18.0 Now Released" broke my Remmina, as I now get "Protocol plugin RDP is not installed"; I am going to attempt rebuild from scratch right now.

-JMV

:: EDIT ::
Rebuilding worked (obviously). I'm sure more adept people would have known that rebuilding (or some step inside) FreeRDP would have fixed that. Makes sense if missing RDP plugin... Anway, thank you AGAIN for this post :)

David82cz
Posts: 3
Joined: Thu Nov 10, 2016 5:56 pm

Re: How To: Compile & install latest Remmina and FreeRDP from Git

Thu Apr 20, 2017 9:08 pm

Anyway, why do you (all) need latest Remmina instead of the one available from repository? For me it was just not working copy & paste. I have no time to investigate the issue but: does old remmina from repository works for you including copy & paste?

der_eismann
Posts: 27
Joined: Sat Jan 21, 2017 5:10 pm
Location: Berlin

Re: How To: Compile & install latest Remmina and FreeRDP from Git

Sat Apr 22, 2017 11:08 am

@bakano: Strange, mine is still working fine after the upgrade. But yeah, rebuilding should always work :)

@David82cz: I need it because the repository version has no options to use MS Remote Desktop Gateways (RDGW), I have no experience with copy/paste problems.

tateharmann
Posts: 3
Joined: Wed Aug 30, 2017 10:23 pm

Re: How To: Compile & install latest Remmina and FreeRDP from Git

Wed Sep 27, 2017 5:03 pm

Great! Works like a dream and fixed the clipboard and drive syncing :)

frank1985
Posts: 1
Joined: Thu May 03, 2018 3:30 pm

Re: How To: Compile & install latest Remmina and FreeRDP from Git

Thu May 03, 2018 3:32 pm

Sorry but to me this is garbage. The package is available in the Software Center but doesn't do anything even after installing it.
OS is nice but glitch like that and then need a bunch of command to have it working. It was a nice try of SOLUS.
Switching to another distro.

User avatar
kyrios
Posts: 1859
Joined: Thu Sep 22, 2016 4:20 pm

Re: How To: Compile & install latest Remmina and FreeRDP from Git

Thu May 03, 2018 3:46 pm

frank1985 wrote:
Thu May 03, 2018 3:32 pm
Sorry but to me this is garbage. The package is available in the Software Center but doesn't do anything even after installing it.
OS is nice but glitch like that and then need a bunch of command to have it working. It was a nice try of SOLUS.
Switching to another distro.
Well it's cool to register to say you're leaving. :lol:
Bye !

Return to “Tutorials”