As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [google-cloud]

For questions relating to the Google Cloud Platform.

Filter by
Sorted by
Tagged with
1 vote
1 answer
17 views

Why would Linux Docker fail downloading files from private gcr.io?

Issue So... I have tested many different commands and it all works great except docker pull gcr.io/... which always says I don't have enough permissions: ERROR: unauthorized: You don't have the ...
Alexis Wilke's user avatar
  • 2,613
-3 votes
0 answers
44 views

no suitable video mode found booting in blind mode kali Linux [closed]

no suitable video mode found booting in blind mode kali Hp z440 workstation tower pc Plz help me fix the error
Hassaan Raza's user avatar
0 votes
1 answer
23 views

Link home directory to filestore

I have two GCE instance (RHEL8) and a common file store mounted as /filestore on both instance. How can we link the existing /home to /filestore/home as shared storage for users home directory. Note: ...
Siva's user avatar
  • 8,917
0 votes
0 answers
13 views

Not able to run application using external IP in GCP

I have set up an ubuntu 18.04 machine with 16 gb memory in GCP. Have reserved a static address and created a firewall rule where i have allowed TCP port 8888. Source IP range I have given 0.0.0.0/32 ...
Talib's user avatar
  • 1
0 votes
0 answers
14 views

Is it possible to get logs from a local Linux machine to GCP Logging?

I have a couple of local Linux CentOS (Not GCP VMs) machines that I need to get logs from and send to Google Cloud Logging. I see many methods to streamline logs from GCP VMs to Google Cloud Logging, ...
Anup Amin's user avatar
  • 101
4 votes
0 answers
70 views

How to fully copy linux instance to another machine

I have a remote google cloud instance which runs Debian GNU/Linux 11 (bullseye), and I would like to create not nessesarily a copy of it, but rather I would like to copy everything that is installed ...
user9102437's user avatar
1 vote
1 answer
47 views

Cannot write to file in linux environment

I am using GCP Linux virtual machine and trying to execute a file and write the results into a new file. The code looks like this: ./segment.sh inputfile.txt > outputfile.txt However when I do ...
halo09876's user avatar
  • 111
0 votes
1 answer
156 views

Can't modprobe einj in VM / cloud services

I tried to modprobe einj on VM or Google cloud VM both got the same result as below: [test@instance-1 ~]$ sudo su [root@instance-1 test]# modprobe einj modprobe: ERROR: could not insert 'einj': No ...
Mark K's user avatar
  • 697
2 votes
1 answer
3k views

How can I download and sync my google photos to Linux?

I have alot of photos on my google account, it's painless too upload pictures there but what do I do if I want to download and sync them to my Linux system?
somethingSomething's user avatar
0 votes
0 answers
26 views

Setting Up OpenVPN Client on GCP VM Running Debian 10

I have set up an OpenVPN client for the organization I work for in order to connect to the servers which are hosted by another organization whom we have partnered with. I have set up the OpenVPN ...
Harith's user avatar
  • 101
1 vote
0 answers
301 views

Proper config settings for OpenVPN server to route through GCP Cloud VPN Gateway?

Scenario I want to connect my team to a remote server via a VPN. This VPN has to go through some rules the remote server has which are described below. I have setup OpenVPN but am open to trying any ...
coderintherye's user avatar
0 votes
0 answers
433 views

How can I enable cgroups v2 in RHEL8?

I am trying to find a way to enable cgroups in RHEL8 on Google Cloud. Their file system is quite difficult to use. There is nothing in "sys/fs/cgroups" or "/etc/systemd/system.control/...
Inan Onder Guden's user avatar
0 votes
1 answer
137 views

gdrive not working on Fedora 35

I would like to access my cloud data on Google Drive from terminal, so I have downloaded gdrive from this source; I have selected gdrive_2.1.1_linux_amd64.tar.gz since I am on Fedora 35 with a 64 bit ...
Noumeno's user avatar
  • 173
0 votes
0 answers
174 views

How can I launch apps or execute terminal commands in an Ubuntu 20.04.3 Docker container running on Google Cloud Run?

I am running an Ubuntu 20.04.3 desktop in the cloud on Google Cloud Run. When I run the container image locally, I can run any process, including a bash terminal. However, on Google Cloud Run, ...
jmort253's user avatar
  • 285
0 votes
1 answer
477 views

"EOF in backquote substitution" when trying to run a binary file

I get the following error when trying to run a binary file with the command: tmp/123.bin tmp/123.bin: 1: tmp/123.bin: Syntax error: EOF in backquote substitution I have no idea what could be causing ...
kess's user avatar
  • 103
0 votes
1 answer
689 views

Using SCP in a Bastion VM setup with an established SSH tunnel

I am looking at ways to mitigate the potential for using scp commands within GCE VMs that are running CentOS 8. Current setup is a bastion VM being able to SSH into a secondary VM (instance-1). I have ...
rk92's user avatar
  • 103
0 votes
0 answers
468 views

Unable to create a new directory in a mounted path on GCP VM

I have a GCP VM instance. A GCP storage has been mounted in that instance. I am unable to create a new directory in that mounted directory. I created the directory using: mkdir gcs I then mounted ...
Dawood Abbas 's user avatar
0 votes
1 answer
47 views

Install Sohpos VPN/Open VPN on GCE ubuntu

I am new to using Linux, and am trying to install the Sophos SSL VPN Client/Open VPN on a Google Compute Engine (GCE) running ubuntu-1604-xenial-v20210224. The instructions I have seen all refer to ...
LinuxNewbie2021's user avatar
0 votes
0 answers
34 views

Replacing Google Cloud Print in Raspbian based order printer

For the past couple of years, I have been running an automated order printer for packing orders from my webshop. Until now, I have made the webserver create a PDF of the order contents, and sent that ...
user2806026's user avatar
0 votes
1 answer
131 views

write a carriage return to a file in cloud shell

I have a file which is havig '\n' at the end of each record of a given file. I would like to have '\r\n' at the end of each record. I tried below but upon checking on notepad++.. see same line ...
vikrant rana's user avatar
1 vote
0 answers
41 views

How to personalize dotfiles on gcp instances

On gcp (google cloud), the first time a user connects (via ssh) to a vm a new home directory is created and dotfiles are populated from /etc/skel. How can I configure things to get user specific ...
William Pursell's user avatar
0 votes
0 answers
49 views

What's wrong with this background command?

In a Google Cloud Debian VM, I'm running the following command on the Bash shell: python programname.py > output.txt & I want it to pass its stdout to output.txt and run the program in the ...
magmacollaris's user avatar
2 votes
1 answer
285 views

bcache fails to attach local ssd as caching device in google cloud

I'm trying to setup bcache in an instance in google cloud using a raid of local SSDs as caching device but everything fails in the attach phase of the process. For testing purposes I created a new ...
Demian's user avatar
  • 21
2 votes
0 answers
1k views

GCP wget (and curl) fails to download file Error 403

I started using GCP (Google Cloud Platform) recently. I created an Ubuntu VM in Google Cloud Engine, and wanted to download some files from a website via wget. I am able to download it using a normal ...
Lucas Thimoteo's user avatar
1 vote
0 answers
290 views

Can't change netmask to other than /32 for a Debian virtual machine created on google cloud platform

I have created two virtual machines in google cloud platform both are on the same VPC 10.164.0.0/20. One machine is configure with static IP 10.164.0.2, and the other machine is configure with static ...
Alejandro Lichtenfeld's user avatar
1 vote
1 answer
609 views

Fastest way to download data from GCS bucket

We have millions of files in some GCS bucket and I normally use GSUTIL to download some files based on some pattern to my local. gsutil -m cp -R "gs://test-bucket-data-ingest/cm_data/AAA_AN/CM/*/...
vikrant rana's user avatar
1 vote
1 answer
1k views

coverting timestamp to epoch seconds and vice versa in PostgresSQL

I can run below queries to get the epoch seconds from date and can covert back them to given date in Google bigquery. For example: select unix_seconds(timestamp('2020-12-04 00:00:00')), unix_seconds(...
vikrant rana's user avatar
1 vote
1 answer
313 views

gcloud setting up zsh alias

I was trying to set up some alias command and function for gcloud. I have written below function and running it in zsh in mac. It runs fine when I pass c and i as individual arguments but not when I ...
Learner's user avatar
  • 267
0 votes
1 answer
353 views

Shell causing error in referencing variable in query

I am executing a query in shell to access Google Bigquery table. Cannot figure out what is causing the error. #!/bin/bash file_path='/home/vikrant_singh_rana/test_bq_file.csv' { read while ...
vikrant rana's user avatar
1 vote
1 answer
3k views

Using multiple alias in a single command

I'm facing problem in using multiple alias in a single line on Mac bash Terminal. I have setup below alias in my .bash_profile file alias gc=gcloud alias cmp=compute alias ins=instances alias pdev=&...
Learner's user avatar
  • 267
1 vote
1 answer
781 views

Why can I get man pages for section 1, but not for section 2 and section 3 on a google cloud VM?

I'm running Centos7 on a google cloud VM. I've installed man but can get man pages only for section 1 of the manual. Even as root, I can only get man pages for section 1. For example with the section ...
Richard Gostanian's user avatar
1 vote
0 answers
26 views

How to use eCryptfs under Google Cloud Shell?

I am trying to use ecryptfs under Google Cloud Shell. Google Cloud Shell is a virtual machine running Debian GNU/Linux 9. I installed ecryptfs-utils package using command: sudo apt install ecryptfs-...
FedKad's user avatar
  • 550
2 votes
1 answer
380 views

ssh config to start session with google cloud compute instance using gcloud cli command

I would like to use my ssh config to use a google cloud cli (gcloud) to connect to google compute instances. (This is a follow-on to another question I asked, that had a working solution, but didn't ...
shortcipher3's user avatar
1 vote
2 answers
1k views

ssh config to start session with google cloud compute instance

I would like to use my ssh config to use a google cloud compute instance as a jumpbox to connect to another box. However, I am having problems getting a config that will allow me to even connect to ...
shortcipher3's user avatar
1 vote
1 answer
2k views

How to force a custom disk encryption on a google cloud compute instance (gcloud)?

Google cloud services (computing instance) offer encryption by default for disk storage, the customer can provide its own key with the feature customer supplied encryption (detailed here also). How ...
intika's user avatar
  • 13.7k
0 votes
0 answers
165 views

Can't install helm on Debian (Pop_OS) because of a 404. How can I get around that?

I am running this script from the cloud.google.com doc: # Create environment variable for correct distribution export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" # Add the Cloud SDK distribution ...
xetra11's user avatar
  • 506
1 vote
3 answers
607 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
Amit Yadav's user avatar
0 votes
1 answer
762 views

Unable to open VS Code on Ubuntu VM instance on Google Cloud

I am facing a problem when trying to open VS Code on my Virtual machine in Google cloud using VNC viewer.  It's Real VNC, and I checked that vscode is not running in multiple VNC sessions. The VM is ...
spock's user avatar
  • 1
1 vote
0 answers
404 views

Problem when piping stdin to tar

I need to write data (multiple files and directories) from a Google cloud storage bucket onto a Tar archive on my local disk. The directories are multiple TB, so I do not want to create the Tar ...
Benjamin Antin's user avatar
1 vote
1 answer
884 views

How to install Google Cloud completion in NixOS with Oh-My-Zsh?

Oh-my-zsh has a plugin option (plugins = (gcloud, ...)) which allows installing gcloud completions. When I add "gcloud" to plugins, I expect that the completion will be sourced during shell ...
Justin Shenk's user avatar
9 votes
3 answers
5k views

With Ansible, is it possible to connect connect to hosts that are behind Cloud IAP (Identity-Aware Proxy) in GCP?

Cloud IAP is a sort of proxy for Google Cloud Platform that lets you connect to compute instances that don't have public IP addresses, without a VPN. You stand up an instance and then you can use the ...
mat's user avatar
  • 153
0 votes
1 answer
61 views

write mistake bash_profile

I am using GCE, I want to install Scala on Google Cloud Shell, so I first install the brew, however when I added the brew path to bash_profile, I did a mistake. First of All, I downloaded the brew. ...
arron's user avatar
  • 1
0 votes
0 answers
141 views

How to verify my google cloud storage downloads of csv files are successful?

I have created some shell script to put the data into google cloud storage from some source and download that into my local. I am able to do it and the job is also running fine, but my question is, is ...
sam's user avatar
  • 151
2 votes
0 answers
60 views

Strange difference of disk size

I have a Google Cloud Instance: When i check the disk space with two different command it show: df -H Filesystem Size Used Avail Use% Mounted on /dev/sda2 11G 3.1G 7.5G 30% / ...
Alessandro_Russo's user avatar
1 vote
0 answers
874 views

Access permissions for google-compute-engine script

I would like to run a python script on compute engine, which uses a Linux-based operating system ("debian-9-stretch-v20180307"). I am using a bash boot script with code as follows: #! /bin/bash ...
Paul's user avatar
  • 111
1 vote
1 answer
106 views

Process ownership automatically changes to init process on GCP Ubuntu 18.04LTS

We recently moved our development infrastructure from our own old machines running Ubuntu 12.04 to Google Cloud instances running Ubuntu 18.04. Developers usually start some screens and run django ...
Simon Ninon's user avatar
0 votes
0 answers
552 views

Google Compute Engine: ssh with publickey stops working after logout

From google compute engine instance, connected via ssh with web terminal [gcp-instance] $ ssh-copy-id user@server /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to ...
jsp's user avatar
  • 113
4 votes
1 answer
21k views

Debian 9 stretch-backports signature couldn't be verified [duplicate]

I'm trying to install certbot on my Debian 9 server on Google compute engine VM. Here's what I have done so far: To add backports repository, I have edit the sources.list as: sudo nano /etc/apt/...
Abdul Rehman's user avatar
1 vote
1 answer
858 views

Automating postfix installation

I have been trying to automatically install postfix in a non-interactive way via startup-script on machine boot up. After a bit of research I found out some suggestion that I could try to install it ...
Benedict's user avatar
4 votes
1 answer
6k views

Connect to VM through SSH (Google Colab and PuTTY)

I want to connect to a Google Colab computer via SSH because it has really shit text editing abilities, and it likes to hide the characters I type in the interactive shell. This is code I have on a ...
Emmanuel Lopez's user avatar