Termuxであそぼ
1. Termuxのセットアップ¶
update¶
Ubuntu install¶
他ディストロも入手可能 https://github.com/termux/proot-distro2. Ubuntuのセットアップ(superuser)¶
install package¶
apt update && apt upgrade -y
apt install locales tzdata-y
vi /etc/locale.gen # 290行目、ja_JP.UTF-8のコメントアウト(#)を外す
locale-gen
update-locale LANG=ja_JP.UTF-8
make user¶
追記内容は以下の通り visudoが動かないときはexport EDITOR=viなどが必要
make login shell¶
3. Termuxのセットアップ¶
install package¶
install zsh¶
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
make selection¶
echo "choose boot"
echo "t) termux"
echo "u) ubuntu"
echo -n "> "
read choice
case "${choice}" in
u)
proot-distro login --user camellian ubuntu
;;
*)
zsh
;;
esac
cp .zsh*¶
4. Ubuntuのセットアップ(user)¶
install package¶
sudo apt install python3 curl duf eza fastfetch git neovim ripgrep tar unar wget zsh -y
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
make sym link¶
zsh¶
カスタマイズは3章を参考
setup python¶
uvのinstall
5. addon apks¶
termux-api¶
termux-clipboard-setやtermux-clipboard-getが便利そう
termux-widget¶
Home画面からスクリプトを実行できる?
Reference¶
- Termuxs' apps
https://github.com/termux/termux-app/releases
https://github.com/termux/termux-styling/releases
https://github.com/termux/termux-widget/releases
https://github.com/termux/termux-float/releases - TermuxにUbuntuを入れてJupyterlabの環境を整備 | rm -rf /*
https://u305f.hateblo.jp/entry/2024/08/09/202335 - 【Termux】素のTermuxでできたこと|銀河連邦(流れ弾)
https://note.com/gingarenpo/n/n707f7743efea#f151ca0e-491f-4337-bdf4-4071d37fcc09