Using same Toolbox installation for multiple accounts on same machine (Ubuntu)

Answered

I have multiple accounts on my Linux Mint pc, which are used for different purposes (e.g., one for work, one for personal projects, etc).

Before JetBrains Toolbox, I would install a JetBrains app in a general folder, e.g., /home/common/applications/pycharm/, and provide sufficient group permissions to allow rw from any of the other accounts on the pc.

After installing JetBrains Toolbox, the default install dir is ~/.local/share/JetBrains/Toolbox/.  

This suggests I would need to install any app I wanted to use in more than one computer account on each separate account, e.g.;

/home/user1/.local/share/JetBrains/Toolbox/

/home/user2/.local/share/JetBrains/Toolbox/

/home/user3/.local/share/JetBrains/Toolbox/

etc.

I attempted to set them up in a "common" directory and set group rw permissions:

 

/home/common/.local/share/JetBrains/Toolbox/

 

However, when I tried to run /home/common/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox from a different account (e.g., /home/user1/), it doesn't see the installed apps in /home/common.

 

Is there any way to install apps via Toolbox and have them accessible from multiple user accounts on the same ubuntu/mint install?

 

Thanks, 

5
5 comments

> I attempted to set them up in a "common" directory and set group rw permissions:
How did you set it?

Please, go to the Toolbox settings (a small cogwheel in the top right corner), select  Install location option and change this location in every user account as on the screenshot attached, for example. 


Does it help? Please let me know about results.

2
Avatar
Permanently deleted user

Updating multiple users through the UI can be tedious. One would have to log into each user account start the Toolbox, go to the settings, change the Install location, and select "apply".

An alternative approach is updating the settings from the command line. The settings are a JSON file located at ~/.local/share/JetBrains/Toolbox/.settings.json

The property to add or update is "install_location". The effective default value is "~/.local/share/JetBrains/Toolbox". Set it to, for example, "/opt/local/share/JetBrains/Toolbox" or "/usr/local/share/JetBrains/Toolbox".

Be aware of the following difference.
When updating that property through the UI, the Toolbox will move the existing installations to the new location.
This will obviously not happen when you update the settings file outside Toolbox.

1
Avatar
Permanently deleted user

Is it possible to install JetBrains Toolbox for all users on Windows PC?
We have many users on university machines from active directory.

Even I choose installation folder on some common place, I still cannot start jetbrains toolbox and have to copy or set all shortcuts on desktop and Start Menu manually.

2
Avatar
Permanently deleted user

Hi

I try to install Toolbox on my brand new computer, clean debian install (testing)

Using Toolbox 1.9.3935 (just downloaded)

When I start it first it crashes I need to start it again. 

then if I try to move install directory (using the preferences) to /opt/JetBrains it crashes. When I try to start it again it reinstalls everything in .local/share

ps: all access rights are ok in /opt my user as right to write there

thanks for help

 

 

 

1

While I'm positive this isn't the neatest or most straightforward method, I figured out a method to install Toolbox globally, such that it is multi-user accessible, using the following method. Note, the first set of steps only need to be run once on the first user account. Following this, a second user can begin using the global installation of Toolbox much more simply.

  • Install Toolbox following the normal method of downloading its compressed tar file from JetBrains, un-archiving the installation executable, and running it for the first time.
  • Quit Toolbox and ensure all running instances have stopped: `ps aux | grep '[t]oolbox'` (which should return nothing if Toolbox is properly stopped)
  • Create `/opt/jetbrains/toolbox` (where the Toolbox files themselves will be): `mkdir -p /opt/jetbrains/toolbox`
  • Create `/opt/jetbrains/lib` (where IDE versions will be installed to): `mkdir -p /opt/jetbrains/lib`
  • Create `/opt/jetbrains/bin` (where the Toolbox will create starter shell scripts for the installed IDEs): `mkdir -p /opt/jetbrains/bin`
  • Copy Toolbox's files from the user-specific location to the new, global one: `rsync -avp ${HOME}/.local/share/JetBrains/Toolbox/ /opt/jetbrains/toolbox`
  • Remove the user-specific Toolbox directory: `rm -fr ${HOME}/.local/share/JetBrains/Toolbox/`
  • Create a symbolic link from the user-specific Toolbox directory to the new, global one: `ln -s /opt/jetbrains/toolbox ${HOME}/.local/share/JetBrains/Toolbox`
  • Edit the global settings file (located at `/opt/jetbrains/toolbox/.settings.json`) such that the "install_location" key points to `/opt/jetbrains/lib` and the "shell_scripts" -> "location" key points to `/opt/jetbrains/bin` (see my example `.settings.json` file here)

Also, I created a basic tool to help in automating this on other machines. Feel free to use it if desired: https://gist.github.com/robfrawley/5258f4c2e183582a0c632244db0b89a3

2

Please sign in to leave a comment.