Ubnutu安装IDEA并创建快捷方式

晓梦 2021年5月4日17:19:00技术教程评论889538字阅读1分47秒
文章源自晓梦个人主页-https://www.xmbkw.com/12.html

本文使用工具版本如下文章源自晓梦个人主页-https://www.xmbkw.com/12.html

系统版本:Ubnutu20.04文章源自晓梦个人主页-https://www.xmbkw.com/12.html

IDEA版本:2021.1.1文章源自晓梦个人主页-https://www.xmbkw.com/12.html

1:先在官网下载安装包,

文章源自晓梦个人主页-https://www.xmbkw.com/12.html

2:解压文章源自晓梦个人主页-https://www.xmbkw.com/12.html

sudo tar -zxvf ideaIU-2021.1.1.tar.gz

3:解压成功后,在bin目录下找到 idea.sh 执行就可以了文章源自晓梦个人主页-https://www.xmbkw.com/12.html

4:移动IDEA文件夹到opt下文章源自晓梦个人主页-https://www.xmbkw.com/12.html

sudo mv idea-IU-211.7142.45/ /opt/idea/

5:创建快捷方式文章源自晓梦个人主页-https://www.xmbkw.com/12.html

cd /usr/share/applications
sudo touch idea.desktop
sudo gedit idea.desktop

粘贴下面文本保存文章源自晓梦个人主页-https://www.xmbkw.com/12.html

[Desktop Entry]
Name=IntelliJ IDEA
Comment=IntelliJ IDEA
Exec=/opt/idea/bin/idea.sh     # idea路径
Icon=/opt/idea/bin/idea.png
Terminal=false
Type=Application
Categories=Developer;

执行文章源自晓梦个人主页-https://www.xmbkw.com/12.html

sudo chmod u+x idea.desktop

大功告成,在抽屉里就可以看到图标了。文章源自晓梦个人主页-https://www.xmbkw.com/12.html

晓梦
  • 本文由 发表于 2021年5月4日17:19:00
  • 转载请务必保留本文链接:https://www.xmbkw.com/12.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定