標籤

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月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



資料來源:

沒有留言:

張貼留言

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

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