3

Sofar I always installed apps from a store or using a wizard. I never installed them manually, so now it's my first time.

For example I just downloaded IntelliJ from the official website: https://www.jetbrains.com/de-de/idea/download/#section=linux.

I unpacked the tar.gz and now I have the app in my download folder. When I cd into the bin folder I find the script to run the app: idea.sh.

I think the download folder is the wrong location for installing any apps.

My questions:

  • Where should I move it?
  • What do I need to do to run it by the terminal?
  • How do I get the shortcut in the apps overview?
Raffa
  • 34,963

2 Answers2

5

Where should I move it?

/opt/

That is the directory for 3rd party applications (ie. tar.gz installations). Mind that you can also use the debian installer if you downloaded those using dpkg but that also means you need to download and install dependencies.

tar.gzs have all permissions already correctly set so it is best to do

sudo cp {downloadedfile}.tar.gz /opt/ 
cd /opt/
sudo tar xvfz {downloadedfile}.tar.gz .

then cd into the new directory and execute the main program.

What do I need to do to run it by the terminal?

See inside the directory as it depends on what you install. Generally there will be a "readme" explaining what to do (sometimes you need to copy a file, like a serice, into the system or change an environment variable and your PATH so it is available to the system) but there will be an executable in there too that is the main program to start what is installed.

How do I get the shortcut in the apps overview?

Check for a .desktop file inside the directory and copy that over to

  • /usr/share/applications for universal and admin usage
  • ~/.local/share/applications for personal usage (when there are more than 1 user you can copy it to all those homes).

If there is none check one of those two directories and copy one to a new name for that application (the name tends to be {application}.desktop) and edit the contents to point to the directory and executable in /opt/.

Rinzwind
  • 309,379
0

A convenient way to install JetBrains' apps is the JetBrains Toolbox. It's like a small app store, only for JetBrains apps. To install it, follow the instructions in this answer, after which you can use it to install all of the other JetBrains tools.