Skip to content

Instantly share code, notes, and snippets.

@inwdragon
Created May 11, 2018 10:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inwdragon/c3c05dc81eca70b0766a8f50e2e7380e to your computer and use it in GitHub Desktop.
Save inwdragon/c3c05dc81eca70b0766a8f50e2e7380e to your computer and use it in GitHub Desktop.
Install "TH Sarabun New" Font for Ubuntu terminal
#! /bin/bash
# Last updated 2018-05-11
# auther: inwdragon
APP_VERSION="0.8"
echo "# Install TH Sarabun New Font for Ubuntu terminal."
echo "# Version $APP_VERSION"
echo ""
echo "*** NOTICE: We've use root [sudo] mode. please enter the password. ***"
echo "Downloading..."
sudo git clone https://github.com/inwdragon/thsn-for-ubuntu.git
echo "Download complete!"
echo ""
echo "Installing..."
sudo mkdir /usr/share/fonts/truetype/thai-sarabun-new
sudo mv `pwd`/thsn-for-ubuntu/*.ttf /usr/share/fonts/truetype/thai-sarabun-new/
sudo fc-cache -f -v
echo "Install complete!"
echo ""
echo "Removing install package..."
sudo rm -rf `pwd`/thsn-for-ubuntu/
echo "Remove install package complete!"
echo ""
echo "*** Install TH Sarabun New Font complete ***"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment