Install IntelliJ IDEA on Linux

This article shows you the way to manually install the latest version of IntelliJ IDEA on Linux. If you do not have Java in your system, follow this link and install the Java first.

Install IntelliJ IDEA on Linux


Step 1:
Download the latest version of IntelliJ IDEA from this link.

Step 2:
Open the Terminal (Ctrl + Alt + T) and enter the following command to change the directory.
cd /opt/

Step 3:
Enter the command given below to extract the IntelliJ IDEA from ~/Downloads directory. If your downloaded file is in any other directory, replace the last parameter by the actual file path.
sudo tar -xvzf ~/Downloads/ideaIC-2018.3.2.tar.gz

Step 4 (Optional):
I prefer to rename the IntelliJ folder unless I have multiple versions of IntelliJ IDEA. If you want the same, enter the following command to remove the version from the folder name.
sudo mv idea-IC-183.4886.37 idea

Step 5:
Open IntelliJ IDEA from the terminal using the following command. Note that there is no sudo in front of the command.
/opt/idea/bin/idea.sh

Step 6:
In the appeared dialog to import existing settings, choose "Do not import settings" if you want a fresh installation. If you already had an IntelliJ IDEA, you can import the previous settings by selecting the first option.

Install IntelliJ IDEA on Linux

Step 7:
In the next dialog, you will be asked to select a UI theme. Depending on your preference, select the theme and click Next.

Install IntelliJ IDEA on Linux


Step 8:
Now, you will be provided an option to create a Desktop Entry. I prefer to create the Desktop Entry for all users. Therefore, I select the "For all users..." option and click Next.

Install IntelliJ IDEA on Linux

Step 9:
If you want to launch IntelliJ IDEA from Terminal, creating a launcher script makes your life easier. Depending on your requirement, you can enable this feature.

Install IntelliJ IDEA on Linux

Step 10:
Now you can customize existing plugins. However, I do not find any reason to customize them at this point. So just click Next.

Install IntelliJ IDEA on Linux

Step 11:
At this step, you can install additional plugins. If you are using IntelliJ only for Java development, you can skip this step and click Start Using IntelliJ IDEA.

Install IntelliJ IDEA on Linux

Once you have clicked the Start Using IntelliJ IDEA button, you may be asked to enter the root password in order to create desktop entries and launcher script.

Step 12:
Now, IntelliJ IDEA will open and ready to use. However, you can notice that still, we are running it from the Terminal. Closing IntelliJ IDEA will let you close the Terminal safely.

Install IntelliJ IDEA on Linux

Step 13:
Now search for 'IntelliJ IDEA' in the dashboard and open it.

Install IntelliJ IDEA on Linux

Step 14:
A common problem encountered on IntelliJ IDEA is its default keyboard shortcuts assigned to the Windows environment. This may cause unexpected behaviors of keyboard shortcuts on Linux environment. To fix this problem, open IntelliJ IDEA, go to SettingsKeymap and select "Default for GNOME" in the Keymap dropdown list.
Previous
Next Post »

9 comments

Write comments
Pranavan Theivendiram
AUTHOR
June 15, 2015 at 4:17 PM delete

Hi. Gobi. Looks Great.
Can I know why you are installing inside /opt/ directory? (We need permission right.)

Reply
avatar
Gobinath
AUTHOR
June 16, 2015 at 12:50 PM delete

Hi Pranavan,
If we extract the applications in home directory, they will be available for the current user only. /opt/ directory is reserved for all the software and add-on packages that are not part of the default installation.

For more details about /opt/:
http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/opt.html

Reply
avatar
Pranavan Theivendiram
AUTHOR
June 16, 2015 at 3:34 PM delete

Cool. In my case, I am using Home directory and using the shell files to start up the program. As you said, it will be good if I use this method since other users can use it. :)

Reply
avatar
Harkediansa
AUTHOR
June 6, 2016 at 9:28 AM delete

Thanks.. it helps me a lot..

Reply
avatar
Gobinath
AUTHOR
June 8, 2016 at 8:38 AM delete

You are welcome. :-)

Reply
avatar
Azmath
AUTHOR
September 27, 2016 at 10:01 AM delete

How to install 2 versions of Intellij idea in Ubuntu?
Suppose I have IJ 14 working fine , I want to install IJ 16 and I extract it to /opt.Then when I use
"gedit intellij-idea.desktop" it opens the file which I have saved for IJ 14.

Reply
avatar
Gobinath
AUTHOR
October 4, 2016 at 7:45 PM delete

Sorry for the late response. Create the launcher using a different file name. For example, use "gedit intellij-idea-16.desktop" and continue with Step 5, 6, 7. If you prefer, use a different name and/or icon in step 5.

Reply
avatar
NitaM
AUTHOR
September 6, 2018 at 2:00 AM delete

How do you remove the App icon from the Applications menu?

Reply
avatar
Gobinath
AUTHOR
December 11, 2018 at 5:26 PM delete

If you installed using the above method, you can remove the icon by executing the following command:

sudo rm /usr/share/applications/intellij-idea.desktop

Reply
avatar

Contact Form

Name

Email *

Message *