stevelorenz / comnetsemu

A virtual emulator/testbed designed for the book: Computing in Communication Networks: From Theory to Practice (2020)
https://stevelorenz.github.io/comnetsemu/
MIT License
25 stars 21 forks source link

SSH Agent issue, and install.sh has windows line endings #19

Closed scrappylabs closed 1 year ago

scrappylabs commented 1 year ago

Issue 1: Was attempting to install using Vagrant on Windows with VirtualBox as the provider, kept receiving an error about SSH agent not working. I ended up having to run: vagrant halt vagrant destroy -f vagrant up comnetsemu

When none of those options worked, I ended up having to open VirtualBox, and then running vagrant up commnetsemu, and the SSH error went away and I was able to vagrant ssh comnetsemu

Issue 2: when running install.sh from ~/comnetsemu/util/ I kept getting an error: ./install.sh: line 9: $'\r'

Basically, the install.sh script does not have unix endings. Had to run: sed $'s/\r$//' ./install.sh > ./install.Unix.sh then I ran: bash ./install.Unix.sh -u everything worked...I guess I'm asking to please be careful editing bash files in windows! :)

stevelorenz commented 1 year ago

Hi,

Thanks for your feedback.

With best regards