2021年2月21日 星期日

用shell 在CentOS 7 快速安裝 Chrome 與安裝、設定字型Fira Code

 為了要在CentOS 7 寫php程式,開始要了解 CentOS 7 桌面環境。

 
檔案名稱:CentOS7Chrome.sh
檔案內容:
#!/bin/bash
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum install -y ./google-chrome-stable_current_*.rpm

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

檔案名稱:CentOS7FiraCode.sh
檔案內容:
#!/bin/bash
yum install -y git
git clone https://github.com/tonsky/FiraCode.git
mv ~/FiraCode/distr/ttf /usr/share/fonts/FiraCode
chmod 755 /usr/share/fonts/FiraCode -R
fc-cache -v
fc-cache-64  -v
rm ~/FiraCode -rf

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

重啟後,Chrome 才能設定字型Fira Code



資料來源:

沒有留言:

張貼留言

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

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