GAM Setup in Colab Environment

219 views
Skip to first unread message

Ángel Gonzalez

unread,
Nov 8, 2022, 10:55:41 AM11/8/22
to GAM for Google Workspace
Hi everyone!
I'm wondering about the posibility to setup gam in a colab environment (linux-based).

I tried to follow the setup instructions for linux in Colab, but I got the following result at the end of the workflow: 

Traceback (most recent call last): File "gam/__main__.py", line 49, in <module> File "gam/__main__.py", line 44, in main File "gam/__init__.py", line 11455, in ProcessGAMCommand File "gam/__init__.py", line 858, in doGAMVersion File "gam/__init__.py", line 738, in getOSPlatform File "distro/distro.py", line 197, in linux_distribution File "distro/distro.py", line 825, in linux_distribution File "distro/distro.py", line 896, in version File "distro/distro.py", line 1084, in uname_attr File "functools.py", line 1001, in __get__ File "distro/distro.py", line 1198, in _uname_info File "subprocess.py", line 465, in check_output File "subprocess.py", line 569, in run subprocess.CalledProcessError: Command '('uname', '-rs')' returned non-zero exit status 1. [258] Failed to execute script '__main__' due to unhandled exception! ERROR: Failed running GAM for the first time with 1. Please report this error to GAM mailing list. Exiting.

I don't know if currently it is possible run GAM setup script in a Colab environment

Thank you a lot!

Rance Hall

unread,
Nov 8, 2022, 11:18:44 AM11/8/22
to google-ap...@googlegroups.com

Ángel:

 

I have tried exactly what you are asking about and it doesn’t work well, at least I couldn’t make it work well.

 

The closest thing you can get to is a linux server that members of your staff have the ability to SSH into.

 

Create a user “gamuser” on the common ssh box and install/configure gam as that user.

 

Then add the ssh public keys of your team members who have permission to be in this account so that they can ssh into this users shell with a remote session.

 

The only problem with this approach is heavy use.  The data usage/api limits would apply in total to everyone, and your use case may not allow this approach.

 

My idea when I tried to implement it was a common git repo of of the configuration and any interested party could git clone it.  This didn’t work in my use case.

 

Hope you have better luck.

 

Rance

 

From: google-ap...@googlegroups.com <google-ap...@googlegroups.com> on behalf of Ángel Gonzalez <matei...@gmail.com>
Date: Tuesday, November 8, 2022 at 9:55 AM
To: GAM for Google Workspace <google-ap...@googlegroups.com>
Subject: [GAM] GAM Setup in Colab Environment

[EXTERNAL EMAIL]

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/84e80542-f352-4b24-a16a-b62523e240e9n%40googlegroups.com.

Graham T

unread,
Nov 9, 2022, 8:43:08 PM11/9/22
to GAM for Google Workspace
I've successfully implemented this before. Let me see if I can find it

Graham T

unread,
Nov 9, 2022, 10:01:53 PM11/9/22
to GAM for Google Workspace
Couldn't find the original setup but I was able to do it again. Tutorial/walkthrough coming. 
image.jpg

Ángel Gonzalez

unread,
Nov 10, 2022, 8:32:30 AM11/10/22
to GAM for Google Workspace
Thank you if you can help me, currently I'm doing the following (naturally I'm working with the Linux commands in Colab)
Screenshot 2022-11-10 083111.jpg

Tan Ng

unread,
Dec 23, 2023, 3:48:03 PM12/23/23
to GAM for Google Workspace
Angel ad Graham,

I'm trying to setup GAM in Colab.  Can you share how you are able to setup GAM or GAMADV in Colab?  Thanks.
Reply all
Reply to author
Forward
0 new messages