質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Cloud9

Cloud9は、クラウドからのプログラミングが可能になるWebサービス。IDEとしての機能が搭載されており、GitHubやHerokuなど他ツールとの連携も可能です。ブラウザ上で動くため、デバイスに関係なく開発環境を準備できます。

Chrome

Google Chromeは携帯、テレビ、デスクトップなどの様々なプラットフォームで利用できるウェブブラウザです。Googleが開発したもので、Blink (レンダリングエンジン) とアプリケーションフレームワークを使用しています。

Q&A

2回答

2733閲覧

AWS cloud9でchromeを動かしたいです。

jack_kanzaki

総合スコア106

Cloud9

Cloud9は、クラウドからのプログラミングが可能になるWebサービス。IDEとしての機能が搭載されており、GitHubやHerokuなど他ツールとの連携も可能です。ブラウザ上で動くため、デバイスに関係なく開発環境を準備できます。

Chrome

Google Chromeは携帯、テレビ、デスクトップなどの様々なプラットフォームで利用できるウェブブラウザです。Googleが開発したもので、Blink (レンダリングエンジン) とアプリケーションフレームワークを使用しています。

0グッド

0クリップ

投稿2019/11/22 11:18

実現したいこと

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:

よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

一連の問題をqittaにまとめてみました。
https://qiita.com/jack_kanzaki/items/84cb6e56d0cf71ac3dbe

投稿2019/11/28 05:14

jack_kanzaki

総合スコア106

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

Cloud9の環境はAmazon Linuxです。
こちらが参考になりそうです

投稿2019/11/22 16:11

yu_1985

総合スコア7440

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

jack_kanzaki

2019/11/23 02:32

ご回答ありがとうございます。 そちらも参考にしてみたのですが、エラー内容が解決されませんでした。 引き続きよろしくお願いします。
jack_kanzaki

2019/11/25 01:57

ec2-user:~/environment $ cat /etc/system-release Amazon Linux AMI release 2018.03
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問