From b343d75d983d98d06060ba07046e62451202605a Mon Sep 17 00:00:00 2001 From: "Peter J. Keleher" <keleher@cs.umd.edu> Date: Thu, 12 Sep 2019 11:35:47 -0400 Subject: [PATCH] auto --- project0/Vagrantfile | 11 +++++------ project1/Vagrantfile | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/project0/Vagrantfile b/project0/Vagrantfile index e25f873..c98098e 100644 --- a/project0/Vagrantfile +++ b/project0/Vagrantfile @@ -12,7 +12,7 @@ Vagrant.configure("2") do |config| # Every Vagrant development environment requires a box. You can search for # boxes at https://atlas.hashicorp.com/search. - config.vm.box = "ubuntu/bionic64" + config.vm.box = "hashicorp/bionic64" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs @@ -89,12 +89,11 @@ Vagrant.configure("2") do |config| cp /vagrant/.cshrc /home/vagrant/ cp -r /vagrant/.jupyter /home/vagrant/ - chown -R vagrant ~vagrant/.jupyter - echo "PS1='424-proj0:\\w> '" >> ~vagrant/.bashrc + sudo -u vagrant ln -s /vagrant v + sudo -u vagrant cp /vagrant/{.bashrc,.cshrc,.jupyter} /home/vagrant/ + sudo -u vagrant perl -pi -e 's/\r\n/\n/g' .cshrc + sudo -u vagrant perl -pi -e 's/\r\n/\n/g' .bashrc - cp /vagrant/.cshrc /home/vagrant/ - cp -r /vagrant/.jupyter /home/vagrant/ chown -R vagrant ~vagrant/.jupyter - SHELL end diff --git a/project1/Vagrantfile b/project1/Vagrantfile index d1b6e74..4e6b8c5 100644 --- a/project1/Vagrantfile +++ b/project1/Vagrantfile @@ -12,7 +12,7 @@ Vagrant.configure("2") do |config| # Every Vagrant development environment requires a box. You can search for # boxes at https://atlas.hashicorp.com/search. - config.vm.box = "ubuntu/bionic64" + config.vm.box = "hashicorp/bionic64" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs -- GitLab