AcnTech Basic box.
The box comes in two flavors, one based on Ubuntu Desktop and one based on Xubuntu Desktop.
See details in folder /ubuntu.
See details in folder /xubuntu.
The host computer must have Intel VT/AMD-V virtualization support enabled in the BIOS.
Oracle VirtualBox and Vagrant must also be installed on the host.
This box was created using the following setup method:
- Create new VirtualBox Machine
- Choose name
AcnTech Ubuntu
orAcnTech Xubuntu
- Choose
1024 MB
RAM - Choose
128 MB
Video Memory - Choose harddisk type
VMDK
and a100 GB
size
- Choose name
- Start install from Live CD
- Choose
Minimal installation
- User
Vagrant
- Username
vagrant
- Password
vagrant
- Hostname
acntech
- Choose
- Ubuntu: Disable screensaver and lock screen
-
Settings > Privacy > Screen Lock > Disable screen lock
-
Settings > Power > Power Saving > Disable blank screen
-
- Xubuntu: Disable screensaver and lock screen
-
Settings > Screensaver > Screensaver tab > Disable screensaver
-
Settings > Screensaver > Lock Screen tab > Disable lock screen
-
Settings > Power Management > Display tab > Disable display power management
-
- Install required packages:
sudo apt update
sudo apt -y upgrade
sudo apt -y install build-essential dkms ssh openssh-server curl wget vim net-tools
- Installed VirtualBox Guest Additions:
-
Machine > Devices > "Insert Guest Additions CD image..."
sudo /media/cdrom/VBoxLinuxAdditions.run
-
- Restart VirtualBox Machine
- Install Puppet repo
sudo curl -o /tmp/puppet.deb https://apt.puppetlabs.com/puppet7-release-jammy.deb
sudo dpkg -i /tmp/puppet.deb
sudo rm /tmp/puppet.deb
sudo apt update
sudo apt -y install puppet
- Added Vagrant insecure public SSH key to the vagrant user:
mkdir ~/.ssh
curl -k -o ~/.ssh/authorized_keys https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub
- Allowed for use of the authorized keys file:
sudo sed -i 's/#AuthorizedKeysFile/AuthorizedKeysFile/g' /etc/ssh/sshd_config
- Add sudo access for the vagrant user:
echo "vagrant ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers
- Created vagrant folder:
sudo mkdir /vagrant
sudo chown -R vagrant:vagrant /vagrant
- Clear APT history
sudo apt -y autoremove
sudo apt -y autoclean
sudo apt -y clean
sudo rm -rf /var/lib/apt/lists/*
- Zeroed out the disk of the Vagrant box:
sudo dd if=/dev/zero of=/EMPTY bs=1M
sudo rm -f /EMPTY
- Clear BASH history:
cat /dev/null > ~/.bash_history && history -c && exit
Package with vagrant package --base "AcnTech Ubuntu"
or vagrant package --base "AcnTech Xubuntu"