diff --git a/.gitignore b/.gitignore index 997ca2f846554a247d3cc3f653e17dd1d5a15ffe..3d69333446d77565619612ecba254eac6209e9c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.vagrant \ No newline at end of file +.vagrant +*.vdi \ No newline at end of file diff --git a/Vagrantfile b/Vagrantfile index 2d9c3f421488ca5769449f47cd339b6e21b696e8..2fa7d179392bc656d7676f88c02e5223ed32936f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -4,7 +4,7 @@ Vagrant.configure("2") do |config| config.vm.define "focal", primary: true do |focal| focal.vm.box = "ubuntu/focal64" - focal.vm.synced_folder ".", "/shared", + focal.vm.synced_folder "./", "/shared", owner: "vagrant", group: "vagrant" focal.vm.provider "virtualbox" do |vb| vb.gui = true @@ -16,6 +16,13 @@ Vagrant.configure("2") do |config| vb.customize ["modifyvm", :id, "--audioin", "on"] vb.customize ["modifyvm", :id, "--audioout", "on"] vb.customize ["modifyvm", :id, "--audiocontroller", "hda"] + vb.customize ["modifyvm", :id, "--usb", "on"] + vb.customize ["modifyvm", :id, "--usbehci", "on"] + vb.customize ["usbfilter", "add", "0", + "--target", :id, + "--name", "Altera DE-SoC", + "--vendorid", "09fb", + "--productid", "6010"] disk_image = File.join(File.dirname(File.expand_path(__FILE__)), 'ubuntu_20_04.vdi') unless File.exist?(disk_image) @@ -69,6 +76,9 @@ Vagrant.configure("2") do |config| focal.vm.provision "shell", inline: "sudo apt update && sudo apt -y full-upgrade && sudo apt -y autoremove || :" + focal.vm.provision "shell", + inline: "sudo apt install -y virtualbox-guest-additions-iso virtualbox-guest-x11 || :" + focal.vm.provision "shell", inline: "cat /root/.profile | grep PATH >> /home/vagrant/.profile || :" end diff --git a/images/git_clone.PNG b/images/git_clone.PNG new file mode 100644 index 0000000000000000000000000000000000000000..f39369e9dcb96186cc886a424d6cb2910d66bb01 Binary files /dev/null and b/images/git_clone.PNG differ diff --git a/images/opening_a_shell.png b/images/opening_a_shell.png new file mode 100644 index 0000000000000000000000000000000000000000..573b8e605ef07b7c09a2563aed54ca700114c8c1 Binary files /dev/null and b/images/opening_a_shell.png differ diff --git a/images/virtualbox.PNG b/images/virtualbox.PNG new file mode 100644 index 0000000000000000000000000000000000000000..7d5fc105b87436049ab01be4be9cdd1bfe864fb1 Binary files /dev/null and b/images/virtualbox.PNG differ diff --git a/run.sh b/run_linux.sh similarity index 100% rename from run.sh rename to run_linux.sh diff --git a/run_windows.bat b/run_windows.bat new file mode 100644 index 0000000000000000000000000000000000000000..6624d4b921aaa63b7039b33cbd73e55b3aa15c64 --- /dev/null +++ b/run_windows.bat @@ -0,0 +1,2 @@ +vagrant up +vagrant reload \ No newline at end of file diff --git a/scripts/setup_quartus.sh b/scripts/setup_quartus.sh index 73d3a8776845fe13d21b587ebef2f41233e0bb98..b7dcd25bf307adacf02f2d86dcd220dbd651324f 100644 --- a/scripts/setup_quartus.sh +++ b/scripts/setup_quartus.sh @@ -60,7 +60,7 @@ echo "Installing Quartus, this may take some time..." echo "Cleaning up" rm -r /workspace/components -if [ -f "/workspace${tar_file}" ] +if [ -f "/workspace/${tar_file}" ] then echo "Removing Tar file" rm /workspace/$tar_file