diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5dcdfa2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Local Codex/agent workspace files +.agents/ +.codex/ diff --git a/MininetComparativeAnalysis.py b/MininetComparativeAnalysis.py index f1ba0a0..3145db3 100644 --- a/MininetComparativeAnalysis.py +++ b/MininetComparativeAnalysis.py @@ -14,7 +14,7 @@ class MyRouter (Node): self.cmd('sysctl net.ipv4.ip_forward=1') #Enable forwarding on the router def terminate(self): self.cmd('sysctl net.ipv4.ip_forward=0') #Disable forwarding on the router - super(MyRouter, self).terminate + super(MyRouter, self).terminate() def build_topology(config_file): topo = Topo() diff --git a/MininetNetPractice.py b/MininetNetPractice.py index f53d729..3968eb1 100644 --- a/MininetNetPractice.py +++ b/MininetNetPractice.py @@ -13,7 +13,7 @@ class MyRouter (Node): self.cmd('sysctl net.ipv4.ip_forward=1') #Enable forwarding on the router def terminate(self): self.cmd('sysctl net.ipv4.ip_forward=0') #Disable forwarding on the router - super(MyRouter, self).terminate + super(MyRouter, self).terminate() def build_topology(config_file): topo = Topo() diff --git a/setupDocker.sh b/setupDocker.sh index ba1f773..a004c22 100755 --- a/setupDocker.sh +++ b/setupDocker.sh @@ -46,6 +46,7 @@ Types: deb URIs: https://download.docker.com/linux/ubuntu Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") Components: stable +Architectures: $(dpkg --print-architecture) Signed-By: /etc/apt/keyrings/docker.asc EOF diff --git a/setupVirtualBox.sh b/setupVirtualBox.sh index b452b05..7b5333e 100755 --- a/setupVirtualBox.sh +++ b/setupVirtualBox.sh @@ -23,7 +23,7 @@ else echo "You choose no" fi -echo -e "${YELLOW}Do you want to Install VirtualBox-7.0?: [Y/n]${DEFAULT}" +echo -e "${YELLOW}Do you want to Install VirtualBox-7.2?: [Y/n]${DEFAULT}" read -r confirmation if [[ ! "$confirmation" =~ ^[Nn]|[Nn][Oo]$ ]]; then echo "Installing..." @@ -35,23 +35,28 @@ if [[ ! "$confirmation" =~ ^[Nn]|[Nn][Oo]$ ]]; then lsb-release \ echo -e "${BLUE}Adding Docker's official GPG key${DEFAULT}" - wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --yes --dearmor -o /usr/share/keyrings/oracle-virtualbox-2016.gpg + wget -qO - https://www.virtualbox.org/download/oracle_vbox_2016.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/oracle-virtualbox-2016.gpg - - echo \ - "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian \ - $(. /etc/os-release && echo $VERSION_CODENAME) contrib" | \ - sudo tee /etc/apt/sources.list.d/virtualbox.list > /dev/null + echo -e "${BLUE}Add the repository to Apt sources${DEFAULT}" + sudo tee /etc/apt/sources.list.d/virtualbox.sources <