Preparation for running selenium on EC2. Only the chrome installation part is cut out to check the contents of the execution command.
Assumption: Connected to the EC2 instance with ssh.
#This one sentence completes the chrome installation on EC2
curl https://intoli.com/install-google-chrome.sh | bash
Complete! <-Successful installation
Successfully installed Google Chrome!
#Rename file
sudo mv /usr/bin/google-chrome-stable /usr/bin/google-chrome
#Check version
google-chrome --version && which google-chrome
Google Chrome 83.0.4103.61 <- --execution result of version
/usr/bin/google-chrome <-Execution result of which
・ You can download and upload files. ・ Can be accessed by specifying UserAgent ・ Can be accessed using cookies
** ▼ Difference from wget command **
Both can download and upload files.
wget
└ You can follow the link. You can download the file corresponding to the specified extension.
curl
└ Many protocols are supported. User authentication, proxy specification, SSL authentication, etc. can be performed.
** Extension ".sh" ** └ Shell script └ Text file containing instructions to the shell --Shell: A program that executes processing on a PC (command prompt, gitbash, etc.)
intoli.com └ US WEB data analysis consulting company site
One US company has created a shell script that can install chrome on linux and distributed it for free. It is used on multiple sites and there seems to be no problem ...
> Details: https://intoli.com/blog/installing-google-chrome-on-centos/
bash
└ Bash: A type of shell script
└ Command to execute a shell script written in Bash
Recommended Posts