Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Update setup-Linux-amzn-2.sh #1033

Merged
merged 14 commits into from
Jan 10, 2022
Merged

Update setup-Linux-amzn-2.sh #1033

merged 14 commits into from
Jan 10, 2022

Conversation

dchassin
Copy link
Member

This PR fixes the EC2 setup script.

Current issues

None

Code changes

  • Add xz-devel to the setup script.

Documentation changes

None

Test and Validation Notes

None

@dchassin dchassin added the bug Request a fix or change to the code label Nov 17, 2021
@aivanova5 aivanova5 marked this pull request as draft November 22, 2021 19:48
@catzzz
Copy link
Contributor

catzzz commented Jan 7, 2022

This PR fixes the EC2 setup script and sets the environment variable in EC2 #1066.

Current issues

There might be a better way to set the environment variable in EC2 in the first time installation.
A global variable was set in setup-Linux-amzn-2.sh.

echo "export PATH=/usr/local/bin:$PATH" >> /etc/profile.d/setVars.sh && \
source /etc/profile.d/setVars.sh

However, the PATH will be written into memory after reboot. So I have to change the installation process to avoid rebooting the server.

Documentation changes

AWS EC2 Installation

  1. Set the path variable
host% sudo su
host% export PATH=/usr/local/bin:$PATH
  1. Change work dictionary and clone GitHub repository
host% cd /usr/local/src
host% git clone https://github.com/slacgismo/gridlabd gridlabd
  1. Run installation
host% gridlabd/install.sh

@catzzz catzzz marked this pull request as ready for review January 7, 2022 23:39
@dchassin dchassin mentioned this pull request Jan 9, 2022
23 tasks
@dchassin
Copy link
Member Author

dchassin commented Jan 9, 2022

Tested out ok c3.2xlarge.

@aivanova5 aivanova5 merged commit 422e47c into develop Jan 10, 2022
@aivanova5 aivanova5 deleted the develop-fix-amzn2-setup branch January 10, 2022 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Request a fix or change to the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants