golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/windows/rdp.bash (about)

     1  #!/bin/bash
     2  
     3  # Copyright 2017 The Go Authors. All rights reserved.
     4  # Use of this source code is governed by a BSD-style
     5  # license that can be found in the LICENSE file.
     6  
     7  set -eu
     8  
     9  ZONE=us-central1-f
    10  INSTANCE_NAME="${1:-golang-buildlet}"
    11  
    12  # Set, fetch credentials
    13  echo ""
    14  echo "Connecting to instance: "
    15  echo ""
    16  
    17  username="gopher"
    18  password="gopher"
    19  ip=$(gcloud compute instances describe "${INSTANCE_NAME}" --project="${PROJECT_ID}" --zone="${ZONE}" --format="value(networkInterfaces[0].networkIP)")
    20  
    21  echo xfreerdp -u "${username}" -p "'${password}'" -n "${ip}" --ignore-certificate "${ip}"
    22  xfreerdp -u "${username}" -p "${password}" -n "${ip}" --ignore-certificate "${ip}"