Created
July 17, 2021 19:05
-
-
Save srikanthmanda/60963b6eb791b274e4643e68bf03cd7c to your computer and use it in GitHub Desktop.
Setting up dev-tools on iOS, using iSH app
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
# iSH app: https://ish.app/ | |
# Installing Alpine Linux APK packages: https://wiki.alpinelinux.org/wiki/Alpine_newbie_apk_packages#install_basic_tools | |
# BusyBox: https://busybox.net/ | |
# Update APK repositories and upgrade packages | |
apk update | |
apk upgrade | |
# Note: iSH comes packaged with BusyBox `grep`, `less` and `sed` | |
which grep less sed > ~/original_versions.log | |
grep --version >> ~/original_versions.log | |
less --version >> ~/original_versions.log | |
sed --version >> ~/original_versions.log | |
# Install `curl`, `git`, `python3` and GNU versions of `bash`, `grep`, `less`, `sed` | |
apk add bash curl git grep less python3 sed | |
# Backup `/etc/passwd` and replace `ash` with `bash` as default shell | |
cp /etc/passwd ~/passwd.original | |
sed -i "s/ash/bash/1" /etc/passwd | |
# Update `bash` prompt | |
echo 'PS1="\s@\W $ "' > ~/.bash_profile | |
# Change timezone from UTC to local timezone (IST) | |
apk add tzdata | |
cp /etc/localtime ~/localtime.original # Original may not be present | |
cp /etc/timezone ~/timezone.original # Original may not be present | |
cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime | |
echo "Asia/Kolkata" >> /etc/timezone | |
apk del tzdata | |
# Save above steps to setup file | |
cat ~/.ash_history > ~/setup-ish.sh | |
# NodeJS is also available for installation | |
# apk add nodejs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment