Free preview · 6 min
Set up your local lab
Lesson preview
Video transcript
Welcome to Labverse Academy. In Networking and Linux Essentials, you will start a web service on your own computer and follow the request from the terminal to the response.
First, we will set up a practice directory, then use Linux commands to see who owns a file and who can read or change it.
Next, we will connect addresses, routes, and ports. The service uses the loopback address, so both ends of the request stay inside your Linux environment.
Finally, you will check a listening port, read the HTTP response, and fix a request sent to the wrong port. The final quiz checks what each observation tells you.
For the first exercise, open a Linux terminal and check that Python three and curl are available. Then follow the written instructions below.
By the end of this course, you will be able to explain what happens when you request a page from a service running on your own machine. The examples use a Linux terminal and a local HTTP server.
What you need
Use an Ubuntu or Debian Linux terminal, a Linux virtual machine, or an Ubuntu shell in Windows Subsystem for Linux. Run both your server and client in the same Linux environment. You need Python 3, curl, and the Linux ip and ss tools, typically installed with the iproute2 package. Check for the tools before starting. If a tool is absent, use your distribution’s package manager or ask whoever manages your lab to install it.
command -v python3 curl ip ss
python3 --version
curl --versionMake a practice directory
mkdir -p ~/labverse-networking-lab
cd ~/labverse-networking-lab
pwd
ls -laThe tilde points to your home directory. Check that pwd prints a path ending in labverse-networking-lab. Keep the practice files here. Every service in this course binds to 127.0.0.1, the IPv4 loopback address, so the exercises stay inside your own Linux environment.
How to practice
Run a command, record the line that matters, and say in your own words what it proves. If the result differs from the lesson, write down the exact message and check the current directory, address, or port before changing anything.