View previous topic :: View next topic |
Author |
Message |
sager58 n00b
Joined: 03 Jan 2005 Posts: 14 Location: Cornwall, NY
|
Posted: Thu Mar 18, 2021 6:04 pm Post subject: [HOWTO] Chromium and Google Services sync under GNOME w/SysD |
|
|
As of March 15th, 2021, Google revoked the Google API keys that were baked into the Chromium source code. According to them it was an "oversight" the keys were left in, but realistically, it's because chrome based browsers are popping up, like the new Microsoft Edge, using the same API's, and eroding Chrome's market share. In any case those of you who may rely on Google's cloud eco system may find their chromium installation cut off from Google. Even if you have a version of chromium built prior to March 15th, you're cut off.
To make Chromium behave as it always did prior to March 15th, 2021, you need about 20-30 minutes of time, edit some text files, and your own set of google API keys.
To get your own Google API Keys, you can follow the process here at Chromium Projects - API Keys (https://www.chromium.org/developers/how-tos/api-keys). Please read their Terms of Service, redistribution may be an issue, and several API's have quotas. Those quotas are high enough though that it should be reasonable for a single user or their household to stay in those limits. Also note, geolocation and cloud translation API's require billing, but are not required.
Once you have your API key credentials, if you use GNOME under SystemD, you need to make a .conf file in either /etc/enviornment.d/ for system wide usage, or ~/.config/environment.d/ for a single user. I named my file 20-gapi-keys.conf, but you may name it what ever you'd like, but I'm assuming it still needs to end in .conf. In this file, place the following:
Code: | GOOGLE_API_KEY={Your Google API Key}
GOOGLE_DEFAULT_CLIENT_ID={Your Google Client ID}
GOOGLE_DEFAULT_CLIENT_SECRET={Your Google Client Secret} |
Be sure to replace the bracketed text with your values that you obtained from google.
If you are not using SystemD or GNOME, then you may find success appending the following to /etc/profile for system wide usage, or ~/.profile, ~/.bashrc, ~/.bash_profile, etc, for a single user (I found this worked when launching chromium from terminal, but not through the GNOME shell) :
Code: | export GOOGLE_API_KEY={Your Google API Key}
export GOOGLE_DEFAULT_CLIENT_ID={Your Google Client ID}
export GOOGLE_DEFAULT_CLIENT_SECRET={Your Google Client Secret} |
Once you made the appropriate file as described above, logout of your shell session and log back in. Terminal users can probably re-exec their shell without logging out, just make sure the API keys are in your env output.
Once you log back in to GNOME or shell of choice, launch chromium, and you will find that it is logged into and syncing with your google account cloud services.
Hope you found this useful, and good luck. _________________ Turn Left... |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31258 Location: here
|
Posted: Thu Mar 18, 2021 6:54 pm Post subject: |
|
|
Moved from Desktop Environments to Documentation, Tips & Tricks. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
vitaly-zdanevich Tux's lil' helper
Joined: 01 Dec 2019 Posts: 106 Location: Belarus
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|