Application intellij

From campisano.org
Jump to navigation Jump to search

IntelliJ

Install

shared/opt install schema v1.2

#### cleanup
rm -rf ~/.IntelliJIdea*
rm -rf ~/.java/.userPrefs/jetbrains/idea
#### install
su -
#### as root
# dependencies
apt-get install curl tar gzip
# binary
DESTINATION="/home/shared/opt/software"                 # Edit when needed
VERSION="2019.2.4-no-jbr"                               # Edit when needed
URL="https://download-cf.jetbrains.com/idea/ideaIU-${VERSION}.tar.gz"
umask 0027
mkdir -p "${DESTINATION}/tmp"
cd "${DESTINATION}/tmp"
curl -C - -kLO "${URL}"
tar -xzf "ideaIU-${VERSION}.tar.gz"
cd "${DESTINATION}"
chown -R root:users "tmp"
find "tmp" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;
find "tmp" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;
mv "tmp/idea-IU-"* "intellij_${VERSION}"
rm -rf tmp intellij
ln -s "intellij_${VERSION}" intellij
exit
#### as final user
SOFTWARE_PATH="/home/shared/opt/software"               # Edit when needed
"${SOFTWARE_PATH}"/intellij/bin/idea.sh;