• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

terminal

Editors on Terminal

August 25, 2022

How to run editors from the Terminal.

Sublime, Visual Studio Code, Atom and Bluefish examples.

Open from the current directory.

subl .
code .
atom .
bluefish .

subl . code . atom . bluefish .

Open editor using path and file.

subl /etc/hosts
code /etc/hosts
atom /etc/hosts
bluefish /etc/hosts

subl /etc/hosts code /etc/hosts atom /etc/hosts bluefish /etc/hosts

Filed Under: Linux Tagged With: atom, bluefish, command line, editors, sublime, terminal, visual studio

GCP CloudShell via Terminal

June 20, 2022

Connect to your CloudShell environment from your terminal.

$ gcloud cloud-shell ssh
Welcome to Cloud Shell! Type "help" to get started.
first.last@cloudshell $
first.last@cloudshell $

$ gcloud cloud-shell ssh Welcome to Cloud Shell! Type "help" to get started. first.last@cloudshell $ first.last@cloudshell $

Once logged in, you can set your project.

first.last@cloudshell $ gcloud config set project $PROJECT_ID

first.last@cloudshell $ gcloud config set project $PROJECT_ID

Filed Under: Cloud Tagged With: cloud shell, connect, gcp, terminal

Google SDK SSH Mac Terminal

February 14, 2022

I’m having trouble logging in using Google SDK Compute SSH on a Mac Terminal.

Here’s the fix.

gcloud compute ssh USERNAME@SERVER --zone ZONE --project PROJECTID --internal-ip 2>&1

gcloud compute ssh USERNAME@SERVER --zone ZONE --project PROJECTID --internal-ip 2>&1

There was an issue with a redirect to another shell.

Filed Under: Cloud, Linux Tagged With: compute, gcp, mac, redirect, sdk, ssh, terminal

Set Terminal Browser to Firefox

February 7, 2022

Every time I log in to Google Cloud, it’s using the Chromium.

Set BROWSER env to Firefox instead.

export BROWSER=/usr/bin/firefox

export BROWSER=/usr/bin/firefox

Login to GCP. It should open up Firefox browser instead of Chromium.

gcloud auth login

gcloud auth login

Add it your .bashrc or .bashprofile if you want it to be permanent.

Filed Under: Cloud Tagged With: auth, browser, chromium, firefox, gcloud, login, terminal

GCP Display Serial Port in Shell

May 26, 2021

How to display serial port in GCP Cloud Shell.

gcloud compute instances get-serial-port-output instance-name \
--zone=us-central1-a \
--project=your-project-id

gcloud compute instances get-serial-port-output instance-name \ --zone=us-central1-a \ --project=your-project-id

Filed Under: Cloud Tagged With: cloud shell, console, gcp, serial port, terminal

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023