- Fix CRLF line endings (SC1017) in 10 shell scripts - Add shebangs (SC2148) to 5 scripts missing them - Fix unquoted variables (SC2086) in kali-updates.sh - Add shellcheck disable directive for intentional eval usage - Fix missing space after ! in observium/custom_install.sh - Add security scan reports to .gitignore-safe location
server_config
Overview
Server configuration templates and scripts for Debian/Ubuntu servers.
Files
| Directory | Description |
|---|---|
debian/ |
Debian server setup scripts |
ubuntu/ |
Ubuntu server setup scripts |
Debian Setup
debian/debian-setup.sh
Initial Debian server configuration:
sudo ./server_config/debian/debian-setup.sh
Configures:
- sudo access for user 'traver'
- open-vm-tools for VMware
- Git and wget
- Cockpit web UI
- Python
Ubuntu Setup
ubuntu/ubuntu-setup.sh
Initial Ubuntu server configuration:
sudo ./server_config/ubuntu/ubuntu-setup.sh
Configures:
- sudo access
- UFW removal (if desired)
- open-vm-tools
- Git and wget
- Cockpit web UI
- Python
ubuntu/ubuntu-docker-install.sh
Docker installation on Ubuntu:
sudo ./server_config/ubuntu/ubuntu-docker-install.sh
Installs:
- Docker CE + CLI + containerd
- Docker Compose plugin
- Adds user to docker group
First-Time Setup
# 1. Run server setup
sudo ./server_config/ubuntu/ubuntu-setup.sh
# OR
sudo ./server_config/debian/debian-setup.sh
# 2. Install Docker (optional)
sudo ./server_config/ubuntu/ubuntu-docker-install.sh
# 3. Set up updates
sudo ./setup_cron_clean.sh # Auto-updates every 6h
Post-Installation
After running these scripts:
- Log out and back in (for group changes)
- Access Cockpit at
https://server-ip:9090 - Configure Docker if installed
- Review auto-update settings in
/etc/cron.d/auto_updates