1.官网下载idea 网址:https://www.jetbrains.com/idea/download/#section=linux 2.将idea安装包解压到相应目录
tar -zxvf /home/wwj/Downloads/ideaIU-2021.2.tar.gz -C /opt
为了简便,修改解压文件夹名为idea
mv idea-IU-212.4746.92 idea
3.启动idea
cd /opt/idea/bin
./idea.sh
4.创建桌面快捷方式
cd home/xxx/desktop
touch idea.desktop
gedit idea.desktop
编辑idea.desktop文件
[Desktop Entry]
Name=IdeaIU
Comment=IDEAIU
Exec=/opt/idea/bin/idea.sh %u
Icon=/opt/idea/bin/idea.png
Encoding=UTF-8
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;
赋予权限
chmod 777 idea.desktop
将idea.desktop拷贝到/usr/share/applications文件夹
cp idea.desktop /usr/share/applications
将此图标拖到桌面,覆盖原idea.desktop文件即可。
|