Skip to content

rust-util-collections/unix-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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)

rustup component add rust-analyzer

go install golang.org/x/tools/gopls@latest

npm install -g pyright

Reference docs

About

Unix OS hacker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors