Services and Self-Hosting
Objective: Install, configure, and manage real services on your machine.
A computer that just sits there with a desktop is a paperweight. IT professionals make machines do things: serve websites, handle DNS, share files, host applications. You're going to turn your machine into a working server.
A service is a program that runs in the background and does a job. systemd manages them all.
Nginx: Web server. Serve HTML pages. Configure virtual hosts. Change ports.
Pi-hole: Network-level DNS server. Block ad domains. Understand DNS traffic.
Samba: File server. Share directories across your local network.
systemd: The init system and service manager. start vs. enable is the critical distinction.
systemctl start [service]Start a service right nowsystemctl stop [service]Stop a running servicesystemctl restart [service]Restart a servicesystemctl enable [service]Auto-start on bootsystemctl disable [service]Remove from boot sequencesystemctl status [service]Current status and recent log outputjournalctl -u [service] -fFollow live logs for a servicejournalctl -u [service] --since '1 hour ago'Recent log history
Install Nginx. Configure it to serve an HTML page you write yourself. Access it from your browser at http://localhost. Change the port to 8080 and access it there.
Install Pi-hole. Configure your machine to use it as its DNS server. Block an ad domain and verify it's blocked.
Install and configure Samba. Create a shared folder accessible from another device on your network.
Use systemctl to start, stop, restart, enable, and check the status of each service. Understand the difference between start and enable.
Find the log files for Nginx and Pi-hole. Read them. Identify what a normal log entry looks like vs. an error.
- nginx-setup.mdFull install/config process, your config file contents, the HTML page you wrote, how you changed the port.
- pihole-setup.mdInstallation steps, DNS config changes, proof of a blocked domain.
- samba-setup.mdConfig file contents, user permissions, and how you tested from another device.
- systemd-reference.mdThe difference between start and enable. Commands for managing services. Output of systemctl status for each.
- log-analysis.mdExamples of normal vs. error log entries from each service with your interpretation.
- Get a Machine Running
- Know Your Hardware
- Learn to Talk to Your Machine
- Break It, Fix It
- Networking Fundamentals
- Users, Permissions, Security, and Remote Access
- Package Management
- Services and Self-Hosting
- Bash Scripting and Automation
- GitHub and Collaboration
- Python Programming
- Professional Communication
- Capstone Project