Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update linux install script #1462

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

Mathanraj-Sharma
Copy link
Member

  • Install Chrome only if needed
  • Install matching chrome driver automatically
  • add new lines to make script more readable

@Mathanraj-Sharma Mathanraj-Sharma self-assigned this Mar 8, 2024
Copy link

@sofyanox12 sofyanox12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very helpful for linux users. Thanks!

@pseudotensor
Copy link
Collaborator

(h2ogpt) jon@pseudotensor:~/h2ogpt$ chromeVersion="$(echo $(google-chrome --version) | cut -d' ' -f3)"
(h2ogpt) jon@pseudotensor:~/h2ogpt$ echo $chromeVersion
122.0.6261.111
(h2ogpt) jon@pseudotensor:~/h2ogpt$ wget https://storage.googleapis.com/chrome-for-testing-public/"$chromeVersion"/linux64/chromedriver-linux64.zip
--2024-03-11 10:27:48--  https://storage.googleapis.com/chrome-for-testing-public/122.0.6261.111/linux64/chromedriver-linux64.zip
Resolving storage.googleapis.com (storage.googleapis.com)... 2607:f8b0:4005:80e::201b, 2607:f8b0:4005:811::201b, 2607:f8b0:4005:813::201b, ...
Connecting to storage.googleapis.com (storage.googleapis.com)|2607:f8b0:4005:80e::201b|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8597973 (8.2M) [application/zip]
Saving to: ‘chromedriver-linux64.zip’

chromedriver-linux64.zip                                             100%[====================================================================================================================================================================>]   8.20M  45.5MB/s    in 0.2s    

2024-03-11 10:27:48 (45.5 MB/s) - ‘chromedriver-linux64.zip’ saved [8597973/8597973]

(h2ogpt) jon@pseudotensor:~/h2ogpt$ 

@Mathanraj-Sharma Mathanraj-Sharma merged commit e466c9a into main Mar 11, 2024
2 checks passed
@Mathanraj-Sharma Mathanraj-Sharma deleted the MR/main/update-linux-install-script branch March 11, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants