# unix-config **Repository Path**: kt10/gentoo-config ## Basic Information - **Project Name**: unix-config - **Description**: Use 'Gentoo Linux' as your development platform - **Primary Language**: Shell - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-10-31 - **Last Updated**: 2026-03-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # unix-config Configuration files for Unix-like systems (Gentoo Linux, FreeBSD, etc.). ## One-click installation Two scripts are provided for different EPYC generations: | Script | Platform | Arch | Boot method | |--------|----------|------|-------------| | `gentoo/install_gentoo_9004.sh` | EPYC 9004 (Genoa) / Supermicro H13SSL | znver4 | efibootmgr (no initramfs) | | `gentoo/install_gentoo_7003.sh` | EPYC 7003 (Milan) / Supermicro H12SSL | znver3 | GRUB + dracut (initramfs required) | Boot from a Fedora/Ubuntu live USB, set up network, then: ```shell sudo -i apt install -y git || dnf install -y git git clone https://gitee.com/kt10/unix-config.git && cd unix-config export TARGET_DISK="/dev/sda" export ROOT_PASSWORD="your_root_password" export HOSTNAME="epyc" # EPYC 9004 series (Genoa) / H13SSL: bash gentoo/install_gentoo_9004.sh # EPYC 7003 series (Milan) / H12SSL: bash gentoo/install_gentoo_7003.sh ``` ### Optional environment variables | Variable | Default | Description | |----------|---------|-------------| | `GENTOO_MIRROR` | `https://mirrors.163.com/gentoo` | Portage mirror | | `TIMEZONE` | `Asia/Shanghai` | System timezone | | `SSH_PORT` | `22` | SSH listen port | | `KERNEL_CONFIG_URL` | *(empty)* | URL to download kernel `.config`; empty = use bundled config | | `EFI_SIZE` | `512M` | EFI partition size | | `USER_NAME` | `fh` | Non-root user to create | | `USER_PASSWORD` | *(same as ROOT_PASSWORD)* | Password for non-root user | | `JOBS` | *(auto-detect via nproc)* | Parallel build jobs | ## Directory structure ``` gentoo/ Gentoo Linux specific portage/ Portage make.conf files (main, GNU toolchain, musl) kernel/ Kernel configs for EPYC 9474F / 7773X on Supermicro boards install_gentoo_*.sh One-click install scripts freebsd/ FreeBSD specific make.conf Ports build options common/ Cross-platform configs shell/ zshrc for regular user and root nvim/ Neovim config (init.vim) Fonts/ Monaco.ttf Input/ Input method tables (wubi98) Docs/ Notes on crossdev, Docker, networking, etc. htop/ htop config Archive/ Old / unused config files ``` ## Development environment (LSP) ```shell rustup component add rust-analyzer go install golang.org/x/tools/gopls@latest npm install -g pyright ``` ## Reference docs - [Crossdev / musl cross-compilation](common/Docs/crossdev.md) - [Docker kernel modules](common/Docs/docker.md) - [Tips (passwords, etc.)](common/Docs/tips.md)