Skip to content

Instantly share code, notes, and snippets.

@sangheonhan
Created May 3, 2023 08:23
Show Gist options
  • Save sangheonhan/9c7d542a024a00992bb6b4df63cb4b92 to your computer and use it in GitHub Desktop.
Save sangheonhan/9c7d542a024a00992bb6b4df63cb4b92 to your computer and use it in GitHub Desktop.
Set Ubuntu to the Korean locale.
#! /bin/bash
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
export LANG=ko_KR.UTF-8
export LC_MESSAGES=POSIX
sed -i 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list
apt update -y
apt install -y locales language-pack-ko tzdata
echo "Asia/Seoul" > /etc/timezone
ln -fs /usr/share/zoneinfo/`cat /etc/timezone` /etc/localtime
locale-gen ko_KR.UTF-8
update-locale LANG=ko_KR.UTF-8
dpkg-reconfigure --frontend noninteractive locales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment