Skip to content

Enabling Chromium to sync with Google Account

Why Sync Your Chromium Browser?

Syncing Chromium with your Google account allows you to:

  • Access your bookmarks across devices
  • Sync your browsing history
  • Share saved passwords securely
  • Keep extensions and settings consistent
  • Access open tabs from other devices

By default, Raspberry Pi OS's Chromium browser lacks the necessary authentication tokens to connect with Google's services.

Step-by-Step Instructions

1. Create the OAuth Configuration File

Create the file /etc/chromium.d/oauth2-client using sudo privileges:

sudo nano /etc/chromium.d/oauth2-client

2. Add OAuth Credentials

Copy and paste the following code into the file:

export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --oauth2-client-id=77185425430.apps.googleusercontent.com --oauth2-client-secret=OTJgUOQcT7lO7GsGZq2G4IlT"

3. Save and Exit

Press Ctrl+X, then Y to confirm saving, and Enter to exit the nano editor.

4. Restart Chromium

Close and reopen Chromium for the changes to take effect.

5. Sign In to Google

  1. Open Chromium
  2. Click on the profile icon in the top-right corner
  3. Select "Sign in to Chromium"
  4. Enter your Google account credentials

Troubleshooting

If you encounter issues:

  • Ensure the file path and permissions are correct
  • Verify you entered the credentials exactly as shown
  • Make sure your system date and time are accurate
  • Check your internet connection