Install IDEA in Ubuntu and configure desktop shortcuts

1. First download the linux version of the idea yourself

I will omit this step.

2. Create a new installation directory IDEA under the /usr/local/ path:

mkdir -p /usr/local/IDEA

3. Execute the following command to decompress the downloaded compressed package to the specified directory:

tar -zxvf ideaIU-2022.3.3.tar.gz -C /usr/local/IDEA  

Note that this line of command is currently executed in the compressed package. If you do not have permission, authorize it.

sudo chmod 777 compressed package name

4. Run IDEA

cd /usr/local/IDEA/idea-IU-223.8836.41/bin #进入相应目录
./idea.sh #运行idea.sh,认证激活后

There is no need to activate the community version. 

Configure IDEA shortcut on desktop

(1) Execute the following command to create the idea.desktop file in the corresponding directory:

sudo vim /usr/share/applications/idea.desktop 

(2) Write the idea.desktop file as follows:

[Desktop Entry]
Name=IntelliJ IDEA
Comment=IntelliJ IDEA
Exec=/usr/local/IDEA/idea-IU-223.8836.41/bin/idea.sh #换成自己的 idea 路径
Icon=/usr/local/IDEA/idea-IU-223.8836.41/bin/idea.png #换成自己的 idea 路径
Terminal=false
Type=Application
Categories=Developer;

Note that the path is your installation path, change it yourself.

(3) Check whether IDEA shortcut is generated

Guess you like

Origin blog.csdn.net/djklsajdklsajdlk/article/details/134770418