eric-keller / npp-linux-01-intro

MIT License
8 stars 8 forks source link

I followed the same steps but couldn't find the lab contents #4

Open mahmoudragab94 opened 2 weeks ago

mahmoudragab94 commented 2 weeks ago

Hello,

Do anyone have the same issue ?

I should able to see the lab contents but unfortunately I couldn't see it.

vagrant@ubuntu-jammy:~$ dir

get-docker.sh

vagrant@ubuntu-jammy:~$ ls

get-docker.sh

Thanks in advance.

eric-keller commented 2 weeks ago

If I understand correctly, you've used vagrant to launch a VM, and then inside of that VM you cannot see the lab files. Assuming this is correct, the thing to note is that the guest VM and your host computer have different file systems.

There's a shared directory mounted -- inside of the guest VM, it will be /vagrant. All of the files that are in the directory where the Vagrant file is will be there. e.g., I'm using windows, and have this repo in this directory c:\vagrant\npp-linux-01-intro. After running vagrant up, and vagrant ssh, I do the following:

vagrant@ubuntu-jammy:~$ ls /vagrant LICENSE README.md Vagrantfile demo1 demo2 demo3 lab1 mac-arm

vagrant@ubuntu-jammy:~$ exit logout Connection to 127.0.0.1 closed.

c:\vagrant\npp-linux-01-intro>dir Volume in drive C is OSDisk

Directory of c:\vagrant\npp-linux-01-intro

06/17/2024 03:05 PM

. 06/17/2024 03:04 PM .. 06/17/2024 03:05 PM .vagrant 06/17/2024 03:04 PM demo1 06/17/2024 03:04 PM demo2 06/17/2024 03:04 PM demo3 06/17/2024 03:04 PM lab1 06/17/2024 03:04 PM 1,068 LICENSE 06/17/2024 03:04 PM mac-arm 06/17/2024 03:04 PM 1,578 README.md 06/17/2024 03:04 PM 3,989 Vagrantfile 3 File(s) 6,635 bytes 8 Dir(s) 609,166,888,960 bytes free

mahmoudragab94 commented 2 weeks ago

Thank you a lot , I'm in.