google-compute-engine

Using FFMPEG on Google Cloud Platform

可紊 提交于 2020-05-27 06:59:07
问题 I'm storing audio files on Google Cloud Storage (through Firebase storage). I need to use FFMPEG to convert the audio file from stereo (two channels) to mono (one channel). How can I perform the above conversion on Google Cloud Platform? Update: I suspect one possibility is to use Google Compute Engine to create a virtual machine, install ffmpeg, and somehow gain access to the audio files. I'm not sure if this is the best way or even possible. So I'm still investigating. 回答1: If you have code

Using FFMPEG on Google Cloud Platform

£可爱£侵袭症+ 提交于 2020-05-27 06:59:05
问题 I'm storing audio files on Google Cloud Storage (through Firebase storage). I need to use FFMPEG to convert the audio file from stereo (two channels) to mono (one channel). How can I perform the above conversion on Google Cloud Platform? Update: I suspect one possibility is to use Google Compute Engine to create a virtual machine, install ffmpeg, and somehow gain access to the audio files. I'm not sure if this is the best way or even possible. So I'm still investigating. 回答1: If you have code

System Time becomes incorrect on reboot of VMs

ぐ巨炮叔叔 提交于 2020-05-15 08:24:25
问题 Ever since virtualizing several physical servers into GCP, I have had an issue where anytime the servers(s) are rebooted the time is changed to be several hours ahead (I think it's 4 hours, but may be 6 hours). My local office is located in CST time zone and that is what we want the server to display. In GCP the virtual servers are in the us-central1a zone. On the virtual server, run the tzutil /g command it shows that the server is set to "central standard time". It also shows Central

How to find, list, or search resources across services (APIs) and projects in Google Cloud Platform?

不羁的心 提交于 2020-05-08 05:55:08
问题 In Google Cloud Platform (GCP), you can use list APIs or commands to list resources in a given project for a given type in a given service, like BigQuery datasets or compute instances. But how to find or search resources across types, services, or even projects? 回答1: You can use search-all-resources to search all the resources across services (or APIs) and projects for a given organization, folder, or project. To search all the resources in a project with number 123: $ gcloud beta asset

Google Cloud Compute engine CPU usage shows 100% but dashboard only shows 10% usage

浪子不回头ぞ 提交于 2020-04-18 17:03:40
问题 I am running a multiprocessing program and i expect the CPU usage to be close to 100%. It did show 100% when i run top command However, the dashboard seem only shows 10% usage My Machine Setup is as follow: I am curious whether this is the problem of google cloud? or i am misunderstanding some concept? 回答1: In the top output on a particular process row the 100% refers to a single CPU core (as seen by the OS), not all of them. If you press the 1 key top will also display the per-core CPU usage

Google Cloud Compute engine CPU usage shows 100% but dashboard only shows 10% usage

。_饼干妹妹 提交于 2020-04-18 17:02:42
问题 I am running a multiprocessing program and i expect the CPU usage to be close to 100%. It did show 100% when i run top command However, the dashboard seem only shows 10% usage My Machine Setup is as follow: I am curious whether this is the problem of google cloud? or i am misunderstanding some concept? 回答1: In the top output on a particular process row the 100% refers to a single CPU core (as seen by the OS), not all of them. If you press the 1 key top will also display the per-core CPU usage

Error: validation failed: [serviceaccounts “nginx-ingress” not found, serviceaccounts “nginx-ingress-backend” not found,

三世轮回 提交于 2020-04-17 22:19:13
问题 getting this error from today evening in google cloud . Something happened wrong with gcloud. Same commands were working till yesterday. helm install --name nginx-ingress stable/nginx-ingress --set rbac.create=true --set controller.publishService.enabled=true i have followed steps: https://cloud.google.com/community/tutorials/nginx-ingress-gke enter image description here (mykubeproject1)$ helm install --name nginx-ingress stable/nginx-ingress --set rbac.create=true --set controller

compute engine startup script can't execute as a non-root user

限于喜欢 提交于 2020-04-10 08:36:07
问题 Boiling my issue down to the simplest case, I'm using Compute Engine with the following startup-script: #! /bin/bash sudo useradd -m drupal su drupal cd /home/drupal touch test.txt I can confirm the drupal user exists after this command, so does the test file. However I expect the owner of the test file to be 'drupal' (hence the su). However, when I use this as a startup script I can still confirm ROOT is the owner of the file: meaning my su drupal did not work. sudo su drupal also does not

How can I connect to a Google Compute Engine virtual server with a GUI?

扶醉桌前 提交于 2020-04-09 17:55:21
问题 I am testing a Google Compute Engine, and I created a VM with Ubuntu OS. When I connect to it, by clicking this Connect SSH button, it opens a console window. Is that the connection you get? How do I open a real screen with a GUI on it? I don't want the console. 回答1: Much better solution from Google themselves: https://medium.com/google-cloud/linux-gui-on-the-google-cloud-platform-800719ab27c5 回答2: You need to forward the X11 session from the VM to your local machine. This has been covered in

gcloud compute execute command remotely

自作多情 提交于 2020-04-07 14:33:48
问题 Currently, if I want to execute something on a VM, I copy files over like this: gcloud compute --project <project_id> copy-files --zone <zone_name> /home/roman/source/dir roman@<vm_name>:/some/path Then I need to SSH into it manually like this: gcloud compute --project <project_id> ssh --zone <zone_name> <vm_name> And then go and run some command: cd /some/path python example.py How do I combine step 2 and 3 together and execute a command remotely? Note: I want to use gcloud or the python api