因為在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
資料來源:
1.Python学习笔记-Geany安装(CentOS)
1.Python学习笔记-Geany安装(CentOS)
沒有留言:
張貼留言