AWS Experience
Sun, Sep 25, 20221. Other Notes
2. AWS Account
Takes about 10 minutes, but is fraught with dead ends. Ask for help! Following AWS advice we didn't want to operate as root, and it took a while to figure out how to create a group, put an IAM user in that group, and give that user admin privs.
To go directly to AWS-west management console:
https://us-west-2.console.aws.amazon.com/console/home?region=us-west-2
- Select EC2 to get to instance screen
- Orange button to start instance
- Name it, use Amazon Linux OS
- configure storage 8 Gb is default, I upped it to 20, 30 is max
- create your ssh key pair, will be prompted to save it to your local machine.
launch instance (orange button)
new page will say success, maybe hit "view more resources to get you started" at the bottom of the page and select "How to connect to your linux instance" on RHS panel that comes up
3. Slogin
Go back to your EC2 dashboard , you will see your one instance running, click on it to remember the name of the IP address for the instance.
Mine is: ec2-35-87-40-5.us-west-2.compute.amazonaws.com
chirpaws.cer
Put key in ~/.ssh (not necessary)
make sure all group, others privs on key are removed Login:
ssh -i Users/strow.ssh/chirpaws.cer ec2-user@ec2-35-87-40-5.us-west-2.compute.amazonaws.com
4. Now login
sudo yum install emacs
wget https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.1-linux-x86_64.tar.gz (few seconds) tar zxvf julia-1.8.1-linux-x86_64.tar.gz (few secconds) sudo mv julia-1.8.1 /opt/ (for safety and a common approach) PATH=$PATH:$HOME/.local/bin:$HOME/bin:/opt/julia-1.8.1/bin export PATH
5. X11 Stuff
$ ssh -X -i <amazon_key.pem> ec2-user@<remote_ec2_box_name>
$ sudo yum install xauth $ sudo yum install xterm $ sudo yum install xorg-x11-apps $ xeyes
FIX xauthority problem below
Under root privileges open /etc/ssh/sshd_config and uncomment the following lines if they are commented:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
Then logout and login again with -X flag in ssh. You do not have to set or unset DISPLAY environment variable.
Share