sh Eclipse IDE自动安装脚本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Eclipse IDE自动安装脚本相关的知识,希望对你有一定的参考价值。

# Source: https://github.com/alghanmi/ubuntu-desktop_setup
# Extract files
sudo tar zxvf ~/Downloads/eclipse-*.tar.gz -C /opt/ &&
# Change ownership to root
sudo chown -R root:root /opt/eclipse/ &&

# Create launch script in /usr/local/bin
echo '#!/bin/sh' | sudo tee /usr/local/bin/eclipse &&
echo 'export ECLIPSE_HOME="/opt/eclipse"' | sudo tee -a /usr/local/bin/eclipse &&
echo '$ECLIPSE_HOME/eclipse $*' | sudo tee -a /usr/local/bin/eclipse &&
sudo chmod 755 /usr/local/bin/eclipse &&

# Create menu entry
echo "[Desktop Entry]" | tee ~/.local/share/applications/eclipse.desktop &&
echo "Encoding=UTF-8" | tee -a ~/.local/share/applications/eclipse.desktop &&
echo "Name=Eclipse IDE" | tee -a ~/.local/share/applications/eclipse.desktop &&
echo "Comment=Integrated Development Environment" | tee -a ~/.local/share/applications/eclipse.desktop &&
echo "Exec=/usr/local/bin/eclipse" | tee -a ~/.local/share/applications/eclipse.desktop &&
echo "Icon=/opt/eclipse/icon.xpm" | tee -a ~/.local/share/applications/eclipse.desktop &&
echo "Categories=Development;IDE;Java;" | tee -a ~/.local/share/applications/eclipse.desktop &&
echo "Terminal=false" | tee -a ~/.local/share/applications/eclipse.desktop &&
echo "Type=Application" | tee -a ~/.local/share/applications/eclipse.desktop &&
echo "StartupNotify=true" | tee -a ~/.local/share/applications/eclipse.desktop &&

# Delete Eclipse download
rm ~/Downloads/eclipse-*.tar.gz

以上是关于sh Eclipse IDE自动安装脚本的主要内容,如果未能解决你的问题,请参考以下文章

linux自动部署--sh脚本安装jdk,tomcat,mysqlclient

linux自动部署--sh脚本安装jdk,tomcat,mysqlclient

Clion IDE的安装

Appium移动端自动化测试--使用IDE编辑并强化脚本

selenium IDE自动化脚本录制

sh Archlinux VM自动安装脚本。