Coder Social home page Coder Social logo

vagrant-basic's Introduction

AcnTech Basic

AcnTech Basic box.

The box comes in two flavors, one based on Ubuntu Desktop and one based on Xubuntu Desktop.

AcnTech Ubuntu

See details in folder /ubuntu.

AcnTech Xubuntu

See details in folder /xubuntu.

Prerequisites

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.

Setup

This box was created using the following setup method:

  • Create new VirtualBox Machine
    • Choose name AcnTech Ubuntu or AcnTech Xubuntu
    • Choose 1024 MB RAM
    • Choose 128 MB Video Memory
    • Choose harddisk type VMDK and a 100 GB size
  • Start install from Live CD
    • Choose Minimal installation
    • User Vagrant
    • Username vagrant
    • Password vagrant
    • Hostname acntech
  • 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

Packcaging

Package with vagrant package --base "AcnTech Ubuntu" or vagrant package --base "AcnTech Xubuntu"

vagrant-basic's People

Contributors

onlyteo avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.