Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Google cloud shell中打开firefox?_Firefox_Gcloud_Google Cloud Shell_X11 Forwarding - Fatal编程技术网

如何在Google cloud shell中打开firefox?

如何在Google cloud shell中打开firefox?,firefox,gcloud,google-cloud-shell,x11-forwarding,Firefox,Gcloud,Google Cloud Shell,X11 Forwarding,我已经使用ssh连接到google cloud shell并安装了firefox,但无论我在哪里尝试运行firefox,都会出现此错误error:未指定显示环境变量。 我已经在我的windows 10计算机上安装了Xming,将DISPLAY设置为localhost:0.0,但每当我运行它时都会出现此错误 Unable to init server: Broadway display type not supported: localhost:0.0 Error: cannot open dis

我已经使用ssh连接到google cloud shell并安装了firefox,但无论我在哪里尝试运行
firefox
,都会出现此错误
error:未指定显示环境变量
。 我已经在我的windows 10计算机上安装了Xming,将
DISPLAY
设置为
localhost:0.0
,但每当我运行它时都会出现此错误

Unable to init server: Broadway display type not supported: localhost:0.0
Error: cannot open display: localhost:0.0

做什么请帮忙

您是否需要在Cloud Shell上运行Firefox?这是可能的,但很复杂,您需要将主机公开到公共Internet,以便云Shell VM可以访问它。如果您的需求允许您在本地(从Windows主机)运行Firefox,那么您可以使用ssh远程访问云Shell服务,以将端口转发到云Shell VM。这应该解决浏览云Shell托管服务的许多用例。是的,我实际上需要一个适当的X11转发配置。