When I try to install gcutil by following steps on https://developers.google.com/compute/docs/gcutil/
here is the bin dir contents of C:\gcutil\google-cloud-sdk\bin :
but gcutil does not seem to install correctly. When I attempt to run gcutil I receive the error :
C:\gcutil\google-cloud-sdk\bin>gcutil
'gcutil' is not recognized as an internal or external command,
operable program or batch file.
Should gcutil not be a .bat file command ? How can I invoke gcutil ?
You do not need to install cygwin unless you need the ssh functionality of gcutil.
The reason you could not initially run gcutil is because it was a python script (and you were not prefixing the command with 'python'). We have since changed this to be a .cmd script, so it should work more natively in windows. If you add the bin directory to your PATH, you should be able to run gcutil from anywhere.
Download and install Cygwin. Install the 32-bit version.
Start Cygwin. and download the SDK
$ curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash
Restart Cygwin (or cmd).
Authenticate.
$ gcloud auth login
Reset PATH from console.
setx PATH "%PATH%;C:\full\path\to\google-cloud-sdk\bin"
Or you can use environment variables.
About variables
Installing cygwin to run gcutil if you are working with windows.
https://developers.google.com/compute/docs/gcutil/ (check the windows tab)
I just do it and work fine.
Related
When I run any oci cli command I'm getting below error:
ERROR: Profile '<DEFAULT>' not found in config file C:\Users\user1\.oci\config
Below is my config file for OCI CLI:
[DEFAULT]
user=<admin user ocid>
fingerprint=<fingerprint>
key_file=<path/to/private/key>
tenancy=<tenancy ocid>
region=ap-mumbai-1
I had a similar problem to this. If you use Python and have changed some of the libraries it's possible you may have updated some of the needed dependencies. Upgrade/reinstall oci ie.
pip install oci-cli --upgrade
This sorted the problem for me.
I would suggest you take a backup of this config file, delete it and reconfigure CLI automatically by executing "oci setup config"
I guest that you are using pacman to install oci-cli. You should remove it and reinstall with official method.
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm
bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"
Please refer this document on Configuring the CLI and tally it with the config file of yours.
And refer the discussion in this forum OCI Config not found issue, this might be useful as well.
I have google cloud sdk installed on my ubuntu 14.4system but whenever I type gcloud init in my console, I get the following error:-
rbenv: gcloud: command not found
Further if I run gcloud init with sudo the error changes to:-
/usr/bin/env: ruby1.9.1: No such file or directory
I am unable to understand what has google cloud sdk to do with rbenv. I tried reinstalling google cloud sdk but with the same result. Is there a way out? any help is greatly appreciated.
On linux when you install the SDK it prompts to put following into your ~/.bashrc so PATH and such are setup to make cmds like gcloud visible
# The next line updates PATH for the Google Cloud SDK.
source '/home/scott/google-cloud-sdk/path.bash.inc'
# The next line enables shell command completion for gcloud.
source '/home/scott/google-cloud-sdk/completion.bash.inc'
If you are not on linux/OSX then the SDK install will have similar
It sounds as though gcloud is not on your $PATH.
If you installed the Cloud SDK to /home/username/google-cloud-sdk/, you should be able to invoke gcloud by running /home/username/google-cloud-sdk/bin/gcloud info. If you would like to be able to run simply gcloud, you can run export PATH="/home/username/google-cloud-sdk/bin:$PATH" (to make this setting persist, put that command in your ~/.profile file.
I am using OpenShift scallable gear with Django installed and I need to log everything from running tmux session to a file. On my local machine I am just using tmux-logging plugin but it need tmux version >1.9.
But 1.6 is installed on server(Why so old?).
It is possible to upgrade package version in gear without sudo/root privileges?
Or how I can log to a file with tmux 1.6 with same convenience as with tmux-logging plugin? Thanks.
You can use e.g. this script to install tmux without root privileges. Replace the $HOME with $OPENSHIFT_DATA_DIR before running it (you can't write directly to ~ on OpenShift + you want your tmux to be persistent) and adjust the $TMUX_VERSION (worked for me with $TMUX_VERSION=1.9).
Running the script will then install tmux into ~/app-root/data/local/.
Using
sh <(wget -qO- s.minos.io/s) -x tmux-2.0
You can fetch the static binary with static-get and no compiler required then, so no root privileges requeired.
Fiala´s solution looks good but it not worked for me and this is even simpler.
while executing rhc setup i got following error
Your private SSH key file should be set as readable only to yourself. Please run CHMOD 600 C:/user/myuser/.ssh/id_rsa
Now how can i execute such command on windows.
However, I tried to use git bash. But have not got any success.!!
You can execute Linux commands on windows machine using Cygwin.
There are a couple of more tools using which you can do the same but I found Cygwin great!!!
gcutil does not understand when I use "d:/documents and settings/paul/desktop/somefile.txt"
I am using Cygwin terminal with Windows Xp.
Cygwin uses Unix-style paths, which do not have explicit drive letters.
Try /cygdrive/d/Documents and Settings/...
With my Windows XP is so that D:\cygwin\home\exampleusername\examplefile.txt can be referenced as ~/examplefile.txt from the cygwin command line.
And I can get files from the Linux instance when I am at my local command prompt: I can "gutil ... pull ..." files from the instance and "gcutil ... push ..." files to instance.
Push or pull at the Linux instance command prompt does not work, I think this is a issue with my local firewall.