From 02be94602ba477fc0b9f85749306c4f5a9fa07e0 Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Tue, 25 Jul 2023 21:11:04 +0600 Subject: [PATCH 01/15] Added sublime.sh --- scripts/run_order.txt | 1 + scripts/sublime.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 scripts/sublime.sh diff --git a/scripts/run_order.txt b/scripts/run_order.txt index 8fdf0d6..33673b9 100644 --- a/scripts/run_order.txt +++ b/scripts/run_order.txt @@ -6,6 +6,7 @@ python3.10.sh openssh_server.sh code.sh codeblocks.sh +sublime.sh dist_upgrade.sh copy_dots.sh add_users.sh diff --git a/scripts/sublime.sh b/scripts/sublime.sh new file mode 100755 index 0000000..55560ef --- /dev/null +++ b/scripts/sublime.sh @@ -0,0 +1,14 @@ +set -eux + +# https://www.cyberithub.com/how-to-install-sublime-text-4-on-ubuntu-20-04-lts-focal-fossa/ +echo "Installing Sublime Text 4 ..." +apt update +apt -y dist-upgrade +apt install -y wget gpg +wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor >> /etc/apt/trusted.gpg.d/sublimehq-archive.gpg +echo "deb https://download.sublimetext.com/ apt/stable/" >> /etc/apt/sources.list.d/sublime-text.list +apt update +apt install -y sublime-text + +echo "Priniting Sublime Text version ..." +subl --version \ No newline at end of file From f5c56e7813b3cb571eea5875ff3209c733f04314 Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Tue, 25 Jul 2023 21:23:40 +0600 Subject: [PATCH 02/15] Added vim.sh --- scripts/run_order.txt | 1 + scripts/vim.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 scripts/vim.sh diff --git a/scripts/run_order.txt b/scripts/run_order.txt index 33673b9..465511c 100644 --- a/scripts/run_order.txt +++ b/scripts/run_order.txt @@ -7,6 +7,7 @@ openssh_server.sh code.sh codeblocks.sh sublime.sh +vim.sh dist_upgrade.sh copy_dots.sh add_users.sh diff --git a/scripts/vim.sh b/scripts/vim.sh new file mode 100644 index 0000000..f41d181 --- /dev/null +++ b/scripts/vim.sh @@ -0,0 +1,8 @@ +set -eux + +echo "Installing Vim ..." +apt update +apt -y dist-upgrade +apt install -y vim +echo "Priniting Vim version ..." +vim --version \ No newline at end of file From 27b5f42b7189d5fb9c9008750c4f84c07ac1603c Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Tue, 25 Jul 2023 21:30:43 +0600 Subject: [PATCH 03/15] Added emacs.sh --- scripts/emacs.sh | 8 ++++++++ scripts/run_order.txt | 1 + 2 files changed, 9 insertions(+) create mode 100755 scripts/emacs.sh diff --git a/scripts/emacs.sh b/scripts/emacs.sh new file mode 100755 index 0000000..b0aa909 --- /dev/null +++ b/scripts/emacs.sh @@ -0,0 +1,8 @@ +set -eux + +echo "Installing Emacs ..." +apt update +apt -y dist-upgrade +apt install -y emacs +echo "Priniting Emacs version ..." +emacs --version \ No newline at end of file diff --git a/scripts/run_order.txt b/scripts/run_order.txt index 465511c..e21a23e 100644 --- a/scripts/run_order.txt +++ b/scripts/run_order.txt @@ -8,6 +8,7 @@ code.sh codeblocks.sh sublime.sh vim.sh +emacs.sh dist_upgrade.sh copy_dots.sh add_users.sh From 6aabf4c66fe98ace24f9f6e29582c73ac6c81080 Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Tue, 25 Jul 2023 21:34:04 +0600 Subject: [PATCH 04/15] Added geany.sh --- scripts/geany.sh | 8 ++++++++ scripts/run_order.txt | 1 + 2 files changed, 9 insertions(+) create mode 100755 scripts/geany.sh diff --git a/scripts/geany.sh b/scripts/geany.sh new file mode 100755 index 0000000..16fb31f --- /dev/null +++ b/scripts/geany.sh @@ -0,0 +1,8 @@ +set -eux + +echo "Installing Geany ..." +apt update +apt -y dist-upgrade +apt install -y geany +echo "Priniting Geany version ..." +geany --version \ No newline at end of file diff --git a/scripts/run_order.txt b/scripts/run_order.txt index e21a23e..d7bf32c 100644 --- a/scripts/run_order.txt +++ b/scripts/run_order.txt @@ -9,6 +9,7 @@ codeblocks.sh sublime.sh vim.sh emacs.sh +geany.sh dist_upgrade.sh copy_dots.sh add_users.sh From c3bee0e28831de46eb8a8b2982798766b076e5cc Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Tue, 25 Jul 2023 21:37:45 +0600 Subject: [PATCH 05/15] Removed redundant apt update and upgrade --- scripts/emacs.sh | 2 -- scripts/geany.sh | 2 -- scripts/sublime.sh | 2 -- scripts/vim.sh | 2 -- 4 files changed, 8 deletions(-) diff --git a/scripts/emacs.sh b/scripts/emacs.sh index b0aa909..f610f11 100755 --- a/scripts/emacs.sh +++ b/scripts/emacs.sh @@ -1,8 +1,6 @@ set -eux echo "Installing Emacs ..." -apt update -apt -y dist-upgrade apt install -y emacs echo "Priniting Emacs version ..." emacs --version \ No newline at end of file diff --git a/scripts/geany.sh b/scripts/geany.sh index 16fb31f..8869b35 100755 --- a/scripts/geany.sh +++ b/scripts/geany.sh @@ -1,8 +1,6 @@ set -eux echo "Installing Geany ..." -apt update -apt -y dist-upgrade apt install -y geany echo "Priniting Geany version ..." geany --version \ No newline at end of file diff --git a/scripts/sublime.sh b/scripts/sublime.sh index 55560ef..1adf561 100755 --- a/scripts/sublime.sh +++ b/scripts/sublime.sh @@ -2,8 +2,6 @@ set -eux # https://www.cyberithub.com/how-to-install-sublime-text-4-on-ubuntu-20-04-lts-focal-fossa/ echo "Installing Sublime Text 4 ..." -apt update -apt -y dist-upgrade apt install -y wget gpg wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor >> /etc/apt/trusted.gpg.d/sublimehq-archive.gpg echo "deb https://download.sublimetext.com/ apt/stable/" >> /etc/apt/sources.list.d/sublime-text.list diff --git a/scripts/vim.sh b/scripts/vim.sh index f41d181..36bc75d 100644 --- a/scripts/vim.sh +++ b/scripts/vim.sh @@ -1,8 +1,6 @@ set -eux echo "Installing Vim ..." -apt update -apt -y dist-upgrade apt install -y vim echo "Priniting Vim version ..." vim --version \ No newline at end of file From bb2ad77a8331340f787b11b9195fcb2da35e902c Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Tue, 25 Jul 2023 21:58:12 +0600 Subject: [PATCH 06/15] Added openjdk17.sh --- scripts/openjdk17.sh | 8 ++++++++ scripts/run_order.txt | 1 + 2 files changed, 9 insertions(+) create mode 100755 scripts/openjdk17.sh diff --git a/scripts/openjdk17.sh b/scripts/openjdk17.sh new file mode 100755 index 0000000..9e998ea --- /dev/null +++ b/scripts/openjdk17.sh @@ -0,0 +1,8 @@ +set -eux + +echo "Installing OpenJDK 17 ..." +apt install -y openjdk-17-jdk openjdk-17-jre +echo "Priniting Java version ..." +java --version +echo "Priniting Java compiler version ..." +javac --version \ No newline at end of file diff --git a/scripts/run_order.txt b/scripts/run_order.txt index d7bf32c..510b450 100644 --- a/scripts/run_order.txt +++ b/scripts/run_order.txt @@ -3,6 +3,7 @@ add_repo.sh google_chrome.sh gcc_10.sh python3.10.sh +openjdk17.sh openssh_server.sh code.sh codeblocks.sh From faa86f7e76b336b7307123edda138bb5fe267dbe Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Tue, 25 Jul 2023 22:15:05 +0600 Subject: [PATCH 07/15] Added pycharm and intellij idea --- scripts/intellij_idea_community.sh | 6 ++++++ scripts/pycharm_community.sh | 6 ++++++ scripts/run_order.txt | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 scripts/intellij_idea_community.sh create mode 100644 scripts/pycharm_community.sh diff --git a/scripts/intellij_idea_community.sh b/scripts/intellij_idea_community.sh new file mode 100644 index 0000000..bdd23b7 --- /dev/null +++ b/scripts/intellij_idea_community.sh @@ -0,0 +1,6 @@ +set -eux + +echo "Installing IntelliJ IDEA Community Edition ..." +snap install intellij-idea-community --classic +echo "Priniting IntelliJ IDEA version ..." +intellij-idea-community --version \ No newline at end of file diff --git a/scripts/pycharm_community.sh b/scripts/pycharm_community.sh new file mode 100644 index 0000000..92a0728 --- /dev/null +++ b/scripts/pycharm_community.sh @@ -0,0 +1,6 @@ +set -eux + +echo "Installing PyCharm Community Edition ..." +snap install pycharm-community --classic +echo "Priniting PyCharm version ..." +pycharm-community --version \ No newline at end of file diff --git a/scripts/run_order.txt b/scripts/run_order.txt index 510b450..2bce0a0 100644 --- a/scripts/run_order.txt +++ b/scripts/run_order.txt @@ -7,6 +7,8 @@ openjdk17.sh openssh_server.sh code.sh codeblocks.sh +pycharm_community.sh +intellij_idea_community.sh sublime.sh vim.sh emacs.sh From 2552fdce9f4508ffea1dbe12f66ebabb056c6951 Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Wed, 26 Jul 2023 00:32:13 +0600 Subject: [PATCH 08/15] Update sublime-text, added vim-gtk3, typo fix --- scripts/emacs.sh | 6 +++--- scripts/geany.sh | 6 +++--- scripts/intellij_idea_community.sh | 6 +++--- scripts/openjdk17.sh | 8 ++++---- scripts/pycharm_community.sh | 6 +++--- scripts/sublime.sh | 9 +++++---- scripts/vim.sh | 8 ++++---- 7 files changed, 25 insertions(+), 24 deletions(-) diff --git a/scripts/emacs.sh b/scripts/emacs.sh index f610f11..15173cb 100755 --- a/scripts/emacs.sh +++ b/scripts/emacs.sh @@ -1,6 +1,6 @@ set -eux -echo "Installing Emacs ..." +echo "\nInstalling Emacs ...\n" apt install -y emacs -echo "Priniting Emacs version ..." -emacs --version \ No newline at end of file +echo "\nPrinting Emacs version ...\n" +emacs --version diff --git a/scripts/geany.sh b/scripts/geany.sh index 8869b35..7a84dbd 100755 --- a/scripts/geany.sh +++ b/scripts/geany.sh @@ -1,6 +1,6 @@ set -eux -echo "Installing Geany ..." +echo "\nInstalling Geany ...\n" apt install -y geany -echo "Priniting Geany version ..." -geany --version \ No newline at end of file +echo "\nPrinting Geany version ...\n" +geany --version diff --git a/scripts/intellij_idea_community.sh b/scripts/intellij_idea_community.sh index bdd23b7..c759dcc 100644 --- a/scripts/intellij_idea_community.sh +++ b/scripts/intellij_idea_community.sh @@ -1,6 +1,6 @@ set -eux -echo "Installing IntelliJ IDEA Community Edition ..." +echo "\nInstalling IntelliJ IDEA Community Edition ...\n" snap install intellij-idea-community --classic -echo "Priniting IntelliJ IDEA version ..." -intellij-idea-community --version \ No newline at end of file +echo "\nPrinting IntelliJ IDEA version ...\n" +intellij-idea-community --version diff --git a/scripts/openjdk17.sh b/scripts/openjdk17.sh index 9e998ea..942637f 100755 --- a/scripts/openjdk17.sh +++ b/scripts/openjdk17.sh @@ -1,8 +1,8 @@ set -eux -echo "Installing OpenJDK 17 ..." +echo "\nInstalling OpenJDK 17 ...\n" apt install -y openjdk-17-jdk openjdk-17-jre -echo "Priniting Java version ..." +echo "\nPrinting Java version ...\n" java --version -echo "Priniting Java compiler version ..." -javac --version \ No newline at end of file +echo "\nPrinting Java compiler version ...\n" +javac --version diff --git a/scripts/pycharm_community.sh b/scripts/pycharm_community.sh index 92a0728..d87c2cc 100644 --- a/scripts/pycharm_community.sh +++ b/scripts/pycharm_community.sh @@ -1,6 +1,6 @@ set -eux -echo "Installing PyCharm Community Edition ..." +echo "\nInstalling PyCharm Community Edition ...\n" snap install pycharm-community --classic -echo "Priniting PyCharm version ..." -pycharm-community --version \ No newline at end of file +echo "\nPrinting PyCharm version ...\n" +pycharm-community --version diff --git a/scripts/sublime.sh b/scripts/sublime.sh index 1adf561..5b7f2eb 100755 --- a/scripts/sublime.sh +++ b/scripts/sublime.sh @@ -1,12 +1,13 @@ set -eux -# https://www.cyberithub.com/how-to-install-sublime-text-4-on-ubuntu-20-04-lts-focal-fossa/ -echo "Installing Sublime Text 4 ..." +# https://www.sublimetext.com/docs/linux_repositories.html#apt +echo "\nInstalling Sublime Text 4 ...\n" apt install -y wget gpg wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor >> /etc/apt/trusted.gpg.d/sublimehq-archive.gpg echo "deb https://download.sublimetext.com/ apt/stable/" >> /etc/apt/sources.list.d/sublime-text.list apt update +apt install -y apt-transport-https apt install -y sublime-text -echo "Priniting Sublime Text version ..." -subl --version \ No newline at end of file +echo "\nPrinting Sublime Text version ...\n" +subl --version diff --git a/scripts/vim.sh b/scripts/vim.sh index 36bc75d..927763d 100644 --- a/scripts/vim.sh +++ b/scripts/vim.sh @@ -1,6 +1,6 @@ set -eux -echo "Installing Vim ..." -apt install -y vim -echo "Priniting Vim version ..." -vim --version \ No newline at end of file +echo "\nInstalling Vim ...\n" +apt install -y vim-gtk3 +echo "\nPrinting Vim version ...\n" +vim --version From 5bc0ecbb527885d1772ddf9ab16b294dcf305b97 Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Wed, 26 Jul 2023 07:26:04 +0600 Subject: [PATCH 09/15] Updated pycharm installer --- scripts/pycharm_community.sh | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) mode change 100644 => 100755 scripts/pycharm_community.sh diff --git a/scripts/pycharm_community.sh b/scripts/pycharm_community.sh old mode 100644 new mode 100755 index d87c2cc..2ef2576 --- a/scripts/pycharm_community.sh +++ b/scripts/pycharm_community.sh @@ -1,6 +1,24 @@ set -eux -echo "\nInstalling PyCharm Community Edition ...\n" -snap install pycharm-community --classic +PYCHARM_VERSION="2023.1.4" +PYCHARM_NAME="pycharm-community-$PYCHARM_VERSION" +SOURCE_URL="https://download.jetbrains.com/python/$PYCHARM_NAME.tar.gz" +SOURCE_SHA256_URL="$SOURCE_URL.sha256" + +echo "\nInstalling PyCharm Community Edition $PYCHARM_VERSION ...\n" + +apt install -y wget +wget $SOURCE_URL -O $PYCHARM_NAME.tar.gz + +wget $SOURCE_SHA256_URL -O expected_sha256sum.txt +sha256sum $PYCHARM_NAME.tar.gz >> actual_sha256sum.txt + +cat actual_sha256sum.txt | sha256sum -c expected_sha256sum.txt +tar xzf $PYCHARM_NAME.tar.gz -C /opt/ + +rm actual_sha256sum.txt expected_sha256sum.txt +rm $PYCHARM_NAME.tar.gz + +# TODO: configure pycharm + echo "\nPrinting PyCharm version ...\n" -pycharm-community --version From 46669aca56ea79655c67cc9c6f24710c6d673274 Mon Sep 17 00:00:00 2001 From: Rafid Bin Mostofa Date: Wed, 26 Jul 2023 11:28:12 +0600 Subject: [PATCH 10/15] feat: update pycharm installer script --- scripts/pycharm_community.sh | 49 +++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/scripts/pycharm_community.sh b/scripts/pycharm_community.sh index 2ef2576..b8d3f20 100755 --- a/scripts/pycharm_community.sh +++ b/scripts/pycharm_community.sh @@ -1,24 +1,33 @@ +#!/bin/bash + set -eux PYCHARM_VERSION="2023.1.4" -PYCHARM_NAME="pycharm-community-$PYCHARM_VERSION" -SOURCE_URL="https://download.jetbrains.com/python/$PYCHARM_NAME.tar.gz" -SOURCE_SHA256_URL="$SOURCE_URL.sha256" - -echo "\nInstalling PyCharm Community Edition $PYCHARM_VERSION ...\n" - -apt install -y wget -wget $SOURCE_URL -O $PYCHARM_NAME.tar.gz - -wget $SOURCE_SHA256_URL -O expected_sha256sum.txt -sha256sum $PYCHARM_NAME.tar.gz >> actual_sha256sum.txt - -cat actual_sha256sum.txt | sha256sum -c expected_sha256sum.txt -tar xzf $PYCHARM_NAME.tar.gz -C /opt/ - -rm actual_sha256sum.txt expected_sha256sum.txt -rm $PYCHARM_NAME.tar.gz - -# TODO: configure pycharm -echo "\nPrinting PyCharm version ...\n" +echo "Install Pycharm Community $PYCHARM_VERSION .." + +# download pycharm community edition +# wget "data.services.jetbrains.com/products/download?code=PCC&platform=linux" -O pycharm.tar.gz +wget -c "https://download.jetbrains.com/python/pycharm-community-${PYCHARM_VERSION}.tar.gz" + +# extract and keep the files in /opt +tar -zxvf "pycharm-community-${PYCHARM_VERSION}.tar.gz" +mv "pycharm-${PYCHARM_VERSION}" /opt + +# populate desktop entry +cat > jetbrains-pycharm.desktop << EOF +[Desktop Entry] +Version=1.0 +Type=Application +Name=PyCharm Community Edition +Icon=/opt/pycharm/bin/pycharm.svg +Exec="/opt/pycharm/bin/pycharm.sh" %f +Comment=Python IDE for Developers +Categories=Development;IDE; +Terminal=false +StartupWMClass=jetbrains-pycharm +StartupNotify=true +EOF + +# copy the desktop entry to appropriate location +mv jetbrains-pycharm.desktop /usr/share/applications/ From 932c5fd8a6942c0e928f91edfec16e9b4f8232a8 Mon Sep 17 00:00:00 2001 From: Rafid Bin Mostofa Date: Wed, 26 Jul 2023 15:05:03 +0600 Subject: [PATCH 11/15] fix: rename pycharm extracted dir They seem to have changed the directory name within the tarball. This commit updates the name. --- scripts/pycharm_community.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pycharm_community.sh b/scripts/pycharm_community.sh index b8d3f20..8339bcc 100755 --- a/scripts/pycharm_community.sh +++ b/scripts/pycharm_community.sh @@ -12,7 +12,7 @@ wget -c "https://download.jetbrains.com/python/pycharm-community-${PYCHARM_VERSI # extract and keep the files in /opt tar -zxvf "pycharm-community-${PYCHARM_VERSION}.tar.gz" -mv "pycharm-${PYCHARM_VERSION}" /opt +mv "pycharm-community-${PYCHARM_VERSION}" /opt # populate desktop entry cat > jetbrains-pycharm.desktop << EOF From 6da0268b407246fe93abcfa29f1e50671a4330e4 Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Thu, 27 Jul 2023 21:12:48 +0600 Subject: [PATCH 12/15] Updated pycharm_community.sh --- scripts/pycharm_community.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/pycharm_community.sh b/scripts/pycharm_community.sh index 8339bcc..5287a7e 100755 --- a/scripts/pycharm_community.sh +++ b/scripts/pycharm_community.sh @@ -4,16 +4,24 @@ set -eux PYCHARM_VERSION="2023.1.4" -echo "Install Pycharm Community $PYCHARM_VERSION .." +echo "\nInstall Pycharm Community $PYCHARM_VERSION ..\n" # download pycharm community edition # wget "data.services.jetbrains.com/products/download?code=PCC&platform=linux" -O pycharm.tar.gz wget -c "https://download.jetbrains.com/python/pycharm-community-${PYCHARM_VERSION}.tar.gz" +# download sha256sum file and verify the checksum +wget "https://download.jetbrains.com/python/pycharm-community-${PYCHARM_VERSION}.tar.gz.sha256" -O expected_sha256sum.txt +sha256sum pycharm-community-${PYCHARM_VERSION}.tar.gz >> actual_sha256sum.txt +cat actual_sha256sum.txt | sha256sum -c expected_sha256sum.txt + # extract and keep the files in /opt tar -zxvf "pycharm-community-${PYCHARM_VERSION}.tar.gz" mv "pycharm-community-${PYCHARM_VERSION}" /opt +# remove tar and hash files +rm "pycharm-community-${PYCHARM_VERSION}.tar.gz" actual_sha256sum.txt expected_sha256sum.txt + # populate desktop entry cat > jetbrains-pycharm.desktop << EOF [Desktop Entry] From 91c69e4e5e7fa8a982254f9d5035d6f6de5db4d8 Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Thu, 27 Jul 2023 22:36:09 +0600 Subject: [PATCH 13/15] Working pycharm-ce --- scripts/pycharm_community.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/pycharm_community.sh b/scripts/pycharm_community.sh index 5287a7e..6aa695e 100755 --- a/scripts/pycharm_community.sh +++ b/scripts/pycharm_community.sh @@ -3,6 +3,7 @@ set -eux PYCHARM_VERSION="2023.1.4" +PYCHARM_NAME="pycharm-community-${PYCHARM_VERSION}" echo "\nInstall Pycharm Community $PYCHARM_VERSION ..\n" @@ -23,13 +24,13 @@ mv "pycharm-community-${PYCHARM_VERSION}" /opt rm "pycharm-community-${PYCHARM_VERSION}.tar.gz" actual_sha256sum.txt expected_sha256sum.txt # populate desktop entry -cat > jetbrains-pycharm.desktop << EOF +cat > jetbrains-pycharm-ce.desktop << EOF [Desktop Entry] Version=1.0 Type=Application Name=PyCharm Community Edition -Icon=/opt/pycharm/bin/pycharm.svg -Exec="/opt/pycharm/bin/pycharm.sh" %f +Icon=/opt/$PYCHARM_NAME/bin/pycharm.svg +Exec="/opt/$PYCHARM_NAME/bin/pycharm.sh" %f Comment=Python IDE for Developers Categories=Development;IDE; Terminal=false @@ -38,4 +39,4 @@ StartupNotify=true EOF # copy the desktop entry to appropriate location -mv jetbrains-pycharm.desktop /usr/share/applications/ +mv jetbrains-pycharm-ce.desktop /usr/share/applications/ From ba5bdd4e495c0f9003c870abe53854547f132f91 Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Thu, 27 Jul 2023 23:36:38 +0600 Subject: [PATCH 14/15] updated idea --- scripts/intellij_idea_community.sh | 40 +++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 4 deletions(-) mode change 100644 => 100755 scripts/intellij_idea_community.sh diff --git a/scripts/intellij_idea_community.sh b/scripts/intellij_idea_community.sh old mode 100644 new mode 100755 index c759dcc..db6702c --- a/scripts/intellij_idea_community.sh +++ b/scripts/intellij_idea_community.sh @@ -1,6 +1,38 @@ +#!/bin/bash + set -eux -echo "\nInstalling IntelliJ IDEA Community Edition ...\n" -snap install intellij-idea-community --classic -echo "\nPrinting IntelliJ IDEA version ...\n" -intellij-idea-community --version +echo "\nInstalling IntelliJ IDEA Community Edition 2023.2 ...\n" + +# download pycharm community edition +wget -c "https://download.jetbrains.com/idea/ideaIC-2023.2.tar.gz" + +# download sha256sum file and verify the checksum +wget "https://download.jetbrains.com/idea/ideaIC-2023.2.tar.gz.sha256" -O expected_sha256sum.txt +sha256sum ideaIC-2023.2.tar.gz >> actual_sha256sum.txt +cat actual_sha256sum.txt | sha256sum -c expected_sha256sum.txt + +# extract and keep the files in /opt +tar -zxvf "ideaIC-2023.2.tar.gz" +mv "idea-IC-232.8660.185" /opt + +# remove tar and hash files +rm "ideaIC-2023.2.tar.gz" actual_sha256sum.txt expected_sha256sum.txt + +# populate desktop entry +cat > jetbrains-idea-ce.desktop << EOF +[Desktop Entry] +Version=1.0 +Type=Application +Name=IntelliJ IDEA Community Edition +Icon=/opt/idea-IC-232.8660.185/bin/idea.svg +Exec="/opt/idea-IC-232.8660.185/bin/idea.sh" %f +Comment=Capable and Ergonomic IDE for JVM +Categories=Development;IDE; +Terminal=false +StartupWMClass=jetbrains-idea-ce +StartupNotify=true +EOF + +# copy the desktop entry to appropriate location +mv jetbrains-idea-ce.desktop /usr/share/applications/ From 525f412c212680b8c65161168483ae1b83632c58 Mon Sep 17 00:00:00 2001 From: Mahdi Hasnat Siyam Date: Fri, 28 Jul 2023 22:19:59 +0600 Subject: [PATCH 15/15] Parameterized idea-ce by version no --- scripts/intellij_idea_community.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/scripts/intellij_idea_community.sh b/scripts/intellij_idea_community.sh index db6702c..923e0aa 100755 --- a/scripts/intellij_idea_community.sh +++ b/scripts/intellij_idea_community.sh @@ -2,22 +2,24 @@ set -eux -echo "\nInstalling IntelliJ IDEA Community Edition 2023.2 ...\n" +IDEA_VERSION='2023.2' +echo "\nInstalling IntelliJ IDEA Community Edition $IDEA_VERSION ...\n" # download pycharm community edition -wget -c "https://download.jetbrains.com/idea/ideaIC-2023.2.tar.gz" +wget -c "https://download.jetbrains.com/idea/ideaIC-$IDEA_VERSION.tar.gz" # download sha256sum file and verify the checksum -wget "https://download.jetbrains.com/idea/ideaIC-2023.2.tar.gz.sha256" -O expected_sha256sum.txt -sha256sum ideaIC-2023.2.tar.gz >> actual_sha256sum.txt +wget "https://download.jetbrains.com/idea/ideaIC-$IDEA_VERSION.tar.gz.sha256" -O expected_sha256sum.txt +sha256sum ideaIC-$IDEA_VERSION.tar.gz >> actual_sha256sum.txt cat actual_sha256sum.txt | sha256sum -c expected_sha256sum.txt # extract and keep the files in /opt -tar -zxvf "ideaIC-2023.2.tar.gz" -mv "idea-IC-232.8660.185" /opt +mkdir idea-ce-$IDEA_VERSION +tar -zxvf "ideaIC-$IDEA_VERSION.tar.gz" -C idea-ce-$IDEA_VERSION --strip-components 1 +mv idea-ce-$IDEA_VERSION /opt # remove tar and hash files -rm "ideaIC-2023.2.tar.gz" actual_sha256sum.txt expected_sha256sum.txt +rm "ideaIC-$IDEA_VERSION.tar.gz" actual_sha256sum.txt expected_sha256sum.txt # populate desktop entry cat > jetbrains-idea-ce.desktop << EOF @@ -25,8 +27,8 @@ cat > jetbrains-idea-ce.desktop << EOF Version=1.0 Type=Application Name=IntelliJ IDEA Community Edition -Icon=/opt/idea-IC-232.8660.185/bin/idea.svg -Exec="/opt/idea-IC-232.8660.185/bin/idea.sh" %f +Icon=/opt/idea-ce-$IDEA_VERSION/bin/idea.svg +Exec="/opt/idea-ce-$IDEA_VERSION/bin/idea.sh" %f Comment=Capable and Ergonomic IDE for JVM Categories=Development;IDE; Terminal=false