Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarryDk/9a5cb7e2d8e772ee6db3299bdf571510 to your computer and use it in GitHub Desktop.
Save jarryDk/9a5cb7e2d8e772ee6db3299bdf571510 to your computer and use it in GitHub Desktop.
How to install Amazon Workspaces Linux Client for Fedora

Amazon Workspaces Linux client - RPM installation

Overview

The good news is that there is an Amazon Workspaces Linux client. If you happen to use Ubuntu, you can use the [official instructions](https://docs.aws.amazon.com/workspaces/latest/userguide/amazon-workspaces-linux-client.html#linux_setup Amazon Workspaces Linux client docs). But what if you're on an rpm-friendly distribution like Fedora or CentOS?

alien to the rescue.

How to

Get the .deb package

Download the file from the Workspaces Linux client page.

wget "https://d3nt0h4h6pmmc4.cloudfront.net/workspacesclient_amd64.deb"

Create rpm

If you don't have alien, get it.

sudo dnf install alien

To avoid an error file / from install of ... conflicts with package from ..., we need to repackage manually.

sudo alien -rgv workspacesclient_amd64.deb

Now, remove the %dir / entry from the spec file.

sudo sed -i '/^%dir "\/"$/d' workspacesclient-4.1.0.1523/workspacesclient-4.1.0.1523-2.spec

Build the rpm package.

cd workspacesclient-4.1.0.1523 && \
    sudo rpmbuild --buildroot `pwd` -bb workspacesclient-4.1.0.1523-2.spec && \
    cd -

Did it work?

sudo rpm --query --info --package ./workspacesclient-4.1.0.1523-2.x86_64.rpm 

You should see output like this...

Name        : workspacesclient
Version     : 4.1.0.1523
Release     : 2
Architecture: x86_64
Install Date: (not installed)
Group       : Converted/misc
Size        : 94810300
License     : see /usr/share/doc/workspacesclient/copyright
Signature   : (none)
Source RPM  : workspacesclient-4.1.0.1523-2.src.rpm
Build Date  : Sat 14 May 2022 20:26:38 CEST
Build Host  : fedora
Summary     : Amazon WorkSpaces Client for Ubuntu 18.04
Description :


(Converted from a deb package by alien version 8.95.)

Install

sudo dnf localinstall workspacesclient-4.1.0.1523-2.x86_64.rpm

If it worked as expected, you should see the executable installed as /opt/workspacesclient/workspacesclient. You should also see a shortcut.

Specifically:

  1. Set up a (virtual) instance (using an Ubuntu-ish x86 image, e.g., https://lubuntu.me/downloads/).
  2. Set up alien in that virtual instance (as described above) to get an RPM.
  3. Install that RPM on Fedora.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment