Table of Contents
1. Termuxのセットアップ
update
termux-setup-storagepkg update -y && pkg upgrade -yUbuntu install
pkg in proot proot-distro -yproot-distro install ubuntuproot-distro login ubuntu他ディストロも入手可能
2. Ubuntuのセットアップ(superuser)
install package
apt update && apt upgrade -yapt install locales tzdata-yvi /etc/locale.gen # 290行目、ja_JP.UTF-8のコメントアウト(#)を外すlocale-genupdate-locale LANG=ja_JP.UTF-8make user
apt install adduser sudo -yadduser camellianvisudoexit追記内容は以下の通り
camellian ALL=(ALL:ALL) ALLvisudoが動かないときはexport EDITOR=viなどが必要
make login shell
echo 'proot-distro login --user u305f ubuntu' > ./login.shchmod 744 login.sh3. Termuxのセットアップ
install package
pkg in python rust -ypkg in curl duf eza fastfetch git neovim ripgrep tar unar wget yt-dlp zsh -yinstall 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/powerlevel10kgit clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsgit clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingmake 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 ;;esaccp .zsh*
git clone https://github.com/CameIIian/dotfiles/mv dotfiles/.zshrc ~/mv dotfiles/.zsh_aliases ~/4. Ubuntuのセットアップ(user)
install package
sudo apt install python3 curl duf eza fastfetch git neovim ripgrep tar unar wget zsh -ycurl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | shmake sym link
ln -s /storage/emulated/0/ ~/Androidzsh
カスタマイズは3章を参考
sudo chsh -s /usr/bin/zshsetup python
uvのinstall
curl -LsSf https://astral.sh/uv/install.sh | shuv python install 3.135. 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