- Lightweight
- uses Xfce
- ~4 GiB initial virtual disk size with VirtualBox
- RAM >= 2 GiB
- Includes
- Various tools
- PHP and Composer
- Sqlite3
- VSCode and Git
- Install scripts
- Node.js and npm
- MariaDB
- Various tools
- Create the virtual machine:
- Install Debian on a Virtualbox VM
- Create users (or update
hosts
)- Set root password to
changeme
- Create
user
with passwordchangeme
- Set root password to
- Software selection - select only
SSH server
- Create users (or update
- Prepare the VM for ansible
- Make sure you can ssh into the VM
- Update VM network settings
Machine > Settings > Network > Attached to > Bridged Adapter
- Get the ip address with
ip a
and updatehosts
- Copy key by SSH-ing into the VM
ssh user@192.168.x.y
- Update VM network settings
- Install packages and add sudo privileges to user
- Log in as root with
su -
and install packagesapt install sudo python3
- Add user to sudoers
adduser user sudo
- Log in as root with
- Make sure you can ssh into the VM
- Setup the VM
ansible-playbook playbooks/setup.yml
- Install Debian on a Virtualbox VM
- Trim virtual disk:
- Remove all unnecessary files
ansible-playbook playbooks/cleanup.yml
- On VM:
sudo dd if=/dev/zero of=/bigemptyfile bs=4096k status=progress
sudo rm -f /bigemptyfile
- On host:
vboxmanage modifymedium /mnt/storage/VBOX/phpdev/phpdev.vdi --compact
- Edit this path to match your .vdi file
- Remove all unnecessary files
It is recommended to create a new install every time you run a new version of these playbooks.
To see changes, see Releases in Github.
This repository is licensed under The Unlicense
. See LICENSE
for more information.