/dev-small

dev version of small

Primary LanguageShell

small

Dev-Small is a dev-version of small, s tiny userland distro. This is the aarch64 version patched to run with proot-distro under termux.
This version have g++ installed, to compile Aarch64 musl C/C++ linked binaries

Full Install on Termux
git clone https://github.com/stringmanolo/dev-small
cd dev-small
pkg install proot-distro
7z x smallFileSystem.7z
cp dev-small smallFileSystem -r 
./configureSmallDistro.sh
cd packages
./install_apk.sh
cd ../
./installInProotDistro.sh
Usage
  • Login into small:
dev-small
  • Run a command inside small
dev-small ls -a
Compile a binarie
g++ -o helloWorld helloWorld.cpp
strip --strip-unneeded helloWorld
chmod 0775 helloWorld
./helloWorld
Files
  • README.md This file.

  • TODO.md Ideas for the future.

  • cleanSmall.sh Replace the small filesystem by alpine filesystem

  • configureSmallDistro.sh Add nameservers to /etc/resolv.config
    Remove env variables from host to avoid leakage
    Add env variables to small
    Add bin locations to $PATH
    Add terminal colors and prompt shell
    Add aliases
    Add bash shell options (if bash is installed)

  • exportInstalledSmall.sh Export small with all changes made directly from the system (packages installed, new files, etc)

  • exportSmall.sh Export small directory, changes made directly from the system are not reflected

  • installInProotDistro.sh Install small in proot-distro
    Add small to /bin
    Other installed versions, will be removed (all files inside too)

  • packages Extra packages (tweeaked and compressed to be smaller) will be here
    You can install by going into this folder and run the scripts Usefull to install packages without APK (reduces the size)

  • packages/apk APK package manager compressed files

  • packages/install_apk.sh Install the APK (Alpine Package Manager) in small

  • reduced Smallest possible version of small

  • smallFileSystem The small files that will be installed in proot-distro

  • startSmall.sh Old file to run small in desktop/PC
    Ignore it, possible not working with this patched small version