Skip to content

Instantly share code, notes, and snippets.

@greeflas
Last active March 29, 2024 07:53
Show Gist options
  • Star 77 You must be signed in to star a gist
  • Fork 21 You must be signed in to fork a gist
  • Save greeflas/431bc50c23532eee8a7d6c1d603f3921 to your computer and use it in GitHub Desktop.
Save greeflas/431bc50c23532eee8a7d6c1d603f3921 to your computer and use it in GitHub Desktop.
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/

To install just run following command

curl https://gist.githubusercontent.com/greeflas/431bc50c23532eee8a7d6c1d603f3921/raw | bash

#!/bin/bash
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "JetBrains Toolbox is already installed!"
exit 0
fi
echo "Start installation..."
wget --show-progress -qO ./toolbox.tar.gz "https://data.services.jetbrains.com/products/download?platform=linux&code=TBA"
TOOLBOX_TEMP_DIR=$(mktemp -d)
tar -C "$TOOLBOX_TEMP_DIR" -xf toolbox.tar.gz
rm ./toolbox.tar.gz
"$TOOLBOX_TEMP_DIR"/*/jetbrains-toolbox
rm -r "$TOOLBOX_TEMP_DIR"
echo "JetBrains Toolbox was successfully installed!"
@kwanster
Copy link

kwanster commented Oct 4, 2020

Thank you so much!!! Please keep this link alive as I have instructions referencing it.

@greeflas
Copy link
Author

greeflas commented Oct 4, 2020

@kwanster you're welcome! No problem.

@mijanr
Copy link

mijanr commented Jan 28, 2021

Thank you for this amazing tutorial!!

@greeflas
Copy link
Author

greeflas commented Feb 4, 2021

@mixan-yy you're welcome!

@felipepatricio
Copy link

thanks so much! @greeflas

@greeflas
Copy link
Author

@felipepatricio welcome!

@janrpn
Copy link

janrpn commented May 22, 2021

Nice @greeflas

I have one suggestion though, replace the wget with this:
wget -cO toolbox.tar.gz "https://data.services.jetbrains.com/products/download?platform=linux&code=TBA"

That way you don't have to update the script when a new version is released ;)

@raxraj
Copy link

raxraj commented Jun 8, 2021

Ah This helps :) Thank you so much.

@greeflas
Copy link
Author

greeflas commented Jun 8, 2021

@janrpn good hint, thank you!

@greeflas
Copy link
Author

greeflas commented Jun 8, 2021

@raxraj welcome!

@cativo23
Copy link

Thank you so much!

@gnadiah
Copy link

gnadiah commented Aug 15, 2021

Thank you so much! It is working in arch linux too

@greeflas
Copy link
Author

@cativo23, @ndangmods you're welcome, guys!

@cmalvi
Copy link

cmalvi commented Apr 18, 2022

Very useful thanks @greeflas, i have a queston: do you think is possible to update all IDEs installed with toolbox from a command line in a similar way? Because Toolbox isn't a light program so i prefer don't keep it running in background

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment