Problems Facing During GAM Installation in Linux

193 views
Skip to first unread message

harish batchu

unread,
Apr 3, 2018, 4:48:27 PM4/3/18
to GAM for G Suite
I am trying to install GAM Utility tool in my Linux machine. I tried to install in 3 ways and I faced issues in all of them. Any help on resolving this issue is appreciated. Thanks in advance

1. Using wget command:

Resolving raw.githubusercontent.com... 151.101.200.133
Connecting to raw.githubusercontent.com|151.101.200.133|:443... connected.
WARNING: cannot verify raw.githubusercontent.com's certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 High Assurance Server CA':
  Unable to locally verify the issuer's authority.
WARNING: certificate common name `www.github.com' doesn't match requested host name `raw.githubusercontent.com'.
HTTP request sent, awaiting response... 200 OK
Length: 9536 (9.3K) [text/plain]
Saving to: `gam-install.sh'

100%[====================================================================================>] 9,536       --.-K/s   in 0s

2018-04-03 16:13:20 (38.5 MB/s) - `gam-install.sh' saved [9536/9536]

ora...@hbinova1.cloud.idmworks.net:[/home/oracle/bin]
$ ls
gam-install.sh
ora...@hbinova1.cloud.idmworks.net:[/home/oracle/bin]
$ chmod +x gam-install.sh
ora...@hbinova1.cloud.idmworks.net:[/home/oracle/bin]
$ ./gam-install.sh
Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release...

Getting file and download URL...

Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named json
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named json
Downloading file  from  to /tmp/tmp.MxFwg31841.

curl: no URL specified!
curl: try 'curl --help' for more information
Extracting archive to /home/oracle/bin

tar: /tmp/tmp.MxFwg31841/: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
ERROR: extracting the GAM archive with tar failed with error 2. Exiting.


2. Using Curl :
$  bash <(curl -s -S -L https://git.io/install-gam)
curl: (35) Unknown SSL protocol error in connection to git.io:443
curl: (35) Unknown SSL protocol error in connection to git.io:443
This command is printing the entire https://raw.githubusercontent.com/jay0lee/GAM/master/src/gam-install.sh page information in terminal

3. Manual Download:
Downloaded the latest version from https://github.com/jay0lee/GAM/releases
Un compressed the tar file to find a folder called gam
The gam folder contains  
                                   GamCommands.txt  LICENSE  gam  whatsnew.txt
when trying to create new project using gam create project , its throwing an error
$ gam create project
-bash: gam: command not found







✉ Kevin Melillo

unread,
Apr 4, 2018, 7:57:04 AM4/4/18
to google-ap...@googlegroups.com
On that last attempt (#3)...  you need to be in the directory that GAM is installed in.. and use the following

./gam create project

the ./ tells it to resolve the command from the current directory

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/b145d6b0-ec07-41ee-9bf2-9e980ec90d8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Kevin Melillo
Electronic Communications Analyst
Information Technology
445 Hoes Lane
Piscataway, NJ 08854

Phone:732-465-6609 | Mobile: 732-609-4331

harish batchu

unread,
Apr 4, 2018, 2:50:51 PM4/4/18
to GAM for G Suite
Thanks for your response Melillo. 
Now I created the new GAM project using ./gam create project . After project creation I tried to use the command utility tool but i am facing issues . 
Am I missing anything here like updating path variables or some thing. Let me know if I am missing anything here


Press Enter when done...
That's it! Your GAM Project is created and ready to use.
[root@jxn-ux-idmdev gam]# gam info user
-bash: gam: command not found
[root@jxn-ux-idmdev gam]# ls
GamCommands.txt  LICENSE  client_secrets.json  gam  lastupdatecheck.txt  nobrowser.txt  oauth2service.json  whatsnew.txt
[root@jxn-ux-idmdev gam]# vi GamCommands.txt

[2]+  Stopped                 vi GamCommands.txt
[root@jxn-ux-idmdev gam]# ls

To post to this group, send email to google-ap...@googlegroups.com.

✉ Kevin Melillo

unread,
Apr 4, 2018, 2:56:32 PM4/4/18
to google-ap...@googlegroups.com
Yes.  You have to add the path for gam to your .bashrc file.  When performing the curl setup, this is done for you.  Use this in your .bashrc

alias gam="/home/username/bin/gam/gam"
Replace the text in red with the actual path and name of the file.  

Save the file, then restart the shell... should be good to go.

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.



--
Kevin Melillo
Electronic Communications Analyst
Information Technology

Phone:732-465-6609 | Mobile: 732-609-4331

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jay Lee

unread,
Apr 4, 2018, 3:00:30 PM4/4/18
to google-ap...@googlegroups.com
There is no good reason to run GAM as root. I recommend only running as a regular user...

Jay

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.



--
Kevin Melillo
Electronic Communications Analyst
Information Technology

Phone:732-465-6609 | Mobile: 732-609-4331

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--
Kevin Melillo
Electronic Communications Analyst
Information Technology
445 Hoes Lane
Piscataway, NJ 08854

Phone:732-465-6609 | Mobile: 732-609-4331

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

harish batchu

unread,
Apr 4, 2018, 3:38:28 PM4/4/18
to GAM for G Suite
Melillo 
Thanks for the help. Now the utility tool is working fine

Jay
Thanks for the suggestion Jay. I am not willing to do the whole process again. I changed the owner for all the file from root to a regular user.  
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.



--
Kevin Melillo
Electronic Communications Analyst
Information Technology

Phone:732-465-6609 | Mobile: 732-609-4331

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--
Kevin Melillo
Electronic Communications Analyst
Information Technology
445 Hoes Lane
Piscataway, NJ 08854

Phone:732-465-6609 | Mobile: 732-609-4331

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages