UP | HOME

chromium

Table of Contents

1 Chromium

1.1 Separate profiles (instances) for separate organizations

The goal of this is to be able to excecute a command to open an instance of chromium for an organization or a set of tasks. For me, specifically, It is to allow being logged in to two instances of microsoft 365, asana, bitbucket, and other similar softwares for two separate organizations, in two separate browsers.

Technically, the best way to do something similar would be to use Qubes OS, but this is an intermediate measure for that.

First, install chromium, if you do not already have it:

sudo pacman -S chromium

Then, decide where you want your organization chromium data to be stored. I have chosen, for a mythical organization of Company X and Company Y, the locations of /home/uer/.chromium-cx and /home/uer/.chromium-cy

you can then start an instance of chromium by running this command in the terminal:

→ chromium --user-data-dir=/home/uer/.chromium-cx

Then, we should make a command that can be excecuted and found by things like dmenu or rofi

to do this I make a file in /usr/local/bin for each company, and place the above command in it.

sudo vim /usr/local/bin/cx-chromium
# paste the chromium --user-data-dir=/home/uer/.chromium-cx command from above

We will now have to make this new file executable. to do this, I

sudo chmod +x /usr/local/bin/cx-chromium

and, done! I now have a separate chromium instance (profile) for two separate organizations.

I always add a theme through the chromium settings to each browser to be able to visually tell them apart.

Author: John Doe

Created: 2021-02-16 Tue 20:28