@@ -12,7 +12,9 @@ Vagrant.configure("2") do |config|
12
12
13
13
# Every Vagrant development environment requires a box. You can search for
14
14
# 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"
16
18
17
19
# Disable automatic box update checking. If you disable this, then
18
20
# boxes will only be checked for updates when the user runs
@@ -40,9 +42,9 @@ Vagrant.configure("2") do |config|
40
42
# config.vm.network "public_network"
41
43
42
44
# 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
46
48
47
49
# Share an additional folder to the guest VM. The first argument is
48
50
# the path on the host to the actual folder. The second argument is
@@ -84,19 +86,19 @@ Vagrant.configure("2") do |config|
84
86
# documentation for more information about their specific syntax and use.
85
87
ssh_pub_key = File . readlines ( "#{ Dir . home } /.ssh/id_rsa.pub" ) . first . strip #
86
88
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
91
93
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
102
104
end
0 commit comments