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 


沒有留言:

張貼留言

Laravel 12 Model 資料庫中的資料表,並提供與資料庫互動的介面

相關系列文章: 1. 在 windows 10 安裝 laravel 12 studentManagement環境與設定 2. laravel 12 route 路由 3. laravel 12 Blade Templates 網頁模版 4. laravel 12 Control...