Automating Toolbox Setup

I like to switch between Linux installations quite a bit, and while Ive automated most of my setup, Jetbrains IDEs, which I use extensively, are always the hardest part to get setup with because there is no automation that Im aware of. I want to be able to automate things like:

  • Download & install Toolbox with wget/curl
  • Startup Toolbox with my account credentials pre-provided
  • Tell Toolbox to install the latest stable version of IntelliJ and DataGrip and the latest EAP/RC for Webstorm
  • IntelliJ to import specific projects from specific folders using a pom.xml
  • Tweak some defaults in debugging behavior in Webstorm (possibly doable by just passing around workspace files, not sure yet)

etc.

 

Does anyone know how to do some or all of these things?

 

Thanks

5
7 comments

I'm looking for an automated install as well. It seems obvious that the toolbox should provide a CLI. Anyhow, I created a script for installing toolbox:

# JetBrains Toolbox
wget -cO jetbrains-toolbox.tar.gz "https://data.services.jetbrains.com/products/download?platform=linux&code=TBA"
tar -xzf jetbrains-toolbox.tar.gz
DIR=$(find . -maxdepth 1 -type d -name jetbrains-toolbox-\* -print | head -n1)
cd $DIR
./jetbrains-toolbox
cd ..
rm -r $DIR
rm jetbrains-toolbox.tar.gz
As for the rest of the suite, I found (http://breandan.net/2014/08/18/shell-script/) which might help to install the rest, but I have not tested it.
 
Please let me know if you find anything useful otherwhere, as I would very much like to do what you're attempting.
3

I havent had much time to work on this recently, but thanks for the tips, Ill definitely check this out!

0

In case anyone stumbles upon this: I wanted to do something similar so I created a chef resource:

https://github.com/codenamephp/chef.cookbook.dev/blob/dev/resources/jetbrains_toolbox.rb

What it does:

  1. Downloads the Toolbox App (if newer)
  2. Extracts the "installer" and cleans up the extracted file
  3. Adds a X11 Startup Script so the Toolbox is installed automatically one for every user that logs in

Even if you don't use chef the resource is pretty easy to read, and combined with the shell script above you can easily come up with a solution.

I will continue to look into pre-setting the Account though I'm not sure yet if it's worth the effort (you have to provide your Password or at least the OAuth consent anyway)

0

This is awesome!! Thank you

0

In order to make AppImage run, Linux users need to install FUSE someway... Check https://github.com/AppImage/AppImageKit/wiki/FUSE for that.

Next, you can use "jetbrains-toolbox.sh" installation script at https://github.com/nagygergo/jetbrains-toolbox-install to install the AppImage installer under /opt/jetbrains-toolbox, and this script also creates a link to /usr/local/bin/jetbrains-toolbox for global use. Use this script and run jetbrains-toolbox. (This script was mentioned at some versions of the documentation at https://www.jetbrains.com/help/idea/installation-guide.html#toolbox but removed at latest version of it.)

(Update: last week, this install script is updated in order to make a more correct symbolic link. But this made it unable to use from other users. I created an issue about it at  https://github.com/nagygergo/jetbrains-toolbox-install/issues/18 )

For example, my system is Ubuntu 22.04.2 LTS and my install/upgrade script is this:

##*************************** JetBrains Toolbox
#install script for FUSE from 'https://github.com/AppImage/AppImageKit/wiki/FUSE'
sudo add-apt-repository universe
sudo apt install -y libfuse2
#

sudo mkdir jetbrains-toolbox-downloading
cd jetbrains-toolbox-downloading
#sudo curl -o "jetbrains-toolbox.sh" "https://raw.githubusercontent.com/nagygergo/jetbrains-toolbox-install/master/jetbrains-toolbox.sh"
#sudo chmod +x ./"jetbrains-toolbox.sh"
#sudo rm /usr/local/bin/jetbrains-toolbox
#sudo rm -r /opt/jetbrains-toolbox
#sudo ./"jetbrains-toolbox.sh"
curl -fsSL "https://raw.githubusercontent.com/nagygergo/jetbrains-toolbox-install/master/jetbrains-toolbox.sh" | bash
cd ..
sudo rm -r jetbrains-toolbox-downloading
#echo "Use command 'jetbrains-toolbox' to make first run for shotcut config."
##***************************

 

0

Unfortunately, the problem with FUSE is known and is being investigated in our bug tracker. Please feel free to track it here https://youtrack.jetbrains.com/issue/TBX-7534/Ubuntu-22.04-missing-fuse2-libraries 

0

That was the ticket for me. I haven't figured out yet why several of my machines don't need this fix, and my monster devo machine does. My best guess is that the monster devo machine doesn't have a DVD drive, and I suspect the automated setup of the DVD happens to solve the FUSE problem as well. Given that Ubuntu is, in my opinion, the best choice for general-purpose software engineering desktop use. It makes no sense to me that they don't fix this once and for all.

Thank you very much for sharing this.

 

0

Please sign in to leave a comment.