Automated setup for development environment with PKI certificate support on Windows, WSL2, and Docker.
- PKI Certificate Management: Auto-install certificates for Windows, Linux, and Docker
- WSL2 Setup: Install and configure WSL2 with Kali Linux
- Docker Support: Containerized development environment with CA certificates
- Multi-Language Support: 19+ programming languages via ASDF
- Cross-Platform: Windows, Linux, and Docker containers
dotfiles_pki/
├── certs/ # PKI certificates (*.cer, *.crt, *.pem)
├── fonts/ # Font files (FiraCode.zip, FiraMono.zip)
├── wsl/
│ └── .wslconfig # WSL2 configuration
├── index.ps1 # Windows setup script
├── index.sh # Linux setup script
├── Dockerfile # Docker container definition
├── build.sh # Docker build script
├── docker-compose.yml # Docker compose configuration
└── README.md # Documentation
# Build with Node.js and Python
./build.sh --debian --nodejs --python
# Build all languages
./build.sh --alpine --all
# Run with Docker Compose
docker-compose up -d# Base images
./build.sh --alpine # Minimal Alpine Linux
./build.sh --debian # Stable Debian (default)
./build.sh --ubuntu # Ubuntu LTS
# Languages
./build.sh --nodejs --python --golang --rust --java
# Custom
./build.sh --base fedora:latest --tag my-dev:v1.0- Windows 10/11 với quyền Administrator
- PowerShell 5.1+
- Kali Linux distribution
- Internet connection
# Chạy với quyền Administrator
.\index.ps1Script sẽ thực hiện:
- Cài đặt PKI certificates vào Trusted Root Store
- Cài đặt fonts từ thư mục
fonts/ - Cài đặt/cập nhật WSL2
- Cài đặt Kali Linux distribution
- Cấu hình WSL2 với file
.wslconfig - Chạy script Linux setup
# Tự động chạy từ Windows script hoặc chạy thủ công
bash index.shScript sẽ thực hiện:
- Cài đặt certificates vào Linux certificate store
- Cài đặt Docker và Podman
- Cài đặt ASDF version manager
- Cài đặt 19+ ngôn ngữ lập trình
- Cấu hình SSL certificates cho tất cả tools
| Ngôn ngữ | Plugin | Mô tả |
|---|---|---|
| CMake | cmake | Build system |
| Bun | bun | JavaScript runtime |
| Node.js | nodejs | JavaScript runtime |
| Deno | deno | JavaScript/TypeScript runtime |
| Rust | rust | Systems programming |
| Zig | zig | Systems programming |
| OCaml | ocaml | Functional programming |
| Go | golang | Systems programming |
| Python | python/uv | General purpose |
| Haskell | haskell | Functional programming |
| Erlang/Elixir | erlang/elixir | Concurrent programming |
| Flutter | flutter | Mobile development |
| Java | java | Enterprise development |
| Lua | lua | Scripting |
| PureScript | purescript | Functional web programming |
| V | v | Systems programming |
| Gleam | gleam | Type-safe functional programming |
File wsl/.wslconfig cấu hình:
- Memory: 24GB RAM
- Processors: 6 CPU cores
- Swap: 100GB
- Networking: Mirrored mode
Certificates được cài đặt tự động vào:
- Windows: Trusted Root Certificate Store
- Linux:
/etc/ssl/certs/và/usr/local/share/ca-certificates/
export SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
export SSL_CERT_DIR="/etc/ssl/certs"
export REQUESTS_CA_BUNDLE="/etc/ssl/certs/ca-certificates.crt"
export CURL_CA_BUNDLE="/etc/ssl/certs/ca-certificates.crt"
export BUN_CA_BUNDLE_PATH="/etc/ssl/certs/ca-certificates.crt"
export DENO_CERT="/etc/ssl/certs/ca-certificates.crt"
export NODE_EXTRA_CA_CERTS="/etc/ssl/certs/ca-certificates.crt"
export NODE_OPTIONS="--use-openssl-ca"# Xem các ngôn ngữ đã cài đặt
asdf list
# Xem phiên bản hiện tại
asdf current
# Kiểm tra Docker
docker --version
podman --version# Cài đặt phiên bản cụ thể
asdf install nodejs 18.17.0
# Đặt phiên bản global
asdf global nodejs 18.17.0
# Đặt phiên bản local cho project
asdf local python 3.11.0- Kiểm tra certificates trong
/etc/ssl/certs/ - Chạy
sudo update-ca-certificates - Restart terminal để áp dụng environment variables
- Chạy
source ~/.bashrchoặcsource ~/.zshrc - Kiểm tra
asdf --version - Xem log chi tiết khi cài đặt
- Restart WSL:
wsl --shutdownvàwsl - Kiểm tra WSL version:
wsl --version - Update WSL:
wsl --update
- Đặt file certificate vào thư mục
certs/ - Chạy lại script setup
- Đặt file .zip chứa fonts vào thư mục
fonts/ - Chạy lại Windows script
Chỉnh sửa file wsl/.wslconfig theo nhu cầu.
MIT License