[PYTHON] [EC2] How to install chrome and the contents of each command

[EC2] How to install chrome and the contents of each command

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.

Download and run shell scripts for chrome installation

#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

1. 1. curl command

・ 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.


## 2. Shell script `https://intoli.com/install-google-chrome.sh`

** 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/


3.|bash `| (Pipe)` └ Connect commands. └ Performs processing on the previously executed content.

bash └ Bash: A type of shell script └ Command to execute a shell script written in Bash


### 4. which command `which command name` └ Display the full path of the execution command
## Summary `curl https://intoli.com/install-google-chrome.sh | bash` ⇛ The shell script at the specified URL is downloaded (curl) and executed (bash).

Recommended Posts

[EC2] How to install chrome and the contents of each command
[EC2] How to install and download chromedriver from the command line
How to use the grep command and frequent samples
[Ubuntu] How to delete the entire contents of a directory
How to see the contents of the Jupyter notebook ipynb file
How to connect the contents of a list into a string
How to install and configure blackbird
How to install CUDA and nvidia-driver
How to install and use Graphviz
[Super easy! ] How to display the contents of dictionaries and lists including Japanese in Python
[Python] How to get the first and last days of the month
How to install pandas on EC2 (How to deal with MemoryError and PermissionError)
[TensorFlow 2] How to check the contents of Tensor in graph mode
How to output the output result of the Linux man command to a file
How to monitor the execution status of sqlldr with the pv command
I summarized how to change the boot parameters of GRUB and GRUB2
How to install and use pandas_datareader [Python]
How to check the version of Django
How to install CatBoost [as of January 2020]
[Linux] How to use the echo command
How to calculate Use% of df command
How to use the Linux grep command
How to install fabric and basic usage
[Python] How to specify the window display position and size of matplotlib
How to find out the number of CPUs without using the sar command
[Introduction to Python] How to sort the contents of a list efficiently with list sort
How to compare if the contents of the objects in scipy.sparse.csr_matrix are the same
How to copy and paste the contents of a sheet in Google Spreadsheet in JSON format (using Google Colab)
How to calculate the volatility of a brand
How to find the area of the Voronoi diagram
[2020 version] How to install Python3 on AWS EC2
How to install Cascade detector and how to use it
How to pass the execution result of a shell command in a list in Python
How to make VS Code aware of the venv environment and its benefits
[Bash] While read, pass the contents of the file to variables for each column
How to count the number of elements in Django and output to a template
How to access the contents of a Linux disk on a Mac (but read-only)
A memorandum of how to execute the! Sudo magic command in Jupyter Notebook
How to install the deep learning framework Tensorflow 1.0 in the Anaconda environment of Windows
How to create an article from the command line
How to know the port number of the xinetd service
How to write a GUI using the maya command
Template of python script to read the contents of the file
How to delete the specified string with the sed command! !! !!
How to get the number of digits in Python
How to install Python
[Blender] How to get the selection order of vertices, edges and faces of an object
Open Chrome version of LINE from the command line [Linux]
How to visualize the decision tree model of scikit-learn
How to install Git GUI and Gitk on CentOS
How to install python
[Blender] Summary of how to install / update / uninstall add-ons
Linux user addition, how to use the useradd command
How to install BayesOpt
Try to get the contents of Word with Golang
How to confirm the Persival theorem using the Fourier transform (FFT) of matplotlib and scipy
[Blender] How to dynamically set the selection of EnumProperty
Install the pip command
How to use argparse and the difference between optparse
[Python] Summary of how to specify the color of the figure
How to hit the document of Magic Function (Line Magic)