Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»General Articles»How To Install Google Cloud SDK on Debian 10

    How To Install Google Cloud SDK on Debian 10

    RahulBy RahulMarch 28, 20213 Mins Read

    Google Cloud SDK provides a set of tools that are used to manage resources hosted on Google Cloud Platform (GCP). The Cloud SDK (Software Development Kit) provides gcloud, gsutil, nd bq commands with the ability to access the Google Cloud via the terminal.

    You can install the Cloud SDK from the officially provided Debian repository. Cloud SDK is also available as Snap package but don’t includes kubectl.

    This tutorial describe you to how to install Google Cloud SDK on Debian 10 Buster Linux system.

    Prerequisites

    You must have sudo privileged account access to your Debian 10 system with console access.

    Login to your system and launch a terminal. Then execute the following commands to install required packages on your system.

    sudo apt update 
    sudo apt install curl apt-transport-https ca-certificates gnupg 
    

    Install Google Cloud SDK on Debian

    Google Cloud SDK is available as Debian package in official Apt repositories as well as Snap package on Snapcraft store. In this tutorial, we will install Google Cloud SDK using Debian package.

    Use the below steps to complete Google Cloud SDK installation on your Debian system.

    1. First, import GPG key to your system with the following curl command.
      curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 
      
    2. Next, add a PPA file to your system with referring to the cloud-sdk in Google packages repository.
      echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list 
      
    3. Finally, update the apt cache and install Google Cloud Packages on your Ubuntu system
      sudo apt update  
      sudo apt install google-cloud-sdk 
      
    4. Press ‘y’ and hit enter for any confirmation asked by the installer.

    All done. You have successfully install Google Cloud SDK on your Debian 10 Linux system.

    Initialize Cloud SDK

    After you install Cloud SDK successfully on your system. The next step is to perform initialize the environment with gcloud init command. This authorizes Cloud SDK tools to use your Google account credentials to access Google Cloud and manage it.

    sudo gcloud init 
    

    If you are logged in with remote shell access, use gcloud init --console-only to prevent from launching a browser-based authorization.

    sudo gcloud init --console-only
    

    Follow the onscreen instructions to initialize environment with authorization of your Google account. For more details read official instructions to initialize Cloud SDK environment.

    You can again run gcloud init in future to update Cloud SDK settings or create a new configuration.

    Conclusion

    This tutorial helped you with step by step instruction to install Google Cloud SDK on Debian 10 Buster Linux system.

    Next, you can refer the official documentation of the gcloud command line reference to start working with it.

    debian Google Cloud SDK
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleGoAccess – A Real Time Apache & Nginx Log Analyzer
    Next Article How to Install and Configure Fail2ban on Ubuntu 20.04

    Related Posts

    How to Find Django Install Location in Linux

    Updated:April 27, 20221 Min Read

    (Resolved) – ReactJS 404 Error on Page Reload

    2 Mins Read

    Adding a New SSH Key in GitHub

    Updated:April 1, 20223 Mins Read

    13 Best Linux Terminal Emulators and Bash Editors

    8 Mins Read

    How To Install Oracle VirtualBox on Debian 11

    2 Mins Read

    10 Best Linux FTP Clients in 2022

    5 Mins Read

    1 Comment

    1. Bradford on May 11, 2021 11:58 pm

      Nice guide! Thank you

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.