実現したいこと
AWS上で、google-chromeが動くようにする。
試してみたこと
AWS
1ec2-user:~/environment $ curl https://intoli.com/install-google-chrome.sh | bash 2 % Total % Received % Xferd Average Speed Time Time Time Current 3 Dload Upload Total Spent Left Speed 4100 9526 100 9526 0 0 11877 0 --:--:-- --:--:-- --:--:-- 11863 5Working in /tmp/google-chrome-installation 6/tmp/google-chrome-installation /home/ec2-user/environment 7Configuring the Google Chrome repo in /etc/yum.repos.d/google-chrome.repo 8Loaded plugins: priorities, update-motd, upgrade-helper 9google-chrome | 1.3 kB 00:00:00 101065 packages excluded due to repository priority protections 11Package wget-1.18-5.30.amzn1.x86_64 already installed and latest version 12Nothing to do 13--2019-11-22 09:07:58-- https://dl.google.com/linux/linux_signing_key.pub 14Resolving dl.google.com (dl.google.com)... 216.58.197.174, 2404:6800:4004:801::200e 15Connecting to dl.google.com (dl.google.com)|216.58.197.174|:443... connected. 16HTTP request sent, awaiting response... 200 OK 17Length: 10218 (10.0K) [application/octet-stream] 18Saving to: ‘linux_signing_key.pub’ 19 20linux_signing_key.pub 100%[=====================================>] 9.98K --.-KB/s in 0s 21 22(80.2 MB/s) - ‘linux_signing_key.pub’ saved [10218/10218] 23 24Attempting a direction installation with yum. 25Loaded plugins: priorities, update-motd, upgrade-helper 261065 packages excluded due to repository priority protections 27Package google-chrome-stable-78.0.3904.108-1.x86_64 already installed and latest version 28Nothing to do 29Successfully installed Google Chrome! 30 31 32 33ec2-user:~/environment $ cd /etc/yum.repos.d 34 35 36 37ec2-user:/etc/yum.repos.d $ ls 38amzn-main.repo amzn-preview.repo epel.repo google-chrome.repo 39amzn-nosrc.repo amzn-updates.repo epel-testing.repo 40
AWS
1ec2-user:/usr/bin $ which google-chrome-stable 2/usr/bin/google-chrome-stable 3 4 5 6ec2-user:/usr/bin $ google-chrome-stable --version 7Google Chrome 78.0.3904.108 8 9 10 11ec2-user:/usr/bin $ yum info google-chrome-stable 12Loaded plugins: priorities, update-motd, upgrade-helper 131065 packages excluded due to repository priority protections 14Installed Packages 15Name : google-chrome-stable 16Arch : x86_64 17Version : 78.0.3904.108 18Release : 1 19Size : 214 M 20Repo : installed 21Summary : Google Chrome
問題となっているエラーの箇所
AWS
1ec2-user:/usr/bin $ google-chrome-stable 2[4784:4784:1122/091149.992493:ERROR:browser_dm_token_storage_linux.cc(100)] Error: /etc/machine-id contains 0 characters (32 were expected). 3 4(google-chrome-stable:4784): Gtk-WARNING **: 09:11:50.081: cannot open display:
よろしくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。