Home
This repository contains a collection of common useful scripts.
✨ Features
- Shell scripts
- Setup and installation scripts
- Configuration scripts
- Preparation for environments
- Pre-configured for ease of use
- Account management scripts
- Cross-platform support (Unix/Linux/macOS)
- Multi-architecture support (amd64/arm64/aarch64/intel/apple-silicon)
🚧 Prerequisites
- Bash 4.0+
- Basic command-line tools (curl/wget, git, etc.)
- Internet connection for downloading packages
- Root access for system-level setup and account management
- Common Unix-like/Linux OS:
- Linux (primary support - Ubuntu/Debian)
- macOS (support with Homebrew)
- Other Unix-like systems (limited support)
🚸 Usage/Examples
Setup server environment on Ubuntu (20.04+), Debian (12.0+)
curl -fsSL https://github.com/humblebeeai/script-common/raw/main/src/setup/unix/linux/ubuntu/setup-ubuntu.sh | bash -s -- -u -a
Or with other useful options:
curl -fsSL https://github.com/humblebeeai/script-common/raw/main/src/setup/unix/linux/ubuntu/setup-ubuntu.sh | bash -s -- \
--upgrade \
--hostname=my-server \
--timezone=Asia/Seoul \
--all-runtimes
Create a new user and setup development environment on most Linux
Setup development environment for the current user:
curl -fsSL https://github.com/humblebeeai/script-common/raw/main/src/setup/unix/linux/setup-user.sh | bash -s -- -a
Create a new user and setup development environment:
curl -fsSL https://github.com/humblebeeai/script-common/raw/main/src/setup/unix/linux/setup-user.sh | bash -s -- \
--user=user \
--all-runtimes
Create a new user with sudo privileges, password and setup development environment:
curl -fsSL https://github.com/humblebeeai/script-common/raw/main/src/setup/unix/linux/setup-user.sh | bash -s -- \
--user=admin \
--password="admin_pass123" \
--sudo \
--all-runtimes
Setup development environment on macOS
Note: This script will install Homebrew and any other essential packages if not already installed.
curl -fsSL https://github.com/humblebeeai/script-common/raw/main/src/setup/unix/macos/setup-macos.sh | bash -s -- -a
Setup development environment on Unix/Linux/macOS
Note: This script will only install and setup user-level runtimes and configurations, not system-level packages. Thus it doesn't require root privileges.