標籤

bat (52) 作品 (38) python (21) shell (17) windows (11) 虛擬機 (11) php (10) CPP (6) KMS (6) 程式設計 (6) docker (5) 使用教學 (5) xoops (4) 公文 (4) Apache2 (3) Excel (3) juniper (3) 資料庫 (3) mysql (2) 免動手 (2) 資料結構 (2) 軟體廣播 (2) 電腦維修 (2) Android Studio (1) Apple IPAD管理 (1) Arduino (1) CSS (1) LAMP (1) NAS (1) Ubuntu (1) VHD (1) Windows Server (1) 原因 (1) 程式應用 (1) 程式積木 (1) 編輯器 (1) 雲端硬碟 (1)

2021年2月22日 星期一

用shell在CentOS 7 安裝編輯器 Geany 1.37.1、Leafpad、Bluefish、Visual Studio Code、Sublime Text 3、Phpstorm 2020.3

 因為在CentOS 7 編寫程式,所以要開始研究編輯器。 


檔案名稱:CenOS7GeanyInstall.sh
檔案內容:
#!/bin/bash
yum install -y gcc-c++
yum install -y intltool
yum install -y libgnomeui-devel
wget https://download.geany.org/geany-1.37.1.tar.gz
tar zxvf geany-1.37.1.tar.gz
rm geany-1.37.1.tar.gz -y
cd geany-1.37.1
./configure
make
make install

如何使用
$chmod 777 CenOS7GeanyInstall.sh
$sudo sh  CenOS7GeanyInstall.sh

檔案名稱:CenOS7LeafpadInstall.sh
檔案內容:
#!/bin/bash
yum install -y epel-release
yum install -y snapd
systemctl enable --now snapd.socket
ln -s /var/lib/snapd/snap /snap
snap install leafpad

如何使用
$chmod 777 CenOS7LeafpadInstall.sh
$sudo sh  CenOS7LeafpadInstall.sh

檔案名稱:CenOS7BluefishInstall.sh
檔案內容:
#!/bin/bash
yum install -y dnf
dnf install -y bluefish 

如何使用
$chmod 777 CenOS7BluefishInstall.sh
$sudo sh  CenOS7BluefishInstall.sh

檔案名稱:CenOS7VisualStudioCodeInstall.sh
檔案內容:
#!/bin/bash
yum install dnf -y
rpm --import https://packages.microsoft.com/keys/microsoft.asc
sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
dnf check-update
dnf install code

如何使用
$chmod 777 CenOS7VisualStudioCodeInstall.sh
$sudo sh  CenOS7VisualStudioCodeInstall.sh

檔案名稱:CenOS7SublimeText3Install.sh
檔案內容:
#!/bin/bash
rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
yum install -y sublime-text

如何使用
$chmod 777 CenOS7SublimeText3Install.sh
$sudo sh  CenOS7SublimeText3Install.sh

需在視窗環境下安裝
檔案名稱:CenOS7Phpstorm20203Install.sh
檔案內容:
#!/bin/bash
wget https://download-cf.jetbrains.com/webide/PhpStorm-2020.3.tar.gz
tar -xvf PhpStorm-2020.3.tar.gz
mv PhpStorm-203.5981.175 PhpStorm
ln -s ./PhpStorm/bin/phpstorm.sh /usr/bin/phpstorm
echo "#!/bin/bash"  > phpstormsetup.sh
echo "sh ~/PhpStorm/bin/phpstorm.sh"  >> phpstormsetup.sh
chmod 777 phpstormsetup.sh
sh phpstormSetup.sh

如何使用
$chmod 777 CenOS7Phpstorm20203Install.sh
$sudo sh  CenOS7Phpstorm20203Install.sh

如何啟動phpstorm
$sudo sh phpstormSetup.sh 


沒有留言:

張貼留言

只要點兩下,傳統右鍵選單改回Win11右鍵選單

系列文章: 1. 只要點兩下,就能將Win11 右鍵選單 回復 傳統右鍵選單 2. 只要點兩下,傳統右鍵選單改回Win11右鍵選單 上一篇提到只要點兩下,就能將Win11選單回到傳統選單。但是有沒有方法能夠回到Win11選單呢?                    ...