Raja_KT
Architect
Architect
  • UID6384
  • Fans3
  • Follows3
  • Posts554
Reads:4063Replies:4

How to invoke a browser, chrome or firefox from ECS commandline?

Created#
More Posted time:Jul 30, 2019 16:28 PM
I did invoke a broswer from Linux commandline, using Moboxterm etc . But now in ECS, I could not invoke, trying to configure google-chrome repo or even firefox.


How to invoke a browser, chrome or firefox from ECS commandline? It should be google-chrome & or firefox & after installing. But it does not work.


Any blog or link or any set up? I am able to download, other stuffs thru wget and I tested Anaconda, jupyter. But now the invoking of browser from commandline does not work.
Street children suffer not because of their fault. We can help them if we want.Contact me.

kcloud
Intern
Intern
  • UID7778
  • Fans0
  • Follows0
  • Posts7
1st Reply#
Posted time:Jul 31, 2019 23:21 PM
Hi,

I don't think you can launch a full browser like Chrome or Firefox on an ECS instance,
but you can launch these browsers in headless environment.

Have a look at the following blog post:
https://cloudcpu.blogspot.com/2019/07/headless-chrome-in-alibaba-cloud-ecs.html

Cheers!

afzaalvirgoboy
Intern
Intern
  • UID6091
  • Fans0
  • Follows0
  • Posts15
2nd Reply#
Posted time:Aug 1, 2019 6:07 AM
Hi, can you show the attempt that you have made to try to perform this action?

Raja_KT
Architect
Architect
  • UID6384
  • Fans3
  • Follows3
  • Posts554
3rd Reply#
Posted time:Aug 1, 2019 14:29 PM
You mean me? I launched ECS and then how to spawn a browser from within the ECS. Now I use Ubuntu from local and then it works. Just check Ubuntu 18.04 and you can set up easily.
Street children suffer not because of their fault. We can help them if we want.Contact me.

kcloud
Intern
Intern
  • UID7778
  • Fans0
  • Follows0
  • Posts7
4Floor#
Posted time:Aug 15, 2019 13:14 PM
Hi,

I was able to install GUI on my ECS by referring:
https://www.alibabacloud.com/help/faq-detail/41227.htm

And then I installed Google Chrome, using following commands on terminal:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

Then I tried to launch Google Chrome using command:
google-chrome

but it didn't worked.

So, I searched for it and found:
https://askubuntu.com/a/759384

Now typing following command launches Google Chrome successfully:
google-chrome-stable

Hope this helps!
Guest