Skip to content

Instantly share code, notes, and snippets.

@sboorlagadda
Forked from lashex/amazon-linux-x11-instr.txt
Last active June 21, 2018 15:06
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 sboorlagadda/db0c79b90a55d5f4d78253bf75d55635 to your computer and use it in GitHub Desktop.
Save sboorlagadda/db0c79b90a55d5f4d78253bf75d55635 to your computer and use it in GitHub Desktop.
Getting Amazon Linux working with X11
# These instructions assume you are using a Linux or Mac machine as
# the “local” machine and an Amazon Linux as the “remote” machine.
# Here’s one way to get X11 working between the two.
# on the local machine (Linux or Mac with X11 already installed)
$ ssh -X -i <amazon_key.pem> ec2-user@<remote_ec2_box_name>
# then on the remote Amazon Linux EC2 box
$ sudo yum install xauth
$ sudo yum install xterm
$ sudo yum install xorg-x11-apps
$ xeyes
# should result in the XEyes application displaying on the local machine
# install gcc
#64-bit (`x86_64`) C library and headers
yum install libgcc
yum install glibc-devel
# 32-bit (‘i386’) C library and headers
yum install libgcc.i686
yum install glibc-devel.i686
# Install libX11
#64-bit (`x86_64`)
yum -y install libX11
# 32-bit (‘i386’)
yum -y install libX11.i686 for 32-bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment