Intellij IDEA installed on Ubuntu and create a desktop shortcut

Environmental Information version number
Ubuntu 18.04 LTS
Intellij IDEA 2019.1.3

1. First, obtain the installation package from the official website

Official Download Portal

Obtain the installation package from the official website

Then I got the tar.gz package in the download directory

idea installation package

2. Next, start a command line to extract the installation

2.1 decompress gzip package

First, the switching operation to the directory / usr / local
and extract the current user home folder / download / IDEA compressed packets to / usr / local / IDEA

tar command parameters:
-c: the Create compressed archives established parameters;
-x: Unzip compression parameter file;
the -z: whether to use gzip compression;
-v: display the file compression process;
-f: Top document name, f connected immediately behind the file name, can not be combined with parameters

Shell command:

cd /usr/local
sudo mkdir idea
sudo tar -zxvf ~/下载/ideaIU-2019.1.3.tar.gz -C idea/

From the above screenshots we need to note that: Before executing tar extract command, you need a good idea to create a folder precede a command, another Ubuntu system encountered no permission issues when sudo , or you can su root administrator with root system identity and then create a bash command execution

2.2 Rename the folder

Shell command:

cd /usr/local/idea
pwd
sudo mv idea-IU-191.7479.19/ ideaIU/

Use pwd command to verify the current working directory is / usr / local / idea
and then use the mv command to change the folder name

* 2.3 If ideaIU also want to transfer the contents inside / usr / local / ideaIU / lower

sudo mv ideaIU/ /usr/local/ideaIU/
cd ../
ll
sudo rm -d idea/

Folder idea is already an empty folder, so you can use rm to remove instruction

* Thinking: In fact, we can also be performed in 2.1

cd /usr/local
sudo tar -zxvf ~/下载/ideaIU-2019.1.3.tar.gz

This can directly generate \ usr \ local \ idea-IU
-191.7479.19 then perform the renaming is not to OK it? Why do many times in one fell swoop?
Answer: Because not a situation encountered unzip the folder down before me, all the files will fall went to / usr / local / folder, time to think about treatment is more difficult, so I'd create a new folder and then unzip Compare ensure stability
, however, the simple idea to install it, you can still do it in!

3. Create a desktop shortcut

If only the implementation of the above 2.2, then your installation directory is now the idea
/usr/local/idea/ideaIU, if you perform a 2.3, then your installation directory /usr/local/ideaIU, you can pass cd bin/and llinstruction, you will see
Browse bin folder
these two files to create a desktop shortcut when You will use the
Shell command:

cd ~/桌面
touch idea.desktop
sudo vi idea.desktop

Then I began to press enter, enter the last finished, press ESC, and then enter:wq

[Desktop Entry]
Name=IntelliJ IDEA
Comment=IntelliJ IDEA
Exec=/usr/local/ideaIU/bin/idea.sh
Icon=/usr/local/ideaIU/bin/idea.png
Terminal=false
Type=Application
Categories=Developer;

This allows the executable file, you need to use the chmod command

sudo chmod +x idea.desktop

Select Trust gets the job done

4. Please support genuine software

4.1 Activation Code

idea. lanyus. com (you know pojiefangfa)

4.2 modifies the hosts

You can refer to this blog: About ubuntu modify the hosts file method

Enter privileged mode,
Shell command:

sudo su
vi /etc/hosts


END

Enjoy It!

Guess you like

Origin www.cnblogs.com/zaid/p/11141348.html
Recommended