For experts only. This script doesn't precisely follow Gentoo Handbook, use at your own risk.
- currently
amd64
is the only supported - uses
vanilla-sources
by default ssh
- default
sshd
configuration disallows password authentication - manual
ssh
port by default - firewall disallows all incoming connections, besides
ssh
by default - firewall autobans those who failed to login
- default
- uses
cpuid2cpuflags
ifCPU_FLAGS_X86
are not manually edited - designed for
tmux
+vim
users - none of the files in
gentoo-root/
are strictly required- before installation you can remove entire directory instead (although this wasn't heavily tested) and do manual configuration before/after installation.
-
Login to your web admin, go to remote access/VNC page
-
Boot KVM VPS instance from any comfortable
.iso
, ideally withgit
,vim
,tmux
andhtop
preinstalled (usually Ubuntu Server LTS images are okay) -
Setup temporary network whatever way you like
-
Before installing, you need dos partition table and at least one ext4 partition. Optionally you can create a swap partition as well (it will be activated automatically).
You don't necessarily need a completely empty root partition to start installing, however your partition should not contain non-dot directories (other than lost+found
).
- Download
cd ~
git clone --depth=1 https://github.com/codonaft/gentoo-vps-box
# Alternatively:
# wget https://api.github.com/repos/codonaft/gentoo-vps-box/tarball -O - | tar xzf - && mv codonaft-gentoo-vps-box* gentoo-vps-box
# or
# curl -sS https://api.github.com/repos/codonaft/gentoo-vps-box/tarball -O - | tar xzf - && mv codonaft-gentoo-vps-box* gentoo-vps-box
- Run preconfigured tmux
gentoo-vps-box/01-run-tmux.sh
-
Enter
to configure the system. Copy ssh keys togentoo-root/{home/*/.ssh,etc/ssh/}
if necessary -
C-a 2
→Enter
to install the system
Failure? Make changes and restart ./03-install.sh
Sudden reboot/etc.? Check /mnt/gentoo/gentoo-vps-box.log
I'm currently investing all my time in personal projects and no longer making any income from proprietary commercial projects owned by third-party businesses.
If you found this repo useful and you want to support me, please
- ⭐ it
- check here
Thank you for your support! ❤️ (◕‿◕)
MIT