Skip to content

valicm/debian-pve-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

Bash script to create swap in Debian, with option to provide additional packages to be installed. Swap size is either automatically determined by RAM amount available on the machine or by optional argument on the script.

Motivation

In my homelab withing Proxmox VE I do have minimal Debian 12 cloud-init image as template. It has bare minimum required to boot a VM, so that cloud-init image is minimal as possible.

This script is for post-installation to quickly create appropriate swap and optionally install additional packages.

Options

  • size => default's to 2x of RAM assigned, optionally can be set to custom value by script using argument -s NUMERIC_VALUE
  • packages => list of comma separated packages provided trough script argument as -p rsync,git,curl

Usage

Default

wget -qLO - https://github.com/valicm/debian-pve-script/raw/main/debian-pve-script.sh | bash

Custom swap size 8GB, with git and rsync

wget -qLO - https://github.com/valicm/debian-pve-script/raw/main/debian-pve-script.sh | bash -s -- -s 8 -p git,rsync

Running as sudo user

wget -qLO - https://github.com/valicm/debian-pve-script/raw/main/debian-pve-script.sh | sudo bash -s -- -s 8 -p git,rsync

About

Add swap / install additional optional packages

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages