General updates to keep VM up to date
This commit is contained in:
parent
a9e1d6fb4c
commit
32522df0e2
21
Vagrantfile
vendored
21
Vagrantfile
vendored
@ -26,7 +26,8 @@ gui_enabled = ENV['VAGRANT_GUI'] || true
|
|||||||
# backwards compatibility). Please don't change it unless you know what
|
# backwards compatibility). Please don't change it unless you know what
|
||||||
# you're doing.
|
# you're doing.
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
config.vm.box = "ubuntu/focal64"
|
config.vm.box = "ubuntu/jammy64"
|
||||||
|
config.vbguest.auto_update = false
|
||||||
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
# Disable automatic box update checking. If you disable this, then
|
||||||
# boxes will only be checked for updates when the user runs
|
# boxes will only be checked for updates when the user runs
|
||||||
@ -35,13 +36,13 @@ Vagrant.configure("2") do |config|
|
|||||||
|
|
||||||
# Create a private network, which allows host-only access to the machine
|
# Create a private network, which allows host-only access to the machine
|
||||||
# using a specific IP.
|
# using a specific IP.
|
||||||
# config.vm.network "private_network", ip: "192.168.33.10"
|
config.vm.network "private_network", ip: "192.168.4.20"
|
||||||
|
|
||||||
# Share a folder between guest and host for convenience
|
# Share a folder between guest and host for convenience
|
||||||
config.vm.synced_folder File.join(".", "data"), "/media/data"
|
config.vm.synced_folder File.join(".", "data"), "/media/data"
|
||||||
|
|
||||||
# Use vagrant-disksize plugin to resize disk as desired
|
# Use vagrant-disksize plugin to resize disk as desired
|
||||||
config.disksize.size = ENV["VAGRANT_DISKSIZE"] || "20GB"
|
config.disksize.size = ENV["VAGRANT_DISKSIZE"] || "40GB"
|
||||||
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
config.vm.provider "virtualbox" do |vb|
|
||||||
vb.memory = ENV['VAGRANT_MEMORY'] || 1024 * 8
|
vb.memory = ENV['VAGRANT_MEMORY'] || 1024 * 8
|
||||||
@ -51,9 +52,19 @@ Vagrant.configure("2") do |config|
|
|||||||
vb.gui = gui_enabled
|
vb.gui = gui_enabled
|
||||||
if gui_enabled
|
if gui_enabled
|
||||||
vb.customize ["modifyvm", :id, "--monitorcount", (ENV['VAGRANT_MONITORS'] || '1')]
|
vb.customize ["modifyvm", :id, "--monitorcount", (ENV['VAGRANT_MONITORS'] || '1')]
|
||||||
vb.customize ["modifyvm", :id, "--graphicscontroller", "vboxsvga"]
|
|
||||||
vb.customize ["modifyvm", :id, "--vram", "128"]
|
vb.customize ["modifyvm", :id, "--graphicscontroller", "vmsvga"]
|
||||||
|
vb.customize ["modifyvm", :id, "--vram", "256"]
|
||||||
|
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
|
||||||
|
vb.customize ["modifyvm", :id, "--accelerate2dvideo", "on"]
|
||||||
|
|
||||||
|
# Clipboard sharing
|
||||||
|
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Use hosts DNS resolver
|
||||||
|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
|
||||||
end
|
end
|
||||||
|
|
||||||
config.vm.define "default", primary: true do |primary|
|
config.vm.define "default", primary: true do |primary|
|
||||||
|
|||||||
@ -4,8 +4,7 @@
|
|||||||
# A list of packages to install
|
# A list of packages to install
|
||||||
apt_packages=(
|
apt_packages=(
|
||||||
# Docker setup
|
# Docker setup
|
||||||
"docker"
|
"docker.io"
|
||||||
"docker-compose"
|
|
||||||
|
|
||||||
# General utilities
|
# General utilities
|
||||||
"dos2unix"
|
"dos2unix"
|
||||||
@ -14,6 +13,7 @@ apt_packages=(
|
|||||||
"vim"
|
"vim"
|
||||||
"expect"
|
"expect"
|
||||||
"jq"
|
"jq"
|
||||||
|
"xclip"
|
||||||
|
|
||||||
# For encryption in git
|
# For encryption in git
|
||||||
"git-crypt"
|
"git-crypt"
|
||||||
|
|||||||
@ -3,13 +3,17 @@
|
|||||||
# Ensure that no interactive prompts are used
|
# Ensure that no interactive prompts are used
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
apt-get update
|
||||||
|
# Necessary starting in jammy jellyfish
|
||||||
|
apt-get install -qy tasksel
|
||||||
|
tasksel install xubuntu-desktop
|
||||||
|
|
||||||
# Additional pacakges to ensure a nice experience
|
# Additional pacakges to ensure a nice experience
|
||||||
additional_packages=(
|
additional_packages=(
|
||||||
xfce4
|
xfce4
|
||||||
xfce4-terminal
|
xfce4-terminal
|
||||||
xfce4-whiskermenu-plugin
|
xfce4-whiskermenu-plugin
|
||||||
menulibre
|
menulibre
|
||||||
firefox
|
|
||||||
pinentry-gtk2
|
pinentry-gtk2
|
||||||
policykit-desktop-privileges
|
policykit-desktop-privileges
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user