Skip to content

Commit 616062d

Browse files
committed
switch to vmware in vagrantfile
1 parent 972385c commit 616062d

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

Vagrantfile

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Vagrant.configure("2") do |config|
1212

1313
# Every Vagrant development environment requires a box. You can search for
1414
# boxes at https://vagrantcloud.com/search.
15-
config.vm.box = "ubuntu/jammy64"
15+
# config.vm.box = "ubuntu/jammy64" # virtualbox only
16+
# config.vm.box = "generic/ubuntu2204" # amd64
17+
config.vm.box = "bento/ubuntu-22.04"
1618

1719
# Disable automatic box update checking. If you disable this, then
1820
# boxes will only be checked for updates when the user runs
@@ -40,9 +42,9 @@ Vagrant.configure("2") do |config|
4042
# config.vm.network "public_network"
4143

4244
# prevent socket thingie to stop wsl /dev/null issue
43-
config.vm.provider "virtualbox" do |vb|
44-
vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
45-
end
45+
# config.vm.provider "virtualbox" do |vb|
46+
# vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
47+
# end
4648

4749
# Share an additional folder to the guest VM. The first argument is
4850
# the path on the host to the actual folder. The second argument is
@@ -84,19 +86,19 @@ Vagrant.configure("2") do |config|
8486
# documentation for more information about their specific syntax and use.
8587
ssh_pub_key = File.readlines("#{Dir.home}/.ssh/id_rsa.pub").first.strip#
8688

87-
# config.vm.provision "shell", inline: <<-SHELL
88-
# apt update
89-
# apt upgrade -y
90-
# apt install -y dtach tree
89+
config.vm.provision "shell", inline: <<-SHELL
90+
apt update
91+
apt upgrade -y
92+
apt install -y dtach tree
9193
92-
# useradd -m -s /bin/bash elspeth
93-
# usermod -a -G sudo elspeth
94-
# echo 'elspeth:elspieelspie' | chpasswd
95-
# mkdir -p /home/elspeth/.ssh
96-
# cp /home/ubuntu/.ssh/authorized_keys /home/elspeth/.ssh
97-
# chown elspeth /home/elspeth/.ssh/authorized_keys
98-
# echo 'elspeth ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/elspeth
99-
# echo 'export DJANGO_COLORS=nocolor' >> /home/elspeth/.profile
100-
# echo '#{ssh_pub_key}' >> /home/elspeth/.ssh/authorized_keys
101-
# SHELL
94+
useradd -m -s /bin/bash elspeth
95+
usermod -a -G sudo elspeth
96+
echo 'elspeth:elspieelspie' | chpasswd
97+
mkdir -p /home/elspeth/.ssh
98+
cp ~/.ssh/authorized_keys /home/elspeth/.ssh
99+
chown elspeth /home/elspeth/.ssh/authorized_keys
100+
echo 'elspeth ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/elspeth
101+
echo 'export DJANGO_COLORS=nocolor' >> /home/elspeth/.profile
102+
echo '#{ssh_pub_key}' >> /home/elspeth/.ssh/authorized_keys
103+
SHELL
102104
end

0 commit comments

Comments
 (0)