Last active
October 3, 2024 03:25
-
-
Save mausch/168d09d18e354c8e47981b8e44746af9 to your computer and use it in GitHub Desktop.
Run AWS WorkSpaces client on any Linux distro supporting Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eu | |
dockerfile=$(mktemp) | |
trap "rm $dockerfile" EXIT | |
cat << EOF > $dockerfile | |
FROM ubuntu:bionic | |
RUN apt-get update && apt-get install -y wget gnupg2 | |
# https://clients.amazonworkspaces.com/linux-install.html | |
RUN wget -q -O - https://workspaces-client-linux-public-key.s3-us-west-2.amazonaws.com/ADB332E7.asc | apt-key add - | |
RUN echo "deb [arch=amd64] https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu bionic main" | tee /etc/apt/sources.list.d/amazon-workspaces-clients.list | |
RUN apt-get update | |
RUN apt-get install -y workspacesclient | |
CMD /opt/workspacesclient/workspacesclient | |
EOF | |
docker build -t aws-workspaces - < $dockerfile | |
xhost + | |
docker run -it --rm --name aws-workspaces \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-v "$HOME/.aws-workspaces":"/root/.local/share/Amazon Web Services" \ | |
-e DISPLAY=$DISPLAY \ | |
aws-workspaces |
Any luck getting this working with the WSP version?
Any luck getting this working with the WSP version?
For the Nix package, it's being worked on at NixOS/nixpkgs#251976 .
For this Dockerfile, I'm not planning to maintain it any more.
Really nice solution! I just had to add a apt-get upgrade -y
before installing wget
and gnupg2
and now it's running.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FWIW I now use Nix instead of Docker to run this. e.g.