Last active
May 5, 2024 04:59
-
-
Save dev100kg/851b450c51b2d4aa7a6ffcbcfe88a8f8 to your computer and use it in GitHub Desktop.
Chromebookのlinux初期設定(日本語関係)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd "$HOME" || exit | |
sudo apt update && sudo apt -y dist-upgrade && sudo apt -y autoremove | |
#日本語関係 | |
sudo apt -y install task-japanese locales-all fonts-noto-cjk | |
sudo localectl set-locale LANG=ja_JP.UTF-8 LANGUAGE="ja_JP:ja" | |
#VSCode | |
sudo apt -y install wget gpg | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg | |
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg | |
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' | |
rm -f packages.microsoft.gpg | |
sudo apt -y install apt-transport-https | |
sudo apt update && sudo apt -y install code | |
#ll | |
echo "alias ll='ls -ahlF'" | tee -a .bashrc | |
#font | |
mkdir -p "$HOME"/.local/share/fonts | |
wget https://github.com/yuru7/PlemolJP/releases/download/v1.7.1/PlemolJP_v1.7.1.zip && unzip PlemolJP_v1.7.1.zip | |
mv PlemolJP_v1.7.1 "$HOME"/.local/share/fonts | |
fc-list | grep PlemolJP | |
echo 'gtk-font-name="PlemolJP 10"' > "$HOME"/.gtkrc-2.0 | |
gsettings set org.gnome.desktop.interface font-name 'PlemolJP 10' | |
mkdir -p "$HOME"/.config/gtk-3.0 | |
echo -e "[Settings]\ngtk-font-name = PlemolJP 10" > "$HOME"/.config/gtk-3.0/settings.ini | |
rm -rf PlemolJP* | |
#logout | |
# shellcheck source=/dev/null | |
source /etc/default/locale | |
exec $SHELL -l | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment