Sunday, January 25, 2015

Installing rdesktop on Centos 7

I'll briefly summarize this blog post on installing rdesktop on Centos 7.

First, we'll set up the RPM build environment (as your local user):

$ sudo yum install rpm-build make gcc
$ mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
$ echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros

Now, fetch and install the source package:

$ wget http://pkgs.repoforge.org/rdesktop/rdesktop-1.8.2-0.1.rfx.src.rpm
$ rpm -i rdesktop-1.8.2-0.1.rfx.src.rpm

Install devel dependencies and build:

$ sudo yum install openssl-devel libXt-devel libsamplerate-devel pcsc-lite-devel
$ rpmbuild -ba ~/rpmbuild/SPECS/rdesktop.spec 
$ sudo yum localinstall ~rpmbuild/RPMS/x86_64/rdesktop-1.8.2-0.1.el7.centos.x86_64.rpm