Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valicm/debian-pve-script
Add swap / install additional optional packages
https://github.com/valicm/debian-pve-script
debian proxmox-ve swap
Last synced: 27 days ago
JSON representation
Add swap / install additional optional packages
- Host: GitHub
- URL: https://github.com/valicm/debian-pve-script
- Owner: valicm
- License: gpl-3.0
- Created: 2024-02-02T15:14:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-11T12:21:24.000Z (9 months ago)
- Last Synced: 2024-02-11T13:30:04.309Z (9 months ago)
- Topics: debian, proxmox-ve, swap
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## 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
```sh
wget -qLO - https://github.com/valicm/debian-pve-script/raw/main/debian-pve-script.sh | bash
```### Custom swap size 8GB, with git and rsync
```sh
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
```sh
wget -qLO - https://github.com/valicm/debian-pve-script/raw/main/debian-pve-script.sh | sudo bash -s -- -s 8 -p git,rsync
```