##How to install Intellij Idea on Ubuntu.
make sure you do either one way A or B in the steps.
###Step 1: Make sure you have installed jdk.
Type in java -version
in the terminal.
The terminal must output something this way.
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
And javac -version
in terminal should display something like this.
javac 1.8.0_05
###Step 2:
Extract the archive.
A:
Right click on the archive and select extract archive here
.
or
B:
Navigate the terminal to the directory where the archive is.
Enter the command to extract the archive.
tar xvzf {your idea archive.tar.gz}
ex:
tar xvzf ideaIU-13.1.4b.tar.gz
Which extracts the archive too the current directory.
###Step 3: Hope the extracted directory looks like idea-IU-xxx.xxxx (x can be some build numbers or whatever). Rename the extracted directory.
A:
Press F2
or rename the directory to idea
.
or
B: In terminal enter:
mv idea-IU-xxx.xxxx /your current location/idea
###Step 4: Move the extracted files to program directory or wherever you want it to be.
A: Enter the following command to move the directory to /opt/
sudo mv idea- /opt/
enter your root user password.
or
B:
Enter in terminal: This is risky do in your own risk!!
sudo nautilus
Enter your password.
/***
Do it only if you know what you are doing or else you may get in trouble
,
if you delete
or rename
or move
some files or directories other than the idea-13
. do it in your own risk, well I said!.
***/
Go to the location where the extracted directory is in.
Cut the directory ctrl
+ x
Click on the computer/file-system
in the left navigation area.
Open the directory opt
Paste there ctrl
+ v
Close the window.
###Step 5: Create shortcut:
To create a file:
Enter the following in the terminal.
sudo gedit /usr/share/applications/intellij.desktop
If you want, replace gedit with your desired text/code editor.
nano
- for Nano editor.
vim
- for Vim.
subl
- for Sublime Text.
Add this to the newly created file:
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=13.1
Type=Application
Name=IntelliJ IDEA
Icon=/opt/idea/bin/idea.png
Exec="/opt/idea/bin/idea.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea
Save the file, close the editor
ctrl
+ s
in gedit, sublime text
ctrl
+ o
in nano, ctrl
+ x
to exit nano editor
###Step 6: Fix permissions:
sudo chmod 644 /usr/share/applications/intellij.desktop
sudo chown root:root /usr/share/applications/intellij.desktop
###Step 7: Add to launcher
Open unity launcher/ubuntu menu
and enter IntelliJ IDEA
click on the icon 'IntelliJ IDEA' with BIGGER ICON to open it.
When its open, right click on the intellij icon in the dock select 'lock to launcher'.
Alternatively you can save the file intellij.desktop in your Ubuntu desktop and use it as a desktop icon.
Any comments or problems let me know.
@xkaterboi
or facebook
.